* lib/fclose.c: Fix typo in comment: s/close/fclose/.
[gnulib.git] / ChangeLog
1 2008-10-11  Jim Meyering  <meyering@redhat.com>
2
3         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
4
5 2008-10-11  Bruno Haible  <bruno@clisp.org>
6
7         New module 'fclose'.
8         * modules/fclose: New file.
9         * lib/stdio.in.h (fclose): New declaration.
10         * lib/fclose.c: New file.
11         * m4/fclose.m4: New file.
12         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
13         REPLACE_FCLOSE.
14         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
15         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
16         REPLACE_FCLOSE.
17         * modules/close (Depends-on): fclose.
18         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19
20 2008-10-11  Bruno Haible  <bruno@clisp.org>
21
22         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
23         set errno and don't call _close.
24
25 2008-10-10  Bruno Haible  <bruno@clisp.org>
26
27         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28         ACL, not afterwards. Fixes test failure on Cygwin.
29
30 2008-10-09  Ben Pfaff  <blp@gnu.org>
31
32         * build-aux/announce-gen: Fix gnulib version related part of usage
33         message.  Die with a useful error message if no tarballs are
34         found.
35
36 2008-10-10  Jim Meyering  <meyering@redhat.com>
37
38         bootstrap: use git's --depth=N option only if it's supported
39         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40         recognize the --depth option.  Reported by Pádraig Brady.
41
42 2008-10-09  Bruno Haible  <bruno@clisp.org>
43
44         New module 'ioctl'.
45         * modules/ioctl: New file.
46         * lib/sys_socket.in.h (ioctl): Remove declaration.
47         * lib/winsock.c: Include <sys/ioctl.h>.
48         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52         * doc/posix-functions/ioctl.texi: Mention the new module.
53
54 2008-10-09  Bruno Haible  <bruno@clisp.org>
55
56         New module 'sys_ioctl'.
57         * lib/sys_ioctl.in.h: New file.
58         * m4/sys_ioctl_h.m4: New file.
59         * modules/sys_ioctl: New file.
60         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
61
62 2008-10-09  Bruno Haible  <bruno@clisp.org>
63
64         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
65         * lib/winsock.c: Include <stdarg.h>.
66         (rpl_ioctl): Change to second argument 'int' and then varargs.
67
68 2008-10-09  Bruno Haible  <bruno@clisp.org>
69
70         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
71         when the sys_socket module is present and the system has <winsock2.h>.
72
73 2008-10-09  Bruno Haible  <bruno@clisp.org>
74
75         * doc/posix-functions/close.texi: Mention module 'close' instead of
76         module 'sys_socket'.
77
78 2008-10-09  Bruno Haible  <bruno@clisp.org>
79
80         * doc/glibc-headers/sys_ioctl.texi: New file.
81         * doc/gnulib.texi: Include it.
82
83 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84             Bruno Haible  <bruno@clisp.org>
85
86         Combine the two replacements of 'close'.
87         * lib/sys_socket.in.h (close): Define to a reminder to include
88         <unistd.h>.
89         (_gl_close_fd_maybe_socket): New declaration.
90         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
91         * lib/winsock.c (close): Remove undefinition.
92         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
93         needed for the gnulib module 'close'.
94         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
95         define to an error symbol or to a warning, if suitable.
96         * lib/close.c: Include <sys/socket.h>.
97         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
98         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
99         UNISTD_H_HAVE_WINSOCK2_H.
100         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
102         UNISTD_H_HAVE_WINSOCK2_H.
103         * modules/sys_socket (Files): Add m4/unistd_h.m4.
104         (configure.ac): Set a module indicator.
105         (Makefile.am): Substitute GNULIB_CLOSE.
106         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
107         * modules/poll-tests (Depends-on): Add close.
108         * modules/select-tests (Depends-on): Likewise.
109
110 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
111             Bruno Haible  <bruno@clisp.org>
112
113         New module 'close'.
114         * modules/close: New file.
115         * lib/unistd.in.h (close): Move declaration out of the
116         FCHDIR_REPLACEMENT scope.
117         (_gl_unregister_fd): New declaration.
118         * lib/close.c: New file.
119         * lib/fchdir.c (rpl_close): Remove function.
120         * m4/close.m4: New file.
121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
122         close.
123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
124         REPLACE_CLOSE.
125         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
126         REPLACE_CLOSE.
127         * modules/fchdir (Depends-on): Add close.
128
129 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
130             Bruno Haible  <bruno@clisp.org>
131
132         * lib/fcntl.in.h (open): Simplify conditionals.
133         (_gl_register_fd): New declaration.
134         * lib/fchdir.c (rpl_open): Remove function.
135         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
136         also.
137         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
139         open.
140
141 2008-10-09  Jim Meyering  <meyering@redhat.com>
142
143         GNUmakefile: use the more name-space-friendly "_version"
144         * top/GNUmakefile (_dummy): Update.
145         (_version): Rename from "version".
146
147 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
148             Bruno Haible  <bruno@clisp.org>
149
150         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
151         rpl_close.
152         (_gl_register_fd): New function, extracted from rpl_open.
153         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
154         (rpl_open, rpl_opendir): Use _gl_register_fd.
155
156 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
157
158         Fix organization of 'open' replacement.
159         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
160         (gl_FUNC_OPEN): Use it.
161         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
162
163 2008-10-08  Bruno Haible  <bruno@clisp.org>
164
165         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
166
167 2008-10-08  Simon Josefsson  <simon@josefsson.org>
168
169         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
170         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
171         listen).
172
173 2008-10-08  Eric Blake  <ebb9@byu.net>
174
175         GNUmakefile: add 'make version' target
176         * top/GNUmakefile (_curr-ver): Split version update rules...
177         (version): ...into a target.
178
179 2008-10-07  Bruno Haible  <bruno@clisp.org>
180
181         Use a more portable replacement expression for -0.0L.
182         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
183         instead of -0.0L. Fix m4 quotation.
184
185         * tests/test-signbit.c: Include <float.h>.
186         (minus_zero): New variable.
187         (test_signbitl): Use minus_zero instead of -zero.
188         * modules/signbit-tests (Depends-on): Add float.
189
190         * tests/test-ceill.c: Include <float.h>.
191         (zero): Remove variable.
192         (minus_zero): New variable.
193         (main): Use minus_zero instead of -zero.
194         * modules/ceill-tests (Depends-on): Add float.
195
196         * tests/test-floorl.c: Include <float.h>.
197         (zero): Remove variable.
198         (minus_zero): New variable.
199         (main): Use minus_zero instead of -zero.
200         * modules/floorl-tests (Depends-on): Add float.
201
202         * tests/test-roundl.c: Include <float.h>.
203         (zero): Remove variable.
204         (minus_zero): New variable.
205         (main): Use minus_zero instead of -zero.
206         * modules/roundl-tests (Depends-on): Add float.
207
208         * tests/test-truncl.c: Include <float.h>.
209         (zero): Remove variable.
210         (minus_zero): New variable.
211         (main): Use minus_zero instead of -zero.
212         * modules/truncl-tests (Depends-on): Add float.
213
214         * tests/test-frexpl.c (zero): Remove variable.
215         (minus_zero): New variable.
216         (main): Use minus_zero instead of -zero.
217         * modules/frexpl-tests (Depends-on): Add float.
218
219         * tests/test-isnan.c (zerol): Remove variable.
220         (minus_zerol): New variable.
221         (test_long_double): Use minus_zerol instead of -zerol.
222         * modules/isnan-tests (Depends-on): Add float.
223
224         * tests/test-isnanl.h (zero): Remove variable.
225         (minus_zero): New variable.
226         (main): Use minus_zero instead of -zero.
227         * modules/isnanl-nolibm-tests (Depends-on): Add float.
228         * modules/isnanl-tests (Depends-on): Add float.
229
230         * tests/test-ldexpl.c (zero): Remove variable.
231         (minus_zero): New variable.
232         (main): Use minus_zero instead of -zero.
233         * modules/ldexpl-tests (Depends-on): Add float.
234
235         * tests/test-snprintf-posix.h (zerol): Remove variable.
236         (minus_zerol): New variable.
237         (test_function): Use minus_zerol instead of -zerol.
238         * modules/snprintf-posix-tests (Depends-on): Add float.
239         * modules/vsnprintf-posix-tests (Depends-on): Add float.
240
241         * tests/test-sprintf-posix.h (zerol): Remove variable.
242         (minus_zerol): New variable.
243         (test_function): Use minus_zerol instead of -zerol.
244         * modules/sprintf-posix-tests (Depends-on): Add float.
245         * modules/vsprintf-posix-tests (Depends-on): Add float.
246
247         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
248         (minus_zerol): New variable.
249         (test_function): Use minus_zerol instead of -zerol.
250         * modules/vasnprintf-posix-tests (Depends-on): Add float.
251
252         * tests/test-vasprintf-posix.c (zerol): Remove variable.
253         (minus_zerol): New variable.
254         (test_function): Use minus_zerol instead of -zerol.
255         * modules/vasprintf-posix-tests (Depends-on): Add float.
256
257 2008-10-07  Simon Josefsson  <simon@josefsson.org>
258
259         * MODULES.html.sh (Support for building documentation): Mention
260         pmccabe2html.  Sort entries.
261
262         Add pmccabe2html module, from gnupdf.
263         * build-aux/pmccabe.css: New file.
264         * build-aux/pmccabe2html: New file.
265         * m4/pmccabe2html.m4: New file.
266         * modules/pmccabe2html: New file.
267
268 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
269
270         flock: new module
271         * MODULES.html.sh: Add to list of modules.
272         * lib/flock.c: flock implementation for Windows and Unix systems
273         which have fcntl.
274         * doc/glibc-functions/flock.texi: Update documentation.
275         * lib/sys_file.in.h: <sys/file.h> header file.
276         * m4/flock.m4: M4 macros.
277         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
278         * modules/flock: flock module.
279         * modules/flock-tests: flock tests module.
280         * modules/sys_file: sys/file.h module.
281         * tests/test-flock.c: test suite for flock.
282
283 2008-10-06  Jim Meyering  <meyering@redhat.com>
284
285         bootstrap: check for LT_INIT more portably still ;-)
286         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
287         Spotted by Bruno Haible.
288
289 2008-10-06  Eric Blake  <ebb9@byu.net>
290
291         test-signbit: avoid tripping Irix cc bug on -0.0L
292         * tests/test-signbit.c (minus_zerol): Delete, and replace with
293         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
294         entire testsuite consistent and avoids an Irix 6.2 bug.
295
296 2008-10-05  Bruno Haible  <bruno@clisp.org>
297             Jim Meyering  <jim@meyering.net>
298
299         Add an option for ignoring EPIPE during close_stdout.
300         * lib/closeout.h: Include <stdbool.h>.
301         (close_stdout_set_ignore_EPIPE): New declaration.
302         * lib/closeout.c: Include <stdbool.h>.
303         (ignore_EPIPE): New variable.
304         (close_stdout_set_ignore_EPIPE): New function.
305         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
306         * lib/close-stream.c (close_stream): Mention the possible EPIPE
307         failure.
308         * modules/closeout (Depends-on): Add stdbool.
309
310 2008-10-05  Bruno Haible  <bruno@clisp.org>
311
312         * modules/accept: New file.
313         * modules/bind: New file.
314         * modules/connect: New file.
315         * modules/getpeername: New file.
316         * modules/getsockname: New file.
317         * modules/getsockopt: New file.
318         * modules/listen: New file.
319         * modules/recv: New file.
320         * modules/recvfrom: New file.
321         * modules/send: New file.
322         * modules/sendto: New file.
323         * modules/setsockopt: New file.
324         * modules/socket: New file.
325         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
326         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
327         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
328         the particular module is requested. Add a link warning when the
329         particular module is not requested.
330         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
331         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
332         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
333         the particular module is requested.
334         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
335         gl_SYS_SOCKET_H_DEFAULTS): New macros.
336         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
337         * modules/sys_socket (Depends-on): Add link-warning.
338         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
339         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
340         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
341         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
342         GL_LINK_WARNING.
343         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
344         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
345         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
346         * doc/posix-functions/getpeername.texi: Mention the new module
347         'getpeername'.
348         * doc/posix-functions/getsockname.texi: Mention the new module
349         'getsockname'.
350         * doc/posix-functions/getsockopt.texi: Mention the new module
351         'getsockopt'.
352         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
353         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
354         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
355         * doc/posix-functions/send.texi: Mention the new module 'send'.
356         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
357         * doc/posix-functions/setsockopt.texi: Mention the new module
358         'setsockopt'.
359         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
360         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
361         listen, connect, accept.
362         * modules/select-tests (Depends-on): Likewise.
363
364 2008-10-05  Bruno Haible  <bruno@clisp.org>
365
366         * lib/winsock.c (strerror): Remove unused #undef.
367         (rpl_close): Remove unused local variable.
368
369         * modules/sys_socket (Depends-on); Add errno.
370
371 2008-10-05  Bruno Haible  <bruno@clisp.org>
372
373         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
374         (select): Add a link warning when the 'select' module is not used.
375         * modules/sys_select (Depends-on): Add link-warning.
376         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
377         Suggested by Paolo Bonzini.
378
379 2008-10-05  Jim Meyering  <meyering@redhat.com>
380
381         bootstrap: check for LT_INIT more portably
382         * build-aux/bootstrap: Avoid using grep -E, since it's not
383         portable enough.  Suggestion from Bruno Haible.
384
385 2008-10-05  Bruno Haible  <bruno@clisp.org>
386
387         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
388         as being fixed by gnulib.
389
390 2008-10-05  Bruno Haible  <bruno@clisp.org>
391
392         * modules/select-tests: New file, mostly copied from
393         modules/sys_select-tests.
394         * tests/test-select.c: New file, mostly copied from
395         tests/test-sys_select.c.
396         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
397         * modules/sys_select-tests (Depends-on): Remove all dependencies.
398         (Makefile.am): Remove test_sys_select_LDADD.
399
400         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
401         to an undefined symbol, for an error message.
402         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
403         (gl_SYS_SELECT_H_DEFAULTS): New macro.
404         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
405         winsock-select.c here.
406         * modules/sys_select (Files): Remove lib/winsock-select.c.
407         (Depends-on): Remove alloca.
408         (Makefile.am): Substitute GNULIB_SELECT.
409         * modules/select: New file.
410         * doc/posix-functions/select.texi: Update.
411
412 2008-10-05  Bruno Haible  <bruno@clisp.org>
413
414         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
415         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
416         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
417         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
418         getdtablesize.
419         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
420         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
421
422 2008-10-05  Bruno Haible  <bruno@clisp.org>
423
424         * modules/getdtablesize-tests: New file.
425         * tests/test-getdtablesize.c: New file.
426
427         New module 'getdtablesize'.
428         * lib/unistd.in.h (getdtablesize): New declaration.
429         * lib/getdtablesize.c: New file.
430         * m4/getdtablesize.m4: New file.
431         * modules/getdtablesize: New file.
432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
433         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
434         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
435         HAVE_GETDTABLESIZE.
436         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
437
438 2008-10-05  Bruno Haible  <bruno@clisp.org>
439
440         * modules/sched (Makefile.am): Fix typo.
441         Reported by Simon Josefsson.
442
443 2008-10-05  Jim Meyering  <meyering@redhat.com>
444
445         bootstrap: check for LT_INIT, too
446         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
447         are deprecated.  Suggestion from Ralf Wildenhues.
448
449 2008-10-05  Bruno Haible  <bruno@clisp.org>
450
451         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
452         overriding them by ours.
453         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
454
455 2008-10-05  Jim Meyering  <meyering@redhat.com>
456
457         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
458         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
459         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
460
461 2008-10-04  Bruno Haible  <bruno@clisp.org>
462
463         * modules/dup2 (License): Change to LGPLv2+.
464         * modules/sleep (License): Likewise.
465         * modules/perror (License): Likewise.
466         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
467         Blake.
468         * modules/signal (License): Likewise.
469         * modules/sigprocmask (License): Likewise.
470         * modules/raise (License): Change to LGPLv2+, with approval by Jim
471         Meyering.
472
473 2008-10-04  Bruno Haible  <bruno@clisp.org>
474
475         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
476         Reported by Rainer Tammer <tammer@tammer.net>.
477
478 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
479             Bruno Haible  <bruno@clisp.org>
480
481         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
482         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
483         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
484
485 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
486
487         filevercmp: new module
488         * lib/filevercmp.h: New function filevercmp comparing version strings.
489         * lib/filevercmp.c: Implementation of filevercmp function.
490         * modules/filevercmp: Module metadata.
491         * tests/test-filevercmp.c: Unit test for new module.
492         * modules/filevercmp-tests: Unit test metadata.
493         * MODULES.html.sh: Add filevercmp module.
494
495 2008-10-03  Bruno Haible  <bruno@clisp.org>
496
497         * lib/c-ctype.h: Add comment.
498         Reported by Jim Meyering.
499
500 2008-10-02  Bruno Haible  <bruno@clisp.org>
501
502         * modules/posix_spawn-internal (Depends-on): Add 'open'.
503
504 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
505
506         * build-aux/bootstrap: Allow renaming bootstrap, and change the
507         name of bootstrap.conf accordingly.
508
509 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
510
511         * build-aux/bootstrap: Install git-merge-changelog configuration
512         items into .gitconfig if needed.
513
514 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
515
516         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
517         git repository, and initialize/update it accordingly.
518
519 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
520
521         * modules/fsync-tests: New file.
522         * tests/test-fsync.c: New file.
523
524         New module 'fsync'.
525         * lib/fsync.c: New file.
526         * m4/fsync.m4: New file.
527         * modules/fsync: New file.
528         * lib/unistd.in.h (fsync): New declaration.
529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
530         GNULIB_FSYNC and HAVE_FSYNC.
531         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
532         * MODULES.html.sh (posix_functions): Add fsync.
533         * doc/posix-functions/fsync.texi: Mention the new module.
534
535 2008-10-02  Jim Meyering  <meyering@redhat.com>
536
537         fts.c: sync with similar code from coreutils' remove.c
538         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
539         Guard also with "#if defined __linux__", since for now at least,
540         this code is Linux-kernel-specific.
541
542 2008-10-02  Jim Meyering  <meyering@redhat.com>
543
544         fts: bug fixes
545         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
546         Include <sys/vfs.h>, not <sys/statfs.h>.
547
548         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
549         Include <sys/vfs.h>, not <sys/statfs.h>.
550
551 2008-10-01  Bruno Haible  <bruno@clisp.org>
552
553         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
555         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
556         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
557         * doc/posix-functions/posix_spawnp.texi: Likewise.
558         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
559         whether posix_spawn actually works.
560         * m4/pipe.m4 (gl_PIPE): Likewise.
561         * modules/execute (Files): Add m4/posix_spawn.m4.
562         * modules/pipe (Files): Add m4/posix_spawn.m4.
563         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
564
565 2008-10-01  Jim Meyering  <meyering@redhat.com>
566
567         remove trailing spaces
568         * NEWS: Likewise.
569         * lib/poll.c (poll): Likewise.
570         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
571         * lib/winsock.c (rpl_close): Likewise.
572         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
573         * modules/yield: Likewise.
574         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
575         * tests/test-sys_select.c (connect_to_socket): Likewise.
576
577         fts.c: adjust a new interface to be more generally useful
578         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
579         (fts_build): Adjust caller.
580
581 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
582
583         * modules/cond-tests: New file.
584         * tests/test-cond.c: New file.
585
586 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
587             Bruno Haible  <bruno@clisp.org>
588
589         * modules/cond (Dependencies): Add errno, time.
590         * lib/glthread/cond.h: Include <time.h>.
591         (gl_cond_define, gl_cond_define_initialized): Use the same definition
592         across platforms.
593
594 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
595             Bruno Haible  <bruno@clisp.org>
596
597         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
598
599 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
600             Bruno Haible  <bruno@clisp.org>
601
602         * modules/tls-tests (Depends-on): Add thread, yield.
603         (configure.ac): Remove all checks.
604         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
605         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
606         gl_thread_self): Remove definitions. Include glthread/thread.h and
607         glthread/yield.h instead.
608         (test_tls): Pass an additional NULL argument to gl_thread_join.
609
610 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
611             Bruno Haible  <bruno@clisp.org>
612
613         * modules/lock-tests (Depends-on): Add thread, yield.
614         (configure.ac): Remove all checks.
615         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
616         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
617         gl_thread_self): Remove definitions. Include glthread/thread.h and
618         glthread/yield.h instead.
619         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
620         additional NULL argument to gl_thread_join.
621
622 2008-09-30  Bruno Haible  <bruno@clisp.org>
623
624         Fix the Win32 implementation of the 'thread' module.
625         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
626         pointer type.
627         (gl_thread_self): Invoke gl_thread_self_func.
628         (gl_thread_self_func): New declaration.
629         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
630         (do_init_self_key, init_self_key): New functions.
631         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
632         Remove some fields.
633         (running_threads, running_lock): Remove variables.
634         (get_current_thread_handle): New function.
635         (gl_thread_self_func, wrapper_func, glthread_create_func,
636         glthread_join_func, gl_thread_exit_func): Largely rewritten and
637         simplified.
638
639 2008-09-30  Bruno Haible  <bruno@clisp.org>
640
641         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
642         files.
643
644 2008-09-30  Jim Meyering  <meyering@redhat.com>
645
646         fts.m4: correct the test for statfs.f_type
647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
648         when checking for statfs.f_type.
649
650 2008-09-15  Simon Josefsson  <simon@josefsson.org>
651
652         tests: avoid some compiler warnings
653         * tests/test-memchr.c (main): Pass NULL indirectly.
654         * tests/test-getdate.c (main): Remove unused variable 'ret'.
655
656 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
657
658         getdate.y: disallow countable dayshifts like "4 yesterday ago"
659         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
660         exactly specified dayshifts.
661         (dayshift): New rule.
662         (rel): Add dayshift.
663         (relative_time_table) [tomorrow, yesterday, today, now]:
664         Use tDAY_SHIFT in place of tDAY_UNIT.
665         * tests/test-getdate.c: Add tests for now-disallowed countable
666         dayshifts, e.g., "4 yesterday ago".
667
668 2008-09-29  Bruno Haible  <bruno@clisp.org>
669
670         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
671         * tests/test-posix_spawn1.in.sh: Renamed from
672         tests/test-posix_spawn.in.sh.
673         * tests/test-posix_spawn2.c: New file.
674         * tests/test-posix_spawn2.in.sh: New file.
675         * modules/posix_spawnp-tests (Files): Update.
676         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
677
678 2008-09-29  Bruno Haible  <bruno@clisp.org>
679
680         Propagate effects of putenv/setenv/unsetenv to child processes.
681         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
682         * lib/pipe.c (create_pipe): Likewise.
683
684 2008-09-29  Bruno Haible  <bruno@clisp.org>
685
686         Enable use of shell scripts as executables in mingw.
687         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
688         run the program as a shell script.
689         * lib/pipe.c (create_pipe): Likewise.
690         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
691         resulting array.
692
693 2008-09-29  Eric Blake  <ebb9@byu.net>
694
695         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
696
697 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
698
699         * doc/posix-functions/accept.texi: Update mingw problems.
700         * doc/posix-functions/bind.texi: Update mingw problems.
701         * doc/posix-functions/close.texi: Update mingw problems.
702         * doc/posix-functions/connect.texi: Update mingw problems.
703         * doc/posix-functions/getpeername.texi: Update mingw problems.
704         * doc/posix-functions/getsockname.texi: Update mingw problems.
705         * doc/posix-functions/getsockopt.texi: Update mingw problems.
706         * doc/posix-functions/ioctl.texi: Update mingw problems.
707         * doc/posix-functions/listen.texi: Update mingw problems.
708         * doc/posix-functions/recv.texi: Update mingw problems.
709         * doc/posix-functions/recvfrom.texi: Update mingw problems.
710         * doc/posix-functions/select.texi: Update mingw problems.
711         * doc/posix-functions/send.texi: Update mingw problems.
712         * doc/posix-functions/sendto.texi: Update mingw problems.
713         * doc/posix-functions/setsockopt.texi: Update mingw problems.
714         * doc/posix-functions/socket.texi: Update mingw problems.
715
716 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
717             Bruno Haible  <bruno@clisp.org>
718
719         * lib/sys_select.in.h: Include sys/time.h.
720         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
721         * modules/sys_select: Depend on sys_time.
722         * tests/test-sys_select.c: Test that sys/select.h defines struct
723         timeval fully.
724
725 2008-09-29  Bruno Haible  <bruno@clisp.org>
726
727         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
728         * lib/sys_select.in.h: Likewise.
729
730 2008-09-29  Bruno Haible  <bruno@clisp.org>
731
732         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
733
734 2008-09-29  Bruno Haible  <bruno@clisp.org>
735
736         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
737         Set LIBSOCKET instead of augmenting LIBS.
738         * modules/sockets (Link): New section.
739         * modules/sockets-tests (test_sockets_LDADD): New variable.
740         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
741         * modules/poll-tests (test_poll_LDADD): New variable.
742         * NEWS: Document the change.
743
744 2008-09-29  Bruno Haible  <bruno@clisp.org>
745
746         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
747         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
748         ARPA_INET_H directly.
749         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
750
751 2008-09-28  Bruno Haible  <bruno@clisp.org>
752
753         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
754         from gl_HEADER_SYS_SOCKET.
755         (gl_HEADER_SYS_SOCKET): Invoke it.
756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
757
758 2008-09-28  Bruno Haible  <bruno@clisp.org>
759
760         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
761         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
762         Needed on OSF/1 4.0.
763
764 2008-09-28  Bruno Haible  <bruno@clisp.org>
765
766         Override open more carefully.
767         * lib/open.c (orig_open): New function.
768         (rpl_open): Use orig_open instead of open.
769         * lib/fcntl.in.h: Add special invocation convention.
770         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
771         (gl_FUNC_OPEN): Invoke it.
772
773         Override freopen more carefully.
774         * lib/freopen.c (orig_freopen): New function.
775         (rpl_freopen): Use orig_freopen instead of freopen.
776         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
777         (gl_FUNC_FREOPEN): Invoke it.
778
779         Override fopen more carefully.
780         * lib/fopen.c (orig_fopen): New function.
781         (rpl_fopen): Use orig_fopen instead of fopen.
782         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
783         (gl_FUNC_FOPEN): Invoke it.
784         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
785
786 2008-09-28  Bruno Haible  <bruno@clisp.org>
787
788         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
789         SIGPIPE.
790
791 2008-09-28  Bruno Haible  <bruno@clisp.org>
792
793         * tests/test-sigaction.c (handler, main): Disable the check whether
794         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
795         glibc systems with LinuxThreads.
796
797 2008-09-28  Bruno Haible  <bruno@clisp.org>
798
799         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
800
801         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
802         with AIX xlc.
803         * lib/fcntl.in.h (open): Likewise.
804         Reported by Rainer Tammer <tammer@tammer.net>.
805
806 2008-09-28  Bruno Haible  <bruno@clisp.org>
807
808         * modules/posix_spawnp-tests: New file.
809         * tests/test-posix_spawn.c: New file.
810         * tests/test-posix_spawn.in.sh: New file.
811
812         New module 'posix_spawnp'.
813         * modules/posix_spawnp: New file.
814         * lib/spawnp.c: New file, from GNU libc with modifications.
815         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
816
817         New module 'posix_spawn'.
818         * modules/posix_spawn: New file.
819         * lib/spawn.c: New file, from GNU libc with modifications.
820         * doc/posix-functions/posix_spawn.texi: Mention the new module.
821
822         New module 'posix_spawnattr_destroy'.
823         * modules/posix_spawnattr_destroy: New file.
824         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
825         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
826         module.
827
828         New module 'posix_spawnattr_setsigmask'.
829         * modules/posix_spawnattr_setsigmask: New file.
830         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
831         modifications.
832         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
833         new module.
834
835         New module 'posix_spawnattr_getsigmask'.
836         * modules/posix_spawnattr_getsigmask: New file.
837         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
838         modifications.
839         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
840         new module.
841
842         New module 'posix_spawnattr_setsigdefault'.
843         * modules/posix_spawnattr_setsigdefault: New file.
844         * lib/spawnattr_setdefault.c: New file, from GNU libc with
845         modifications.
846         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
847         new module.
848
849         New module 'posix_spawnattr_getsigdefault'.
850         * modules/posix_spawnattr_getsigdefault: New file.
851         * lib/spawnattr_getdefault.c: New file, from GNU libc with
852         modifications.
853         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
854         new module.
855
856         New module 'posix_spawnattr_setschedpolicy'.
857         * modules/posix_spawnattr_setschedpolicy: New file.
858         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
859         modifications.
860         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
861         new module.
862
863         New module 'posix_spawnattr_getschedpolicy'.
864         * modules/posix_spawnattr_getschedpolicy: New file.
865         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
866         modifications.
867         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
868         new module.
869
870         New module 'posix_spawnattr_setschedparam'.
871         * modules/posix_spawnattr_setschedparam: New file.
872         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
873         modifications.
874         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
875         new module.
876
877         New module 'posix_spawnattr_getschedparam'.
878         * modules/posix_spawnattr_getschedparam: New file.
879         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
880         modifications.
881         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
882         new module.
883
884         New module 'posix_spawnattr_setpgroup'.
885         * modules/posix_spawnattr_setpgroup: New file.
886         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
887         modifications.
888         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
889         module.
890
891         New module 'posix_spawnattr_getpgroup'.
892         * modules/posix_spawnattr_getpgroup: New file.
893         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
894         modifications.
895         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
896         module.
897
898         New module 'posix_spawnattr_setflags'.
899         * modules/posix_spawnattr_setflags: New file.
900         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
901         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
902         module.
903
904         New module 'posix_spawnattr_getflags'.
905         * modules/posix_spawnattr_getflags: New file.
906         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
907         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
908         module.
909
910         New module 'posix_spawnattr_init'.
911         * modules/posix_spawnattr_init: New file.
912         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
913         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
914         module.
915
916         New module 'posix_spawn_file_actions_destroy'.
917         * modules/posix_spawn_file_actions_destroy: New file.
918         * lib/spawn_faction_destroy.c: New file, from GNU libc with
919         modifications.
920         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
921         the new module.
922
923         New module 'posix_spawn_file_actions_addopen'.
924         * modules/posix_spawn_file_actions_addopen: New file.
925         * lib/spawn_faction_addopen.c: New file, from GNU libc with
926         modifications.
927         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
928         the new module.
929
930         New module 'posix_spawn_file_actions_adddup2'.
931         * modules/posix_spawn_file_actions_adddup2: New file.
932         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
933         modifications.
934         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
935         the new module.
936
937         New module 'posix_spawn_file_actions_addclose'.
938         * modules/posix_spawn_file_actions_addclose: New file.
939         * lib/spawn_faction_addclose.c: New file, from GNU libc with
940         modifications.
941         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
942         the new module.
943
944         New module 'posix_spawn_file_actions_init'.
945         * modules/posix_spawn_file_actions_init: New file.
946         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
947         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
948         new module.
949
950         New module 'posix_spawn-internal'.
951         * modules/posix_spawn-internal: New file.
952         * lib/spawn_int.h: New file, from GNU libc with modifications.
953         * lib/spawni.c: New file, from GNU libc with modifications.
954         * m4/posix_spawn.m4: New file.
955
956         New module 'spawn'.
957         * modules/spawn: New file.
958         * lib/spawn.in.h: New file, from GNU libc with modifications.
959         * m4/spawn_h.m4: New file.
960         * doc/posix-headers/spawn.texi: Mention the new module.
961
962 2008-09-28  Bruno Haible  <bruno@clisp.org>
963
964         * modules/sched-tests: New file.
965         * tests/test-sched.c: New file.
966
967         New module 'sched'.
968         * modules/sched: New file.
969         * lib/sched.in.h: New file.
970         * m4/sched_h.m4: New file.
971         * doc/posix-headers/sched.texi: Mention the new module.
972
973 2008-09-27  Eric Blake  <ebb9@byu.net>
974
975         Fix previous patch, and tweak references to $0.
976         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
977         (func_version, func_gnulib_dir): Don't call this program
978         gnulib-tool.
979         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
980         with using $0 in function.
981         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
982         (func_fatal_error): Reuse the name the user invoked us with.
983
984 2008-09-27  Bruno Haible  <bruno@clisp.org>
985
986         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
987         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
988         (gl_ICONV_H): Not here.
989         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
990         instead of assigning ICONV_H directly.
991
992         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
994         WCHAR_H directly.
995
996 2008-09-27  Bruno Haible  <bruno@clisp.org>
997
998         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
999         * modules/arpa_inet (Depends-on): Add link-warning.
1000         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1001         * modules/unistd (Makefile.am): Likewise.
1002
1003 2008-09-26  Bruno Haible  <bruno@clisp.org>
1004
1005         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1006         variables.
1007         (func_version): Essentially copied from gnulib-tool.
1008         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1009         func_readlink): Copied from gnulib-tool.
1010
1011 2008-09-26  Bruno Haible  <bruno@clisp.org>
1012
1013         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1014         invoking git-version-gen.
1015
1016 2008-09-26  Bruno Haible  <bruno@clisp.org>
1017
1018         * posix-modules: Update to directory names changed on 2008-01-19.
1019         Remove commas in output before splitting into words. No more need to
1020         avoid 'ftruncate' since 2007-02-19.
1021
1022 2008-09-26  Bruno Haible  <bruno@clisp.org>
1023
1024         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1025
1026 2008-09-26  Bruno Haible  <bruno@clisp.org>
1027
1028         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1029         * modules/fwriteerror (Depends-on): Add errno.
1030
1031 2008-09-26  Bruno Haible  <bruno@clisp.org>
1032
1033         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1034         * tests/test-vc-list-files-cvs.sh: Likewise.
1035
1036 2008-09-26  Bruno Haible  <bruno@clisp.org>
1037
1038         * doc/posix-headers/sys_resource.texi: Reorder items.
1039
1040 2008-09-26  Jim Meyering  <meyering@redhat.com>
1041
1042         fts: tweak inode comparison function
1043         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1044         inode numbers, as documented.
1045
1046         fts: sort dirent entries on inode number before traversing
1047         This avoids a quadratic, seek-related performance penalty when
1048         operating on a directory containing many entries (measurable at 10k;
1049         3.5 hours at 2 million entries with a cold cache) on certain types
1050         of file systems, including ext3 and ext4, but not tmpfs.
1051         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1052         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1053         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1054         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1055         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1056         (fts_build): Set the stat.st_ino member from D_INO.
1057         If it is likely to be useful, sort dirent entries on inode number.
1058
1059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1060         and the struct statfs.f_type member.
1061         * modules/fts (Depends-on): Add d-ino.
1062
1063 2008-09-26  Bruno Haible  <bruno@clisp.org>
1064
1065         * modules/sigpipe-die (Depends-on): Add sigpipe.
1066
1067         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1068         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1069         and GNULIB_STDIO_H_SIGPIPE are set.
1070         * lib/stdio-write.c: New file.
1071         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1072         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1073         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1074         REPLACE_STDIO_WRITE_FUNCS.
1075         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1076         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1077         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1078         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1079         * modules/stdio (Files): Add lib/stdio-write.c.
1080         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1081         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1082         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1083         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1084         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1085         REPLACE_FPRINTF_POSIX.
1086         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1087         REPLACE_PRINTF_POSIX.
1088         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1089         REPLACE_VFPRINTF_POSIX.
1090         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1091         REPLACE_VPRINTF_POSIX.
1092         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1093         SIGPIPE issue.
1094         * doc/posix-functions/fputc.texi: Likewise.
1095         * doc/posix-functions/fputs.texi: Likewise.
1096         * doc/posix-functions/fwrite.texi: Likewise.
1097         * doc/posix-functions/printf.texi: Likewise.
1098         * doc/posix-functions/putc.texi: Likewise.
1099         * doc/posix-functions/putchar.texi: Likewise.
1100         * doc/posix-functions/puts.texi: Likewise.
1101         * doc/posix-functions/vfprintf.texi: Likewise.
1102         * doc/posix-functions/vprintf.texi: Likewise.
1103
1104         * modules/safe-write (Depends-on): Add write.
1105
1106         * modules/sigpipe-tests: New file.
1107         * tests/test-sigpipe.c: New file.
1108         * tests/test-sigpipe.sh: New file.
1109
1110         * modules/write: New file.
1111         * lib/unistd.in.h: Include <sys/types.h>.
1112         (write): New declaration.
1113         * lib/write.c: New file.
1114         * m4/write.m4: New file.
1115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1116         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1117         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1118         GNULIB_WRITE, REPLACE_WRITE.
1119         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1120         and the SIGPIPE issue.
1121
1122         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1123         (raise): New declaration.
1124         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1125         (ext_signal): New function.
1126         (rpl_raise): New function.
1127         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1128         GNULIB_SIGNAL_H_SIGPIPE.
1129         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1130         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1131
1132         * modules/sigpipe: New file.
1133         * m4/sigpipe.m4: New file.
1134
1135 2008-09-25  Derek Price  <derek@ximbiot.com>
1136             Bruno Haible  <bruno@clisp.org>
1137
1138         * gnulib-tool (func_import): Report all license incompatibilities, not
1139         just the first one.
1140
1141 2008-09-25  Bruno Haible  <bruno@clisp.org>
1142
1143         * gnulib-tool (func_import): When computing the edits, consider not
1144         only the Makefile.ams that exist but also those that will be generated.
1145
1146 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1147
1148         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1149         fixes gnulib-tool --test warning about duplicate dependency.
1150
1151 2008-09-25  Bruno Haible  <bruno@clisp.org>
1152
1153         * gnulib-tool: Don't ask the user to perform edits in the generated
1154         Makefile.ams.
1155         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1156         apply to the Makefile.am being generated.
1157         (func_emit_tests_Makefile_am): Execute edits that apply to the
1158         Makefile.am being generated.
1159         (func_import): Setup list of Makefile.am edits before emitting the
1160         Makefile.ams, not at the end.
1161         (func_create_testdir): Update.
1162         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1163
1164 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1165
1166         * gnulib-tool (func_import): Store the --tests-base option in the
1167         comment in gnulib-cache.m4.
1168
1169 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1170
1171         * NEWS: Document increased portability that sys_select now provides.
1172
1173         * lib/sys_select.in.h: Install select wrapper.
1174         * lib/sys_socket.in.h: Use more descriptive name when there is no
1175         select wrapper.
1176         * lib/winsock-select.c: New.
1177         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1178         Require gl_HEADER_SYS_SOCKET.
1179         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1180         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1181         * tests/test-sys_select.c: Add functional tests.
1182
1183 2008-09-24  Eric Blake  <ebb9@byu.net>
1184
1185         open, fopen: close fd leak in last patch
1186         * lib/open.c (rpl_open): Close fd before returning error.
1187         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1188         * doc/posix-functions/open.texi (open): Document that Irix also
1189         has the bug.
1190         * doc/posix-functions/fopen.texi (fopen): Likewise.
1191         Reported by Paolo Bonzini.
1192
1193 2008-09-24  Bruno Haible  <bruno@clisp.org>
1194
1195         Ensure that a filename ending in a slash cannot be used to access a
1196         non-directory.
1197         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1198         to check whether it's really a directory.
1199         * lib/fopen.c: Include fcntl.h, unistd.h.
1200         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1201         and fdopen().
1202         * modules/fopen (Depends-on): Add unistd.
1203         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1204         * tests/test-fopen.c (main): Likewise.
1205         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1206         * doc/posix-functions/fopen.texi: Likewise.
1207         Reported by Eric Blake.
1208
1209 2008-09-23  Eric Blake  <ebb9@byu.net>
1210
1211         c-stack: avoid compiler optimizations when provoking overflow
1212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1213         recursion harder to optimize, to ensure a stack overflow occurs.
1214         * tests/test-c-stack.c (recurse): Likewise.
1215         Borrowed from libsigsegv.
1216
1217         c-stack: work around Irix sigaltstack bug
1218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1219         whether sigaltstack uses wrong end of stack_t (copied in part from
1220         libsigsegv).
1221         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1222         Irix bug, without requiring an over-allocation.
1223         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1224         bug.
1225
1226         fopen: document mingw bug on directories
1227         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1228         not allowing a stream visiting a directory, even though reading
1229         from such a stream is not portable.
1230
1231 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1232
1233         * lib/poll.c: Rewrite.
1234         * modules/poll: Depend on alloca.
1235
1236 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1237
1238         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1239         instead define prototypes for a full set of wrappers.  Ensure
1240         that Cygwin does not use the compatibility code, which is only
1241         for MinGW.
1242         * lib/winsock.c: New.
1243         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1244         * modules/sys_socket: Add lib/winsock.c.
1245
1246         * modules/poll-tests: Add errno and perror.
1247         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1248
1249 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1250
1251         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1252
1253 2008-09-23  Bruno Haible  <bruno@clisp.org>
1254
1255         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1256         * doc/glibc-functions/*: Likewise.
1257
1258 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1259
1260         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1261         success.
1262
1263 2008-09-22  Eric Blake  <ebb9@byu.net>
1264             Bruno Haible  <bruno@clisp.org>
1265
1266         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1267         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1268         supply %A but mishandle pseudo-NaN.
1269         Reported by Simon Josefsson.
1270
1271 2008-09-21  Bruno Haible  <bruno@clisp.org>
1272
1273         * tests/test-lock.c (main): Tweak skip message.
1274         * tests/test-tls.c (main): Likewise.
1275
1276 2008-09-21  Bruno Haible  <bruno@clisp.org>
1277
1278         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1279         whether 'struct sigaction' has sa_sigaction here...
1280         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1281         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1282
1283 2008-09-21  Bruno Haible  <bruno@clisp.org>
1284
1285         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1286         section.
1287         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1288         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1289         the new section.
1290         (Support for obsolete systems lacking POSIX:2001): New section.
1291         (String handling <string.h>): Move strdup to the new section.
1292         Suggested by Simon Josefsson and Paolo Bonzini.
1293
1294 2008-09-21  Bruno Haible  <bruno@clisp.org>
1295
1296         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1297         exponents in %e and %g results on 'long double'. Needed for mingw's
1298         improved *printf functions.
1299         * tests/test-vasprintf-posix.c (test_function): Likewise.
1300         * tests/test-snprintf-posix.h (test_function): Likewise.
1301         * tests/test-sprintf-posix.h (test_function): Likewise.
1302         Reported by Eric Blake.
1303
1304 2008-09-21  Bruno Haible  <bruno@clisp.org>
1305
1306         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1307         * tests/test-sprintf-posix.h (test_function): Likewise.
1308
1309 2008-09-21  Bruno Haible  <bruno@clisp.org>
1310
1311         * modules/getpass (Depends-on): Add strdup-posix.
1312
1313         New module 'strdup-posix'.
1314         * modules/strdup-posix: New file.
1315         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1316         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1318         REPLACE_STRDUP.
1319         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1320         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1322         strdup-posix.
1323
1324         * modules/strdup (Depends-on): Remove malloc-posix.
1325
1326 2008-09-20  Bruno Haible  <bruno@clisp.org>
1327
1328         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1329         Wildenhues.
1330
1331 2008-09-20  Bruno Haible  <bruno@clisp.org>
1332
1333         Ensure that wint_t gets defined on IRIX 5.3.
1334         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1335         * lib/wctype.in.h (wint_t): Likewise.
1336         (__wctype_wint_t): Remove type.
1337         (isw*): Use wint_t instead of __wctype_wint_t.
1338         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1339         * modules/wchar (Files): Add m4/wint_t.m4.
1340         (Makefile.am): Substitute HAVE_WINT_T.
1341         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1342         * tests/test-wctype.c: Check that wint_t is defined.
1343         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1344         * doc/posix-headers/wctype.texi: Likewise.
1345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1346
1347 2008-09-18  Bruno Haible  <bruno@clisp.org>
1348
1349         * gnulib-tool (func_exit): Update comment.
1350
1351 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1352
1353         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1354         assumes strdup exists and does not depend on strdup to return
1355         ENOMEM on out of memory conditions.
1356
1357 2008-09-18  Bruno Haible  <bruno@clisp.org>
1358
1359         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
1360         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1361         digits for the exponent.
1362
1363 2008-09-18  Jim Meyering  <meyering@redhat.com>
1364             Bruno Haible  <bruno@clisp.org>
1365
1366         * lib/vasnprintf.c (decimal_point_char): Define also if
1367         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1368
1369 2008-09-16  Bruno Haible  <bruno@clisp.org>
1370         and Eric Blake  <ebb9@byu.net>
1371
1372         vasnprintf: support Irix 5.3
1373         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1374         that mishandle long double infinity.
1375         Reported by Tom G. Christensen.
1376
1377 2008-09-16  Bruno Haible  <bruno@clisp.org>
1378
1379         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1380         Solaris 9.
1381         * doc/glibc-functions/alphasort.texi: Likewise.
1382         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1383
1384 2008-09-16  Jim Meyering  <meyering@redhat.com>
1385
1386         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1387         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1388         a umask modification leak out of a subshell.  Otherwise, the
1389         opensolaris /bin/sh would be accepted and thus cause unwarranted
1390         failures in the coreutils test suite.
1391
1392 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1393
1394         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1395         to succeed.
1396
1397 2008-09-16  Jim Meyering  <meyering@redhat.com>
1398
1399         avoid spurious test failure when library is built without ACL support
1400         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1401         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1402         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1403         * tests/test-copy-acl.sh: Likewise.
1404
1405 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1406
1407         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1408         based on character occurrence counts.
1409
1410 2008-09-15  Eric Blake  <ebb9@byu.net>
1411
1412         tests: avoid some compiler warnings
1413         * tests/test-memchr.c (main): Pass NULL indirectly.
1414         * tests/test-closein.c (main): Avoid unused variable.
1415
1416 2008-09-15  Bruno Haible  <bruno@clisp.org>
1417
1418         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1419         are missing on OpenBSD 4.0 individually.
1420         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1421
1422 2008-09-15  Bruno Haible  <bruno@clisp.org>
1423
1424         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1425         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1426         * doc/posix-functions/perror.texi: Likewise.
1427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1428         is missing.
1429         Reported by Eric Blake.
1430
1431         * lib/errno.in.h: Use replacement values >= 2000.
1432         Reported by Eric Blake.
1433
1434 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1435
1436         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1437         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1438         limit.
1439         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1440         compareseq was aborted.
1441
1442 2008-09-14  Bruno Haible  <bruno@clisp.org>
1443
1444         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1445         yvec_edit_count.
1446         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1447         (fstrcmp_bounded): Simplify result computation accordingly.
1448
1449 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1450
1451         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1452         (fstrcmp): Define in terms of fstrcmp_bounded.
1453         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1454         lower_bound argument.
1455         Return quickly if the result is certainly < lower_bound.
1456         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1457
1458 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459
1460         * lib/diffseq.h (EARLY_ABORT): New macro.
1461         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1462         evaluates to true.
1463
1464 2008-09-14  Bruno Haible  <bruno@clisp.org>
1465
1466         * modules/perror-tests: New file.
1467         * tests/test-perror.sh: New file.
1468         * tests/test-perror.c: New file.
1469
1470         New module 'perror'.
1471         * lib/stdio.in.h (perror): New declaration.
1472         * lib/perror.c: New file.
1473         * m4/perror.m4: New file.
1474         * modules/perror: New file.
1475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1476         * doc/posix-functions/perror.texi: Mention the perror module.
1477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1478         REPLACE_PERROR.
1479         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1480         REPLACE_PERROR.
1481
1482 2008-09-14  Bruno Haible  <bruno@clisp.org>
1483
1484         * modules/stdio (Makefile.am): Reorder to match the order in
1485         lib/stdio.in.h.
1486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1487
1488 2008-09-13  Bruno Haible  <bruno@clisp.org>
1489
1490         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1491
1492 2008-09-13  Bruno Haible  <bruno@clisp.org>
1493
1494         Extend strerror to cover the added errno values.
1495         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1496         (rpl_strerror): Provide error messages for the added errno values and
1497         for the WSA* values.
1498         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1499         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1500         strerror.
1501         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1502         * modules/strerror (Depends-on): Add errno.
1503         * doc/posix-functions/strerror.texi: Document the change.
1504         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1505         and EOVERFLOW.
1506
1507 2008-09-13  Bruno Haible  <bruno@clisp.org>
1508
1509         * modules/EOVERFLOW: Remove file.
1510         * m4/eoverflow.m4: Remove file.
1511         * modules/EOVERFLOW-tests: Remove file.
1512         * tests/test-EOVERFLOW.c: Remove file.
1513         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1514         * modules/ftell (Depends-on): Likewise.
1515         * modules/getdelim (Depends-on): Likewise.
1516         * modules/getugroups (Depends-on): Likewise.
1517         * modules/poll (Depends-on): Likewise.
1518         * modules/snprintf (Depends-on): Likewise.
1519         * modules/sprintf-posix (Depends-on): Likewise.
1520         * modules/vasnprintf (Depends-on): Likewise.
1521         * modules/vasprintf (Depends-on): Likewise.
1522         * modules/vfprintf-posix (Depends-on): Likewise.
1523         * modules/vsnprintf (Depends-on): Likewise.
1524         * modules/vsprintf-posix (Depends-on): Likewise.
1525         * modules/xvasprintf (Depends-on): Likewise.
1526         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1527         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1528         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1529         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1530         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1531         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1532         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1533         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1535         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1536         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1537         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1538         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1539         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1540         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1541         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1542         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1543         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1544         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1545         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1546         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1547         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1548         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1549         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1550         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1552         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1553         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1554         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1555         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1556         * MODULES.html.sh: Remove EOVERFLOW.
1557         * NEWS: Mention the change.
1558
1559 2008-09-13  Bruno Haible  <bruno@clisp.org>
1560
1561         * modules/errno-tests: New file.
1562         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1563
1564         * lib/errno.in.h: New file.
1565         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1566         * modules/errno: New file.
1567         * doc/posix-headers/errno.texi: Update documentation.
1568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1569
1570 2008-09-13  Bruno Haible  <bruno@clisp.org>
1571
1572         * tests/test-poll.c: Use #if for native Windows, rather than testing
1573         __MSVCRT__.
1574
1575 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1576             Bruno Haible  <bruno@clisp.org>
1577
1578         * lib/glob.c: Don't include <pwd.h> on native Windows.
1579         (WINDOWS32): New macro.
1580         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1581
1582 2008-09-13  Bruno Haible  <bruno@clisp.org>
1583
1584         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1585         (ETIMEDOUT): Remove macro.
1586         (glthread_cond_timedwait_multithreaded): New declaration.
1587         (glthread_cond_timedwait): Use it.
1588         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1589         (glthread_cond_timedwait_multithreaded): New function.
1590
1591 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1592
1593         * modules/poll-tests: Do not check for io.h.
1594         * tests/test-poll.c: Check for __MSVCRT__ instead.
1595
1596 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1597
1598         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1599         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1600         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1601
1602 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1603
1604         * modules/poll-tests: New.
1605         * tests/test-poll.c: New.
1606
1607 2008-09-12  Eric Blake  <ebb9@byu.net>
1608
1609         frexp: test for NetBSD failure on -0.0
1610         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1611         not all, bugs from NetBSD 3.0 have been fixed.
1612         * doc/posix-functions/frexp.texi (frexp): Document bug.
1613         Reported by Thomas Klausner.
1614
1615         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1617         literal -0.0.
1618         Reported by Jonathan C. Patschke <jp@centtech.com>.
1619
1620 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1621
1622         * lib/glthread/cond.h: Use dummy implementation also if
1623         USE_WIN32_THREADS.
1624
1625 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1626
1627         * modules/fnmatch-posix (License): Change to LGPLv2+.
1628         * modules/fnmatch-gnu (License): Likewise.
1629
1630 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1631
1632         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1633
1634 2008-09-11  Jim Meyering  <meyering@redhat.com>
1635
1636         * users.txt: Add gtk-vnc.
1637
1638 2008-09-08  Simon Josefsson  <simon@josefsson.org>
1639
1640         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1641         rotate amounts.
1642
1643         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1644         required for 16-bit and 8-bit rotates.
1645         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1646         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1647         UINT8_MAX instead of hard-coded constants.
1648         Suggested by Paul Eggert.
1649
1650 2008-09-07  Bruno Haible  <bruno@clisp.org>
1651
1652         * tests/test-striconveh.c (main): Check behaviour when converting from
1653         UTF-7.
1654
1655         Make striconveh work better with stateful encodings.
1656         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1657         that iconv does not increment the inptr when returning -1/EINVAL.
1658
1659 2008-09-07  Bruno Haible  <bruno@clisp.org>
1660
1661         * build-aux/config.rpath: Update according to libtool-2.2.6.
1662         * build-aux/config.libpath: Likewise.
1663
1664 2008-09-06  Bruno Haible  <bruno@clisp.org>
1665
1666         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1667         * lib/freadptr.c (freadptr): Likewise.
1668         * lib/freadseek.c (freadptrinc): Likewise.
1669         Reported by Simon Josefsson.
1670
1671 2008-09-06  Bruno Haible  <bruno@clisp.org>
1672
1673         * modules/freadptr (License): Change to LGPLv2+.
1674         * modules/freadseek (License): Likewise.
1675         Suggested by Eric Blake.
1676
1677         * modules/memchr2 (License): Change to LGPLv2+.
1678         Approved by Eric Blake.
1679
1680 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1681             Bruno Haible  <bruno@clisp.org>
1682
1683         Make gnulib-tool work with native 'sed' on AIX.
1684         * gnulib-tool (sed_noop): New variable.
1685         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1686         func_add_or_update, func_create_testdir): Use it to initialize sed
1687         script variables.
1688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1689
1690 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
1691             Bruno Haible  <bruno@clisp.org>
1692
1693         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1694         also works after #include directives.
1695
1696 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
1697
1698         getdate.y: reject an out-of-range timezone value
1699         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1700         the range [-24...+24].  When specified with only one or two digits,
1701         * tests/test-getdate.c: Tests for the fix.
1702         * doc/getdate.texi: Document this change.
1703
1704 2008-09-03  Bruno Haible  <bruno@clisp.org>
1705
1706         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1707
1708 2008-09-02  Simon Josefsson  <simon@josefsson.org>
1709
1710         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
1711         <bruce.korb@gmail.com> with ideas from Ben Pfaff
1712         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1713         Blake <ebb9@byu.net>.
1714
1715         * tests/test-bitrotate.c: Add more test vectors.
1716
1717 2008-09-02  Eric Blake  <ebb9@byu.net>
1718
1719         vasnprintf-posix: handle large precision via %.*d
1720         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1721         when handling it ourselves.
1722         * tests/test-vasnprintf-posix.c (test_function): Add test.
1723         * tests/test-snprintf-posix.h (test_function): Likewise.
1724         * tests/test-sprintf-posix.h (test_function): Likewise.
1725         * tests/test-vasprintf-posix.c (test_function): Likewise.
1726         Reported by Alain Guibert.
1727
1728 2008-09-01  Eric Blake  <ebb9@byu.net>
1729
1730         c-stack: make configure-time check more robust
1731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1732         successful sigaction call.
1733         Reported by Tom G. Christensen.
1734
1735 2008-09-01  Bruno Haible  <bruno@clisp.org>
1736
1737         New module 'findprog-lgpl'.
1738         * modules/findprog-lgpl: New file.
1739         * lib/findprog-lgpl.c: New file.
1740         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1741         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1742         to decide whether to use strdup or xstrdup, concatenated_filename or
1743         xconcatenated_filename.
1744
1745 2008-09-01  Bruno Haible  <bruno@clisp.org>
1746
1747         Split module 'concat-filename' into 'concat-filename' (LGPL) and
1748         'xconcat-filename' (GPL).
1749         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1750         (License): Change to LGPLv2+.
1751         * modules/xconcat-filename: New file.
1752         * lib/concat-filename.h (concatenated_filename): Change specification.
1753         (xconcatenated_filename): New declaration.
1754         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1755         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1756         memory situations.
1757         * lib/xconcat-filename.c: New file.
1758         * NEWS: Mention the change.
1759         * lib/findprog.c: Include concat-filename.h, not filename.h.
1760         (find_in_path): Use xconcatenated_filename instead of
1761         concatenated_filename.
1762         * lib/javacomp.c: Include concat-filename.h, not filename.h.
1763         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1764         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1765         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1766         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1767         instead of concatenated_filename.
1768         * lib/javaexec.c: Include concat-filename.h, not filename.h.
1769         (execute_java_class): Use xconcatenated_filename instead of
1770         concatenated_filename.
1771         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1772         * modules/javacomp (Depends-on): Likewise.
1773         * modules/javaexec (Depends-on): Likewise.
1774
1775 2008-09-01  Bruno Haible  <bruno@clisp.org>
1776
1777         Split module 'filename' into 'filename' and 'concat-filename'.
1778         * modules/filename: Keep only lib/filename.h.
1779         (License): Change to LGPLv2+.
1780         * modules/concat-filename: New file, extracted from modules/filename.
1781         * lib/filename.h (concatenated_filename): Remove declaration.
1782         * lib/concat-filename.h: New file, extracted from lib/filename.h.
1783         * lib/concat-filename.c: Include concat-filename.h.
1784         * NEWS: Mention the change.
1785
1786 2008-09-01  Simon Josefsson  <simon@josefsson.org>
1787
1788         * lib/bitrotate.h (rotl8, rotr8): Add.
1789
1790         * modules/bitrotate (configure.ac): Need
1791         AC_REQUIRE([AC_C_INLINE]).
1792         (Description): Mention stdint.h.  Reported by Bruno Haible
1793         <bruno@clisp.org>.
1794
1795         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
1796         Paolo Bonzini <bonzini@gnu.org>.
1797
1798 2008-08-31  Bruno Haible  <bruno@clisp.org>
1799
1800         Assume Solaris specific bi-arch conventions on Solaris systems.
1801         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1802         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1803         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1804         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1805         like acl_libdirstem.
1806         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1807         acl_libdirstem.
1808         * NEWS: Mention the change.
1809         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1810
1811 2008-08-31  Jim Meyering  <meyering@redhat.com>
1812
1813         * lib/strftime.h: Add comments describing the two added arguments.
1814
1815         remove duplicate #include directives
1816         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1817         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1818
1819 2008-08-31  Bruno Haible  <bruno@clisp.org>
1820
1821         New module 'sigpipe-die'.
1822         * modules/sigpipe-die: New file.
1823         * lib/sigpipe-die.h: New file.
1824         * lib/sigpipe-die.c: New file.
1825         * MODULES.html.sh (Signal handling): Add sigpipe-die.
1826
1827 2008-08-31  Bruno Haible  <bruno@clisp.org>
1828
1829         Don't override previously installed signal handlers.
1830         * lib/fatal-signal.c (saved_sigactions): New variable.
1831         (uninstall_handlers): Reset the signal to the saved handler, not
1832         to SIG_DFL (except when ignored).
1833         (install_handlers): Save the previous handlers.
1834
1835 2008-08-30  Bruno Haible  <bruno@clisp.org>
1836
1837         * gnulib-tool (func_reset_sigpipe): New function.
1838         (func_get_automake_snippet, func_modules_transitive_closure,
1839         func_import): Invoke it before a join command that reads from stdin,
1840         to avoid "echo: write error: Broken pipe" error messages on stderr.
1841         Reported by Sam Steingold <sds@gnu.org>.
1842
1843 2008-08-30  Bruno Haible  <bruno@clisp.org>
1844
1845         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1846         Code copied from m4/open.m4.
1847         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1848         access and the filename ends in a slash. Code copied from lib/open.c.
1849         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1850         * tests/test-fopen.c (main): Check against bug with trailing slash.
1851
1852 2008-08-29  Bruno Haible  <bruno@clisp.org>
1853
1854         Avoid some "gcc -pedantic" warnings.
1855         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1856         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1857         * lib/dirent.in.h: Likewise.
1858         * lib/fcntl.in.h: Likewise.
1859         * lib/float.in.h: Likewise.
1860         * lib/iconv.in.h: Likewise.
1861         * lib/inttypes.in.h: Likewise.
1862         * lib/locale.in.h: Likewise.
1863         * lib/math.in.h: Likewise.
1864         * lib/netinet_in.in.h: Likewise.
1865         * lib/search.in.h: Likewise.
1866         * lib/signal.in.h: Likewise.
1867         * lib/stdarg.in.h: Likewise.
1868         * lib/stdint.in.h: Likewise.
1869         * lib/stdio.in.h: Likewise.
1870         * lib/stdlib.in.h: Likewise.
1871         * lib/string.in.h: Likewise.
1872         * lib/strings.in.h: Likewise.
1873         * lib/sys_select.in.h: Likewise.
1874         * lib/sys_socket.in.h: Likewise.
1875         * lib/sys_stat.in.h: Likewise.
1876         * lib/sys_time.in.h: Likewise.
1877         * lib/sysexits.in.h: Likewise.
1878         * lib/time.in.h: Likewise.
1879         * lib/unistd.in.h: Likewise.
1880         * lib/wchar.in.h: Likewise.
1881         * lib/wctype.in.h: Likewise.
1882         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1883         * modules/fchdir (Makefile.am): Likewise.
1884         * modules/fcntl (Makefile.am): Likewise.
1885         * modules/float (Makefile.am): Likewise.
1886         * modules/iconv_open (Makefile.am): Likewise.
1887         * modules/inttypes (Makefile.am): Likewise.
1888         * modules/locale (Makefile.am): Likewise.
1889         * modules/math (Makefile.am): Likewise.
1890         * modules/netinet_in (Makefile.am): Likewise.
1891         * modules/search (Makefile.am): Likewise.
1892         * modules/signal (Makefile.am): Likewise.
1893         * modules/stdarg (Makefile.am): Likewise.
1894         * modules/stdint (Makefile.am): Likewise.
1895         * modules/stdio (Makefile.am): Likewise.
1896         * modules/stdlib (Makefile.am): Likewise.
1897         * modules/string (Makefile.am): Likewise.
1898         * modules/strings (Makefile.am): Likewise.
1899         * modules/sys_select (Makefile.am): Likewise.
1900         * modules/sys_socket (Makefile.am): Likewise.
1901         * modules/sys_stat (Makefile.am): Likewise.
1902         * modules/sys_time (Makefile.am): Likewise.
1903         * modules/sysexits (Makefile.am): Likewise.
1904         * modules/time (Makefile.am): Likewise.
1905         * modules/unistd (Makefile.am): Likewise.
1906         * modules/wchar (Makefile.am): Likewise.
1907         * modules/wctype (Makefile.am): Likewise.
1908         Reported by Reuben Thomas <rrt@sc3d.org>.
1909
1910 2008-08-29  Bruno Haible  <bruno@clisp.org>
1911
1912         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
1913         any more.
1914
1915 2008-08-29  Simon Josefsson  <simon@josefsson.org>
1916
1917         * MODULES.html.sh (Misc): Add bitrotate.
1918
1919         * modules/bitrotate: New file.
1920
1921         * lib/bitrotate.h: New file.
1922
1923         * modules/bitrotate-tests: New file.
1924
1925         * tests/test-bitrotate.c: New file.
1926
1927         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
1928         on the bitrotate module.
1929
1930         * lib/arctwo.c: Use new bitrotate module.
1931
1932 2008-08-29  Jim Meyering  <meyering@redhat.com>
1933
1934         bootstrap: merge changes from coreutils
1935         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
1936         of copied files.  Remove a kludge, now that this is fixed.
1937         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
1938         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
1939         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
1940
1941 2008-08-29  Bruno Haible  <bruno@clisp.org>
1942
1943         * MODULES.html.sh: Remove --cvs-urls option.
1944
1945 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
1946
1947         maint.mk: adjust to file name change
1948         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
1949
1950 2008-08-28  Jim Meyering  <meyering@redhat.com>
1951
1952         * modules/getndelim2 (License): Relicense to LGPLv2+.
1953         Approved by Richard Stallman for the version of 1995, and by
1954         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
1955
1956 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
1957
1958         * lib/getdelim.c (flockfile, funlockfile): Make all of them
1959         dummy if one is not available.  Do not touch them if
1960         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
1961         (getc_maybe_unlocked): New.
1962         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
1963
1964 2008-08-26  Eric Blake  <ebb9@byu.net>
1965
1966         doc/INSTALL: resync from autoconf
1967         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1968         (INSTALL_PRELUDE): Delete; this is done more efficiently by
1969         moving...
1970         * install.texi [!autoconf]: ...here.  Resync from autoconf.
1971         * INSTALL: Regenerate.
1972         * INSTALL.ISO: New file.
1973         * INSTALL.UTF-8: Likewise.
1974
1975 2008-08-26  Jim Meyering  <meyering@redhat.com>
1976
1977         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
1978         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
1979         these definitions conditional, so that they may be overridden, too.
1980
1981 2008-08-26  Bruno Haible  <bruno@clisp.org>
1982
1983         Generate INSTALL file variants with prettier quotes.
1984         * doc/Makefile (INSTALL_PRELUDE): New macro.
1985         (INSTALL): Use it.
1986         (INSTALL.ISO, INSTALL.UTF-8): New rules.
1987
1988 2008-08-26  Bruno Haible  <bruno@clisp.org>
1989
1990         Run makeinfo in an English locale.
1991         * doc/Makefile (MAKEINFO): New variable.
1992
1993 2008-08-26  Bruno Haible  <bruno@clisp.org>
1994
1995         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
1996         Suggested by Eric Blake.
1997
1998 2008-08-25  Bruno Haible  <bruno@clisp.org>
1999
2000         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2001
2002 2008-08-25  Eric Blake  <ebb9@byu.net>
2003
2004         c-stack: test that stack overflow can be caught
2005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2006         that platform allows handling stack overflow; at least OS/2 EMX
2007         has sigaltstack, but crashes before transferring control to
2008         handler on stack overflow.
2009         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2010         check for HAVE_STACK_OVERFLOW_HANDLING.
2011         Reported by Elbert Pol.
2012
2013 2008-08-25  Bruno Haible  <bruno@clisp.org>
2014
2015         * doc/posix-functions/strftime.texi: Fix description of strftime
2016         module.
2017
2018 2008-08-24  Bruno Haible  <bruno@clisp.org>
2019
2020         * tests/uniwidth/test-uc_width2.c: New file.
2021         * tests/uniwidth/test-uc_width2.sh: New file.
2022         * modules/uniwidth/width-tests (Files): Add the new files.
2023         (TESTS): Add uniwidth/test-uc_width2.sh.
2024         (TESTS_ENVIRONMENT): New variable.
2025         (check_PROGRAMS): Add test-uc_width2.
2026         (test_uc_width2_SOURCES): New variable.
2027
2028         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2029         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2030         not 0x00AB.
2031         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2032
2033 2008-08-22  Eric Blake  <ebb9@byu.net>
2034
2035         test-lock, test-tls: mention why a test is skipped
2036         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2037         skipped.
2038         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2039
2040         count-one-bits: relax license
2041         * modules/count-one-bits (License): Relicense to LGPLv2+.
2042         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2043
2044 2008-08-22  Andreas Schwab  <schwab@suse.de>
2045
2046         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2047         Remove spurious space in assignment.
2048
2049 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2050
2051         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2052         Paul Eggert <eggert@CS.UCLA.EDU>.
2053
2054 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2055
2056         * modules/gettext: Add m4/threadlib.m4.
2057
2058 2008-08-19  Eric Blake  <ebb9@byu.net>
2059
2060         test-c-stack: fix compilation failure on FreeBSD 5.0
2061         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2062         headers before <sys/resource.h>.
2063         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2064         the bug.
2065         Reported by Nelson H. F. Beebe.
2066
2067         strverscmp: migrate from "strverscmp.h" to <string.h>
2068         * modules/string (Makefile.am): Add new hooks.
2069         * modules/strverscmp (Files): Remove strverscmp.h.
2070         (Depends-on): Add string.
2071         (configure.ac): Add indicator.
2072         (Include): Mention new header.
2073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2074         defaults.
2075         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2076         results.
2077         * lib/strverscmp.h: Delete.
2078         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2079         * tests/test-strverscmp.c (includes): Adjust client.
2080         * lib/check-version.c (includes): Likewise.
2081         * NEWS: Document the change.
2082
2083         strverscmp: add unit test
2084         * modules/strverscmp-tests: New file.
2085         * tests/test-strverscmp.c: Likewise.
2086
2087 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2088
2089         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2090         regarding Windows crypto stuff, from Mono.
2091
2092 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2093
2094         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2095         if present, for intel RND.  Return error on failures.
2096
2097 2008-08-18  Ben Pfaff  <blp@gnu.org>
2098
2099         gitlog-to-changelog: give better diagnostic for failed pipe-open
2100         * build-aux/gitlog-to-changelog: Improve error message: suggest
2101         that the version of Git may be too old.
2102
2103 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2104
2105         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2106         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2107
2108 2008-08-18  Bruno Haible  <bruno@clisp.org>
2109
2110         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2111         pthread_in_use().
2112
2113 2008-08-18  Bruno Haible  <bruno@clisp.org>
2114
2115         * lib/glthread/threadlib.c: Include <pthread.h>.
2116
2117 2008-08-18  Bruno Haible  <bruno@clisp.org>
2118
2119         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2120         glthread_recursive_lock_* macros.
2121         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2122         Fix syntax error.
2123
2124 2008-08-18  Bruno Haible  <bruno@clisp.org>
2125
2126         * lib/glthread/thread.c: Avoid forcing a context switch right after
2127         thread creation.
2128
2129 2008-08-17  Bruno Haible  <bruno@clisp.org>
2130
2131         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2132         * lib/glthread/thread.h: Provide Win32 specific implementation.
2133         * modules/thread (Files): Add lib/glthread/thread.c.
2134         (Depends-on): Add lock.
2135         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2136
2137 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2138
2139         New module 'yield'.
2140         * modules/yield: New file.
2141         * lib/glthread/yield.h: New file.
2142         * m4/yield.m4: New file.
2143         * MODULES.html.sh (Multithreading): Add yield.
2144
2145 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2146
2147         New module 'thread'.
2148         * modules/thread: New file.
2149         * lib/glthread/thread.h: New file.
2150         * m4/thread.m4: New file.
2151         * MODULES.html.sh (Multithreading): Add thread.
2152
2153 2008-08-17  Bruno Haible  <bruno@clisp.org>
2154
2155         * lib/glthread/lock.h: Include <stdlib.h> always.
2156         * lib/glthread/tls.h: Likewise.
2157         * lib/glthread/cond.h: Likewise.
2158
2159 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2160
2161         New module 'cond'.
2162         * modules/cond: New file.
2163         * lib/glthread/cond.h: New file.
2164         * lib/glthread/cond.c: New file.
2165         * m4/cond.m4: New file.
2166         * MODULES.html.sh (Multithreading): Add cond.
2167
2168 2008-08-16  Eric Blake  <ebb9@byu.net>
2169
2170         c-stack: fix regression on Irix 5.3 from 2008-06-21
2171         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2172         sa_sigaction...
2173         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2174         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2175         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2176         * modules/signal (Makefile.am): Use the value.
2177         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2178         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2179         * doc/posix-headers/signal.texi (signal.h): Document this
2180         portability issue.
2181         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2182         Reported by Tom G. Christensen.
2183
2184 2008-08-17  Bruno Haible  <bruno@clisp.org>
2185
2186         New module 'threadlib'.
2187         * modules/threadlib: New file.
2188         * lib/glthread/threadlib.c: New file, extracted from
2189         lib/glthread/lock.c.
2190         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2191         functions.
2192         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2193         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2194         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2195         macros.
2196         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2197         (gl_DISABLE_THREADS): Remove macro.
2198         * modules/lock (Files): Remove build-aux/config.rpath.
2199         (Depends-on): Remove havelib. Add threadlib.
2200         (configure.ac-early): Remove section.
2201         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2202         * modules/tls (Depends-on): Remove lock. Add threadlib.
2203         (Link): New section, copied from threadlib.
2204         * MODULES.html.sh (Multithreading): Add threadlib.
2205
2206 2008-08-14  Bruno Haible  <bruno@clisp.org>
2207
2208         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2209         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2210         glthread_rwlock_unlock, glthread_rwlock_destroy,
2211         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2212         glthread_recursive_lock_destroy): Define as macros always.
2213         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2214         glthread_lock_lock.
2215         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2216         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2217         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2218         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2219         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2220         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2221         (glthread_recursive_lock_lock_func): Renamed from
2222         glthread_recursive_lock_lock.
2223         (glthread_recursive_lock_unlock_func): Renamed from
2224         glthread_recursive_lock_unlock.
2225         (glthread_recursive_lock_destroy_func): Renamed from
2226         glthread_recursive_lock_destroy.
2227
2228 2008-08-14  Bruno Haible  <bruno@clisp.org>
2229
2230         * lib/glthread/lock.h: Renamed from lib/lock.h.
2231         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2232         * lib/glthread/tls.h: Renamed from lib/tls.h.
2233         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2234         * lib/fstrcmp.c: Update includes.
2235         * lib/strsignal.c: Update includes.
2236         * modules/lock (Files, Makefile.am): Update.
2237         (Include): Change to "glthread/lock.h".
2238         * modules/tls (Files, Makefile.am): Update.
2239         (Include): Change to "glthread/tls.h".
2240         * tests/test-lock.c: Update includes.
2241         * tests/test-tls.c: Update includes.
2242         * NEWS: Mention the renamed header files.
2243
2244 2008-08-11  Jim Meyering  <meyering@redhat.com>
2245
2246         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2247
2248 2008-08-11  Eric Blake  <ebb9@byu.net>
2249
2250         test-c-stack: avoid C99-ism
2251         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2252         before statement.
2253         Reported by Alain Guibert.
2254
2255 2008-08-10  Jim Meyering  <meyering@redhat.com>
2256
2257         ensure that return value of uinttostr et al are not ignored
2258         * lib/inttostr.h (__GNUC_PREREQ): Define.
2259         (__attribute_warn_unused_result__): Define.
2260         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2261
2262 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2263
2264         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2265         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2266
2267 2008-08-07  Jim Meyering  <meyering@redhat.com>
2268
2269         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2270
2271         * modules/mkstemp (License): Relicense under LGPLv2+.
2272         * modules/tempname (License): Likewise.
2273
2274 2008-08-06  Bruno Haible  <bruno@clisp.org>
2275
2276         * lib/poll.c (poll): Further micro-optimization.
2277
2278 2008-08-06  Jim Meyering  <meyering@redhat.com>
2279
2280         inet_pton.c: use locale-independent tolower
2281         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2282         (inet_pton6): Use c_tolower rather than tolower.
2283         * modules/inet_pton (Depends-on): Add c-ctype.
2284
2285 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2286
2287         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2288         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2289
2290 2008-08-06  Jim Meyering  <meyering@redhat.com>
2291
2292         * modules/inet_pton (License): Relicense under LGPLv2+.
2293
2294 2008-08-03  Bruno Haible  <bruno@clisp.org>
2295
2296         Additional non-aborting API for lock and tls.
2297         * lib/lock.h: Include <errno.h>.
2298         (glthread_lock_init): New macro/function.
2299         (gl_lock_init): Define as wrapper around glthread_lock_init.
2300         (glthread_lock_lock): New macro/function.
2301         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2302         (glthread_lock_unlock): New macro/function.
2303         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2304         (glthread_lock_destroy): New macro/function.
2305         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2306         (glthread_rwlock_init): New macro/function.
2307         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2308         (glthread_rwlock_rdlock): New macro/function.
2309         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2310         (glthread_rwlock_wrlock): New macro/function.
2311         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2312         (glthread_rwlock_unlock): New macro/function.
2313         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2314         (glthread_rwlock_destroy): New macro/function.
2315         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2316         (glthread_recursive_lock_init): New macro/function.
2317         (gl_recursive_lock_init): Define as wrapper around
2318         glthread_recursive_lock_init.
2319         (glthread_recursive_lock_lock): New macro/function.
2320         (gl_recursive_lock_lock): Define as wrapper around
2321         glthread_recursive_lock_lock.
2322         (glthread_recursive_lock_unlock): New macro/function.
2323         (gl_recursive_lock_unlock): Define as wrapper around
2324         glthread_recursive_lock_unlock.
2325         (glthread_recursive_lock_destroy): New macro/function.
2326         (gl_recursive_lock_destroy): Define as wrapper around
2327         glthread_recursive_lock_destroy.
2328         (glthread_once): New macro/function.
2329         (gl_once): Define as wrapper around glthread_once.
2330         Update function declarations.
2331         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2332         glthread_rwlock_init. Return error code.
2333         (glthread_rwlock_rdlock_multithreaded): Renamed from
2334         glthread_rwlock_rdlock. Return error code.
2335         (glthread_rwlock_wrlock_multithreaded): Renamed from
2336         glthread_rwlock_wrlock. Return error code.
2337         (glthread_rwlock_unlock_multithreaded): Renamed from
2338         glthread_rwlock_unlock. Return error code.
2339         (glthread_rwlock_destroy_multithreaded): Renamed from
2340         glthread_rwlock_destroy. Return error code.
2341         (glthread_recursive_lock_init_multithreaded): Renamed from
2342         glthread_recursive_lock_init. Return error code.
2343         (glthread_recursive_lock_lock_multithreaded): Renamed from
2344         glthread_recursive_lock_lock. Return error code.
2345         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2346         glthread_recursive_lock_unlock. Return error code.
2347         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2348         glthread_recursive_lock_destroy. Return error code.
2349         (glthread_once_call): Make static.
2350         (glthread_once_multithreaded): Renamed from glthread_once.
2351         * lib/tls.h: Include <errno.h>.
2352         (glthread_tls_key_init): New macro/function.
2353         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2354         (glthread_tls_set): New macro/function.
2355         (gl_tls_set): Define as wrapper around glthread_tls_set.
2356         (glthread_tls_key_destroy): New macro/function.
2357         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2358         Update function declarations.
2359         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2360         glthread_tls_get.
2361         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2362
2363 2008-08-04  Eric Blake  <ebb9@byu.net>
2364
2365         gnumakefile: use space, not TAB, outside of targets
2366         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2367
2368 2008-08-02  Jim Meyering  <meyering@redhat.com>
2369
2370         getdate.y: avoid locale-dependent date parsing failure
2371         In Turkish locales, getdate would fail to recognize keywords
2372         containing a lowercase "i".  The solution is not to rely on
2373         locale-sensitive case-conversion.
2374         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2375         (lookup_word): Use c_toupper in place of toupper.
2376         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2377         Reported by Vefa Bicakci <bicave@superonline.com> in
2378         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2379         * modules/getdate (Depends-on): Add c-ctype.
2380
2381 2008-08-02  Bruno Haible  <bruno@clisp.org>
2382
2383         * gnulib-tool (func_import): When updating or creating a .gitignore
2384         file, prepend each added line with a slash, and ignore leading slashes
2385         from the existing lines.
2386         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2387
2388 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2389
2390         Portability fix for GNU make 3.79.1.
2391         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2392         versions do not understand.
2393
2394 2008-08-01  Bruno Haible  <bruno@clisp.org>
2395
2396         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2397         * tests/test-isnanf.h (zero): New variable.
2398         (main): Avoid literal -0.0f.
2399         * tests/test-isnand.h (zero): New variable.
2400         (main): Avoid literal -0.0.
2401         * tests/test-isnanl.h (zero): New variable.
2402         (main): Avoid literal -0.0L.
2403         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2404         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2405         -0.0, -0.0L.
2406         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2407         (test_signbitd): Avoid literal -0.0.
2408         (test_signbitl): Avoid literal -0.0L.
2409         * tests/test-ceilf1.c (zero): New variable.
2410         (main): Avoid literal -0.0f.
2411         * tests/test-ceill.c (zero): New variable.
2412         (main): Avoid literal -0.0L.
2413         * tests/test-floorf1.c (zero): New variable.
2414         (main): Avoid literal -0.0f.
2415         * tests/test-floorl.c (zero): New variable.
2416         (main): Avoid literal -0.0L.
2417         * tests/test-roundf1.c (zero): New variable.
2418         (main): Avoid literal -0.0f.
2419         * tests/test-round1.c (zero): New variable.
2420         (main): Avoid literal -0.0.
2421         * tests/test-roundl.c (zero): New variable.
2422         (main): Avoid literal -0.0L.
2423         * tests/test-truncf1.c (zero): New variable.
2424         (main): Avoid literal -0.0f.
2425         * tests/test-trunc1.c (zero): New variable.
2426         (main): Avoid literal -0.0.
2427         * tests/test-truncl.c (zero): New variable.
2428         (main): Avoid literal -0.0L.
2429         * tests/test-frexp.c (zero): New variable.
2430         (main): Avoid literal -0.0.
2431         * tests/test-frexpl.c (zero): New variable.
2432         (main): Avoid literal -0.0L.
2433         * tests/test-ldexpl.c (zero): New variable.
2434         (main): Avoid literal -0.0L.
2435         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2436         (zerod, zerol): New variables.
2437         (test_function): Avoid literals -0.0, -0.0L.
2438         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2439         (zerod, zerol): New variables.
2440         (test_function): Avoid literals -0.0, -0.0L.
2441         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2442         (zerod, zerol): New variables.
2443         (test_function): Avoid literals -0.0, -0.0L.
2444         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2445         (zerod, zerol): New variables.
2446         (test_function): Avoid literals -0.0, -0.0L.
2447         * tests/test-strtod.c (zero): New variable.
2448         (main): Avoid literal -0.0.
2449         Reported by Jonathan C. Patschke <jp@centtech.com>.
2450
2451 2008-07-31  Jim Meyering  <meyering@redhat.com>
2452
2453         sha256.h: correct definition of SHA224_DIGEST_SIZE
2454         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2455         Reported by Paulie Pena IV <paulie4@gmail.com>.
2456         Define as 224 / 8, rather than as a literal.
2457         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2458         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2459         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2460
2461 2008-07-31  Bruno Haible  <bruno@clisp.org>
2462
2463         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2464         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2465         Reported by Jonathan Patschke <jp@centtech.com>.
2466
2467 2008-07-31  Bruno Haible  <bruno@clisp.org>
2468
2469         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2470         Reported by Paolo Bonzini <bonzini@gnu.org>.
2471
2472 2008-07-30  Eric Blake  <ebb9@byu.net>
2473
2474         test-strtod: allow compilation without -lm
2475         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2476         Reported by Dennis Clarke <blastwave@gmail.com>.
2477
2478 2008-07-28  Jim Meyering  <meyering@redhat.com>
2479
2480         bootstrap: work also when there are no .po files in po/
2481         * build-aux/bootstrap (update_po_files): Complete the change
2482         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2483
2484 2008-07-27  Jim Meyering  <meyering@redhat.com>
2485
2486         * users.txt: Add zile.
2487
2488 2008-07-26  Ben Pfaff  <blp@gnu.org>
2489
2490         Add missing dependencies on new m4/exponent[fdl].m4 files.
2491         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2492         * modules/isnand-nolibm: Add m4/exponentd.m4.
2493         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2494         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2495         m4/isnan[fdl].m4, because the macros actually used moved.
2496         Reported by Jim Meyering.
2497
2498 2008-07-14  Ben Pfaff  <blp@gnu.org>
2499
2500         Add isinf module.
2501         * lib/isinf.c: New file.
2502         * lib/math.in.h: Define isinf macro if we have decided to replace
2503         it.
2504         * m4/isinf.m4: New file.
2505         * m4/math_h.m4: Initialize and substitute variables for isinf
2506         module.
2507         * modules/isinf: New file.
2508         * modules/isinf-tests: New file.
2509         * modules/math: Add substitutions for new module.
2510         * tests/test-isinf.c: New file.
2511         * doc/posix-functions/isinf.texi: Mention new module.
2512         * MODULES.html.sh: Mention new module.
2513
2514 2008-07-14  Ben Pfaff  <blp@gnu.org>
2515
2516         Factor out some macros for use by additional modules.
2517         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2518         exponentf.m4.
2519         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2520         exponentd.m4.
2521         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2522         file exponentl.m4.
2523         * m4/exponentf.m4: New file.
2524         * m4/exponentd.m4: New file.
2525         * m4/exponentl.m4: New file.
2526         * modules/isnanf: Use new file m4/exponentf.m4.
2527         * modules/isnand: Use new file m4/exponentd.m4.
2528         * modules/isnanl: Use new file m4/exponentl.m4.
2529
2530 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
2531
2532         mktime.c: normalize tp->tm_isdst value to -1/0/1.
2533         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2534         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2535         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2536
2537         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2538         readlink on platforms without PATH_MAX.
2539
2540 2008-07-21  Eric Blake  <ebb9@byu.net>
2541
2542         Warn, not fail, on stale version.
2543         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2544
2545         Don't allow installation with stale devel version number.
2546         * top/GNUmakefile (_is-install-target): New macro.
2547         (_curr-ver): Forbid installation with stale version number.
2548
2549 2008-07-20  Bruno Haible  <bruno@clisp.org>
2550
2551         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2552         TESTS_ENVIRONMENT.
2553         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2554
2555 2008-07-20  Bruno Haible  <bruno@clisp.org>
2556
2557         * lib/c-stack.h (c_stack_action): Add documentation.
2558         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2559
2560 2008-07-20  Bruno Haible  <bruno@clisp.org>
2561
2562         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2563         * modules/readlink (License): Likewise.
2564
2565 2008-07-17  Eric Blake  <ebb9@byu.net>
2566
2567         * modules/c-stack (Link): Fix typo.
2568
2569         Make c-stack use libsigsegv, when available.
2570         * modules/c-stack (Depends-on): Add libsigsegv.
2571         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2572         needed.
2573         * lib/c-stack.c (SIGSTKSZ): Define fallback.
2574         (segv_handler, overflow_handler, c_stack_action)
2575         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2576         implementation when libsigsegv is available, but only when using
2577         the library is necessary.
2578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2579         comment, explaining why XSI check fails on Linux.
2580         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2581         * tests/test-c-stack2.sh: Tweak skip message.
2582         * NEWS: Document new link-time requirements.
2583
2584 2008-07-16  Eric Blake  <ebb9@byu.net>
2585
2586         c-stack: Expose false positives when not using libsigsegv.
2587         * modules/c-stack-tests (Files): Expand test.
2588         * tests/test-c-stack.c (main): Add means to conditionally trigger
2589         non-overflow SIGSEGV.
2590         * tests/test-c-stack2.sh: New file.
2591
2592 2008-07-14  Bruno Haible  <bruno@clisp.org>
2593
2594         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2595         Reported by Eric Blake.
2596
2597 2008-07-14  Sam Steingold  <sds@gnu.org>
2598             Bruno Haible  <bruno@clisp.org>
2599
2600         New module libsigsegv.
2601         * modules/libsigsegv: New file.
2602         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2603         modifications.
2604         * MODULES.html.sh (Signal handling): New section.
2605
2606 2008-07-14  Bruno Haible  <bruno@clisp.org>
2607
2608         * modules/unictype/ctype-* (Description): Add the word "function".
2609         Improves the resulting doc in MODULES.html.
2610
2611 2008-07-12  Ben Pfaff  <blp@gnu.org>
2612
2613         Add longlong module.
2614         * modules/longlong: New file.
2615
2616 2008-07-12  Bruno Haible  <bruno@clisp.org>
2617
2618         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2619         to empty.
2620
2621 2008-07-10  Ben Pfaff  <blp@gnu.org>
2622
2623         Add isnan module.
2624         * doc/posix-functions/isnan.texi: Mention new module.
2625         * lib/math.in.h: Define isnan macro if we have decided to replace
2626         it.
2627         * m4/isnan.m4: New file.
2628         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2629         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2630         also.
2631         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2632         redundancy.
2633         * m4/math_h.m4: Initialize and substitute variables for isnan
2634         module.
2635         * modules/isnan: New file.
2636         * modules/isnan-tests: New file.
2637         * modules/math: Add substitutions for new module.
2638         * tests/test-isnan.c: New file.
2639         * MODULES.html.sh: Mention new module.
2640
2641 2008-07-10  Ben Pfaff  <blp@gnu.org>
2642
2643         Add isnanf module.
2644         * lib/isnanf.m4: New file.
2645         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2646         (gl_HAVE_ISNANF_IN_LIBM): New macro.
2647         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2648         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2649         * modules/isnanf: New file.
2650         * modules/isnanf-tests: New file.
2651         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2652         files.
2653         * tests/test-isnanf-nolibm.c: factored most of its contents into
2654         new file tests/test-isnanf.h.
2655         * tests/test-isnanf.h: New file.
2656         * tests/test-isnanf.c: New file.
2657         * MODULES.html.sh: Mention new module.
2658         * doc/glibc-functions/isnanf.texi: Mention new module.
2659
2660 2008-07-10  Ben Pfaff  <blp@gnu.org>
2661
2662         Add isnand module.
2663         * lib/isnand.h: New file.
2664         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2665         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2666         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2667         functionality also.
2668         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2669         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2670         (gl_HAVE_ISNAND_IN_LIBM): New macro.
2671         * modules/isnand: New file.
2672         * modules/isnand-tests: New file.
2673         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2674         files.
2675         * tests/test-isnand-nolibm.c: factored most of its contents into
2676         new file tests/test-isnand.h.
2677         * tests/test-isnand.h: New file.
2678         * tests/test-isnand.c: New file.
2679         * MODULES.html.sh: Mention new module.
2680
2681 2008-07-10  Ben Pfaff  <blp@gnu.org>
2682
2683         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2684         * lib/isnand.h: Rename lib/isnand-nolibm.h.
2685         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2686         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2687         * modules/isnanf-nolibm: Update references to renamed files.
2688         * modules/isnand-nolibm: Likewise.
2689         * modules/isnanf-nolibm-tests: Likewise.
2690         * modules/isnand-nolibm-tests: Likewise.
2691         * lib/frexp.c: Likewise.
2692         * lib/isfinite.c: Likewise.
2693         * lib/signbitd.c: Likewise.
2694         * lib/signbitf.c: Likewise.
2695         * lib/vasnprintf.c: Likewise.
2696         * tests/test-ceilf1.c: Likewise.
2697         * tests/test-ceilf2.c: Likewise.
2698         * tests/test-floorf1.c: Likewise.
2699         * tests/test-floorf2.c: Likewise.
2700         * tests/test-frexp.c: Likewise.
2701         * tests/test-round1.c: Likewise.
2702         * tests/test-round2.c: Likewise.
2703         * tests/test-roundf1.c: Likewise.
2704         * tests/test-strtod.c: Likewise.
2705         * tests/test-trunc1.c: Likewise.
2706         * tests/test-trunc2.c: Likewise.
2707         * tests/test-truncf1.c: Likewise.
2708         * tests/test-truncf2.c: Likewise.
2709         * NEWS: Mention the renamed header files.
2710
2711 2008-07-11  Jim Meyering  <meyering@redhat.com>
2712
2713         vc-list-files: make the last-resort awk code more portable
2714         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2715         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2716         does not support it.
2717
2718 2008-07-10  Eric Blake  <ebb9@byu.net>
2719
2720         Work with tar's bootstrap.
2721         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2722         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2723         an m4 comment.
2724
2725 2008-07-09  Jim Meyering  <meyering@redhat.com>
2726
2727         posix-shell.m4: fix typo that made this test malfunction
2728         * m4/posix-shell.m4: Remove capitalization in variable name.
2729
2730 2008-07-08  Bruno Haible  <bruno@clisp.org>
2731
2732         * m4/onceonly.m4: Update comments.
2733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2734
2735 2008-07-04  Jim Meyering  <meyering@redhat.com>
2736
2737         * users.txt: Add vc-dwim.
2738         (bison, coreutils): Use the gitweb URL.
2739
2740 2008-07-03  Jim Meyering  <meyering@redhat.com>
2741
2742         * users.txt: Add libffcall.  From Sam Steingold.
2743
2744 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
2745
2746         getdate.y: do not ignore TZ with relative day, month or year offset
2747         * lib/getdate.y (get_date): Move the tz-handling block to follow the
2748         relative-date-handling, since otherwise, the latter would clobber the
2749         sole output (an updated Start value) of the tz-handling block.
2750         * tests/test-getdate.c: Tests for the fix
2751
2752 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2753
2754         Recognize 'foo_LIBRARIES += libgnu.a'.
2755         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2756         makefile snippet has already specified an installation location,
2757         also using '+='.
2758
2759 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
2760
2761         getdate.y: factor out common actions
2762         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2763         Use them in place of open-coded actions.
2764
2765 2008-07-01  Simon Josefsson  <simon@josefsson.org>
2766
2767         Add self-test for getdate module.
2768         * modules/getdate-tests: New file.
2769         * tests/test-getdate.c: New file.
2770
2771 2008-06-29  Bruno Haible  <bruno@clisp.org>
2772
2773         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2774         .gitignore.
2775         Reported by Sylvain Beucler <beuc@beuc.net>.
2776
2777 2008-06-29  Bruno Haible  <bruno@clisp.org>
2778
2779         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2780         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2781
2782 2008-06-29  Bruno Haible  <bruno@clisp.org>
2783
2784         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2785         EXTRA_DIST.
2786         Reported by Sylvain Beucler <beuc@beuc.net>.
2787
2788 2008-06-26  Jim Meyering  <meyering@redhat.com>
2789
2790         make several modules depend on the "open" module
2791         This provides slightly increased consistency when opening-for-write
2792         the name of a non-directory spelled with a trailing slash.
2793         * modules/chdir-safer: Likewise.
2794         * modules/chown: Likewise.
2795         * modules/clean-temp: Likewise.
2796         * modules/copy-file: Likewise.
2797         * modules/fchdir: Likewise.
2798         * modules/fcntl-safer: Likewise.
2799         * modules/pipe: Likewise.
2800         * modules/utime: Likewise.
2801         Prompted by Eric Blake and Bruno Haible.
2802
2803 2008-06-24  Andreas Schwab  <schwab@suse.de>
2804
2805         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2806         literals can be used as initializers for global variables.
2807
2808 2008-06-23  Eric Blake  <ebb9@byu.net>
2809
2810         Make gnulib-cache.m4 easier to diff.
2811         * gnulib-tool (func_import): Allow newlines when reading cached
2812         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2813
2814 2008-06-23  Bruno Haible  <bruno@clisp.org>
2815
2816         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2817         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2818         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2819         m4/signalblocking.m4.
2820         (gl_PREREQ_SIGACTION): Don't invoke it.
2821         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2822         gl_PREREQ_SIG_HANDLER_H.
2823         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2824         Don't check for sigaction here.
2825
2826 2008-06-23  Bruno Haible  <bruno@clisp.org>
2827
2828         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2829         (install_handlers): Don't set the SA_RESETHAND flag.
2830
2831 2008-06-23  Bruno Haible  <bruno@clisp.org>
2832
2833         * m4/sigaction.m4: Comment fixes.
2834         * lib/signal.in.h: Likewise.
2835
2836 2008-06-23  Eric Blake  <ebb9@byu.net>
2837
2838         Fix typo.
2839         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2840
2841         Avoid SA_ namespace.
2842         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2843         Reported by Ralf Wildenhues.
2844
2845         Avoid test failure due to SA_RESTORER.
2846         * tests/test-sigaction.c (SA_MASK): New macro.
2847         (main): Avoid failing due to extension flags being set.
2848         Reported by Jim Meyering.
2849
2850         Revert use of sig-handler.h in sigprocmask.c.
2851         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2852         it requires the existence of struct sigaction.
2853         * lib/sigprocmask.c (handler_t): Restore typedef.
2854         (rpl_signal, old_handlers): Use local type.
2855
2856 2008-06-22  Bruno Haible  <bruno@clisp.org>
2857
2858         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2859         conditionally.
2860         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2861
2862 2008-06-22  Bruno Haible  <bruno@clisp.org>
2863
2864         * doc/posix-functions/siginterrupt.texi: Move note.
2865
2866         * lib/signal.in.h (SA_RESTART): New macro.
2867         * lib/sigaction.c: Update comment.
2868
2869         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2870
2871         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2872         (gl_PREREQ_SIGPROCMASK): Invoke it.
2873         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2874
2875         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2876
2877         * lib/sigprocmask.c: Update a comment.
2878
2879 2008-06-21  Eric Blake  <ebb9@byu.net>
2880
2881         Use sigaction module rather than signal().
2882         * modules/c-stack (Depends-on): Add sigaction.
2883         * modules/fatal-signal (Depends-on): Likewise.
2884         * modules/nanosleep (Depends-on): Likewise.
2885         * modules/sigprocmask (Files): Add sig-handler.h.
2886         * modules/sigaction (Files): Likewise.
2887         * lib/sig-handler.h (get_handler): New file, suggested by Paul
2888         Eggert.
2889         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
2890         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
2891         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2892         (init_fatal_signals): Likewise.
2893         * lib/nanosleep.c (rpl_nanosleep): Likewise.
2894         (siginterrupt): Delete fallback.
2895         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
2896         instead.
2897         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
2898         siginterrupt.
2899
2900         New module sigaction, for mingw.
2901         * modules/sigaction: New module...
2902         * modules/sigaction-tests: ...and its test.
2903         * m4/sigaction.m4: New file.
2904         * lib/sigaction.c: Likewise.
2905         * tests/test-sigaction.c: Likewise.
2906         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
2907         * modules/signal (Makefile.am): Likewise.
2908         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
2909         needed.
2910         * doc/posix-headers/signal.texi (signal.h): Mention provided
2911         types.
2912         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
2913         that sigaction is preferable.
2914         * doc/posix-functions/sigaction.texi (sigaction): Mention new
2915         module.
2916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2917         sigaction.
2918
2919         Improve robustness of sigprocmask by overriding signal.
2920         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
2921         is in use.
2922         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
2923         (SIGKILL, SIGSTOP): Provide fallbacks.
2924         (rpl_signal): Implement.
2925         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
2926         signal can be called inside handlers.
2927
2928         Fix nanosleep module on mingw.
2929         * modules/nanosleep (Depends-on): Add sys_select.
2930         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
2931
2932         Fix licensing of sigprocmask.
2933         * modules/raise (License): Relicense as LGPL.
2934
2935 2008-06-21  Bruno Haible  <bruno@clisp.org>
2936
2937         * lib/propername.c (proper_name_utf8): Don't use the transliterated
2938         result if it contains question marks.
2939         Reported by Michael Geng <linux@michaelgeng.de>.
2940
2941 2008-06-19  Bruno Haible  <bruno@clisp.org>
2942
2943         Fix CVS-ism.
2944         * doc/gnulib.texi: Include updated-stamp.texi.
2945         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
2946         (updated-stamp.texi): New rule.
2947         (gnulib.info): Depend on it.
2948         * doc/.gitignore: Add updated-stamp.texi.
2949         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
2950
2951 2008-06-19  Bruno Haible  <bruno@clisp.org>
2952
2953         * doc/Makefile (gnulib.info): Update and simplify dependencies.
2954         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2955
2956 2008-06-19  Eric Blake  <ebb9@byu.net>
2957
2958         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
2959         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
2960         Reported by Stepan Kasal.
2961
2962 2008-06-18  Bruno Haible  <bruno@clisp.org>
2963
2964         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2965         Reported by Eric Blake.
2966
2967 2008-06-18  Eric Blake  <ebb9@byu.net>
2968
2969         Work around cygwin 1.5.25 strsignal bug.
2970         * tests/test-strsignal.c: Allow for const char *.
2971         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
2972
2973 2008-06-18  Simon Josefsson  <simon@josefsson.org>
2974
2975         * users.txt: Update URL to article and add author/date
2976         information.
2977
2978 2008-06-17  Bruno Haible  <bruno@clisp.org>
2979
2980         New macro gl_DISABLE_THREADS.
2981         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
2982         if the user did not pass --enable-threads or --disable-threads option.
2983         (gl_DISABLE_THREADS): New macro.
2984         Reported by Eric Blake <ebb9@byu.net>.
2985
2986 2008-06-17  Bruno Haible  <bruno@clisp.org>
2987
2988         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
2989         when the macro ignores it.
2990         Based on a patch by Eric Blake <ebb9@byu.net>.
2991
2992 2008-06-17  Bruno Haible  <bruno@clisp.org>
2993
2994         * modules/tls (License): Change to LGPLv2+.
2995         Reported by Eric Blake.
2996
2997 2008-06-17  Eric Blake  <ebb9@byu.net>
2998
2999         Simplify c-stack prerequisites.
3000         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3002         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3003         check.
3004         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3005         <sys/resource.h>.
3006
3007         Move c-stack test into testsuite.
3008         * modules/c-stack-tests: New file.
3009         * lib/c-stack.c [DEBUG]: Move test program...
3010         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3011         fail test if sigaltstack is lacking.
3012         * tests/test-c-stack.sh: New driver file.
3013
3014 2008-06-16  Eric Blake  <ebb9@byu.net>
3015
3016         Use raise module consistently.
3017         * modules/fatal-signal (Depends-on): Add raise.
3018         * modules/sigprocmask (Depends-on): Likewise.
3019         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3020         * lib/sigprocmask.c (sigprocmask): Likewise.
3021         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3022         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3023
3024         Fix compliance bug in sigpending.
3025         * lib/sigprocmask.c (sigpending): Return pending array via
3026         parameter, not return value.
3027
3028 2008-06-14  Eric Blake  <ebb9@byu.net>
3029
3030         Improve obstack-printf test code.
3031         * tests/test-obstack-printf.c (test_function): Fix comment, and
3032         simplify usage of obstack_* in macros.  Add a test for coverage.
3033         Reported by Bruno Haible.
3034
3035 2008-06-14  Bruno Haible  <bruno@clisp.org>
3036
3037         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3038         array size as a constant, not as a const variable.
3039         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3040         AC_USE_SYSTEM_EXTENSIONS.
3041         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3042         Test whether the obstack_printf function actually exists.
3043         * modules/obstack-printf (Depends-on): Add extensions.
3044         (Include): Remove obstack.h.
3045         * modules/obstack-printf-posix (Depends-on): Add extensions.
3046         (Include): Remove obstack.h.
3047
3048 2008-06-13  Eric Blake  <ebb9@byu.net>
3049
3050         Add obstack-printf and obstack-printf-posix modules.
3051         * modules/obstack-printf: New file.
3052         * modules/obstack-printf-posix: Likewise.
3053         * MODULES.html.sh (Misc): Mention them.
3054         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3055         Likewise.
3056         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3057         Likewise.
3058         * modules/stdio (Makefile.am): Accomodate new modules.
3059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3060         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3061         Declare.
3062         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3063         functions.
3064         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3065         (gl_REPLACE_OBSTACK_PRINTF): New macros
3066         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3067         * tests/test-obstack-printf.c: New file.
3068         * modules/obstack-printf-tests: Likewise.
3069         * modules/obstack-printf-posix-tests: Likewise.
3070
3071 2008-06-11  Bruno Haible  <bruno@clisp.org>
3072
3073         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3074         * lib/open.c: Include errno.h.
3075         (open): Fail when attempting to write to a file that has a trailing
3076         slash.
3077         * tests/test-open.c (main): Test against trailing slash bug.
3078         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3079
3080 2008-06-10  Bruno Haible  <bruno@clisp.org>
3081
3082         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3083         for $? to work inside the trap command, with various /bin/sh-s.
3084         * tests/test-vc-list-files-cvs.sh: Likewise.
3085
3086 2008-06-10  Bruno Haible  <bruno@clisp.org>
3087
3088         * lib/acl-internal.h: Don't include gettext.h here.
3089         * lib/set-mode-acl.c: Include gettext.h here.
3090         * lib/copy-acl.c: Likewise.
3091
3092 2008-06-10  Bruno Haible  <bruno@clisp.org>
3093
3094         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3095         * lib/wait-process.c (wait_subprocess): Likewise.
3096         * lib/execute.h (execute): Add termsigp argument.
3097         * lib/execute.c (execute): Likewise.
3098         * lib/csharpcomp.c (compile_csharp_using_pnet,
3099         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3100         * lib/csharpexec.c (execute_csharp_using_pnet,
3101         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3102         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3103         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3104         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3105         is_jikes_present): Update.
3106         * lib/javaexec.c (execute_java_class): Update.
3107         * lib/javaversion.c (execute_and_read_line): Update.
3108         * NEWS: Document the changes.
3109         Reported by Eric Blake.
3110
3111 2008-06-10  Eric Blake  <ebb9@byu.net>
3112
3113         Add missing include.
3114         * tests/test-strstr.c (includes): Add <signal.h>.
3115         * tests/test-strcasestr.c (includes): Likewise.
3116         * tests/test-memmem.c (includes): Likewise.
3117
3118 2008-06-10  Bruno Haible  <bruno@clisp.org>
3119
3120         * lib/wait-process.c (wait_subprocess): Add an assertion.
3121
3122 2008-06-10  Bruno Haible  <bruno@clisp.org>
3123
3124         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3125
3126 2008-06-10  Bruno Haible  <bruno@clisp.org>
3127
3128         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3129         using alarm().
3130         * tests/test-strcasestr.c (main): Likewise.
3131         * tests/test-strstr.c (main): Likewise.
3132
3133 2008-06-09  Bruno Haible  <bruno@clisp.org>
3134
3135         Work around the Solaris 10 ACE ACLs ABI change.
3136         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3137         declare if ACL_NO_TRIVIAL is present.
3138         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3139         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3140         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3141         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3142         define if ACL_NO_TRIVIAL is present.
3143         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3144         and use the current ABI.
3145         (file_has_acl): Use same #if condition as elsewhere.
3146         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3147         in use, and use the current ABI.
3148         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3149         Reported by Jim Meyering.
3150
3151 2008-06-09  Eric Blake  <ebb9@byu.net>
3152
3153         Work around environments that (stupidly) ignore SIGALRM.
3154         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3155         before using alarm().
3156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3158         Reported by Ian Beckwith <ianb@erislabs.net>.
3159
3160         Produce autobuild blurb earlier in log.
3161         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3162
3163 2008-06-09  Jim Meyering  <meyering@redhat.com>
3164         and Ondřej Vašík  <ovasik@redhat.com>
3165
3166         utimens.c: correct kernel bug work-around
3167         Ondřej Vašík found that the invalid return value of 280 indicates
3168         failure, not success, and the kernel bug we're trying to work
3169         around affects not just the utimensat call, but also the fallback
3170         futimens call.
3171         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3172         not success.
3173         [HAVE_FUTIMENS]: Use the same work-around, here.
3174
3175 2008-06-09  Jim Meyering  <meyering@redhat.com>
3176
3177         add more guards around definition of ACE_-related code
3178         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3179         ALLOW and ACE_OWNER are also defined.
3180
3181 2008-06-08  Bruno Haible  <bruno@clisp.org>
3182
3183         * lib/acl-internal.h: Add me as co-author.
3184         * lib/file-has-acl.c: Likewise.
3185         * lib/set-mode-acl.c: Likewise.
3186         * lib/copy-acl.c: Likewise.
3187
3188 2008-06-08  Bruno Haible  <bruno@clisp.org>
3189
3190         Add support for AIX ACLs.
3191         * lib/acl-internal.h (acl_nontrivial): New declaration.
3192         * lib/file-has-acl.c (acl_nontrivial): New function.
3193         (file_has_acl): Add implementation using AIX 4 ACL API.
3194         * lib/set-mode-acl.c (qset_acl): Likewise.
3195         * lib/copy-acl.c (qcopy_acl): Likewise.
3196
3197 2008-06-08  Bruno Haible  <bruno@clisp.org>
3198
3199         Add support for HP-UX ACLs.
3200         * lib/acl-internal.h (acl_nontrivial): New declaration.
3201         * lib/file-has-acl.c (acl_nontrivial): New function.
3202         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3203         * lib/set-mode-acl.c (qset_acl): Likewise.
3204         * lib/copy-acl.c (qcopy_acl): Likewise.
3205
3206 2008-06-08  Bruno Haible  <bruno@clisp.org>
3207
3208         Add support for Cygwin ACLs.
3209         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3210         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3211         the chmod_or_fchmod call.
3212         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3213
3214 2008-06-08  Bruno Haible  <bruno@clisp.org>
3215
3216         Fix bug with setuid modes in Solaris 10+ code.
3217         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3218         succeeded, when the mode contains some special bits.
3219
3220 2008-06-08  Bruno Haible  <bruno@clisp.org>
3221
3222         Add support for Solaris 7..10 ACLs.
3223         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3224         declarations.
3225         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3226         functions.
3227         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3228         * lib/set-mode-acl.c (qset_acl): Likewise.
3229         * lib/copy-acl.c (qcopy_acl): Likewise.
3230
3231 2008-06-08  Bruno Haible  <bruno@clisp.org>
3232
3233         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3234         declaration.
3235         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3236         (acl_access_nontrivial): Remove MacOS X case.
3237         (file_has_acl): Use acl_extended_nontrivial.
3238         * lib/copy-acl.c (qcopy_acl): Likewise.
3239
3240 2008-06-08  Bruno Haible  <bruno@clisp.org>
3241
3242         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3243
3244 2008-06-08  Jim Meyering  <meyering@redhat.com>
3245
3246         * modules/acl (Maintainer): Add Bruno Haible.
3247
3248 2008-06-07  Bruno Haible  <bruno@clisp.org>
3249
3250         Improve support for Tru64 ACLs.
3251         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3252         ACL on OSF/1.
3253
3254 2008-06-07  Bruno Haible  <bruno@clisp.org>
3255
3256         Add support for MacOS X ACLs.
3257         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3258         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3259         * lib/set-mode-acl.c (qset_acl): Likewise.
3260         * lib/copy-acl.c (qcopy_acl): Likewise.
3261
3262 2008-06-07  Bruno Haible  <bruno@clisp.org>
3263
3264         Fix memory leak introduced on 2008-05-22.
3265         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3266         use.
3267
3268 2008-06-07  Bruno Haible  <bruno@clisp.org>
3269
3270         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3271         to construct an empty ACL.
3272
3273 2008-06-07  Bruno Haible  <bruno@clisp.org>
3274
3275         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3276         precisely.
3277         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3278
3279 2008-06-07  Bruno Haible  <bruno@clisp.org>
3280
3281         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3282         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3283
3284 2008-06-07  Bruno Haible  <bruno@clisp.org>
3285
3286         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3287         regardless of POSIX.
3288         * doc/posix-functions/_longjmp.texi: Likewise.
3289         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3290         SystemV platform in this case.
3291
3292 2008-06-06  Eric Blake  <ebb9@byu.net>
3293
3294         Document abort() bugs.
3295         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3296
3297         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3298         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3299         sigsetjmp.
3300         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3301         siglongjmp, but only as a macro.
3302         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3303         is obsolete.
3304         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3305
3306         Tweak documentation to cover cygwin argz bugs.
3307         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3308         argz bug fix; no code change needed since no cygwin releases
3309         occurred between the last fix and the bug being tested.
3310         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3311         module and recently fixed cygwin bugs.
3312         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3313         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3314         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3315         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3316         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3317         Likewise.
3318         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3319         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3320         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3321         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3322         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3323         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3324         Likewise.
3325
3326         Avoid gcc warning on cygwin.
3327         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3328         !ACL_NO_TRIVIAL]: Avoid unused variable.
3329
3330 2008-06-05  Eric Blake  <ebb9@byu.net>
3331
3332         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3333         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3334         git-version-gen fails to come up with a version.
3335         Reported by Simon Josefsson.
3336
3337 2008-06-05  Jim Meyering  <meyering@redhat.com>
3338             Paul Eggert  <eggert@cs.ucla.edu>
3339
3340         utimens.c: work around a probable Linux kernel bug
3341         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3342         appears to be a kernel bug that causes utimensat to return 280
3343         instead of 0, indicating success.
3344
3345 2008-06-04  Bruno Haible  <bruno@clisp.org>
3346
3347         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3348         2008-06-01 commit.
3349
3350 2008-06-04  Bruno Haible  <bruno@clisp.org>
3351
3352         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3353         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3354         (file_has_acl): Use it. Save errno afterwards.
3355         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3356
3357 2008-06-03  Bruno Haible  <bruno@clisp.org>
3358
3359         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3360         draft code. Simplify #ifs.
3361         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3362         Put Solaris code after POSIX-draft code. Fix comments regarding
3363         Solaris 10, HP-UX. Mention Cygwin.
3364         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3365
3366 2008-06-03  Eric Blake  <ebb9@byu.net>
3367
3368         Provide fallback for older kernels.
3369         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3370         Provide runtime fallback if kernel lacks support.
3371         Reported by Mike Frysinger.
3372
3373 2008-06-02  Bruno Haible  <bruno@clisp.org>
3374
3375         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3376         it exists.
3377
3378 2008-06-02  Bruno Haible  <bruno@clisp.org>
3379
3380         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3381         * lib/copy-acl.c (qcopy_acl): Update comment.
3382
3383 2008-06-02  Bruno Haible  <bruno@clisp.org>
3384
3385         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3386         like ACL APIs.
3387
3388 2008-06-02  Bruno Haible  <bruno@clisp.org>
3389
3390         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3391         * tests/test-set-mode-acl.sh: Likewise.
3392         * tests/test-copy-acl.sh: Likewise.
3393         * tests/test-copy-file.sh: Likewise.
3394
3395 2008-06-02  Bruno Haible  <bruno@clisp.org>
3396
3397         * tests/test-file-has-acl.sh: Remove unused code.
3398
3399 2008-06-01  Bruno Haible  <bruno@clisp.org>
3400
3401         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3402         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3403         messages.
3404         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3405
3406 2008-06-01  Bruno Haible  <bruno@clisp.org>
3407
3408         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3409         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3410         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3411         APIs.
3412         * modules/acl-tests (configure.ac): Remove tests now contained in
3413         m4/acl.m4.
3414
3415 2008-06-02  Jim Meyering  <meyering@redhat.com>
3416
3417         announce-gen: use a better key-server host name
3418         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3419         it may be more consistently reliable.  Suggested by Werner Koch
3420         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3421
3422 2008-06-01  Bruno Haible  <bruno@clisp.org>
3423
3424         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3425         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3426
3427 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3428
3429         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3430
3431 2008-06-01  Bruno Haible  <bruno@clisp.org>
3432
3433         New ACL tests.
3434         * tests/test-file-has-acl.sh: New file.
3435         * tests/test-file-has-acl.c: New file.
3436         * tests/test-set-mode-acl.sh: New file.
3437         * tests/test-set-mode-acl.c: New file.
3438         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3439         * tests/test-copy-acl.c: New file.
3440         * modules/acl-tests: New file, based on modules/copy-file-tests.
3441         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3442         (Depends-on): Add acl-tests.
3443         (configure.ac): Remove checks.
3444         (Makefile.am): Don't create test-sameacls program here any more.
3445
3446 2008-06-01  Bruno Haible  <bruno@clisp.org>
3447
3448         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3449         * tests/test-sameacls.c: Include progname.h.
3450         (main): Invoke set_program_name. Portability fixes for MacOS X,
3451         Solaris, HP-UX.
3452
3453 2008-06-01  Bruno Haible  <bruno@clisp.org>
3454
3455         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3456         function.
3457         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3458
3459 2008-06-01  Bruno Haible  <bruno@clisp.org>
3460
3461         * modules/rpmatch (Depends-on): Add strdup.
3462
3463 2008-06-01  Bruno Haible  <bruno@clisp.org>
3464
3465         * lib/pipe.c: Include unistd-safer.h.
3466         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3467         * modules/pipe (Depends-on): Add unistd-safer.
3468
3469 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3470
3471         * modules/autobuild (configure.ac): Call AB_INIT.
3472
3473 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3474
3475         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3476         Suggested by Bruno Haible <bruno@clisp.org>.
3477
3478 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3479
3480         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3481         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3482         <bruno@clisp.org>.
3483
3484 2008-05-29  Eric Blake  <ebb9@byu.net>
3485
3486         Prefer new POSIX 200x interfaces over futimesat.
3487         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3488         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3489         when available.
3490         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3491
3492 2008-05-28  Bruno Haible  <bruno@clisp.org>
3493
3494         * modules/stpcpy (License): Change to LGPLv2+.
3495         Requested by David Lutterkort <dlutter@redhat.com>.
3496
3497 2008-05-27  Bruno Haible  <bruno@clisp.org>
3498
3499         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3500         current mingw.
3501         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3502
3503 2008-05-27  Bruno Haible  <bruno@clisp.org>
3504
3505         * modules/iconv_open (Link): New section, from module 'iconv'.
3506         * modules/striconv (Link): Likewise.
3507         * modules/striconveh (Link): Likewise.
3508         * modules/xstriconv (Link): Likewise.
3509         * modules/unicodeio (Link): Likewise.
3510         * modules/propername (Link): Likewise.
3511         Reported by Jim Meyering.
3512
3513 2008-05-26  Jim Meyering  <meyering@redhat.com>
3514
3515         sha256: do not artificially restrict buffer length to be < 2^32
3516         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3517         uint32_t to size_t.
3518         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3519         to match.
3520
3521         avoid unaligned access errors, e.g., on sparc
3522         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3523         direct access through a possibly-unaligned uint64* pointer.
3524         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3525         direct access through a possibly-unaligned uint32* pointer.
3526         Prompted by this patch from Tom "spot" Callaway:
3527         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3528
3529         sha512.c: fix typo in comment
3530         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3531
3532 2008-05-25  Bruno Haible  <bruno@clisp.org>
3533
3534         * lib/set-mode-acl.c: Renamed from lib/acl.c.
3535         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3536         (Makefile.am): Update lib_SOURCES.
3537
3538 2008-05-25  Bruno Haible  <bruno@clisp.org>
3539
3540         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3541
3542 2008-05-25  Jim Meyering  <meyering@redhat.com>
3543
3544         useless-if-before-free: freed expr may have white-space differences
3545         * build-aux/useless-if-before-free: Recognize cases in which the
3546         freed expression differs from the tested one in embedded white
3547         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3548         $1 was used, so we can't make any regexp shy.  Improved tests now
3549         detect this.
3550
3551         useless-if-before-free: accept white space in the expression.
3552         * build-aux/useless-if-before-free: For now, any white space
3553         in the expression must be identical in the free argument.
3554
3555         useless-if-before-free: efficiency tweak
3556         * build-aux/useless-if-before-free: Make the expression-matching
3557         regexp "shy".
3558         Make the *outer* regexp shy, not the expr-matching one.
3559
3560         update code-in-comment to accept cast of free arg
3561         * build-aux/useless-if-before-free: Update regexp.
3562
3563 2008-05-25  Bruno Haible  <bruno@clisp.org>
3564
3565         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3566         * modules/copy-file-tests (Files, Makefile.am): Update.
3567         * tests/test-copy-file.c (func_test_copy): Update.
3568
3569 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
3570
3571         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3572
3573 2008-05-23  Bruno Haible  <bruno@clisp.org>
3574
3575         Improve support for ACLs on OSF/1.
3576         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3577         Remove fallback for unknown flavors of ACLs.
3578
3579 2008-05-22  Bruno Haible  <bruno@clisp.org>
3580
3581         Add support for ACLs on OSF/1.
3582         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3583         replacements.
3584         (acl_free_text): New macro fallback.
3585         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3586         acl_free.
3587         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3588         acl_free_text function. Require AC_C_INLINE.
3589
3590 2008-05-22  Bruno Haible  <bruno@clisp.org>
3591
3592         Make copy_acl work on MacOS X 10.5.
3593         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3594         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3595         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3596         If MODE_INSIDE_ACL, don't assume that every system has the same text
3597         representation for ACLs as FreeBSD.
3598         * lib/copy-acl.c (copy_acl): Add support for platforms with
3599         !MODE_INSIDE_ACL.
3600         * lib/file-has-acl.c (file_has_acl): Likewise.
3601         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3602         FreeBSD, MacOS X, or IRIX, respectively.
3603
3604 2008-05-22  Bruno Haible  <bruno@clisp.org>
3605
3606         * lib/acl.h: Don't include <sys/acl.h>.
3607         (GETACLCNT): Move fallback to lib/acl-internal.h.
3608         * lib/acl-internal.h: Include <sys/acl.h> here.
3609         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3610
3611 2008-05-22  Bruno Haible  <bruno@clisp.org>
3612
3613         Split off copy_acl function to separate file.
3614         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3615         * lib/acl.c (copy_acl): Moved function to separate file.
3616         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3617         * modules/acl (Files): Add lib/copy-acl.c.
3618         (Makefiles.am): Augment lib_SOURCES.
3619
3620 2008-05-22  Bruno Haible  <bruno@clisp.org>
3621
3622         * modules/copy-file-tests: New file.
3623         * tests/test-copy-file.sh: New file.
3624         * tests/test-copy-file.c: New file.
3625         * tests/test-copy-file-sameacls.c: New file.
3626
3627 2008-05-22  Eric Blake  <ebb9@byu.net>
3628
3629         Avoid gcc warning.
3630         * tests/test-memcmp.c (main): Pass NULL indirectly.
3631
3632 2008-05-21  Bruno Haible  <bruno@clisp.org>
3633
3634         Add reference doc about ACLs.
3635         * doc/acl-resources.txt: New file.
3636         * doc/acl-cygwin.txt: New file.
3637
3638 2008-05-21  Bruno Haible  <bruno@clisp.org>
3639
3640         Avoid one more warning from gcc.
3641         * lib/vasnprintf.c (IF_LINT): Update comments.
3642         (VASNPRINTF): Use it also for the 'prefix' array initializer.
3643
3644 2008-05-21  Jim Meyering  <meyering@redhat.com>
3645
3646         avoid a warning from gcc
3647         * lib/vasnprintf.c (IF_LINT): Define.
3648         (scale10_round_decimal_long_double):
3649         Use it to avoid a "may be used uninitialized" warning.
3650         (scale10_round_decimal_double): Likewise.
3651
3652 2008-05-21  Simon Josefsson  <simon@josefsson.org>
3653
3654         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3655         declared.
3656
3657 2008-05-20  Bruno Haible  <bruno@clisp.org>
3658
3659         * tests/test-memcmp.c (main): Test also the sign of the result. Test
3660         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3661
3662 2008-05-20  Simon Josefsson  <simon@josefsson.org>
3663
3664         * modules/memcmp-tests: New file.
3665         * tests/test-memcmp.c: New file.
3666
3667 2008-05-19  Bruno Haible  <bruno@clisp.org>
3668
3669         * modules/propername (Notice, configure.ac): Put quoted "..." into
3670         --keyword option.
3671         * lib/propername.h: Update comments accordingly.
3672         Reported by Eric Blake.
3673
3674 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
3675
3676         * modules/getpass-gnu (Depends-on): Add fseeko.
3677
3678 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3679
3680         * modules/base64-tests: New file.
3681
3682 2008-05-19  Bo Borgerson <gigabo@gmail.com>
3683
3684         * lib/base64.c (base64_decode_ctx): If a decode context structure
3685         was passed in use it to ignore newlines.  If a context structure
3686         was _not_ passed in, continue to treat newlines as garbage (this
3687         is the historical behavior).  Formerly base64_decode.
3688         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3689         takes a decode context structure.
3690         * lib/base64.h (base64_decode): Macro for four-argument calls.
3691         (base64_decode_alloc): Likewise.
3692         * lib/base64.c (base64_decode_ctx): If a decode context structure
3693         was passed in use it to ignore newlines.  If a context structure
3694         was _not_ passed in, continue to treat newlines as garbage (this
3695         is the historical behavior).  Formerly base64_decode.
3696         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3697         takes a decode context structure.
3698         * lib/base64.h (base64_decode): Macro for four-argument calls.
3699         (base64_decode_alloc): Likewise.
3700
3701 2008-05-19  Jim Meyering  <meyering@redhat.com>
3702
3703         avoid a warning from gcc
3704         * lib/trim.c (IF_LINT): Define.
3705         (trim2): Use it to avoid a "may be used uninitialized" warning.
3706
3707         Fix doc typo.
3708         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3709
3710 2008-05-19  Bruno Haible  <bruno@clisp.org>
3711
3712         * doc/glibc-functions/getpass.texi: Document limits of other
3713         implementations.
3714
3715 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3716             Bruno Haible <bruno@clisp.org>
3717
3718         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3719
3720 2008-05-18  Bruno Haible  <bruno@clisp.org>
3721
3722         * modules/propername: New file, from GNU gettext.
3723         * lib/propername.h: New file, from GNU gettext.
3724         * lib/propername.c: New file, from GNU gettext.
3725         * MODULES.html.sh (Internationalization functions): Add propername.
3726
3727 2008-05-16  Jim Meyering  <meyering@redhat.com>
3728             Bruno Haible  <bruno@clisp.org>
3729
3730         Avoid some warnings from "gcc -Wshadow".
3731         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3732
3733 2008-05-15  Eric Blake  <ebb9@byu.net>
3734
3735         Extend previous patch to cygwin 1.7.0.
3736         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3737         fast implementation in cygwin >= 1.7.0.
3738         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3740
3741 2008-05-15  Bruno Haible  <bruno@clisp.org>
3742
3743         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3744         implementation in glibc >= 2.9.
3745         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3747
3748 2008-05-15  Bruno Haible  <bruno@clisp.org>
3749
3750         * MODULES.html.sh (Internationalization functions): Remove linebreak.
3751         (Unicode string functions): Add unilbrk/*.
3752         Reported by Karl Berry.
3753
3754 2008-05-15  Eric Blake  <ebb9@byu.net>
3755
3756         Fix violation of <stdbool.h> replacement in regex.
3757         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3758         * lib/regexec.c (re_search_internal): Likewise.
3759         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3760
3761 2008-05-15  Jim Meyering  <meyering@redhat.com>
3762
3763         avoid distracting test output when git or cvs is not found
3764         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3765         * tests/test-vc-list-files-git.sh: Likewise.
3766
3767 2008-05-15  Eric Blake  <ebb9@byu.net>
3768
3769         Glibc finally accepted the memmem speedup code, bugzilla #5514.
3770         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3771         glibc version.
3772         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3773         * doc/posix-functions/strstr.texi (strstr): Likewise.
3774         * lib/str-two-way.h (MAX): Sychronize with glibc.
3775
3776 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
3777
3778         * lib/regcomp.c (optimize_utf8): Add a note on why we test
3779         opr.ctx_type.
3780         (calc_first): Initialize constraint field.
3781         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3782         Fix grammar.
3783         (duplicate_node): Merge constraint field for all node types.
3784         (calc_eclosure_iter): Look at constraint field for all node types.
3785         * lib/regex_internal.c (create_cd_newstate): Don't look at
3786         opr.ctx_type.
3787
3788 2008-05-14  Bruno Haible  <bruno@clisp.org>
3789
3790         Help GCC to do better code generation.
3791         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3792         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3793         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3794         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3795         Declare with attribute 'malloc' if supported.
3796
3797 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
3798
3799         use "echo STR|wc -c" rather than unportable "expr length STR"
3800         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3801         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3802
3803 2008-05-14  Jim Meyering  <meyering@redhat.com>
3804
3805         use dd ibs=$n count=1 ... rather than less-portable head -c$n
3806         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3807         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3808         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3809         via Collin Lasse.
3810
3811 2008-05-14  Eric Blake  <ebb9@byu.net>
3812
3813         Avoid quadratic growth in gl_LIBSOURCES.
3814         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3815         Suggested by Bruno Haible.
3816
3817         Test xmemdup0.
3818         * modules/xmemdup0-tests: New file.
3819         * tests/test-xmemdup0.c: Likewise.
3820
3821 2008-05-13  Eric Blake  <ebb9@byu.net>
3822
3823         Split xmemdup0 into its own module.
3824         * modules/xmemdup0: New file.
3825         * lib/xmemdup0.h: Likewise.
3826         * lib/xmemdup0.c: Likewise.
3827         * MODULES.html.sh (Memory management functions): Add xmemdup0.
3828         * lib/xalloc.h (xmemdup0): Remove.
3829         * lib/xmalloc.c (xmemdup0): Likewise.
3830
3831 2008-05-13  Eric Blake  <ebb9@byu.net>
3832             Bruno Haible  <bruno@clisp.org>
3833
3834         Reduce number of forks required during autoconf.
3835         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3836         and gl_LIBSOURCES_DIR.
3837         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3838         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3839         m4_syscmd per file.
3840         <m4_foreach_w>: Move...
3841         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3842
3843 2008-05-13  Eric Blake  <ebb9@byu.net>
3844
3845         * gnulib-tool: Fix various comment typos.
3846
3847 2008-05-12  Bruno Haible  <bruno@clisp.org>
3848
3849         Tailor the linebreaking algorithm.
3850         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3851
3852 2008-05-12  Bruno Haible  <bruno@clisp.org>
3853
3854         Update to Unicode 5.0.0.
3855         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3856         LBP_JV, LBP_JT. Redistribute values.
3857         (unilbrk_table): Change size.
3858         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3859         Unicode TR#14 rev. 22.
3860         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3861         LBP_JV, LBP_JT. Redistribute values.
3862         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3863         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3864         Update.
3865         * lib/unilbrk/lbrkprop1.h: Regenerated.
3866         * lib/unilbrk/lbrkprop2.h: Regenerated.
3867         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3868         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3869         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3870         Likewise.
3871         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3872         Likewise.
3873         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3874         result.
3875         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3876         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3877         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3878         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3879         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3880         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3881
3882 2008-05-11  Bruno Haible  <bruno@clisp.org>
3883
3884         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3885
3886 2008-05-11  Bruno Haible  <bruno@clisp.org>
3887
3888         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3889         * modules/unilbrk/gen-lbrk: New file.
3890
3891 2008-05-11  Bruno Haible  <bruno@clisp.org>
3892
3893         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
3894         * m4/sha512.m4 (gl_SHA512): Likewise.
3895
3896 2008-05-11  Jim Meyering  <meyering@redhat.com>
3897
3898         New modules: crypto/sha256, crypto/sha512 (from coreutils)
3899         * modules/crypto/sha256: New file.
3900         * modules/crypto/sha512: Likewise.
3901         * lib/sha256.c: Likewise.
3902         * lib/sha256.h: Likewise.
3903         * lib/sha512.c: Likewise.
3904         * lib/sha512.h: Likewise.
3905         * lib/u64.h: Likewise.
3906         * m4/sha256.m4: Likewise.
3907         * m4/sha512.m4: Likewise.
3908         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
3909
3910 2008-05-10  Bruno Haible  <bruno@clisp.org>
3911
3912         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
3913         (Input/Output <stdio.h>): Add xprintf.
3914         (Signal handling <signal.h>): Add strsignal.
3915         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
3916         (Core language properties): Add func.
3917         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
3918         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
3919         strings.
3920         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
3921         (Input/output): New section.
3922         (File system functions): Add openat-die, stat-macros.
3923         (Networking functions): Add sockets.
3924         (Unicode string functions): Add unictype/*.
3925         (Support for building libraries and executables): Add gperf.
3926         (Support for building documentation): Add agpl-3.0.
3927         (Misc): Add nocrash.
3928
3929 2008-05-10  Bruno Haible  <bruno@clisp.org>
3930
3931         * modules/unictype/gen-ctype: New file.
3932
3933 2008-05-10  Jim Meyering  <meyering@redhat.com>
3934
3935         Make chdir-safer.c more efficient on a system with no symlinks.
3936         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
3937         also if ELOOP is zero.  Suggested by Bruno Haible.
3938
3939         Make chdir-safer.c slightly safer.
3940         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
3941         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
3942
3943         Avoid compile failure on systems without ELOOP (like mingw).
3944         * lib/chdir-safer.c (ELOOP): Define if not already defined.
3945         Reported by Bruno Haible.
3946
3947 2008-05-10  Bruno Haible  <bruno@clisp.org>
3948
3949         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
3950         (is_utf8_encoding): Use a case-insensitive comparison.
3951         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
3952         streq.
3953
3954 2008-05-10  Bruno Haible  <bruno@clisp.org>
3955
3956         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
3957         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
3958         * lib/unilbrk/ulc-common.h (iconv_string_length,
3959         iconv_string_keeping_offsets): Remove declarations.
3960         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
3961         Don't include <iconv.h>, streq.h, xsize.h.
3962         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
3963         conversion.
3964         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3965         <iconv.h>, streq.h, xsize.h.
3966         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3967         conversion.
3968         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3969         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
3970         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
3971         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
3972
3973 2008-05-10  Bruno Haible  <bruno@clisp.org>
3974
3975         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
3976         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
3977
3978         * modules/unilbrk/u32-width-linebreaks-tests: New file.
3979         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
3980
3981         * modules/unilbrk/u16-width-linebreaks-tests: New file.
3982         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
3983
3984         * modules/unilbrk/u8-width-linebreaks-tests: New file.
3985         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
3986
3987         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
3988         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
3989
3990         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
3991         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
3992
3993         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
3994         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
3995
3996         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
3997         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
3998
3999 2008-05-10  Bruno Haible  <bruno@clisp.org>
4000
4001         Split up 'linebreak' module.
4002         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4003         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4004         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4005         modifications.
4006         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4007         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4008         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4009         lib/linebreak.c.
4010         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4011         lib/linebreak.c.
4012         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4013         lib/linebreak.c.
4014         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4015         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4016         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4017         lib/linebreak.c.
4018         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4019         lib/linebreak.c.
4020         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4021         lib/linebreak.c.
4022         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4023         lib/linebreak.c.
4024         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4025         lib/linebreak.c.
4026         * modules/unilbrk/base: New file.
4027         * modules/unilbrk/tables: New file.
4028         * modules/unilbrk/u8-possible-linebreaks: New file.
4029         * modules/unilbrk/u16-possible-linebreaks: New file.
4030         * modules/unilbrk/u32-possible-linebreaks: New file.
4031         * modules/unilbrk/ulc-common: New file.
4032         * modules/unilbrk/ulc-possible-linebreaks: New file.
4033         * modules/unilbrk/u8-width-linebreaks: New file.
4034         * modules/unilbrk/u16-width-linebreaks: New file.
4035         * modules/unilbrk/u32-width-linebreaks: New file.
4036         * modules/unilbrk/ulc-width-linebreaks: New file.
4037         * lib/linebreak.h: Remove file.
4038         * lib/linebreak.c: Remove file.
4039         * m4/linebreak.m4: Remove file.
4040         * modules/linebreak: Remove file.
4041         * NEWS: Mention the changes.
4042
4043 2008-05-09  Eric Blake  <ebb9@byu.net>
4044
4045         Add xmemdup0.
4046         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4047         implementation.
4048         * lib/xmalloc.c (xmemdup0): New C implementation.
4049
4050 2008-05-08  Bruno Haible  <bruno@clisp.org>
4051
4052         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4053
4054 2008-05-07  Eric Blake  <ebb9@byu.net>
4055
4056         Support cross-compilation of <wctype.h>.
4057         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4058         AC_CACHE_CHECK.
4059
4060 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4061
4062         * build-aux/vc-list-files: Add support for bzr.
4063
4064 2008-05-03  Jim Meyering  <meyering@redhat.com>
4065
4066         avoid failed assertion with tight malloc
4067         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4068
4069 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4070
4071         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4072         are needed from arpa/inet.h.
4073         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4074         Reported by Bruno Haible.
4075
4076 2008-05-02  Jim Meyering  <meyering@redhat.com>
4077
4078         avoid compilation error on FreeBSD 6
4079         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4080
4081 2008-05-01  Jim Meyering  <meyering@redhat.com>
4082
4083         useless-if-before-free: correct --help's exit status description
4084         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4085         for one or more matches, etc.  Reported by Bruno Haible.
4086
4087         vc-list-files: make the stand-alone gnulib test work
4088         * modules/vc-list-files-tests (configure.ac):
4089         Define and AC_SUBST abs_aux_dir.
4090         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4091         $(abs_top_srcdir) to each script and having each of them
4092         duplicate the work of setting PATH, set PATH here, using
4093         the new variable, abs_aux_dir instead.
4094         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4095         * tests/test-vc-list-files-git.sh: Likewise.
4096         Reported by Bruno Haible.
4097
4098 2008-05-01  Bruno Haible  <bruno@clisp.org>
4099
4100         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4101         reallocation. Rename 'done' to 'found_delimiter'.
4102
4103 2008-05-01  Jim Meyering  <meyering@redhat.com>
4104
4105         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4106         * build-aux/vc-list-files: Use `...`, not $(...).
4107
4108 2008-04-30  Jim Meyering  <meyering@redhat.com>
4109
4110         add tests for vc-list-files
4111         * modules/vc-list-files-tests: New module.
4112         * tests/test-vc-list-files-cvs.sh: New file.
4113         * tests/test-vc-list-files-git.sh: New file.
4114
4115         avoid a warning from gcc
4116         * lib/getndelim2.c (IF_LINT): Define.
4117         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4118
4119         vc-list-files: work properly with build-aux/cvsu, too
4120         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4121         to all cvs-based clauses.
4122
4123         vc-list-files: work properly in the CVS+awk case, too
4124         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4125
4126         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4127         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4128         take more than one file argument, so .  Add quotes, just in case $dir
4129         ever contains a shell meta-character.  Prompted by Soren Hansen in
4130         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4131
4132 2008-04-29  Eric Blake  <ebb9@byu.net>
4133
4134         Optimize getndelim2 to use block operations when possible.
4135         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4136         freadseek, and memchr2.
4137         * lib/getndelim2.c (getndelim2): Use them for block reads.
4138
4139 2008-04-29  Bruno Haible  <bruno@clisp.org>
4140
4141         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4143         * modules/inet_ntop (Depends-on): Add extensions.
4144         * modules/inet_pton (Depends-on): Likewise.
4145         Reported by Simon Josefsson.
4146
4147 2008-04-29  Jim Meyering  <meyering@redhat.com>
4148
4149         When the is more than one match in a block, match all of them.
4150         * build-aux/useless-if-before-free: Iterate through each block
4151         until there are no more matches.
4152
4153         Fix broken useless-if-before-free script.
4154         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4155         the expression to match cast of argument to free-like function.
4156
4157 2008-04-29  Eric Blake  <ebb9@byu.net>
4158
4159         Use new header.
4160         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4161
4162 2008-04-29  Jim Meyering  <meyering@redhat.com>
4163
4164         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4165         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4166         by gnulib to exist and to declare e.g., inet_ntop.
4167         Don't include "inet_ntop.h", now removed.
4168
4169         * m4/arpa_inet_h.m4: Remove trailing blanks.
4170
4171 2008-04-29  Eric Blake  <ebb9@byu.net>
4172
4173         Silence valgrind on safe reads beyond potential array bounds.
4174         * lib/rawmemchr.valgrind: New file.
4175         * lib/strchrnul.valgrind: Likewise.
4176         * modules/rawmemchr (Files): Distribute new file.
4177         * modules/strchrnul (Files): Likewise.
4178         Suggested by Bruno Haible.
4179
4180 2008-04-29  Bruno Haible  <bruno@clisp.org>
4181
4182         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4183         (inet_ntop, inet_pton): Change portability warning's wording.
4184         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4185         Invoke gl_CHECK_NEXT_HEADERS.
4186         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4187         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4188         set ARPA_INET_H.
4189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4190         * modules/arpa_inet (Description): No longer only for systems that
4191         lack it.
4192         (Depends-on): Add include_next.
4193         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4194         HAVE_ARPA_INET_H.
4195
4196 2008-04-29  Jim Meyering  <meyering@redhat.com>
4197
4198         * modules/mkdir (License): Re-license as LGPLv2+.
4199
4200 2008-04-29  Bruno Haible  <bruno@clisp.org>
4201
4202         * modules/rawmemchr (Maintainer): Set to Eric.
4203         * modules/strchrnul (Maintainer): Likewise.
4204
4205 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4206
4207         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4208         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4209
4210         * modules/arpa_inet (arpa/inet.h): Use them.
4211
4212 2008-04-28  Eric Blake  <ebb9@byu.net>
4213
4214         Test getndelim2.
4215         * modules/getndelim2-tests: New file.
4216         * tests/test-getndelim2.c: Likewise.
4217         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4218         stream.
4219         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4220
4221         * MODULES.html.sh: Document new module.
4222
4223 2008-04-20  Bruno Haible  <bruno@clisp.org>
4224
4225         * lib/c-stack.c (die): Use raise.
4226         * modules/c-stack (Depends-on): Add raise.
4227
4228 2008-04-28  Bruno Haible  <bruno@clisp.org>
4229
4230         Expect rpmatch to be declared.
4231         * lib/yesno.c (rpmatch): Remove declaration.
4232
4233         Declare rpmatch.
4234         * lib/stdlib.in.h (rpmatch): New declaration.
4235         * lib/rpmatch.c: Include <stdlib.h> first.
4236         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4237         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4239         HAVE_RPMATCH.
4240         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4242         (Include): Set to <stdlib.h>.
4243         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4244         HAVE_RPMATCH.
4245         * NEWS: Document the change.
4246
4247 2008-04-28  Bruno Haible  <bruno@clisp.org>
4248
4249         Change rpmatch to use nl_langinfo when appropriate.
4250         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4251         (N_): New macro.
4252         (localized_pattern): New function/macro.
4253         (try): Remove match, nomatch arguments. Copy the pattern into safe
4254         memory before caching it.
4255         (rpmatch): Use localized_pattern. Add translator comments.
4256         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4257         Suggested by Eric Blake.
4258         * modules/rpmatch (Depends-on): Add stdbool.
4259
4260 2008-04-28  Eric Blake  <ebb9@byu.net>
4261
4262         Add rawmemchr module, matching glibc.
4263         * modules/string (Makefile.am): New indicator.
4264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4265         * lib/string.in.h (rawmemchr): Declare when appropriate.
4266         * modules/rawmemchr: New file.
4267         * m4/rawmemchr.m4: Likewise.
4268         * lib/rawmemchr.c: Likewise.
4269         * modules/rawmemchr-tests: Likewise.
4270         * tests/test-rawmemchr.c: Likewise.
4271         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4272         module.
4273         * modules/strchrnul (Depends-on): Add rawmemchr.
4274         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4275
4276         Whitespace cleanup.
4277         * tests/test-strchrnul.c: Reindent.
4278         * lib/strchrnul.c: Likewise.
4279
4280         Optimize and test strchrnul.
4281         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4282         * modules/strchrnul-tests: New file.
4283         * tests/test-strchrnul.c: Likewise.
4284
4285         Remove intprops dependency.
4286         * modules/memchr (Depends-on): Remove intprops.
4287         * modules/memrchr (Depends-on): Likewise.
4288         * modules/memchr2 (Depends-on): Likewise.
4289         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4290         * lib/memrchr.c (__memrchr): Likewise.
4291         * lib/memrchr2.c (memchr2): Likewise.
4292         Reported by Simon Josefsson.
4293
4294 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4295
4296         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4297         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4298
4299 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4300
4301         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4302
4303         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4304
4305         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4306
4307         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4308         declarations.
4309         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4310
4311         * m4/inet_pton.m4: Don't check for header files.
4312
4313         * m4/inet_ntop.m4: Don't check for header files.
4314
4315 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4316
4317         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4318         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4319         trigger for cygwin).
4320         Reported by Bruno Haible  <bruno@clisp.org>.
4321
4322 2008-04-28  Bruno Haible  <bruno@clisp.org>
4323
4324         * doc/posix-functions/strdup.texi: Mention mingw problem.
4325
4326 2008-04-27  Bruno Haible  <bruno@clisp.org>
4327
4328         * modules/stat-time-tests (Depends-on): Add sleep.
4329         * tests/test-stat-time.c (force_unlink): New function.
4330         (cleanup): Use it.
4331         (test_mtime): Remove the ctime related tests.
4332         (test_ctime): New function, containing the ctime related tests.
4333         (main): Call test_ctime, except on native Windows platforms.
4334
4335 2008-04-27  Bruno Haible  <bruno@clisp.org>
4336
4337         * lib/rpmatch.c (rpmatch): Add some comments.
4338         Reported by James Youngman <jay@gnu.org>.
4339
4340 2008-04-27  Bruno Haible  <bruno@clisp.org>
4341
4342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4343         quiet NaNs.
4344
4345 2008-04-27  Bruno Haible  <bruno@clisp.org>
4346
4347         Make test-yesno.sh work on mingw.
4348         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4349         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4350         (main): Set stdin to binary mode.
4351         * modules/yesno-tests (Depends-on): Add binary-io.
4352
4353 2008-04-27  Bruno Haible  <bruno@clisp.org>
4354
4355         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4356         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4357         argument that lie outside the IEEE 854 domain.
4358         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4359         (gl_ISFINITE): Use it.
4360         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4361
4362 2008-04-27  Bruno Haible  <bruno@clisp.org>
4363
4364         Allow local renaming in config.h.
4365         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4366
4367 2008-04-27  Bruno Haible  <bruno@clisp.org>
4368
4369         * lib/memchr.c (__memchr): Change type of 'i'.
4370         * lib/memchr2.c (memchr2): Likewise.
4371
4372 2008-04-26  Eric Blake  <ebb9@byu.net>
4373         and Bruno Haible  <bruno@clisp.org>
4374
4375         Optimize and test memrchr.
4376         * modules/memrchr (Depends-on): Add intprops.
4377         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4378         * modules/memrchr-tests: New file.
4379         * tests/test-memrchr.c: New file.
4380
4381 2008-04-26  Bruno Haible  <bruno@clisp.org>
4382
4383         Add tentative support for DragonFly BSD.
4384         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4385         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4386         fp.
4387         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4388         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4389         * lib/fpurge.c (fpurge): Likewise.
4390         * lib/freadable.c (freaadable): Likewise.
4391         * lib/freadahead.c (freadahead): Likewise.
4392         * lib/freading.c (freading): Likewise.
4393         * lib/freadptr.c (freadptr): Likewise.
4394         * lib/freadseek.c (freadptrinc): Likewise.
4395         * lib/fseeko.c (fseeko): Likewise.
4396         * lib/fseterr.c (fseterr): Likewise.
4397         * lib/fwritable.c (fwritable): Likewise.
4398         * lib/fwriting.c (fwriting): Likewise.
4399
4400 2008-04-26  Bruno Haible  <bruno@clisp.org>
4401
4402         * lib/stdio-impl.h: New file.
4403         * lib/fbufmode.c: Include stdio-impl.h.
4404         (fbufmode): Use fp_, remove redundant #defines.
4405         * lib/fflush.c: Include stdio-impl.h.
4406         (clear_ungetc_buffer): Remove redundant #defines.
4407         * lib/fpurge.c: Include stdio-impl.h.
4408         (fpurge): Remove redundant #defines.
4409         * lib/freadable.c: Include stdio-impl.h.
4410         (freadable): Remove redundant #defines.
4411         * lib/freadahead.c: Include stdio-impl.h.
4412         (freadahead): Remove redundant #defines.
4413         * lib/freading.c: Include stdio-impl.h.
4414         (freading): Remove redundant #defines.
4415         * lib/freadptr.c: Include stdio-impl.h.
4416         (freadptr): Remove redundant #defines.
4417         * lib/freadseek.c: Include stdio-impl.h.
4418         (freadptrinc): Remove redundant #defines.
4419         * lib/fseeko.c: Include stdio-impl.h.
4420         (rpl_fseeko): Remove redundant #defines.
4421         * lib/fseterr.c: Include stdio-impl.h.
4422         (fseterr): Remove redundant #defines.
4423         * lib/fwritable.c: Include stdio-impl.h.
4424         (fwritable: Remove redundant #defines.
4425         * lib/fwriting.c: Include stdio-impl.h.
4426         (fwriting): Remove redundant #defines.
4427         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4428         * modules/fflush (Files): Likewise.
4429         * modules/fpurge (Files): Likewise.
4430         * modules/freadable (Files): Likewise.
4431         * modules/freadahead (Files): Likewise.
4432         * modules/freading (Files): Likewise.
4433         * modules/freadptr (Files): Likewise.
4434         * modules/freadseek (Files): Likewise.
4435         * modules/fseeko (Files): Likewise.
4436         * modules/fseterr (Files): Likewise.
4437         * modules/fwritable (Files): Likewise.
4438         * modules/fwriting (Files): Likewise.
4439
4440 2008-04-26  Bruno Haible  <bruno@clisp.org>
4441
4442         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4443         restore_seek_optimization, update_fpos_cache): New functions, extracted
4444         from rpl_fflush.
4445         (rpl_fflush): Use them.
4446         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4447         (gl_REPLACE_FFLUSH): Use it.
4448
4449 2008-04-26  Bruno Haible  <bruno@clisp.org>
4450
4451         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4452         on Solaris.
4453         * tests/test-xstrtoimax.sh: Likewise.
4454         * tests/test-xstrtoumax.sh: Likewise.
4455         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4456
4457 2008-04-26  Bruno Haible  <bruno@clisp.org>
4458
4459         * modules/memchr-tests: New file.
4460         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4461
4462 2008-04-26  Eric Blake  <ebb9@byu.net>
4463             Bruno Haible  <bruno@clisp.org>
4464
4465         * lib/memchr.c: Include intprops.h.
4466         (__memchr): Optimize parallel detection of matching bytes. Rename local
4467         variables. Add explanatory comments.
4468
4469 2008-04-26  Bruno Haible  <bruno@clisp.org>
4470
4471         Fix module 'memchr', broken since 2000-10-28.
4472         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4473
4474 2008-04-26  Bruno Haible  <bruno@clisp.org>
4475
4476         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4477         comments.
4478
4479 2008-04-25  Eric Blake  <ebb9@byu.net>
4480
4481         Use native fstatat on cygwin 1.7.0.
4482         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4483         first.
4484
4485 2008-04-23  Eric Blake  <ebb9@byu.net>
4486
4487         Improve memchr2 performance.
4488         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4489         NUL bytes.
4490         * modules/memchr2 (Depends-on): Use intprops.h.
4491
4492 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4493
4494         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4495         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4496         <blp@cs.stanford.edu>.
4497
4498 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4499
4500         * lib/arpa_inet.in.h: New file.
4501
4502         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4503         (Makefile.am): Sed in substitute header file.
4504
4505         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4506         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4507
4508         * modules/inet_ntop (configure.ac): Use
4509         gl_ARPA_INET_MODULE_INDICATOR.
4510
4511         * modules/inet_pton (configure.ac): Use
4512         gl_ARPA_INET_MODULE_INDICATOR.
4513
4514 2008-04-22  Jim Meyering  <meyering@redhat.com>
4515
4516         * modules/verify (License): Re-license as LGPLv2+.
4517
4518 2008-04-22  Simon Josefsson  <simon@josefsson.org>
4519
4520         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4521         parameter to void* as per POSIX standard (MinGW uses char*).
4522
4523 2008-04-21  Bruno Haible  <bruno@clisp.org>
4524
4525         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4526         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4527         Define to replacements if REPLACE_ISWCNTRL is 1.
4528         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4529         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4530         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4531         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4532         what it fixes.
4533         * doc/posix-functions/iswalpha.texi: Likewise.
4534         * doc/posix-functions/iswblank.texi: Likewise.
4535         * doc/posix-functions/iswcntrl.texi: Likewise.
4536         * doc/posix-functions/iswdigit.texi: Likewise.
4537         * doc/posix-functions/iswgraph.texi: Likewise.
4538         * doc/posix-functions/iswlower.texi: Likewise.
4539         * doc/posix-functions/iswprint.texi: Likewise.
4540         * doc/posix-functions/iswpunct.texi: Likewise.
4541         * doc/posix-functions/iswspace.texi: Likewise.
4542         * doc/posix-functions/iswupper.texi: Likewise.
4543         * doc/posix-functions/iswxdigit.texi: Likewise.
4544         Reported by Alain Guibert.
4545
4546 2008-04-21  Bruno Haible  <bruno@clisp.org>
4547
4548         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4549         Patch by Alain Guibert.
4550
4551 2008-04-21  Bruno Haible  <bruno@clisp.org>
4552
4553         Fix test failures on mingw.
4554         * tests/test-xstrtol.c (print_no_progname): New function.
4555         (main): Install it in error_print_progname hook.
4556         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4557         * tests/test-xstrtoimax.sh: Likewise.
4558         * tests/test-xstrtoumax.sh: Likewise.
4559
4560 2008-04-21  Bruno Haible  <bruno@clisp.org>
4561
4562         Fix test failure on mingw.
4563         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4564
4565 2008-04-21  Bruno Haible  <bruno@clisp.org>
4566
4567         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4568         Actually assign a value.
4569
4570 2008-04-20  Bruno Haible  <bruno@clisp.org>
4571
4572         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4573         take 2.
4574         * lib/canonicalize.c (canonicalize_file_name): Elide if the
4575         'canonicalize-lgpl' module is also used.
4576         * lib/canonicalize-lgpl.c: Undo last change.
4577         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4578
4579 2008-04-20  Bruno Haible  <bruno@clisp.org>
4580
4581         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4582         config.h. Provide _mkdir based fallback for mingw.
4583         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4584         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4585         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4586         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4587         rather than defining mkdir in config.h.
4588         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4589         (gl_SYS_STAT_H_DEFAULTS): New macro.
4590         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4591         HAVE_IO_H any more.
4592         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4593         HAVE_DECL_MKDIR and HAVE_IO_H.
4594
4595 2008-04-20  Bruno Haible  <bruno@clisp.org>
4596
4597         * lib/isapipe.c: Port to native Windows platforms.
4598
4599 2008-04-20  Bruno Haible  <bruno@clisp.org>
4600
4601         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4602
4603 2008-04-21  Eric Blake  <ebb9@byu.net>
4604
4605         Work around preprocessors that don't handle UINTMAX_MAX.
4606         * lib/memchr2.c (memchr2): Avoid embedded #if.
4607         Reported by Alain Guibert, fix suggested by Bruno Haible.
4608
4609 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4610
4611         * doc/posix-functions/strftime.texi (strftime): Explain better
4612         Windows incompatibility.  Suggested by Micah Cowan
4613         <micah@cowan.name>.
4614
4615 2008-04-20  Bruno Haible  <bruno@clisp.org>
4616
4617         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4618         unistr/u8-mblen.
4619
4620 2008-04-20  Bruno Haible  <bruno@clisp.org>
4621
4622         Fix test failure on platforms with non-GNU iconv.
4623         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4624         (U_TO_U8): Use it, rather than u16_to_u8.
4625         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4626         units at the end of the input string.
4627         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4628
4629 2008-04-20  Bruno Haible  <bruno@clisp.org>
4630
4631         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4632         when the resulting length is 0.
4633         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4634
4635 2008-04-20  Bruno Haible  <bruno@clisp.org>
4636
4637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4638         works.
4639         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4640
4641 2008-04-20  Bruno Haible  <bruno@clisp.org>
4642
4643         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4644         * modules/tsearch-tests (configure.ac): Test for initstate function.
4645
4646 2008-04-20  Bruno Haible  <bruno@clisp.org>
4647
4648         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4649         for nlink_t if missing.
4650         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4651
4652 2008-04-19  Bruno Haible  <bruno@clisp.org>
4653
4654         Work around snprintf bug on Linux libc5.
4655         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4657         gl_SNPRINTF_SIZE1.
4658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4659         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4660         that test failed.
4661         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4662         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4663         * modules/snprintf (Files): Add m4/printf.m4.
4664         * modules/vsnprintf (Files): Likewise.
4665         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4666         * doc/posix-functions/vsnprintf.texi: Likewise.
4667
4668 2008-04-19  Bruno Haible  <bruno@clisp.org>
4669
4670         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4671         from 0.0058 to less than 10^-7.
4672
4673 2008-04-19  Bruno Haible  <bruno@clisp.org>
4674
4675         Fix rounding when a precision is given.
4676         * lib/vasnprintf.c (is_borderline): New function.
4677         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4678         9...9x.
4679         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4680         %e, %g.
4681         * tests/test-vasprintf-posix.c (test_function): Likewise.
4682         * tests/test-snprintf-posix.h (test_function): Likewise.
4683         * tests/test-sprintf-posix.h (test_function): Likewise.
4684         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4685         * tests/test-printf-posix.h (test_function): Likewise.
4686         * tests/test-printf-posix.output: Update.
4687         Reported by John Darrington <john@darrington.wattle.id.au> via
4688         Ben Pfaff <blp@cs.stanford.edu>.
4689
4690 2008-04-18  Simon Josefsson  <simon@josefsson.org>
4691
4692         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4693         Suggested by Bruno Haible <bruno@clisp.org>.
4694
4695 2008-04-17  Bruno Haible  <bruno@clisp.org>
4696
4697         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4698         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4699         implementation.
4700         Patch by Bruce Merry <bmerry@gmail.com>.
4701
4702 2008-04-17  Simon Josefsson  <simon@josefsson.org>
4703
4704         * doc/posix-functions/strftime.texi (strftime): Mention that %e
4705         doesn't work under Windows.
4706
4707 2008-04-16  Bruno Haible  <bruno@clisp.org>
4708
4709         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4710         New macros.
4711         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4712         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4713         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4714         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4715         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4716         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4717         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4718         macros.
4719         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4720         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4721         Northern Sotho, Uighur.
4722
4723 2008-04-16  Bruno Haible  <bruno@clisp.org>
4724
4725         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4726         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4727         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4728         Reported by Daniel Bergström <daniel@octocode.com>.
4729
4730 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
4731             Bruno Haible  <bruno@clisp.org>
4732
4733         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4734         function.
4735         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4736         New functions, mostly extracted from gl_locale_name_default.
4737         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4738
4739 2008-04-16  Eric Blake  <ebb9@byu.net>
4740
4741         Adjust strtod detection to catch glibc 2.7 bug.
4742         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4743         Reported by John Gatewood Ham.
4744
4745 2008-04-16  Bruno Haible  <bruno@clisp.org>
4746
4747         Add tentative support for Linux libc5.
4748         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4749         * lib/fpurge.c (fpurge): Likewise.
4750         * lib/freadable.c (freadable): Likewise.
4751         * lib/freadahead.c (freadahead): Likewise.
4752         * lib/freading.c (freading): Likewise.
4753         * lib/freadptr.c (freadptr): Likewise.
4754         * lib/freadseek.c (freadptrinc): Likewise.
4755         * lib/fseeko.c (rpl_fseeko): Likewise.
4756         * lib/fseterr.c (fseterr): Likewise.
4757         * lib/fwritable.c (fwritable): Likewise.
4758         * lib/fwriting.c (fwriting): Likewise.
4759         Reported by Alain Guibert <alguibert+bts@free.fr>.
4760
4761 2008-04-15  Bruno Haible  <bruno@clisp.org>
4762
4763         * modules/mathl (configure.ac): Define module indicator.
4764
4765 2008-04-15  Bruno Haible  <bruno@clisp.org>
4766
4767         * lib/logl.c (logl): Remove unused variables.
4768
4769 2008-04-15  Bruno Haible  <bruno@clisp.org>
4770
4771         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4772         fails.
4773
4774 2008-04-15  Bruno Haible  <bruno@clisp.org>
4775
4776         * lib/trim.c (trim2): Fix argument of isspace() macro.
4777
4778 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
4779
4780         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4781         to 0.
4782         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4783
4784 2008-04-14  Bruno Haible  <bruno@clisp.org>
4785
4786         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4787         AC_LANG_PROGRAM argument.
4788         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4789         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4792         * m4/math_h.m4 (gl_MATH_H): Likewise.
4793         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4796         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4797         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4798         * m4/regex.m4 (gl_REGEX): Likewise.
4799         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4800         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4802         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4803         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4804         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4805         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4806         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4807
4808 2008-04-14  Jim Meyering  <meyering@redhat.com>
4809
4810         test-strtod: fix typos: s/abs/fabs/
4811         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4812
4813 2008-04-13  Bruno Haible  <bruno@clisp.org>
4814
4815         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4816         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4817         module is also used and while not building the reloc-wrapper.
4818
4819 2008-04-13  Bruno Haible  <bruno@clisp.org>
4820
4821         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4822
4823 2008-04-13  Bruno Haible  <bruno@clisp.org>
4824
4825         Fix AIX compilation failure introduced on 2008-04-02.
4826         * tests/test-frexp.c (exp): Undefine before redefining.
4827         * tests/test-frexpl.c (exp): Likewise.
4828
4829 2008-04-13  Bruno Haible  <bruno@clisp.org>
4830
4831         Work around a HP-UX stdio bug.
4832         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4833         * tests/test-ftello.c (main): Likewise.
4834         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4835         * doc/posix-functions/ftello.texi: Likewise.
4836
4837 2008-04-13  Bruno Haible  <bruno@clisp.org>
4838
4839         Make test-signbit pass on HP-UX/hppa.
4840         * tests/test-signbit.c (minus_zerol): New variable.
4841         (test_signbitl): Use it.
4842
4843 2008-04-13  Bruno Haible  <bruno@clisp.org>
4844
4845         Make truncl work on OSF/1 4.0.
4846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4847         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4848         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4850         HAVE_DECL_TRUNCL.
4851         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4852         HAVE_DECL_TRUNCL.
4853         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4854
4855 2008-04-13  Bruno Haible  <bruno@clisp.org>
4856
4857         * lib/unictype.h: Remove trailing comma from enumeration definitions.
4858
4859 2008-04-13  Bruno Haible  <bruno@clisp.org>
4860
4861         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4862         expression, so as to avoid HP-UX 11 cc compiler bug.
4863
4864 2008-04-13  Bruno Haible  <bruno@clisp.org>
4865
4866         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4867
4868 2008-04-13  Bruno Haible  <bruno@clisp.org>
4869
4870         * lib/git-merge-changelog.c: Remove empty declaration outside of
4871         functions.
4872
4873 2008-04-13  Bruno Haible  <bruno@clisp.org>
4874
4875         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4876
4877 2008-04-13  Bruno Haible  <bruno@clisp.org>
4878
4879         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4880         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4881         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4882         also if it exists but lacks definitions of the SHUT_* macros.
4883         * modules/sys_socket (Description): Update.
4884         Reported by Elbert Pol <e.pol@chello.nl>.
4885
4886 2008-04-13  Bruno Haible  <bruno@clisp.org>
4887
4888         * lib/localcharset.c (OS2): Don't redefine if already defined.
4889         Reported by Elbert Pol <e.pol@chello.nl>.
4890
4891 2008-04-13  Bruno Haible  <bruno@clisp.org>
4892
4893         * lib/binary-io.h [__EMX__]: Include <io.h>.
4894         Reported by Elbert Pol <e.pol@chello.nl>.
4895
4896 2008-04-12  Bruno Haible  <bruno@clisp.org>
4897
4898         * lib/fpucw.h: Enable the definitions also for x86_64.
4899         Needed for NetBSD/x86_64.
4900         Reported by Thomas Klausner <tk@giga.or.at>.
4901
4902 2008-04-12  Bruno Haible  <bruno@clisp.org>
4903
4904         * tests/test-strtod.c: Include isnand.h.
4905         (main): Use isnand instead of isnan.
4906         Reported by Jim Meyering.
4907
4908 2008-04-12  Bruno Haible  <bruno@clisp.org>
4909
4910         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
4911         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4912
4913 2008-04-12  Jim Meyering  <meyering@redhat.com>
4914
4915         * m4/math_h.m4 (gl_MATH_H): Fix typos.
4916
4917 2008-04-12  Bruno Haible  <bruno@clisp.org>
4918
4919         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
4920         Reported by Elbert Pol <e.pol@chello.nl>.
4921
4922 2008-04-12  Eric Blake  <ebb9@byu.net>
4923
4924         Work around Solaris 10 math.h bug.
4925         * m4/math_h.m4 (gl_MATH_H): Check for bug.
4926         (gl_MATH_H_DEFAULTS): Set up default.
4927         * modules/math (Makefile.am): Replace new indicators.
4928         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
4929         * tests/test-math.c (main): Test this.
4930         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
4931         * doc/posix-headers/math.texi (math.h): Mention bug.
4932         Reported by Nelson H. F. Beebe and Jim Meyering.
4933
4934 2008-04-11  Bruno Haible  <bruno@clisp.org>
4935
4936         Adapt to future versions of Apple GCC.
4937         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
4938         Reported by Peter O'Gorman <peter@pogma.com>.
4939
4940 2008-04-11  Bruno Haible  <bruno@clisp.org>
4941
4942         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
4943
4944 2008-04-11  Bruno Haible  <bruno@clisp.org>
4945
4946         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
4947
4948         * modules/getaddrinfo-tests (Makefile.am): Define
4949         test_getaddrinfo_LDADD.
4950
4951 2008-04-11  Bruno Haible  <bruno@clisp.org>
4952
4953         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
4954         (init): Fix syntax error.
4955         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
4956         is declared.
4957
4958 2008-04-11  Bruno Haible  <bruno@clisp.org>
4959
4960         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
4961         * modules/glob (Depends-on): Add stdbool.
4962
4963 2008-04-11  Bruno Haible  <bruno@clisp.org>
4964
4965         * lib/trim.c: Include <string.h>.
4966
4967 2008-04-11  Eric Blake  <ebb9@byu.net>
4968
4969         Avoid compile failure on OS/2.
4970         * lib/regex_internal.h (internal_function): Disable optimization
4971         on OS/2 (__EMX__), where it caused compiler error.
4972         Reported by Elbert Pol.
4973
4974 2008-04-11  Bruno Haible  <bruno@clisp.org>
4975
4976         Flush the standard error stream before aborting. Needed on mingw.
4977         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
4978         * tests/test-array_list.c (ASSERT): Likewise.
4979         * tests/test-array_oset.c (ASSERT): Likewise.
4980         * tests/test-avltree_list.c (ASSERT): Likewise.
4981         * tests/test-avltree_oset.c (ASSERT): Likewise.
4982         * tests/test-avltreehash_list.c (ASSERT): Likewise.
4983         * tests/test-binary-io.c (ASSERT): Likewise.
4984         * tests/test-byteswap.c (ASSERT): Likewise.
4985         * tests/test-c-ctype.c (ASSERT): Likewise.
4986         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
4987         * tests/test-c-strcasestr.c (ASSERT): Likewise.
4988         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
4989         * tests/test-c-strstr.c (ASSERT): Likewise.
4990         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
4991         * tests/test-canonicalize.c (ASSERT): Likewise.
4992         * tests/test-carray_list.c (ASSERT): Likewise.
4993         * tests/test-ceilf1.c (ASSERT): Likewise.
4994         * tests/test-ceilf2.c (ASSERT): Likewise.
4995         * tests/test-ceill.c (ASSERT): Likewise.
4996         * tests/test-count-one-bits.c (ASSERT): Likewise.
4997         * tests/test-fbufmode.c (ASSERT): Likewise.
4998         * tests/test-fflush2.c (ASSERT): Likewise.
4999         * tests/test-floorf1.c (ASSERT): Likewise.
5000         * tests/test-floorf2.c (ASSERT): Likewise.
5001         * tests/test-floorl.c (ASSERT): Likewise.
5002         * tests/test-fopen.c (ASSERT): Likewise.
5003         * tests/test-fpending.c (ASSERT): Likewise.
5004         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5005         * tests/test-fpurge.c (ASSERT): Likewise.
5006         * tests/test-freadable.c (ASSERT): Likewise.
5007         * tests/test-freadahead.c (ASSERT): Likewise.
5008         * tests/test-freading.c (ASSERT): Likewise.
5009         * tests/test-freadptr.c (ASSERT): Likewise.
5010         * tests/test-freadptr2.c (ASSERT): Likewise.
5011         * tests/test-freadseek.c (ASSERT): Likewise.
5012         * tests/test-freopen.c (ASSERT): Likewise.
5013         * tests/test-frexp.c (ASSERT): Likewise.
5014         * tests/test-frexpl.c (ASSERT): Likewise.
5015         * tests/test-fseek.c (ASSERT): Likewise.
5016         * tests/test-fseeko.c (ASSERT): Likewise.
5017         * tests/test-fstrcmp.c (ASSERT): Likewise.
5018         * tests/test-ftell.c (ASSERT): Likewise.
5019         * tests/test-ftello.c (ASSERT): Likewise.
5020         * tests/test-func.c (ASSERT): Likewise.
5021         * tests/test-fwritable.c (ASSERT): Likewise.
5022         * tests/test-fwriting.c (ASSERT): Likewise.
5023         * tests/test-getdelim.c (ASSERT): Likewise.
5024         * tests/test-getline.c (ASSERT): Likewise.
5025         * tests/test-i-ring.c (ASSERT): Likewise.
5026         * tests/test-iconv-utf.c (ASSERT): Likewise.
5027         * tests/test-iconv.c (ASSERT): Likewise.
5028         * tests/test-isfinite.c (ASSERT): Likewise.
5029         * tests/test-isnand.c (ASSERT): Likewise.
5030         * tests/test-isnanf.c (ASSERT): Likewise.
5031         * tests/test-isnanl.h (ASSERT): Likewise.
5032         * tests/test-ldexpl.c (ASSERT): Likewise.
5033         * tests/test-linked_list.c (ASSERT): Likewise.
5034         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5035         * tests/test-localename.c (ASSERT): Likewise.
5036         * tests/test-lseek.c (ASSERT): Likewise.
5037         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5038         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5039         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5040         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5041         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5042         * tests/test-mbschr.c (ASSERT): Likewise.
5043         * tests/test-mbscspn.c (ASSERT): Likewise.
5044         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5045         * tests/test-mbspbrk.c (ASSERT): Likewise.
5046         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5047         * tests/test-mbsrchr.c (ASSERT): Likewise.
5048         * tests/test-mbsspn.c (ASSERT): Likewise.
5049         * tests/test-mbsstr1.c (ASSERT): Likewise.
5050         * tests/test-mbsstr2.c (ASSERT): Likewise.
5051         * tests/test-mbsstr3.c (ASSERT): Likewise.
5052         * tests/test-memchr2.c (ASSERT): Likewise.
5053         * tests/test-memmem.c (ASSERT): Likewise.
5054         * tests/test-open.c (ASSERT): Likewise.
5055         * tests/test-printf-frexp.c (ASSERT): Likewise.
5056         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5057         * tests/test-printf-posix.c (ASSERT): Likewise.
5058         * tests/test-quotearg.c (ASSERT): Likewise.
5059         * tests/test-rbtree_list.c (ASSERT): Likewise.
5060         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5061         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5062         * tests/test-round1.c (ASSERT): Likewise.
5063         * tests/test-roundf1.c (ASSERT): Likewise.
5064         * tests/test-roundl.c (ASSERT): Likewise.
5065         * tests/test-signbit.c (ASSERT): Likewise.
5066         * tests/test-sleep.c (ASSERT): Likewise.
5067         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5068         * tests/test-snprintf.c (ASSERT): Likewise.
5069         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5070         * tests/test-stat-time.c (ASSERT): Likewise.
5071         * tests/test-strcasestr.c (ASSERT): Likewise.
5072         * tests/test-strerror.c (ASSERT): Likewise.
5073         * tests/test-striconv.c (ASSERT): Likewise.
5074         * tests/test-striconveh.c (ASSERT): Likewise.
5075         * tests/test-striconveha.c (ASSERT): Likewise.
5076         * tests/test-strsignal.c (ASSERT): Likewise.
5077         * tests/test-strstr.c (ASSERT): Likewise.
5078         * tests/test-strtod.c (ASSERT): Likewise.
5079         * tests/test-trunc1.c (ASSERT): Likewise.
5080         * tests/test-trunc2.c (ASSERT): Likewise.
5081         * tests/test-truncf1.c (ASSERT): Likewise.
5082         * tests/test-truncf2.c (ASSERT): Likewise.
5083         * tests/test-truncl.c (ASSERT): Likewise.
5084         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5085         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5086         * tests/test-vasnprintf.c (ASSERT): Likewise.
5087         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5088         * tests/test-vasprintf.c (ASSERT): Likewise.
5089         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5090         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5091         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5092         * tests/test-vsnprintf.c (ASSERT): Likewise.
5093         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5094         * tests/test-wcwidth.c (ASSERT): Likewise.
5095         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5096         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5097         * tests/test-xvasprintf.c (ASSERT): Likewise.
5098         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5099         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5100         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5101         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5102         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5103         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5104         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5105         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5106         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5107         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5108         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5109         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5110         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5111         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5112         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5113         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5114         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5115         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5116         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5117         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5118         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5119         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5120         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5121         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5122         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5123         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5124         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5125         * tests/unictype/test-combining.c (ASSERT): Likewise.
5126         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5127         * tests/unictype/test-digit.c (ASSERT): Likewise.
5128         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5129         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5130         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5131         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5132         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5133         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5134         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5135         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5136         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5137         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5138         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5139         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5140         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5141         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5142         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5143         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5144         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5145         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5146         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5147         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5148         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5149         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5150         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5151         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5152         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5153         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5154         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5155         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5156         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5157         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5158         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5159         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5160         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5161         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5162         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5163         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5164         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5165         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5166         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5167         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5168         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5169         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5170         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5171         Reported by Eric Blake.
5172
5173 2008-04-11  Bruno Haible  <bruno@clisp.org>
5174
5175         * lib/wchar.in.h: Tweak comment.
5176
5177 2008-04-11  Bruno Haible  <bruno@clisp.org>
5178
5179         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5180         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5181         gl_COMMON.
5182         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5183
5184 2008-04-11  Bruno Haible  <bruno@clisp.org>
5185
5186         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5187
5188 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5189
5190         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5191         of attempting to use non-existing /dev/*random.  Based on patch
5192         from Adam Strzelecki <ono@java.pl> in
5193         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5194
5195 2008-04-08  Bruno Haible  <bruno@clisp.org>
5196
5197         Add tentative support for emx+gcc.
5198         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5199         * lib/fpurge.c (fpurge): Likewise.
5200         * lib/freadable.c (freadable): Likewise.
5201         * lib/freadahead.c (freadahead): Likewise.
5202         * lib/freading.c (freading): Likewise.
5203         * lib/freadptr.c (freadptr): Likewise.
5204         * lib/freadseek.c (freadptrinc): Likewise.
5205         * lib/fseeko.c (rpl_fseeko): Likewise.
5206         * lib/fseterr.c (fseterr): Likewise.
5207         * lib/fwritable.c (fwritable): Likewise.
5208         * lib/fwriting.c (fwriting): Likewise.
5209         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5210
5211 2008-04-09  Eric Blake  <ebb9@byu.net>
5212
5213         Avoid some autoconf warnings.
5214         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5215         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5216         * m4/afs.m4 (gl_AFS): Likewise.
5217         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5218         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5219         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5220         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5221         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5222         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5223         (AC_CHECK_DECLS_ONCE): Likewise.
5224         Rename file...
5225         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5226         gnulib-tool requires autoconf 2.59 or better.
5227         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5228
5229 2008-04-08  Eric Blake  <ebb9@byu.net>
5230
5231         Use 'git describe --match' if present (added in git 1.5.5).
5232         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5233         if possible.
5234
5235 2008-04-08  Bruno Haible  <bruno@clisp.org>
5236
5237         Add tentative support for OpenServer.
5238         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5239         _ptr, _cnt.
5240         * lib/fpurge.c (fpurge): Likewise.
5241         * lib/freadable.c (freadable): Likewise.
5242         * lib/freadahead.c (freadahead): Likewise.
5243         * lib/freading.c (freading): Likewise.
5244         * lib/freadptr.c (freadptr): Likewise.
5245         * lib/freadseek.c (freadptrinc): Likewise.
5246         * lib/fseeko.c (rpl_fseeko): Likewise.
5247         * lib/fseterr.c (fseterr): Likewise.
5248         * lib/fwritable.c (fwritable): Likewise.
5249         * lib/fwriting.c (fwriting): Likewise.
5250         Reported by Roger Cornelius <rac@tenzing.org> and
5251         Brian K. White <brian@aljex.com>.
5252
5253 2008-04-06  Jim Meyering  <meyering@redhat.com>
5254
5255         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5256
5257 2008-04-06  Bruno Haible  <bruno@clisp.org>
5258
5259         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5260         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5261         * tests/test-printf-posix.sh: Likewise.
5262         * tests/test-vfprintf-posix.sh: Likewise.
5263         * tests/test-vprintf-posix.sh: Likewise.
5264         * tests/test-xprintf-posix.sh: Likewise.
5265
5266 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5267
5268         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5269         hide error from 'ls', needed on OS/2.
5270         Report by Elbert Pol <elbert.pol@gmail.com>.
5271
5272 2008-04-04  Eric Blake  <ebb9@byu.net>
5273
5274         Make test-fseeko.c failures meaningful.
5275         * tests/test-fseeko.c: Print line number on failure.
5276         * tests/test-fseek.c: Likewise.
5277         Reported by Nelson H. F. Beebe.
5278
5279         Improve strtod bug detection check.
5280         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5281         required for Solaris 10.
5282         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5283
5284 2008-04-04  Bruno Haible  <bruno@clisp.org>
5285
5286         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5287         by m4/setenv.m4.
5288
5289 2008-04-03  Eric Blake  <ebb9@byu.net>
5290
5291         Ensure sane .version contents.
5292         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5293         version string.
5294         * build-aux/git-version-gen: Improve documentation.
5295
5296         Make GNU make output nicer.
5297         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5298         MAKECMDGOALS to enforce message for all command line targets.  Set
5299         srcdir for use in maint.mk.
5300
5301         Another maintainer tweak.
5302         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5303         a target that regenerates version.
5304
5305 2008-04-03  Jim Meyering  <meyering@redhat.com>
5306
5307         vc-list-files: don't cause coreutils "make po-check" failure
5308         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5309
5310 2008-04-03  Eric Blake  <ebb9@byu.net>
5311
5312         Allow VPATH usage of vc-list-files.
5313         * build-aux/vc-list-files (scriptversion): Add timestamp.
5314         (options): Add --help, --version, -C.
5315         (CVS): Support installed cvsu.
5316
5317 2008-04-02  Bruno Haible  <bruno@clisp.org>
5318
5319         Avoid some "statement with no effect" warnings from gcc.
5320         * tests/test-wctype.c (main): Explicitly ignore unused values.
5321         Reported by Jim Meyering.
5322
5323 2008-04-02  Jim Meyering  <meyering@redhat.com>
5324
5325         Avoid some warnings from "gcc -Wshadow".
5326         * tests/test-frexp.c (exp): Define to a different identifier.
5327         * tests/test-frexpl.c (exp): Likewise.
5328
5329 2008-04-03  Jim Meyering  <meyering@redhat.com>
5330
5331         bootstrap: remove dangling *.[ch] symlinks from lib
5332         * build-aux/bootstrap [dangling symlink removal]: Move find's
5333         -depth option to precede all others, to avoid a warning.
5334         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5335
5336 2008-04-02  Bruno Haible  <bruno@clisp.org>
5337
5338         Avoid some warnings from "gcc -Wshadow".
5339         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5340         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5341         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5342         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5343         Reported by Jim Meyering.
5344
5345 2008-04-01  Bruno Haible  <bruno@clisp.org>
5346
5347         Fix test to work on IRIX 6.5 with cc.
5348         * tests/test-math.c (numeric_equal): New function.
5349         (main): Use it.
5350
5351 2008-04-01  Bruno Haible  <bruno@clisp.org>
5352
5353         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5354
5355 2008-04-01  Bruno Haible  <bruno@clisp.org>
5356
5357         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5358         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5359         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5360         (Depends-on): Remove math.
5361
5362         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5363         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5364         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5365         (Depends-on): Remove math.
5366
5367         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5368         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5369         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5370         (Depends-on): Remove math.
5371         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5372         (Depends-on): Remove math.
5373
5374         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5375         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5376         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5377         (Depends-on): Remove math.
5378         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5379         (Depends-on): Remove math.
5380
5381         * tests/test-round1.c: Include nan.h.
5382         (main): Use NaNd instead of NAN.
5383         * modules/round-tests (Files): Add tests/nan.h.
5384
5385         * tests/test-trunc1.c: Include nan.h.
5386         (main): Use NaNd instead of NAN.
5387         * modules/trunc-tests (Files): Add tests/nan.h.
5388
5389         * tests/test-roundf1.c: Include nan.h.
5390         (main): Use NaNf instead of NAN.
5391         * modules/roundf-tests (Files): Add tests/nan.h.
5392
5393         * tests/test-truncf1.c: Include nan.h.
5394         (main): Use NaNf instead of NAN.
5395         * modules/truncf-tests (Files): Add tests/nan.h.
5396
5397         * tests/test-ceilf1.c: Include nan.h.
5398         (main): Use NaNf instead of NAN.
5399         * modules/ceilf-tests (Files): Add tests/nan.h.
5400
5401         * tests/test-floorf1.c: Include nan.h.
5402         (main): Use NaNf instead of NAN.
5403         * modules/floorf-tests (Files): Add tests/nan.h.
5404
5405         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5406         (main): Use NaNf instead of NAN.
5407         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5408
5409         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5410         (main): Use NaNd instead of NAN.
5411         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5412
5413         * tests/test-frexp.c: Include nan.h.
5414         (main): Use NaNd instead of NAN.
5415         * modules/frexp-tests (Files): Add tests/nan.h.
5416
5417         * lib/isnan.c: Don't include <math.h>.
5418         (FUNC): Don't use NAN macro.
5419         * modules/isnand-nolibm (Depends-on): Remove math.
5420         * modules/isnanf-nolibm (Depends-on): Remove math.
5421         * modules/isnanl (Depends-on): Remove math.
5422         * modules/isnanl-nolibm (Depends-on): Remove math.
5423
5424         * tests/nan.h: New file.
5425
5426 2008-04-01  Eric Blake  <ebb9@byu.net>
5427
5428         Fix typos.
5429         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5430         values to be the right type.
5431
5432         For now, cater to gnulib strtod inaccuracies.
5433         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5434         fractional results.  While not as nice from a QoI perspective, it
5435         is a quicker patch than correctly implementing decimal to binary
5436         rounding.
5437
5438 2008-03-31  Eric Blake  <ebb9@byu.net>
5439
5440         Guarantee a definition of NAN.
5441         * lib/math.in.h (NAN): Define if missing.
5442         * tests/test-math.c (main): Test it.
5443         * doc/posix-headers/math.texi (math.h): Document this.
5444         * lib/isnan.c (rpl_isnand): Use it.
5445         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5446         * tests/test-floorf1.c (NaN): Likewise.
5447         * tests/test-frexp.c (NaN): Likewise.
5448         * tests/test-isnand.c (NaN): Likewise.
5449         * tests/test-isnanf.c (NaN): Likewise.
5450         * tests/test-round1.c (NaN): Likewise.
5451         * tests/test-roundf1.c (NaN): Likewise.
5452         * tests/test-snprintf-posix.h (NaN): Likewise.
5453         * tests/test-sprintf-posix.h (NaN): Likewise.
5454         * tests/test-trunc1.c (NaN): Likewise.
5455         * tests/test-truncf1.c (NaN): Likewise.
5456         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5457         * tests/test-vasprintf-posix.c (NaN): Likewise.
5458         * modules/isnand-nolibm (Depends-on): Add math.
5459         * modules/isnanf-nolibm (Depends-on): Likewise.
5460         * modules/isnanl (Depends-on): Likewise.
5461         * modules/isnanl-nolibm (Depends-on): Likewise.
5462         * modules/snprintf-posix-tests (Depends-on): Likewise.
5463         * modules/sprintf-posix-tests (Depends-on): Likewise.
5464         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5465         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5466         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5467         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5468
5469 2008-03-31  Bruno Haible  <bruno@clisp.org>
5470
5471         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5472         * doc/posix-functions/strtod.texi: Likewise.
5473
5474 2008-03-31  Bruno Haible  <bruno@clisp.org>
5475
5476         * tests/test-strtod.c (main): Don't use C99 syntax.
5477
5478 2008-03-31  Bruno Haible  <bruno@clisp.org>
5479
5480         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5481         Reported by Eric Blake.
5482
5483 2008-03-31  Jim Meyering  <meyering@redhat.com>
5484
5485         Don't compare actual signbit return values.
5486         * tests/test-strtod.c (main): Rather, compare only their
5487         zero/non-zero nature.
5488
5489 2008-03-31  Eric Blake  <ebb9@byu.net>
5490
5491         More strtod documentation.
5492         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5493         failures as distinct bugs.
5494
5495 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5496
5497         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5498         Problem reported by Erik Benada in
5499         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5500
5501 2008-03-30  Bruno Haible  <bruno@clisp.org>
5502
5503         * tests/test-strtod.c: Add comments about which assertion fails on which
5504         platform.
5505         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5506
5507 2008-03-30  Eric Blake  <ebb9@byu.net>
5508
5509         Test signbit behavior on zeros.
5510         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5511         (test_signbitd, test_signbitl): Likewise.
5512
5513         More strtod touchups.
5514         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5515         sign of negative underflow, for now.  Use .5, not .1.
5516         * doc/posix-functions/strtod.texi (strtod): Mention these
5517         limitations.
5518         Reported by Jim Meyering.
5519
5520 2008-03-30  Bruno Haible  <bruno@clisp.org>
5521
5522         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5523         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5524
5525 2008-03-30  Bruno Haible  <bruno@clisp.org>
5526
5527         Avoid failure when attempting to return empty iconv results on some
5528         platforms.
5529         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5530         allocation, don't report ENOMEM when the resulting string is empty.
5531
5532 2008-03-30  Bruno Haible  <bruno@clisp.org>
5533
5534         Fix buffer overrun.
5535         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5536         Don't consider the width for tmp_length. Check count against tmp_length
5537         before doing the padding. Ensure enough allocation during padding.
5538
5539 2008-03-30  Eric Blake  <ebb9@byu.net>
5540
5541         strtod touchups.
5542         * lib/strtod.c (strtod): Avoid compiler warnings.
5543         Reported by Jim Meyering.
5544
5545 2008-03-30  Bruno Haible  <bruno@clisp.org>
5546
5547         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5548         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5549         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5550         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5551         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5552         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5553         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5554         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5555
5556         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5557         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5558         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5559         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5560         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5561         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5562         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5563         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5564
5565         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5566         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5567         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5568         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5569         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5570         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5571         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5572         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5573
5574         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5575         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5576
5577         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5578         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5579
5580         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5581         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5582
5583         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5585         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5586
5587         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5589         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5590
5591         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5593         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5594
5595         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5597         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5598
5599         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5600         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5602         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5603         (Depends-on): Add EOVERFLOW.
5604         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5605         (Depends-on): Add EOVERFLOW.
5606         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5607         (Depends-on): Add EOVERFLOW.
5608         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5609         (Depends-on): Add EOVERFLOW.
5610         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5611         (Depends-on): Add EOVERFLOW.
5612         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5613         (Depends-on): Add EOVERFLOW.
5614         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5615         (Depends-on): Add EOVERFLOW.
5616         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5617         (Depends-on): Add EOVERFLOW.
5618
5619         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5621         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5622
5623         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5625         * modules/snprintf (Depends-on): Add EOVERFLOW.
5626
5627         * lib/poll.c (EOVERFLOW): Remove fallback.
5628         * modules/poll (Depends-on): Add EOVERFLOW.
5629
5630         * lib/getugroups.c (EOVERFLOW): Remove fallback.
5631         * modules/getugroups (Depends-on): Add EOVERFLOW.
5632
5633         * lib/getdelim.c (EOVERFLOW): Remove fallback.
5634         * modules/getdelim (Depends-on): Add EOVERFLOW.
5635
5636         * lib/ftell.c (EOVERFLOW): Remove fallback.
5637         * modules/ftell (Depends-on): Add EOVERFLOW.
5638
5639         * lib/fprintf.c (EOVERFLOW): Remove fallback.
5640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5641         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5642
5643         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5644
5645         * modules/EOVERFLOW-tests: New file.
5646         * tests/test-EOVERFLOW.c: New file.
5647
5648         * modules/EOVERFLOW: New file.
5649         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5650
5651 2008-03-30  Bruno Haible  <bruno@clisp.org>
5652
5653         Fix bug introduced on 2007-06-10.
5654         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5655         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5656
5657 2008-03-30  Bruno Haible  <bruno@clisp.org>
5658
5659         Improve freadseek's efficiency after ungetc.
5660         * lib/freadseek.c: Include freadahead.h.
5661         (freadptrinc): New function, extracted from freadseek.
5662         (freadseek): Use it in a loop. Use freadahead to determine the number
5663         of loop iterations.
5664         * modules/freadseek (Depends-on): Add freadahead.
5665         (configure.ac): Require AC_C_INLINE.
5666
5667 2008-03-30  Bruno Haible  <bruno@clisp.org>
5668
5669         * lib/freadseek.c (freadseek): Don't ignore the return value of
5670         freadptr.
5671
5672 2008-03-29  Eric Blake  <ebb9@byu.net>
5673
5674         Add hex float support.
5675         * modules/strtod (Depends-on): Add c-ctype.
5676         (Link): Mention POW_LIB.
5677         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
5678         whitespace between 'e' and exponent.
5679         * tests/test-strtod.c (main): Enable hex float tests.
5680         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5681         now provides.
5682
5683         Document various strtod bugs, with some fixes.
5684         * doc/posix-functions/strtod.texi (strtod): Document bugs with
5685         "-0x", "inf", "nan", and hex constants.
5686         * doc/posix-functions/atof.texi (atof): Likewise.
5687         * modules/stdlib (Makefile.am): Support strtod.
5688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5689         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5690         detect additional strtod bugs.
5691         * lib/stdlib.in.h (rpl_strtod): Add declarations.
5692         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
5693         bool where appropriate.  Parse 'inf' and 'nan'.
5694         * tests/test-strtod.c: New file.
5695         * modules/strtod (Depends-on): Add stdbool, stdlib.
5696         (configure.ac): Turn on module indicator.
5697         * modules/strtod-tests: New module.
5698
5699 2008-03-29  Eric Blake  <ebb9@byu.net>
5700
5701         Fix ftell on mingw.
5702         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5703         * modules/ftell-tests (Depends-on): Add binary-io.
5704         * modules/ftello-tests (Depends-on): Likewise.
5705         * tests/test-ftell.c (main): Enhance test to cover behavior after
5706         ungetc.  Enforce binary mode.
5707         * tests/test-ftello.c (main): Likewise.
5708
5709         Pass test-freadseek on cygwin.
5710         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5711         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5712         ungetc buffer.
5713
5714         * tests/test-fflush2.c (main): Fix typo.
5715
5716 2008-03-29  Bruno Haible  <bruno@clisp.org>
5717
5718         * tests/test-fflush2.c (main): Temporarily disable the contents of
5719         this test.
5720         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5721         Reported by Eric Blake.
5722
5723 2008-03-28  Simon Josefsson  <simon@josefsson.org>
5724
5725         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5726         (GC_SHA224_DIGEST_SIZE): Add.
5727
5728         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5729         (gc_hash_digest_length): Likewise.
5730         (gc_hash_buffer): Likewise.
5731
5732 2008-03-25  Bruno Haible  <bruno@clisp.org>
5733
5734         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5735         detail which gettext release to use.
5736         Reported by Simon Josefsson.
5737
5738 2008-03-26  Jim Meyering  <meyering@redhat.com>
5739
5740         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5741         * modules/gnumakefile (clean-GNUmakefile): Also, use
5742         test ... && ... || : syntax rather than if-then ... fi.
5743
5744         gnumakefile: Don't double-quote-expand $(VPATH) value.
5745         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5746
5747 2008-03-24  Eric Blake  <ebb9@byu.net>
5748
5749         Alter GNUmakefile to install into top directory.
5750         * modules/maintainer-makefile: Split, and add dependency...
5751         * modules/gnumakefile: to this new module.
5752         * build-aux/GNUmakefile: Move...
5753         * top/GNUmakefile: ...here.
5754         * build-aux/maint.mk: Move...
5755         * top/maint.mk: ...here.
5756         * MODULES.html.sh (Support for maintaining...): Document new
5757         module.
5758
5759 2008-03-23  Bruno Haible  <bruno@clisp.org>
5760
5761         * gnulib-tool: New options --vc-files, --no-vc-files.
5762         (func_usage): Document them.
5763         (vc_files): New variable.
5764         (func_import): Consider vc_files.
5765         (func_create_testdir): Set vc_files to empty.
5766         Suggested by Jim Meyering and Karl Berry.
5767
5768 2008-03-23  Bruno Haible  <bruno@clisp.org>
5769
5770         Fix regex compilation error on HP-UX 11.
5771         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5772         * modules/regex (Files): Add m4/mbstate_t.m4.
5773         Reported by Ton Voon <ton.voon@altinity.com>.
5774
5775 2008-03-23  Bruno Haible  <bruno@clisp.org>
5776
5777         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5778
5779 2008-03-23  Eric Blake  <ebb9@byu.net>
5780             Bruno Haible  <bruno@clisp.org>
5781
5782         Install files from top/ in the destination directory.
5783         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5784         augmentation also for the files from top/.
5785         (func_import, func_create_testdir): Rewrite file names:
5786         top/filename -> filename.
5787
5788 2008-03-23  Bruno Haible  <bruno@clisp.org>
5789
5790         Tweak "gnulib --version" output.
5791         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5792
5793 2008-03-23  Bruno Haible  <bruno@clisp.org>
5794
5795         Tweak "gnulib --version" output.
5796         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5797         rather than contents of ChangeLog, when possible.
5798
5799 2008-03-21  Eric Blake  <ebb9@byu.net>
5800
5801         More --version tweaks.
5802         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
5803         date of last ChangeLog entry.
5804
5805 2008-03-21  Jim Meyering  <meyering@redhat.com>
5806
5807         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5808
5809 2008-03-20  Eric Blake  <ebb9@byu.net>
5810
5811         VPATH fix.
5812         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5813
5814 2008-03-20  Simon Josefsson  <simon@josefsson.org>
5815
5816         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
5817         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
5818
5819 2008-03-20  Eric Blake  <ebb9@byu.net>
5820
5821         Sync GNUmakefile with coreutils.
5822         * build-aux/GNUmakefile (have-Makefile): Rename...
5823         (_have-Makefile): ...to this, for namespace consideration.
5824         (GNUmakefile.cfg): Include, if present.
5825         (_autoreconf): Define a default.
5826         (_is-dist-target): New rule for rebuilds to pick up intra-release
5827         version.
5828         (maint-cfg.mk): Rename...
5829         (cfg.mk): ...to this.
5830
5831 2008-03-18  Jim Meyering  <meyering@redhat.com>
5832
5833         New script and module: mktempd
5834         * MODULES.html.sh (maint+release support): Add mktempd.
5835         * build-aux/mktempd: New file.
5836         * modules/mktempd: New file.
5837
5838 2008-03-15  Jim Meyering  <meyering@redhat.com>
5839
5840         Undo last change.
5841         * lib/sha1.c, lib/md5.c: 63 != ~63.
5842         Reported by Andreas Schwab.
5843
5844         sha1.c, md5.c: Hoist a redundant expression.
5845         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5846         "ctx->buflen" only once, before calling *_process_block.
5847         * lib/md5.c (md5_process_bytes): Likewise.
5848
5849 2008-03-14  Eric Blake  <ebb9@byu.net>
5850
5851         Bump copyright year in files generated by gnulib-tool.
5852         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5853         gnulib-tool, rather than hard-coding it.
5854
5855         Fix 'gnulib-tool --version' output to work with git.
5856         * gnulib-tool (func_gnulib_dir): New function, extracted from...
5857         (startup): ...here.
5858         (func_version): Use it to invoke git-version-gen, rather than
5859         relying on CVS keyword expansion.  Modernize wording.
5860         (cvsdatestamp, last_checkin_date, version): Kill unused
5861         variables.
5862
5863 2008-03-12  Jim Meyering  <meyering@redhat.com>
5864
5865         Recognize optional cast of the argument to free.
5866         * build-aux/useless-if-before-free: Update regexps.
5867
5868         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5869
5870 2008-03-11  Bruno Haible  <bruno@clisp.org>
5871
5872         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5873         by a single package.
5874         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5875         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5876         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5877         Reported by Sam Steingold <sds@gnu.org>.
5878
5879 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5880
5881         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5882         repositories.
5883
5884 2008-03-11  Bruno Haible  <bruno@clisp.org>
5885
5886         Avoid conflicts between local macro definitions.
5887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5888         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5889
5890 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
5891             Bruno Haible  <bruno@clisp.org>
5892
5893         Make va_copy work with some version of xlc on AIX 5.1.
5894         * lib/stdarg.in.h: New file.
5895         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
5896         On AIX, use a <stdarg.h> file substitute.
5897         * modules/stdarg (Files): Add lib/stdarg.in.h.
5898         (Depends-on): Add include_next.
5899         (Makefile.am): Build a stdarg.h substitute if requested.
5900         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
5901
5902 2008-03-10  Bruno Haible  <bruno@clisp.org>
5903
5904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
5905         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5906         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5907
5908 2008-03-10  Bruno Haible  <bruno@clisp.org>
5909
5910         * modules/stdlib (Depends-on): Add include_next, remove
5911         absolute-header.
5912
5913 2008-03-09  Bruno Haible  <bruno@clisp.org>
5914
5915         * lib/freadahead.h (freadahead): Document more precisely.
5916         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
5917         the sum of both buffer sizes.
5918         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
5919         * NEWS: Document the change.
5920
5921 2008-03-09  Bruno Haible  <bruno@clisp.org>
5922
5923         Extend freadptr to return also the buffer size.
5924         * lib/freadptr.h (freadptr): Add sizep argument.
5925         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
5926         (freadptr): Add sizep argument. Determine buffer size like freadahead
5927         does.
5928         * tests/test-freadptr.c: Don't include freadahead.h.
5929         (main): Adapt for new calling convention of freadptr.
5930         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
5931         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
5932         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
5933         tests/test-freadptr2.sh.
5934         (Depends): Remove freadahead.
5935         (TESTS): Add test-freadptr2.sh.
5936         (check_PROGRAMS): Add test-freadptr2.
5937
5938 2008-03-09  Bruno Haible  <bruno@clisp.org>
5939
5940         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
5941         Report and solution by Simon Josefsson.
5942
5943 2008-03-06  Bruno Haible  <bruno@clisp.org>
5944
5945         Make fflush after ungetc work on BSD platforms.
5946         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
5947         * tests/test-fflush2.c: New file.
5948         * tests/test-fflush2.sh: New file.
5949         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
5950         tests/test-fflush2.c.
5951         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
5952         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
5953
5954 2008-03-06  Eric Blake  <ebb9@byu.net>
5955
5956         Likewise for ftello.
5957         * modules/ftello (Dependencies): Add extensions.
5958         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
5959
5960 2008-03-06  Bruno Haible  <bruno@clisp.org>
5961
5962         * modules/fseeko (Dependencies): Add extensions.
5963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5964         Needed on glibc systems.
5965
5966 2008-03-06  Bruno Haible  <bruno@clisp.org>
5967
5968         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
5969         email address.
5970         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5971
5972 2008-03-06  Bruno Haible  <bruno@clisp.org>
5973
5974         * users.txt: Add libgnupdf.
5975
5976 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5977
5978         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
5979         (Header File Substitutes, Function Substitutes,
5980         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
5981         (Build robot for gnulib): Fix typo.
5982
5983 2008-03-06  Bruno Haible  <bruno@clisp.org>
5984
5985         * doc/gnulib-tool.texi (VCS Issues): Small updates.
5986         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5987
5988 2008-03-06  Bruno Haible  <bruno@clisp.org>
5989
5990         * doc/func.texi: New file, extracted from doc/gnulib.texi.
5991         * doc/gnulib.texi: Include it.
5992
5993 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5994
5995         * modules/func (License): Change license to unlimited; there was
5996         no LGPL parts in the module anyway.
5997
5998 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5999
6000         * modules/__func__: Renamed to modules/func.
6001         * modules/__func__-tests: Renamed to modules/func-tests.
6002         * tests/test-__func__.c: Renamed to tests/test-func.c.
6003         * m4/__func__.m4: Renamed to m4/func.m4.
6004         * doc/gnulib.texi (__func__): Section renamed to func.
6005         Suggested by Eric Blake <ebb9@byu.net>.
6006
6007 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6008
6009         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6010         about __func__.  Make example self-contained.  Suggested by Eric
6011         Blake <ebb9@byu.net>.
6012
6013         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6014         Suggested by Eric Blake <ebb9@byu.net>.
6015
6016 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6017
6018         * modules/__func__: New file.
6019         * modules/__func__-tests: New file.
6020         * tests/test-__func__.c: New file.
6021         * m4/__func__.m4: New file.
6022         * doc/gnulib.texi (__func__): Document __func__ module.
6023
6024 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6025
6026         * modules/byteswap (License): Re-license as LGPLv2+.
6027
6028 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6029
6030         * doc/Makefile: Add pdf target.
6031
6032 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6033
6034         * modules/inline (License): Use 'unlimited', since there are only
6035         *.m4 files in this module.
6036
6037 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6038             Bruno Haible  <bruno@clisp.org>
6039
6040         Add support for HP C 7.1 on OpenVMS 8.3.
6041         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6042
6043 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6044
6045         Update VMS specifics.
6046         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6047
6048 2008-03-02  Jim Meyering  <meyering@redhat.com>
6049
6050         Remove the last dependency on the "free" module.
6051         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6052         Reported by Bob Proulx.
6053
6054         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6055
6056         Remove useless "if" tests before free.  Deprecate "free" module.
6057         * doc/posix-functions/free.texi: Mention that this
6058         module is no longer useful.
6059         * modules/free (Notice): Say this module is obsolete.
6060         * modules/readutmp (Depends-on): Remove free.
6061         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6062         * lib/putenv.c (putenv): Likewise.
6063         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6064         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6065         * tests/test-c-strcasestr.c (main): Likewise.
6066         * tests/test-c-strstr.c (main): Likewise.
6067         * tests/test-mbscasestr1.c (main): Likewise.
6068         * tests/test-mbscasestr2.c (main): Likewise.
6069         * tests/test-mbsstr1.c (main): Likewise.
6070         * tests/test-mbsstr2.c (main): Likewise.
6071         * tests/test-memmem.c (main): Likewise.
6072         * tests/test-strcasestr.c (main): Likewise.
6073         * tests/test-striconv.c (main): Likewise.
6074         * tests/test-striconveh.c (main): Likewise.
6075         * tests/test-striconveha.c (main): Likewise.
6076         * tests/test-strstr.c (main): Likewise.
6077
6078         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6079
6080         bootstrap: sync from coreutils again
6081         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6082
6083 2008-03-01  Jim Meyering  <meyering@redhat.com>
6084
6085         bootstrap: sync from coreutils
6086         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6087         also when the target doesn't exist.
6088
6089 2008-03-01  Eric Blake  <ebb9@byu.net>
6090
6091         Fix bugs in last patch.
6092         * lib/memchr2.c (memchr2): Fix typo.
6093         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6094         extension.
6095         Reported by Bruce Korb.
6096
6097         New module 'memchr2'.
6098         * modules/memchr2: New file.
6099         * modules/memchr2-tests: Likewise.
6100         * lib/memchr2.h: Likewise.
6101         * lib/memchr2.c: Likewise, based on memchr.c.
6102         * tests/test-memchr2.c: New test.
6103         * MODULES.html.sh (String handling): Add memchr2.
6104
6105 2008-02-29  Bruno Haible  <bruno@clisp.org>
6106
6107         * modules/freadseek-tests: New file.
6108         * tests/test-freadseek.sh: New file.
6109         * tests/test-freadseek.c: New file.
6110
6111         New module 'freadseek'.
6112         * modules/freadseek: New file.
6113         * lib/freadseek.h: New file.
6114         * lib/freadseek.c: New file.
6115         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6116
6117 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6118
6119         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6120         wydawca.
6121
6122         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6123         program_invocation_name and program_invocation_short_name are
6124         present.
6125
6126 2008-02-28  Bruno Haible  <bruno@clisp.org>
6127
6128         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6129         * tests/test-freadptr.sh: Also test non-seekable stdin.
6130
6131 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6132
6133         * build-aux/bootstrap (source_base, m4_base)
6134         (doc_base, tests_base): New variables.
6135         (gnulib_tool_options): Do not hardcode base directories, use
6136         the above variables instead.
6137
6138 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6139
6140         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6141
6142 2008-02-28  Bruno Haible  <bruno@clisp.org>
6143
6144         * modules/freadptr-tests: New file.
6145         * tests/test-freadptr.sh: New file.
6146         * tests/test-freadptr.c: New file.
6147
6148         New module 'freadptr'.
6149         * modules/freadptr: New file.
6150         * lib/freadptr.h: New file.
6151         * lib/freadptr.c: New file.
6152         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6153
6154 2008-02-26  Karl Berry  <karl@freefriends.org>
6155
6156         Sync from Libtool:
6157         * libltdl/argz.c (argz_add, argz_count): New functions.
6158         * libltdl/argz.in.h: Declare them.
6159         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6160
6161 2008-02-22  Bruno Haible  <bruno@clisp.org>
6162
6163         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6164         is a pointer type.  Needed for HP-UX 10.
6165         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6166         * doc/posix-functions/gmtime_r.texi: Likewise.
6167         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6168
6169 2008-02-24  Bruno Haible  <bruno@clisp.org>
6170
6171         * modules/environ-tests: New file.
6172         * tests/test-environ.c: New file.
6173
6174         New module 'environ'.
6175         * modules/environ: New file.
6176         * lib/unistd.in.h (environ): New declaration.
6177         * m4/environ.m4: New file.
6178         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6179         after use.
6180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6181         HAVE_DECL_ENVIRON.
6182         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6183         HAVE_DECL_ENVIRON.
6184         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6185         wrong claim that 'environ' is missing on some systems.
6186         * modules/execute (Depends-on): Add environ.
6187         * lib/execute.c (environ): Remove fallback declaration.
6188         * modules/pipe (Depends-on): Add environ.
6189         * lib/pipe.c (environ): Remove fallback declaration.
6190         * modules/setenv (Depends-on): Add environ.
6191         * lib/setenv.c (environ): Remove fallback declaration.
6192         * modules/unsetenv (Depends-on): Add environ.
6193         * lib/unsetenv.c (environ): Remove fallback declaration.
6194         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6195         m4/environ.m4.
6196         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6197         (gl_PREREQ_UNSETENV): Likewise.
6198
6199 2008-02-24  Bruno Haible  <bruno@clisp.org>
6200
6201         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6202
6203 2008-02-20  Bob Proulx  <bob@proulx.com>
6204
6205         Enable use of older two part flavor 'git describe'.
6206         * build-aux/git-version-gen: If using the older two part flavor of
6207         git version then recreate the third part now present in the
6208         newer three part flavor of git describe.
6209
6210 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6211
6212         * lib/fts.c (fts_build): Typo correction to comment.
6213
6214 2008-02-17  Bruno Haible  <bruno@clisp.org>
6215
6216         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6217         generating no-op conflicts.
6218
6219 2008-02-17  Bruno Haible  <bruno@clisp.org>
6220
6221         Speed up by 10%.
6222         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6223         result_entries, rather than an index-based loop.
6224
6225 2008-02-17  Bruno Haible  <bruno@clisp.org>
6226
6227         Speed up by 25%.
6228         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6229         'hashcode_cached'.
6230         (entry_create): New function.
6231         (entry_hashcode): Use the cached hashcode if possible.
6232         (read_changelog_file, try_split_merged_entry): Use entry_create.
6233
6234 2008-02-17  Bruno Haible  <bruno@clisp.org>
6235
6236         Speed up from O(n^2) to O(n) for long ChangeLog files.
6237         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6238         (read_changelog_file): Change implementation of entries_reversed list
6239         to rbtreehash.
6240         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6241
6242 2008-02-17  Bruno Haible  <bruno@clisp.org>
6243
6244         New option --split-merged-entry.
6245         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6246         (find_paragraph_end, try_split_merged_entry): New functions.
6247         (long_options): Add option --split-merged-entry.
6248         (usage): Document option --split-merged-entry.
6249         (main): Implement option --split-merged-entry.
6250         Reported by Eric Blake.
6251
6252 2008-02-17  Bruno Haible  <bruno@clisp.org>
6253
6254         * lib/git-merge-changelog.c: Include c-strstr.h.
6255         (main): Support the "git pull --rebase" situation.
6256         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6257         Reported by Eric Blake.
6258
6259 2008-02-16  Eric Blake  <ebb9@byu.net>
6260
6261         Avoid doubling \ in common case of "c-maybe" quoting style.
6262         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6263         eliding outer quotes.
6264         * lib/quotearg.h: Document this.
6265         * tests/test-quotearg.c (result_strings, inputs, results_g)
6266         (flag_results, locale_results): Test it by adding a new string to
6267         each test group.
6268         (compare_strings): Test new string.
6269
6270 2008-02-13  Eric Blake  <ebb9@byu.net>
6271
6272         Avoid trigraph quoting in default output.
6273         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6274         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6275         unless explicitly requested.
6276         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6277
6278 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6279
6280         Don't rely on signed integer overflowing to negative value.
6281         * lib/getugroups.c (getugroups): Include <limits.h>.
6282         Instead, compare against INT_MAX, and increment only if the test passes.
6283
6284 2008-02-13  Jim Meyering  <meyering@redhat.com>
6285         and Eric Blake  <ebb9@byu.net>
6286
6287         Avoid shadowing warning and compile errors on Linux.
6288         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6289         forwarding macros on Linux.
6290         (dcgettext): Define a stub, for Linux.
6291         (results_g, main): Avoid warnings.
6292
6293 2008-02-12  Eric Blake  <ebb9@byu.net>
6294
6295         Silence warning in last patch.
6296         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6297
6298         Quotearg part 4: add tests, fix c-maybe colon quoting.
6299         * lib/quotearg.h: Improve documentation.
6300         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6301         escapes when adding outer quotes.  When quoting trigraphs, use
6302         valid C notation.  When quoting NUL, omit extra characters if next
6303         character is not digit.  Alter prototype.
6304         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6305         callers.
6306         * modules/quotearg-tests: New module.
6307         * tests/test-quotearg.c: New test.
6308
6309 2008-02-07  Eric Blake  <ebb9@byu.net>
6310
6311         Quotearg part 3: add flag to control outer quote elision.
6312         * lib/quotearg.h (c_maybe_quoting_style): New style.
6313         (enum quoting_flags): Better documentation of flags.
6314         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6315         c-maybe style.
6316         (quotearg_buffer_restyled): Handle new flag to elide outer
6317         quotes.
6318
6319         Quotearg part 2: add flag that can control NUL elision.
6320         * lib/quotearg.h (set_quoting_flags): New prototype.
6321         * lib/quotearg.c (struct quoting_options): Add flag field.
6322         (set_quoting_flags): New function.
6323         (quotearg_buffer_restyled): Add flags parameter.
6324         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6325         (quotearg_n_options): Set the flag, since length cannot be
6326         returned.
6327         (quoting_options_from_style): Default flags correctly.
6328
6329         Quotearg part 1: more wrappers, restore quotearg_char state.
6330         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6331         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6332         (quotearg_colon_mem): New wrappers.
6333         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6334         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6335         functions.
6336         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6337         (quotearg_colon_mem): New functions.
6338
6339 2008-02-11  Bruno Haible  <bruno@clisp.org>
6340
6341         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6342         library in the current directory: it does not work with parallel make.
6343         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6344
6345 2008-02-11  Bruno Haible  <bruno@clisp.org>
6346
6347         * .gitattributes: New file.
6348
6349 2008-02-11  Jim Meyering  <meyering@redhat.com>
6350
6351         useless-if-before-free: Fix reversed exit values.
6352         * build-aux/useless-if-before-free: Use correct values
6353         for EXIT_MATCH and EXIT_NO_MATCH.
6354
6355         * build-aux/useless-if-before-free: Close stdout carefully.
6356
6357 2008-02-10  Bruno Haible  <bruno@clisp.org>
6358
6359         New module 'git-merge-changelog'.
6360         * modules/git-merge-changelog: New file.
6361         * lib/git-merge-changelog.c: New file.
6362
6363 2008-02-10  Jim Meyering  <meyering@redhat.com>
6364
6365         useless-if-before-free: New option: --list (-l).
6366
6367         useless-if-before-free: Don't exit immediately upon open failure.
6368         * build-aux/useless-if-before-free: Exit 2 for errors.
6369         Upon failure to open a file, don't exit immediately.
6370         Rather, just warn and continue with any remaining files.
6371
6372 2008-02-10  Bruno Haible  <bruno@clisp.org>
6373
6374         New abstract list operation 'node_set_value'.
6375         * lib/gl_list.h (gl_list_node_set_value): New function.
6376         (struct gl_list_implementation): New field node_set_value.
6377         * lib/gl_list.c (gl_list_node_set_value): New function.
6378         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6379         (gl_array_list_implementation): Update.
6380         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6381         (gl_carray_list_implementation): Update.
6382         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6383         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6384         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6385         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6386         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6387         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6388         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6389         Update.
6390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6391         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6392         (gl_sublist_list_implementation): Update.
6393
6394 2008-02-10  Bruno Haible  <bruno@clisp.org>
6395
6396         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6397         Needed when ELEMENT is #defined to 'some_type *'.
6398
6399 2008-02-10  Jim Meyering  <meyering@redhat.com>
6400
6401         New script and module: useless-if-before-free
6402         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6403         * build-aux/useless-if-before-free: New file.
6404         * modules/useless-if-before-free: New file.
6405
6406         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6407
6408         xstrtol_error: Fix typo.
6409         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6410         s/exit_failure/exit_status/.
6411
6412 2008-02-09  Jim Meyering  <meyering@redhat.com>
6413
6414         New script and module: gitlog-to-changelog
6415         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6416         * modules/gitlog-to-changelog: New file.
6417         * build-aux/gitlog-to-changelog: New file.
6418
6419 2008-02-08  Jim Meyering  <meyering@redhat.com>
6420
6421         Avoid two "parameter unused" warnings.
6422         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6423         Mark "st" as used.
6424
6425         Use "git COMMAND", not "git-COMMAND".
6426         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6427         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6428         * build-aux/git-version-gen: Use "git status", not "git-status".
6429
6430 2008-02-07  Bruno Haible  <bruno@clisp.org>
6431
6432         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6433         Avoids a crash on Windows Vista.
6434         Reported by Adam Strzelecki <ono@java.pl> via
6435         Simon Josefsson <simon@josefsson.org>.
6436
6437 2008-02-06  Bruno Haible  <bruno@clisp.org>
6438
6439         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6440         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6441         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6443         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6445         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6446         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6454         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6455         left-adjust flag.
6456         * tests/test-snprintf-posix.h (test_function): Likewise.
6457         * tests/test-sprintf-posix.h (test_function): Likewise.
6458         * tests/test-vasprintf-posix.c (test_function): Likewise.
6459         * doc/posix-functions/fprintf.texi: Update.
6460         * doc/posix-functions/printf.texi: Update.
6461         * doc/posix-functions/snprintf.texi: Update.
6462         * doc/posix-functions/sprintf.texi: Update.
6463         * doc/posix-functions/vfprintf.texi: Update.
6464         * doc/posix-functions/vprintf.texi: Update.
6465         * doc/posix-functions/vsnprintf.texi: Update.
6466         * doc/posix-functions/vsprintf.texi: Update.
6467         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6468
6469 2008-02-06  Bruno Haible  <bruno@clisp.org>
6470
6471         Fix bug introduced on 2008-01-26.
6472         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6473
6474 2008-02-06  Bruno Haible  <bruno@clisp.org>
6475
6476         Fix bug introduced on 2007-06-10.
6477         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6478         !NEED_PRINTF_FLAG_ZERO.
6479
6480 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6481
6482         getloadavg: use libperfstat on AIX5
6483         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6484
6485 2008-02-03  Bruno Haible  <bruno@clisp.org>
6486
6487         * lib/diffseq.h: Add comments about required #includes.
6488         Reported by Michael Biggs <gnulib@doubleplum.net>.
6489
6490 2008-02-01  Bruno Haible  <bruno@clisp.org>
6491
6492         * users.txt: Add gnuit.
6493
6494 2008-01-31  Bruno Haible  <bruno@clisp.org>
6495
6496         * lib/md4.c (set_uint32): Mark as inline.
6497         * lib/md5.c (set_uint32): Likewise.
6498         * lib/sha1.c (set_uint32): Likewise.
6499         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6500         * m4/md5.m4 (gl_MD5): Likewise.
6501         * m4/sha1.m4 (gl_SHA1): Likewise.
6502
6503 2008-01-31  Jim Meyering  <meyering@redhat.com>
6504
6505         Use "sizeof VAR", rather than a literal "4".
6506         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6507         * lib/md4.c (md4_read_ctx): Likewise.
6508         * lib/sha1.c (sha1_read_ctx): Likewise.
6509
6510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6511
6512         * tests/test-sha1.c: New file, based on test-md5.c.
6513
6514         * modules/crypto/sha1-tests: New file.
6515
6516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6517
6518         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6519
6520 2008-01-31  Jim Meyering  <meyering@redhat.com>
6521
6522         Prefer "sizeof v" over the equivalent "4".
6523         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6524         * lib/md5.c (set_uint32): Likewise.
6525         * lib/sha1.c (set_uint32): Likewise.
6526
6527 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6528
6529         * lib/sha1.c (set_uint32): Mark function as static.
6530
6531 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6532
6533         md2: clarify comments to say that alignment is not required.
6534         * lib/md2.h: Remove warning about alignment in comment.
6535         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6536         never been required.
6537
6538 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6539
6540         md4: adapt alignment constraint fix from sha1.
6541         * lib/md4.c (set_uint32): New function, from sha1.c
6542         (md4_read_ctx): Use it.
6543         (md4_finish_ctx): Doc fix.
6544         * lib/md4.h: Doc fix.
6545
6546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6547
6548         md5: adapt alignment constraint fix from sha1.
6549         * lib/md5.c (set_uint32): New function, from sha1.c
6550         (md5_read_ctx): Use it.
6551         (md5_finish_ctx): Doc fix.
6552         * lib/md5.h: Doc fix.
6553
6554 2008-01-30  Peter Palfrader  <weasel@debian.org>
6555
6556         sha1: remove the result buffer alignment constraint
6557         * lib/sha1.c (set_uint32): New function.
6558         (sha1_read_ctx): Rewrite to remove the result buffer alignment
6559         constraint.
6560         (sha1_finish_ctx): Remove comment warning about alignment constraint.
6561         * lib/sha1.h: Likewise.
6562
6563 2008-01-30  Andreas Schwab  <schwab@suse.de>
6564             Bruno Haible  <bruno@clisp.org>
6565
6566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6567         correct definition of LDBL_MIN_EXP.
6568
6569 2008-01-30  Karl Berry  <karl@gnu.org>
6570
6571         * config/srclist-update: try to preserve x bit on updates.
6572         * config/srclistvars.sh: update for karl.
6573
6574 2008-01-29  Jim Meyering  <meyering@redhat.com>
6575
6576         vasnprintf.c: Avoid warning about unused label
6577         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6578         "overflow" label definition and associated code with the
6579         same cpp condition that guards the sole use of that label.
6580
6581 2008-01-26  Bruno Haible  <bruno@clisp.org>
6582
6583         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6584         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6585         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6586         * lib/isnanl-nolibm.h (isnanl): Likewise.
6587         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6588
6589 2008-01-26  Bruno Haible  <bruno@clisp.org>
6590
6591         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6592         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6593
6594 2008-01-26  Bruno Haible  <bruno@clisp.org>
6595
6596         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6597         GCC >= 4.0 built-in.
6598         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6599
6600 2008-01-26  Bruno Haible  <bruno@clisp.org>
6601
6602         Rename isnan, applicable to 'double' only, to isnand.
6603         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6604         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6605         (configure.ac): Update.
6606         (Include): Replace "isnan.h" with "isnand.h".
6607         * m4/isnand.m4: Renamed from m4/isnan.m4.
6608         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6609         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6610         instead of isnan.c.
6611         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6612         instead of HAVE_ISNAN_IN_LIBC.
6613         (isnand): Renamed from isnan.
6614         * lib/isnand.c: New file.
6615         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6616         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6617         (Makefile.am): Update.
6618         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6619         Include isnand.h instead of isnan.h.
6620         (main): Test isnand instead of isnan.
6621         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6622         isnan-nolibm.
6623         * modules/frexp (Depends-on): Likewise.
6624         * modules/frexp-tests (Depends-on): Likewise.
6625         * modules/frexp-nolibm (Depends-on): Likewise.
6626         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6627         * modules/isfinite (Depends-on): Likewise.
6628         * modules/round-tests (Depends-on): Likewise.
6629         * modules/signbit (Depends-on): Likewise.
6630         * modules/signbit-tests (Depends-on): Likewise.
6631         * modules/snprintf-posix (Depends-on): Likewise.
6632         * modules/sprintf-posix (Depends-on): Likewise.
6633         * modules/trunc-tests (Depends-on): Likewise.
6634         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6635         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6636         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6637         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6638         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6639         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6640         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6641         * modules/vasnprintf-posix (Depends-on): Likewise.
6642         * modules/vasprintf-posix (Depends-on): Likewise.
6643         * modules/vfprintf-posix (Depends-on): Likewise.
6644         * modules/vsnprintf-posix (Depends-on): Likewise.
6645         * modules/vsprintf-posix (Depends-on): Likewise.
6646         * lib/frexp.c: Include isnand.h instead of isnan.h.
6647         (ISNAN): Set to isnand instead of isnan.
6648         * lib/isfinite.c: Include isnand.h instead of isnan.h.
6649         (gl_isfinited): Use isnand instead of isnan.
6650         * lib/signbitd.c: Include isnand.h instead of isnan.h.
6651         (gl_signbitd): Use isnand instead of isnan.
6652         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6653         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6654         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6655         (main): Use isnand instead of isnan.
6656         * tests/test-round1.c: Include isnand.h.
6657         (main): Use isnand instead of isnan.
6658         * tests/test-round2.c: Include isnand.h instead of isnan.h.
6659         (ISNAN): Set to isnand instead of isnan.
6660         * tests/test-trunc1.c: Include isnand.h.
6661         (main): Use isnand instead of isnan.
6662         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6663         (equal): Use isnand instead of isnan.
6664         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6665         isnand-nolibm.
6666         * NEWS: Mention the change.
6667
6668 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6669             Bruno Haible  <bruno@clisp.org>
6670
6671         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6672         the GCC builtins for signbits are present and set
6673         REPLACE_SIGNBIT_USING_GCC if so.
6674         * lib/math.in.h (signbit): Define using GCC builtins if
6675         REPLACE_SIGNBIT_USING_GCC is set.
6676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6677         REPLACE_SIGNBIT_USING_GCC.
6678         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6679
6680 2008-01-25  Jim Meyering  <meyering@redhat.com>
6681
6682         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
6683         * lib/poll.c: Include <config.h>, not "config.h".
6684         * tests/test-getaddrinfo.c: Likewise.
6685
6686 2008-01-25  Simon Josefsson  <simon@josefsson.org>
6687
6688         * modules/sockets-tests: New file.
6689
6690 2008-01-24  Simon Josefsson  <simon@josefsson.org>
6691
6692         * modules/sockets: New module, can be used to call WSA_Startup and
6693         WSA_Cleanup when needed.
6694
6695         * lib/sockets.h, lib/sockets.c: New files.
6696
6697         * m4/sockets.m4: New file.
6698
6699         * tests/test-sockets.c: New file.
6700
6701 2008-01-19  Bruno Haible  <bruno@clisp.org>
6702
6703         * doc/posix-headers: Renamed from doc/headers.
6704         * doc/posix-functions: Renamed from doc/functions.
6705         * doc/gnulib.texi: Update.
6706
6707 2008-01-19  Bruno Haible  <bruno@clisp.org>
6708
6709         * doc/glibc-functions/strcasestr.texi: Include contents of
6710         doc/functions/strcasestr.texi, fixing the list of platforms.
6711         * doc/functions/strcasestr.texi: Remove file.
6712
6713 2008-01-19  Bruno Haible  <bruno@clisp.org>
6714
6715         * doc/glibc-functions/memmem.texi: Include contents of
6716         doc/functions/memmem.texi.
6717         * doc/functions/memmem.texi: Remove file.
6718
6719 2008-01-18  Bruno Haible  <bruno@clisp.org>
6720
6721         * doc/glibc-functions/*.texi: New files.
6722         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6723         to use the new files.
6724
6725 2008-01-17  Bruno Haible  <bruno@clisp.org>
6726
6727         * tests/test-gethostname.c (main): Fix printf statement.
6728
6729 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6730
6731         * modules/gethostname-tests: New file.
6732
6733         * tests/test-gethostname.c: New file.
6734
6735 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6736
6737         * lib/gethostname.c: Include string.h unconditionally, strncpy is
6738         used by the UNAME case.  Reported by Bruno Haible
6739         <bruno@clisp.org>.
6740
6741 2008-01-17  Eric Blake  <ebb9@byu.net>
6742
6743         Convert c-strcasestr to be more efficient.
6744         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6745         (Depends-on): Add c-strcase, remove malloca, strnlen.
6746         * tests/test-c-strcasestr.c (main): Enhance test.
6747         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6748
6749 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6750
6751         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6752         Use it in creating po/Makevars.
6753
6754 2008-01-15  Simon Josefsson  <simon@josefsson.org>
6755
6756         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6757         Applications that requires it should initialize libgcrypt
6758         manually.
6759
6760 2008-01-16  Simon Josefsson  <simon@josefsson.org>
6761
6762         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6763
6764 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6765
6766         Fix problem with getdate on mingw32 reported by Simon Josefsson
6767         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6768         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6769         tzname", when deciding whether to declare tzname.
6770         * lib/strftime.c (tzname): Likewise.
6771
6772 2008-01-15  Bruno Haible  <bruno@clisp.org>
6773
6774         Work around a MacOS X 10.5 bug in frexpl().
6775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6776         * doc/functions/frexpl.texi: Document the bug.
6777         Reported by Elias Pipping <pipping@gentoo.org>.
6778
6779 2008-01-14  Eric Blake  <ebb9@byu.net>
6780
6781         Touch up previous patch.
6782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6783         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6784
6785         Convert strcasestr module to use Two-Way algorithm.
6786         * modules/strcasestr-simple: New module, based on the old
6787         strcasestr, but with Two-Way rather than KMP.
6788         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6789         * lib/string.in.h (rpl_strcasestr): Declare.
6790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6791         performance.
6792         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6793         * modules/string (Makefile.am): Support strcasestr.
6794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6795         * modules/strcasestr-tests (Depends-on): Check for alarm.
6796         * tests/test-strcasestr.c: Augment test.
6797         * lib/str-two-way.h: Clean up stray macro.
6798         * NEWS: Document new module.
6799         * MODULES.html.sh (string handling): Likewise.
6800         * doc/functions/strcasestr.texi: New file.
6801         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
6802         here, since it is not a POSIX function.
6803
6804 2008-01-14  Colin Watson  <cjwatson@debian.org>
6805             Bruno Haible  <bruno@clisp.org>
6806
6807         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6808         works fine; if not, set REPLACE_STRSIGNAL.
6809         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6811         REPLACE_STRSIGNAL.
6812         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6813         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6814         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6815
6816 2008-01-14  Bruno Haible  <bruno@clisp.org>
6817
6818         * modules/strsignal (Include): Change to <string.h>.
6819
6820 2008-01-14  Colin Watson  <cjwatson@debian.org>
6821
6822         * modules/argp (Notice): Add a notice recommending to change
6823         XGETTEXT_OPTIONS.
6824         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6825
6826 2008-01-13  Colin Watson  <cjwatson@debian.org>
6827
6828         * modules/strsignal-tests: New file.
6829         * tests/test-strsignal.c: New file.
6830
6831         * lib/strsignal.c: New file, from glibc with modifications.
6832         * lib/siglist.h: New file, from glibc with modifications.
6833         * lib/string.in.h (strsignal): New declaration.
6834         * m4/strsignal.m4: New file.
6835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6836         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6837         * modules/strsignal: New file.
6838         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6839         HAVE_DECL_STRSIGNAL.
6840
6841 2008-01-13  Bruno Haible  <bruno@clisp.org>
6842
6843         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6844         locale encoding is not ASCII. Needed for OpenBSD 4.0.
6845         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6846         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6847
6848 2008-01-13  Bruno Haible  <bruno@clisp.org>
6849
6850         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6851         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6852         * lib/argp.h (__attribute__): Likewise.
6853         * lib/c-stack.c (__attribute__): Likewise.
6854         * lib/error.h (__attribute__): Likewise.
6855         * lib/fts.c (__attribute__): Likewise.
6856         * lib/openat.h (__attribute__): Likewise.
6857         * lib/stdio.in.h (__attribute__): Likewise.
6858         * lib/string.in.h (__attribute__): Likewise.
6859         * lib/utimens.c (__attribute__): Likewise.
6860         * lib/vasnprintf.h (__attribute__): Likewise.
6861         * lib/xalloc.h (__attribute__): Likewise.
6862         * lib/xprintf.h (__attribute__): Likewise.
6863         * lib/xstrtol.h (__attribute__): Likewise.
6864         * lib/xvasprintf.h (__attribute__): Likewise.
6865
6866 2008-01-12  Bruno Haible  <bruno@clisp.org>
6867
6868         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6869         * doc/glibc-headers/a.out.texi: New file.
6870         * doc/glibc-headers/aliases.texi: New file.
6871         * doc/glibc-headers/alloca.texi: New file.
6872         * doc/glibc-headers/ar.texi: New file.
6873         * doc/glibc-headers/argp.texi: New file.
6874         * doc/glibc-headers/argz.texi: New file.
6875         * doc/glibc-headers/byteswap.texi: New file.
6876         * doc/glibc-headers/crypt.texi: New file.
6877         * doc/glibc-headers/endian.texi: New file.
6878         * doc/glibc-headers/envz.texi: New file.
6879         * doc/glibc-headers/err.texi: New file.
6880         * doc/glibc-headers/error.texi: New file.
6881         * doc/glibc-headers/execinfo.texi: New file.
6882         * doc/glibc-headers/fpu_control.texi: New file.
6883         * doc/glibc-headers/fstab.texi: New file.
6884         * doc/glibc-headers/fts.texi: New file.
6885         * doc/glibc-headers/getopt.texi: New file.
6886         * doc/glibc-headers/ieee754.texi: New file.
6887         * doc/glibc-headers/ifaddrs.texi: New file.
6888         * doc/glibc-headers/libintl.texi: New file.
6889         * doc/glibc-headers/mcheck.texi: New file.
6890         * doc/glibc-headers/mntent.texi: New file.
6891         * doc/glibc-headers/obstack.texi: New file.
6892         * doc/glibc-headers/paths.texi: New file.
6893         * doc/glibc-headers/printf.texi: New file.
6894         * doc/glibc-headers/pty.texi: New file.
6895         * doc/glibc-headers/resolv.texi: New file.
6896         * doc/glibc-headers/shadow.texi: New file.
6897         * doc/glibc-headers/sysexits.texi: New file.
6898         * doc/glibc-headers/ttyent.texi: New file.
6899
6900 2008-01-12  Jim Meyering  <meyering@redhat.com>
6901
6902         announce-gen: emit Gnulib's git-based version string.
6903         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
6904         New option --gnulib-version=V, where V is expected to be
6905         the output of running git describe in the gnulib directory.
6906         (get_tool_versions): Request feedback on xdelta.  I suspect it's
6907         not useful, and plan to stop publishing an xdelta file with each
6908         coreutils release.
6909
6910         * build-aux/announce-gen: Also check for lzma-compressed files.
6911
6912 2008-01-11  Bruno Haible  <bruno@clisp.org>
6913
6914         * tests/test-memmem.c (main): Increase maximum allowed time.
6915         * tests/test-strstr.c (main): Likewise.
6916
6917 2008-01-11  Bruno Haible  <bruno@clisp.org>
6918
6919         * doc/functions/memmem.texi: Add more precisions about platforms.
6920         * doc/functions/strstr.texi: Likewise.
6921
6922 2008-01-10  Eric Blake  <ebb9@byu.net>
6923
6924         * m4/strstr.m4: Delete cruft from copy-n-paste.
6925         Reported by Bruno Haible.
6926
6927 2008-01-10  Bruno Haible  <bruno@clisp.org>
6928
6929         Make c-strstr rely on strstr.
6930         * lib/c-strstr.c: Don't include str-kmp.h.
6931         (c_strstr): Define in terms of strstr.
6932         * modules/c-strstr (Files): Remove lib/str-kmp.h.
6933         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
6934
6935 2008-01-10  Bruno Haible  <bruno@clisp.org>
6936
6937         * doc/gnulib.texi (String Functions in C Locale): New section.
6938         * doc/c-ctype.texi: New file.
6939         * doc/c-strcase.texi: New file.
6940         * doc/c-strcaseeq.texi: New file.
6941         * doc/c-strcasestr.texi: New file.
6942         * doc/c-strstr.texi: New file.
6943         * doc/c-strtod.texi: New file.
6944         * doc/c-strtold.texi: New file.
6945
6946 2008-01-10  Eric Blake  <ebb9@byu.net>
6947
6948         * lib/relocatable.h: Fix a comment.
6949
6950 2008-01-10  Eric Blake  <ebb9@byu.net>
6951
6952         Share two-way algorithm.
6953         * lib/str-two-way.h: New file, merged from...
6954         * lib/memmem.c: ...here...
6955         * lib/strstr.c: ...and here.
6956         * modules/memmem (Files): Use it.
6957         * modules/strstr (Files): Likewise.
6958
6959         Avoid quadratic strstr implementations.
6960         * lib/strstr.c: New file.
6961         * m4/strstr.m4: Likewise.
6962         * modules/strstr: Likewise.
6963         * modules/strstr-tests: Likewise.
6964         * tests/test-strstr.c: Likewise.
6965         * lib/string.in.h (rpl_strstr): Declare.
6966         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6968         * modules/string (Makefile.am): Likewise.
6969         * MODULES.html.sh (string handling): Mention new module.
6970         * doc/functions/strstr.texi (strstr): Document the bug.
6971
6972 2008-01-10  Bruno Haible  <bruno@clisp.org>
6973
6974         * lib/relocatable.h (relocate): State whether result is freshly
6975         allocated or not.
6976         * lib/relocatable.c (relocate): Return a freshly allocated string
6977         instead of a pointer to a privately held string.
6978         Reported by Sylvain Beucler <beuc@gnu.org>.
6979
6980 2008-01-10  Colin Watson  <cjwatson@debian.org>
6981
6982         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
6983         s/S_ISNLK/S_ISLNK/.
6984
6985 2008-01-09  Bruno Haible  <bruno@clisp.org>
6986
6987         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
6988         and other files.
6989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
6990         if it's only a guess.
6991         * modules/memmem: Simplify by depending on memmem-simple.
6992
6993 2008-01-09  Bruno Haible  <bruno@clisp.org>
6994
6995         Work around OpenBSD 4.0 tdelete() bug.
6996         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
6997         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
6998         macros and don't redefine the enum values.
6999         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7000         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7001         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7002
7003 2008-01-09  Bruno Haible  <bruno@clisp.org>
7004
7005         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7006         (main): Don't perform the tests if setlocale did not install a UTF-8
7007         locale. Needed on OpenBSD 4.0.
7008         * modules/wcwidth-tests (Depends-on): Add localcharset.
7009
7010 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7011
7012         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7013         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7014         * NEWS: announce this.
7015         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7016
7017 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7018         and Eric Blake  <ebb9@byu.net>
7019
7020         Add memmem-simple module.
7021         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7022         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7023         * modules/memmem-simple: New file.
7024         * modules/memmem (Description): Tweak.
7025         * MODULES.html.sh (string handling): Mention new module.
7026         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7027         addressed by memmem-simple.
7028         * NEWS: Document the difference.
7029
7030 2008-01-09  Eric Blake  <ebb9@byu.net>
7031
7032         Give gcc some memmem optimization hints.
7033         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7034         (strcasestr): Declare as pure.
7035         * modules/memmem (Maintainer): Claim my implementation.
7036
7037 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7038
7039         Support AIX 6.1 and higher.
7040         * build-aux/config.libpath: Likewise.
7041         * build-aux/config.rpath: Likewise.
7042
7043 2008-01-08  Jim Meyering  <meyering@redhat.com>
7044             Bruno Haible  <bruno@clisp.org>
7045
7046         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7047         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7048         Reported by Peter Fales in
7049         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7050
7051 2008-01-08  Bruno Haible  <bruno@clisp.org>
7052
7053         * modules/unictype/category-of (Depends-on): Add
7054         unictype/category-none.
7055         * modules/unictype/category-and-tests (Depends-on): Add
7056         unictype/category-{L,N,Lu,Nd}.
7057         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7058         * modules/unictype/category-or-tests (Depends-on): Add
7059         unictype/category-{L,N}.
7060         * modules/unictype/category-name-tests (Depends-on): Add
7061         unictype/category-{Z,Nl}.
7062         Reported by Simon Josefsson.
7063
7064 2008-01-08  Bruno Haible  <bruno@clisp.org>
7065
7066         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7067         convention better.
7068         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7069         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7070         Reported by Peter Miller <millerp@canb.auug.org.au>.
7071
7072 2008-01-08  Eric Blake  <ebb9@byu.net>
7073
7074         Rewrite memmem to guarantee linear complexity without malloc.
7075         * lib/memmem.c (memmem): Use Two-Way rather than
7076         Knuth-Morris-Pratt, to allow O(1) space usage.
7077         (critical_factorization, two_way_short_needle)
7078         (two_way_long_needle): New functions.
7079         (knuth_morris_pratt): Delete.
7080         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7081         Add stdint.
7082         * tests/test-memmem.c (main): Add tests for periodic needle and
7083         sublinear performance.
7084         * doc/functions/memmem.texi (memmem): Document other deficiencies
7085         in cygwin and older glibc.
7086
7087 2008-01-08  Bruno Haible  <bruno@clisp.org>
7088
7089         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7090         augmentation.
7091
7092 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7093
7094         Add a configure time option: --disable-acl.
7095         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7096         AC_ARG_ENABLE(acl).
7097
7098 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7099
7100         * tests/test-localename.c: Don't include obsolete "setenv.h".
7101
7102         * modules/localename-tests (Depends-on): Need unsetenv.
7103
7104 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7105
7106         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7107
7108 2008-01-06  Colin Watson  <cjwatson@debian.org>
7109
7110         * users.txt: Add man-db.
7111
7112 2008-01-07  Bruno Haible  <bruno@clisp.org>
7113
7114         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7115         previous section name.
7116
7117 2008-01-07  Bruno Haible  <bruno@clisp.org>
7118
7119         * lib/progname.c (set_program_name): Don't strip off a leading
7120         "lt-" prefix outside a .libs directory.
7121         Suggested by Paul Eggert.
7122
7123 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7124             Bruno Haible  <bruno@clisp.org>
7125
7126         Improve memory cleanup in 'relocatable' module.
7127         * lib/relocatable.h (compute_curr_prefix): Change return type to
7128         'char *'.
7129         * lib/relocatable.c (compute_curr_prefix): Change return type to
7130         'char *'. Free curr_installdir after use.
7131         (relocate): Free curr_prefix_better after use.
7132         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7133
7134 2008-01-01  Bruno Haible  <bruno@clisp.org>
7135
7136         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7137         failure on older glibc systems.
7138         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7139
7140 2008-01-05  Eric Blake  <ebb9@byu.net>
7141
7142         Avoid quadratic system memmem.
7143         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7144         Reported by Ralf Wildenhues.
7145
7146         Fix memmem test for mingw.
7147         * modules/memmem-tests (configure.ac): Check for alarm.
7148         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7149         it.
7150         * doc/functions/memmem.texi: New file.
7151         * doc/gnulib.texi (Function Substitutes): Add memmem.
7152         Reported by Bruno Haible.
7153
7154 2008-01-04  Bruno Haible  <bruno@clisp.org>
7155
7156         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7157         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7158         gl_HEADER_STRING_H_DEFAULTS.
7159
7160 2008-01-04  Eric Blake  <ebb9@byu.net>
7161
7162         Shorten duration of memmem test.
7163         * tests/test-memmem.c (main): Use alarm to declare failure if test
7164         is taking too long.
7165         Reported by Ralf Wildenhues.
7166
7167 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7168
7169         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7170         string, needed by strerror.
7171
7172 2008-01-03  Colin Watson  <cjwatson@debian.org>
7173             Bruno Haible  <bruno@clisp.org>
7174
7175         * doc/gnulib-tool.texi (Localization): New section.
7176
7177 2008-01-02  Bruno Haible  <bruno@clisp.org>
7178
7179         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7180         variables to 'unsigned char *' type.
7181         Reported by Paul Eggert.
7182
7183 2008-01-02  Jim Meyering  <jim@meyering.net>
7184
7185         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7186
7187 2007-12-31  Jim Meyering  <jim@meyering.net>
7188
7189         Avoid use of private FTS type name.
7190         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7191
7192 2007-12-30  Karl Berry  <karl@gnu.org>
7193
7194         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7195         work around defect in Texinfo and/or the standalone Info browser.
7196
7197 2007-12-30  Bruno Haible  <bruno@clisp.org>
7198
7199         Unify 5 copies of the KMP code.
7200         * lib/str-kmp.h: New file.
7201         * lib/c-strcasestr.c: Include str-kmp.h.
7202         (knuth_morris_pratt): Remove function.
7203         (c_strcasestr): Update.
7204         * lib/c-strstr.c: Include str-kmp.h.
7205         (knuth_morris_pratt): Remove function.
7206         (c_strcasestr): Update.
7207         * lib/mbscasestr.c: Include str-kmp.h.
7208         (knuth_morris_pratt_unibyte): Remove function.
7209         * lib/mbsstr.c: Include str-kmp.h.
7210         (knuth_morris_pratt_unibyte): Remove function.
7211         * lib/strcasestr.c: Include str-kmp.h.
7212         (knuth_morris_pratt): Remove function.
7213         (strcasestr): Update.
7214         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7215         * modules/c-strstr (Files): Likewise.
7216         * modules/mbscasestr (Files): Likewise.
7217         * modules/mbsstr (Files): Likewise.
7218         * modules/strcasestr (Files): Likewise.
7219         Suggested by Paul Eggert.
7220
7221 2007-12-30  Bruno Haible  <bruno@clisp.org>
7222
7223         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7224         defined.
7225
7226 2007-12-30  Bruno Haible  <bruno@clisp.org>
7227
7228         * lib/xmalloca.h: Include xalloc.h.
7229         (xnmalloca): New macro.
7230
7231 2007-12-30  Bruno Haible  <bruno@clisp.org>
7232
7233         * lib/malloca.h (nmalloca): New macro.
7234         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7235         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7236         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7237         knuth_morris_pratt_multibyte): Likewise.
7238         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7239         knuth_morris_pratt_multibyte): Likewise.
7240         * lib/memmem.c (knuth_morris_pratt): Likewise.
7241         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7242
7243 2007-12-25  Bruno Haible  <bruno@clisp.org>
7244
7245         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7246         * lib/glob.c: Don't include openat.h.
7247         (link_exists2_p): Add back the code that deals with the
7248         !GLOB_ALTDIRFUNC case.
7249         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7250         let it do the filename concatenation.
7251         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7252         * modules/glob (Depends-on): Remove openat.
7253
7254 2007-12-31  Bruno Haible  <bruno@clisp.org>
7255
7256         * modules/dirfd (License): Change to LGPLv2+.
7257         Approved by Jim Meyering.
7258
7259 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7260
7261         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7262         when multiplying M by sizeof (size_t).
7263
7264 2007-12-10  Martin Lambers  <marlam@marlam.de>
7265
7266         Override getpagesize on mingw.
7267         * lib/getpagesize.c: New file.
7268         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7269         * modules/getpagesize (Files): Add lib/getpagesize.c.
7270         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7272         REPLACE_GETPAGESIZE.
7273         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7274
7275 2007-12-25  Bruno Haible  <bruno@clisp.org>
7276
7277         * modules/localcharset (Notice): New field.
7278         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7279         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7280
7281 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7282             Bruno Haible  <bruno@clisp.org>
7283
7284         Avoid using the syntax symbol() in formatted documentation.
7285         * MODULES.html.sh (func_module): When replacing symbol() with a
7286         hyperlink, remove the parentheses. Show an error if some remain.
7287         Recognize and render the '...' syntax.
7288         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7289         Rework. Add paragraph about GCC's inlining.
7290         * doc/alloca.texi: Likewise.
7291         * doc/error.texi: Remove parentheses from symbol reference.
7292         * doc/gnulib-intro.texi: Likewise.
7293         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7294         * modules/fnmatch (Description): Reword to say "the ... function".
7295         * modules/full-read (Description): Likewise.
7296         * modules/full-write (Description): Likewise.
7297         * modules/safe-read (Description): Likewise.
7298         * modules/safe-write (Description): Likewise.
7299         * modules/strchrnul (Description): Likewise.
7300         * modules/trim (Description): Likewise.
7301         * modules/error (Description): Remove parentheses from symbol
7302         references.
7303         * modules/verror (Description): Likewise.
7304         Reported by Karl Berry.
7305
7306 2007-12-25  Bruno Haible  <bruno@clisp.org>
7307
7308         Fixup after 2007-10-16 commit.
7309         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7310
7311 2007-12-24  Bruno Haible  <bruno@clisp.org>
7312
7313         Make --enable-relocatable work with DESTDIR.
7314         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7315         to compute installdir from destprog.
7316         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7317         also set the RELOC_DESTDIR variable.
7318         Reported by Левашев Иван <octagram@bluebottle.com>.
7319
7320 2007-12-24  Bruno Haible  <bruno@clisp.org>
7321
7322         Fix link error due to xalloc_die().
7323         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7324         of xreadlink.
7325         * lib/relocwrapper.c: Update comments.
7326         * build-aux/install-reloc: Remove xreadlink.c from file list.
7327         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7328         xreadlink.c.
7329         Reported by Левашев Иван <octagram@bluebottle.com>.
7330
7331 2007-12-24  Bruno Haible  <bruno@clisp.org>
7332
7333         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7334         * lib/setenv.h: Remove file.
7335         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7336         lib/setenv.h.
7337         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7338         (Depends-on): Add stdlib.
7339         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7340         gl_FUNC_UNSETENV.
7341         (Include): Replace setenv.h with <stdlib.h>.
7342         * modules/unsetenv: New file.
7343         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7344         * lib/unsetenv.c: Include <stdlib.h> first.
7345         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7346         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7347         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7348         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7349         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7350         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7352         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7353         * doc/functions/unsetenv.texi: Update.
7354         * modules/xsetenv (Depends-on): Add unsetenv.
7355         * modules/getdate (Depends-on): Likewise.
7356         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7357         * lib/xsetenv.c: Don't include setenv.h.
7358         * lib/getdate.y: Likewise.
7359         * lib/relocwrapper.c: Likewise.
7360         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7361         (Depends-on): Add stdlib.
7362         * NEWS: Mention the changes.
7363         Reported by Левашев Иван <octagram@bluebottle.com>.
7364
7365 2007-12-23  Bruno Haible  <bruno@clisp.org>
7366
7367         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7368         indentation.
7369
7370 2007-12-23  Bruno Haible  <bruno@clisp.org>
7371
7372         * lib/c-strcasestr.c: Add more comments.
7373         * lib/c-strstr.c: Likewise.
7374         * lib/mbscasestr.c: Likewise.
7375         * lib/mbsstr.c: Likewise.
7376         * lib/strcasestr.c: Likewise.
7377         * lib/memmem.c: Likewise.
7378
7379 2007-12-23  Bruno Haible  <bruno@clisp.org>
7380
7381         * tests/test-memmem.c: Include <string.h> first.
7382
7383 2007-12-22  Bruno Haible  <bruno@clisp.org>
7384
7385         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7386         the contents of $testsbase.
7387         Reported by Ralf Wildenhues.
7388
7389 2007-12-22  Bruno Haible  <bruno@clisp.org>
7390
7391         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7392         two variables local_ldadd_before, local_ldadd_last.
7393
7394 2007-12-20  Eric Blake  <ebb9@byu.net>
7395
7396         Work around circular library issue when cross-compiling.
7397         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7398         that progname.o does not need to pull in rpl_memcmp.
7399
7400 2007-12-19  Eric Blake  <ebb9@byu.net>
7401
7402         Fix memmem to avoid O(n^2) worst-case complexity.
7403         * lib/memmem.c (knuth_morris_pratt): New function.
7404         (memmem): Use it if first few naive iterations fail.
7405         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7406         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7407         * modules/memchr (License): Likewise.
7408         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7409         malloca.
7410         * tests/test-memmem.c: Rewrite, borrowing ideas from
7411         test-mbsstr1.c; the old version wouldn't even compile!
7412         * modules/memmem-tests: New file.
7413         * lib/string.in.h (rpl_memmem): Add declaration.
7414         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7416         REPLACE_MEMMEM.
7417
7418 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7419
7420         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7421         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7422         before any system include files, and undef after them all.  This
7423         should fix a problem on VMS reported by John E. Malmberg in
7424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7425
7426 2007-12-17  Eric Blake  <ebb9@byu.net>
7427
7428         Revert addition of verify, for BSD/OS.
7429         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7430         can't handle large files, for the sake of obsolete platforms.
7431         * modules/fseeko (Depends-on): Remove verify.
7432         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7433         * doc/functions/ftello.texi (ftello): Likewise.
7434         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7435         Reported by Larry Jones.
7436
7437 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7438
7439         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7440         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7441
7442 2007-12-17  Jim Meyering  <meyering@redhat.com>
7443
7444         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7445         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7446         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7447         * modules/getcwd (Depends-on): Add openat.
7448         Reported by Petr Salinger.
7449
7450 2007-12-17  Bruno Haible  <bruno@clisp.org>
7451
7452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7453         avoid a segmentation fault of the configure test on x86_64 systems.
7454
7455 2007-12-15  Jim Meyering  <meyering@redhat.com>
7456
7457         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7458
7459 2007-12-13  Eric Blake  <ebb9@byu.net>
7460
7461         Another fseek test.
7462         * tests/test-fseek.c (main): Also test ungetc handling.
7463         * tests/test-fseeko.c (main): Likewise.
7464         * modules/fseeko (Depends-on): Add verify.
7465         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7466         large.
7467         Reported by Larry Jones.
7468
7469         Fix fseeko on mingw.
7470         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7471         seek.
7472
7473         Beef up fseek tests.
7474         * tests/test-fseek.c (main): Also test eof handling.
7475         * tests/test-fseeko.c (main): Likewise.
7476         Reported by Larry Jones.
7477
7478 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7479
7480         Fix fseeko on BSD-based platforms.
7481         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7482         successful seek.
7483
7484 2007-12-12  Eric Blake  <ebb9@byu.net>
7485
7486         Allow circular dependency of separate libtests.a
7487         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7488         when use_libtests.
7489
7490 2007-12-11  Eric Blake  <ebb9@byu.net>
7491
7492         Fix bug with -0.0L in previous patch.
7493         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7494         * tests/test-isnan.c (main): Also test on zeroes.
7495         * tests/test-isnanf.c (main): Likewise.
7496         * tests/test-isnanl.h (main): Likewise.
7497
7498         Detect pseudo-denormals on x86 even when cross-compiling.
7499         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7500         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7501         invalid bit patterns that happen to satisfy ==.
7502
7503         Avoid link failures with separate libtests.a.
7504         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7505         last, to satisfy circular dependencies.
7506
7507 2007-12-11  Eric Blake  <ebb9@byu.net>
7508         and Bruno Haible  <bruno@clisp.org>
7509
7510         Fix OpenBSD 4.0 <float.h> handling of long double.
7511         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7512         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7513         * doc/headers/float.texi (float.h): Document OpenBSD bug.
7514
7515 2007-12-11  Jim Meyering  <meyering@redhat.com>
7516
7517         * users.txt: Add libvirt.
7518
7519         Support versions of autoconf prior to 2.59c.
7520         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7521         if it is not already defined.
7522
7523 2007-12-09  Bruno Haible  <bruno@clisp.org>
7524
7525         Let 'gnulib-tool --import' collect sources needed for the tests in
7526         tests/ rather than in lib/.
7527         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7528         argument. If true, add rules to generate libtests.a, and put libtests.a
7529         into $(LDADD). Consider source files in subdirectories and set
7530         uses_subdirs.
7531         (func_emit_initmacro_start, func_emit_initmacro_end,
7532         func_emit_initmacro_done): Pass all arguments explicitly.
7533         (func_import): Determine two module lists main_modules,
7534         testsrelated_modules. Determine use_libtests. Determine two variables
7535         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7536         instead of just sed_transform_lib_file. Determine two variables
7537         main_files and testsrelated_files. Compute 'files' as the union of
7538         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7539         func_add_or_update. In the generated gnulib-comp.m4, collect the
7540         object files for tests/ in different variables than those for lib/.
7541         Substitute LIBTESTS_LIBDEPS.
7542         (func_create_testdir): Combine the uses_subdirs results from
7543         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7544
7545 2007-12-09  Bruno Haible  <bruno@clisp.org>
7546
7547         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7548         the build-aux directory.
7549
7550 2007-12-09  Bruno Haible  <bruno@clisp.org>
7551
7552         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7553         introduced on 2006-09-09.
7554
7555 2007-12-07  Jim Meyering  <meyering@redhat.com>
7556
7557         Let these macros work also with autoconf-2.59.
7558         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
7559         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7560         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7561
7562 2007-12-06  Jim Meyering  <meyering@redhat.com>
7563
7564         Avoid a configure-time syntax error in gl_FUNC_ACL.
7565         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7566         function in each branch, before testing the cache variable.
7567
7568 2007-12-04  Eric Blake  <ebb9@byu.net>
7569
7570         Make scripts executable.
7571         * build-aux/config.guess: Add execute permissions.
7572         * build-aux/config.sub: Likewise.
7573         * build-aux/gendocs.sh: Likewise.
7574
7575         Fix frexp on mingw.
7576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7577         cross-compiling.
7578         * doc/functions/frexp.texi (frexp): Document the bug.
7579
7580         Make cygwin fseeko check more reliable.
7581         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7582         version numbers, rather than unrelated feature check.
7583         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7584         * doc/functions/ftello.texi (ftello): Likewise.
7585         Reported by Bruno Haible.
7586
7587         * m4/strerror.m4: Bump version number.
7588
7589 2007-12-03  Bruno Haible  <bruno@clisp.org>
7590
7591         * doc/functions/mprotect.texi: Mention the mingw problem.
7592
7593 2007-12-03  Eric Blake  <ebb9@byu.net>
7594
7595         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7596         REPLACE_STRERROR is initialized before this macro.
7597
7598 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7599
7600         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7601         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7602         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7603         put -lsec in even for programs other than 'ls'.  This fixes a problem
7604         for gettext reported by Bruno Haible in
7605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7606         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7607         Add support for Solaris 10.  This isn't efficient, but should get the
7608         job done for now.
7609
7610 2007-12-03  James Youngman  <jay@gnu.org>
7611
7612         * doc/regexprops-generic.texi: change "an close-group" to "a
7613         close-group" and "illegal" to "not allowed".
7614
7615 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7616
7617         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7618         pr_byname.h. Needed for the rare case when the maintainer has done
7619         "make maintainer-clean" in the source directory and then attempts a
7620         build outside the source directory.
7621         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7622         scripts_byname.h.
7623
7624 2007-12-02  Martin Lambers <marlam@marlam.de>
7625             Bruno Haible  <bruno@clisp.org>
7626
7627         * lib/getpagesize.h: Remove file.
7628         * lib/unistd.in.h: Include declaration of getpagesize here.
7629         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7630         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7631         HAVE_SYS_PARAM_H.
7632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7633         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7634         * modules/getpagesize (Files): Remove lib/getpagesize.h.
7635         (Depends-on): Add unistd.
7636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7637         (Include): Use <unistd.h> instead of getpagesize.h.
7638         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7639         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7640         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7641         gl_GETPAGESIZE invocation, already handled by module dependency.
7642         * lib/pagealign_alloc.c: Don't include getpagesize.h.
7643
7644 2007-12-02  Bruno Haible  <bruno@clisp.org>
7645
7646         * modules/strings-tests: New file.
7647         * tests/test-strings.c: New file.
7648
7649         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7650         * lib/strings.in.h: New file.
7651         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7652         * m4/strings_h.m4: New file.
7653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7654         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7655         * modules/strings: New file.
7656         * modules/string (Makefile.am): Update.
7657         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7658         Reported by Karl Berry.
7659
7660 2007-12-01  Eric Blake  <ebb9@byu.net>
7661
7662         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7663         accomodate fix in cygwin 1.5.25.
7664
7665 2007-12-01  Jim Meyering  <meyering@redhat.com>
7666
7667         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7668         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7669         that would inhibit utf8-optimization of a regexp containing line-
7670         or buffer-anchors, e.g., `^', `$'.
7671
7672 2007-11-30  Bruno Haible  <bruno@clisp.org>
7673
7674         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7675         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7676         glthread_recursive_lock_init.
7677         * lib/lock.c (glthread_recursive_lock_init)
7678         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7680
7681 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         New function qset_acl, like set_acl but with syscall semantics.
7684         * lib/acl.h (qset_acl): New decl.
7685         * lib/acl.c (qset_acl): New function.
7686         (set_acl): Use new function.  Use more-consistent diagnostics.
7687
7688 2007-11-28  Jim Meyering  <meyering@redhat.com>
7689
7690         * modules/physmem (License): Change from GPL to LGPLv2+.
7691
7692 2007-11-26  Bruno Haible  <bruno@clisp.org>
7693
7694         * lib/vasnprintf.c (decode_long_double): Don't abort if the
7695         'long double' type has excess precision.
7696         Reported by Jim Meyering in
7697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7698
7699 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7700
7701         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7702         Sync from <http://gnu.org/licenses>.
7703         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7704         with license text from same location.
7705         * doc/maintain.texi, doc/standards.texi:  Sync from
7706         <http://savannah.gnu.org/projects/gnustandards>.
7707
7708 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
7709         and Jim Meyering  <meyering@redhat.com>
7710
7711         Adjust getdate' grammar to accept a slightly more regular language.
7712         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7713         Before, the former was rejected.
7714         * lib/getdate.y (digits_to_date_time): New function, factored
7715         out of ...
7716         (number): ...here.  Just call digits_to_date_time.
7717         (hybrid): New non-terminal to handle an <unsigned number,
7718         signed relative offset> sequence consistently.
7719
7720 2007-11-18  Jim Meyering  <meyering@redhat.com>
7721
7722         Pull my changes from coreutils:
7723         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7724         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7725         use of $gnulib_tool_option_extras, so that it's separated from the
7726         preceding argument.
7727
7728         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7729         * build-aux/bootstrap (cp_mark_as_generated): Create any required
7730         parent destination directories before copying a file into place.
7731
7732 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
7733
7734         bootstrap: work also with 4-argument variant of AC_INIT
7735         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7736
7737 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7738
7739         Port test-getaddrinfo to Solaris.
7740         Problem reported by Bruno Haible in
7741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7742         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7743         explanation of setting 'hints'.
7744         Don't reject an implementation merely because it returns EAI_SERVICE.
7745         (EAI_SERVICE): Define to 0 if not defined.
7746
7747 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7748
7749         The license of gnu-make and posix-shell is now "GPLed build tool".
7750         * modules/gnu-make (License): Likewise.
7751         * modules/posix-shell (License): Likewise.
7752
7753         New module posix-shell, for determining a POSIX shell
7754         or perhaps something that is close enough to a POSIX shell.
7755         * m4/posix-shell.m4: New file.
7756         * modules/posix-shell: New file.
7757
7758         * MODULES.html.sh: Mention new module.
7759
7760         New module gnu-make, for determining whether we're using GNU Make.
7761         * m4/gnu-make.m4: New file.
7762         * modules/gnu-make: New file.
7763         * MODULES.html.sh: Mention new module.
7764
7765 2007-11-14  Jim Meyering  <meyering@redhat.com>
7766
7767         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7768         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7769         use this macro to create a function _definition_.
7770         Remove useless "#undef ARGMATCH_DIE".
7771
7772 2007-11-14  Bruno Haible  <bruno@clisp.org>
7773
7774         * lib/config.charset: Update for OpenBSD 4.1.
7775         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7776
7777 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7778
7779         Document 64-bit #if problems in stdint.texi.
7780         * doc/headers/stdint.texi (stdint.h): Mention problems with
7781         64-bit-#if, and how to work around them.
7782
7783         Don't insist on 'long long int' support in the preprocessor.  It
7784         breaks too many things.  For example, PRIdMAX still uses a 'long
7785         long int' format with the latest Sun compiler, even though
7786         HAVE_LONG_LONG_INT isn't defined due to that compiler's
7787         preprocessor problem.  This causes the latest coreutils to dump
7788         core on Solaris 10 sparc with the Sun C compiler.
7789         Instead, fix the 2007-10-16 problem in a different way, by evaluating
7790         the troublesome expressions at configure-time, not at #if-time.
7791         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7792         preprocessor.
7793         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7794         compile-time C checks, done at 'configure'-time.
7795         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7796         * modules/inttypes (Makefile): Substitute the new symbols that
7797         gl_INTTYPES_H now generates.
7798         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7799
7800 2007-11-12  Bruno Haible  <bruno@clisp.org>
7801
7802         Tests for Unicode character classification functions.
7803
7804         * modules/unictype/bidicategory-byname-tests: New file.
7805         * modules/unictype/bidicategory-name-tests: New file.
7806         * modules/unictype/bidicategory-of-tests: New file.
7807         * modules/unictype/bidicategory-test-tests: New file.
7808         * modules/unictype/block-list-tests: New file.
7809         * modules/unictype/block-of-tests: New file.
7810         * modules/unictype/block-test-tests: New file.
7811         * modules/unictype/category-C-tests: New file.
7812         * modules/unictype/category-Cc-tests: New file.
7813         * modules/unictype/category-Cf-tests: New file.
7814         * modules/unictype/category-Cn-tests: New file.
7815         * modules/unictype/category-Co-tests: New file.
7816         * modules/unictype/category-Cs-tests: New file.
7817         * modules/unictype/category-L-tests: New file.
7818         * modules/unictype/category-Ll-tests: New file.
7819         * modules/unictype/category-Lm-tests: New file.
7820         * modules/unictype/category-Lo-tests: New file.
7821         * modules/unictype/category-Lt-tests: New file.
7822         * modules/unictype/category-Lu-tests: New file.
7823         * modules/unictype/category-M-tests: New file.
7824         * modules/unictype/category-Mc-tests: New file.
7825         * modules/unictype/category-Me-tests: New file.
7826         * modules/unictype/category-Mn-tests: New file.
7827         * modules/unictype/category-N-tests: New file.
7828         * modules/unictype/category-Nd-tests: New file.
7829         * modules/unictype/category-Nl-tests: New file.
7830         * modules/unictype/category-No-tests: New file.
7831         * modules/unictype/category-P-tests: New file.
7832         * modules/unictype/category-Pc-tests: New file.
7833         * modules/unictype/category-Pd-tests: New file.
7834         * modules/unictype/category-Pe-tests: New file.
7835         * modules/unictype/category-Pf-tests: New file.
7836         * modules/unictype/category-Pi-tests: New file.
7837         * modules/unictype/category-Po-tests: New file.
7838         * modules/unictype/category-Ps-tests: New file.
7839         * modules/unictype/category-S-tests: New file.
7840         * modules/unictype/category-Sc-tests: New file.
7841         * modules/unictype/category-Sk-tests: New file.
7842         * modules/unictype/category-Sm-tests: New file.
7843         * modules/unictype/category-So-tests: New file.
7844         * modules/unictype/category-Z-tests: New file.
7845         * modules/unictype/category-Zl-tests: New file.
7846         * modules/unictype/category-Zp-tests: New file.
7847         * modules/unictype/category-Zs-tests: New file.
7848         * modules/unictype/category-and-not-tests: New file.
7849         * modules/unictype/category-and-tests: New file.
7850         * modules/unictype/category-byname-tests: New file.
7851         * modules/unictype/category-name-tests: New file.
7852         * modules/unictype/category-none-tests: New file.
7853         * modules/unictype/category-of-tests: New file.
7854         * modules/unictype/category-or-tests: New file.
7855         * modules/unictype/category-test-withtable-tests: New file.
7856         * modules/unictype/combining-class-tests: New file.
7857         * modules/unictype/ctype-alnum-tests: New file.
7858         * modules/unictype/ctype-alpha-tests: New file.
7859         * modules/unictype/ctype-blank-tests: New file.
7860         * modules/unictype/ctype-cntrl-tests: New file.
7861         * modules/unictype/ctype-digit-tests: New file.
7862         * modules/unictype/ctype-graph-tests: New file.
7863         * modules/unictype/ctype-lower-tests: New file.
7864         * modules/unictype/ctype-print-tests: New file.
7865         * modules/unictype/ctype-punct-tests: New file.
7866         * modules/unictype/ctype-space-tests: New file.
7867         * modules/unictype/ctype-upper-tests: New file.
7868         * modules/unictype/ctype-xdigit-tests: New file.
7869         * modules/unictype/decimal-digit-tests: New file.
7870         * modules/unictype/digit-tests: New file.
7871         * modules/unictype/mirror-tests: New file.
7872         * modules/unictype/numeric-tests: New file.
7873         * modules/unictype/property-alphabetic-tests: New file.
7874         * modules/unictype/property-ascii-hex-digit-tests: New file.
7875         * modules/unictype/property-bidi-arabic-digit-tests: New file.
7876         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7877         * modules/unictype/property-bidi-block-separator-tests: New file.
7878         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7879         * modules/unictype/property-bidi-common-separator-tests: New file.
7880         * modules/unictype/property-bidi-control-tests: New file.
7881         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7882         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7883         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7884         * modules/unictype/property-bidi-european-digit-tests: New file.
7885         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7886         * modules/unictype/property-bidi-left-to-right-tests: New file.
7887         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7888         * modules/unictype/property-bidi-other-neutral-tests: New file.
7889         * modules/unictype/property-bidi-pdf-tests: New file.
7890         * modules/unictype/property-bidi-segment-separator-tests: New file.
7891         * modules/unictype/property-bidi-whitespace-tests: New file.
7892         * modules/unictype/property-byname-tests: New file.
7893         * modules/unictype/property-combining-tests: New file.
7894         * modules/unictype/property-composite-tests: New file.
7895         * modules/unictype/property-currency-symbol-tests: New file.
7896         * modules/unictype/property-dash-tests: New file.
7897         * modules/unictype/property-decimal-digit-tests: New file.
7898         * modules/unictype/property-default-ignorable-code-point-tests: New file.
7899         * modules/unictype/property-deprecated-tests: New file.
7900         * modules/unictype/property-diacritic-tests: New file.
7901         * modules/unictype/property-extender-tests: New file.
7902         * modules/unictype/property-format-control-tests: New file.
7903         * modules/unictype/property-grapheme-base-tests: New file.
7904         * modules/unictype/property-grapheme-extend-tests: New file.
7905         * modules/unictype/property-grapheme-link-tests: New file.
7906         * modules/unictype/property-hex-digit-tests: New file.
7907         * modules/unictype/property-hyphen-tests: New file.
7908         * modules/unictype/property-id-continue-tests: New file.
7909         * modules/unictype/property-id-start-tests: New file.
7910         * modules/unictype/property-ideographic-tests: New file.
7911         * modules/unictype/property-ids-binary-operator-tests: New file.
7912         * modules/unictype/property-ids-trinary-operator-tests: New file.
7913         * modules/unictype/property-ignorable-control-tests: New file.
7914         * modules/unictype/property-iso-control-tests: New file.
7915         * modules/unictype/property-join-control-tests: New file.
7916         * modules/unictype/property-left-of-pair-tests: New file.
7917         * modules/unictype/property-line-separator-tests: New file.
7918         * modules/unictype/property-logical-order-exception-tests: New file.
7919         * modules/unictype/property-lowercase-tests: New file.
7920         * modules/unictype/property-math-tests: New file.
7921         * modules/unictype/property-non-break-tests: New file.
7922         * modules/unictype/property-not-a-character-tests: New file.
7923         * modules/unictype/property-numeric-tests: New file.
7924         * modules/unictype/property-other-alphabetic-tests: New file.
7925         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
7926         * modules/unictype/property-other-grapheme-extend-tests: New file.
7927         * modules/unictype/property-other-id-continue-tests: New file.
7928         * modules/unictype/property-other-id-start-tests: New file.
7929         * modules/unictype/property-other-lowercase-tests: New file.
7930         * modules/unictype/property-other-math-tests: New file.
7931         * modules/unictype/property-other-uppercase-tests: New file.
7932         * modules/unictype/property-paired-punctuation-tests: New file.
7933         * modules/unictype/property-paragraph-separator-tests: New file.
7934         * modules/unictype/property-pattern-syntax-tests: New file.
7935         * modules/unictype/property-pattern-white-space-tests: New file.
7936         * modules/unictype/property-private-use-tests: New file.
7937         * modules/unictype/property-punctuation-tests: New file.
7938         * modules/unictype/property-quotation-mark-tests: New file.
7939         * modules/unictype/property-radical-tests: New file.
7940         * modules/unictype/property-sentence-terminal-tests: New file.
7941         * modules/unictype/property-soft-dotted-tests: New file.
7942         * modules/unictype/property-space-tests: New file.
7943         * modules/unictype/property-terminal-punctuation-tests: New file.
7944         * modules/unictype/property-test-tests: New file.
7945         * modules/unictype/property-titlecase-tests: New file.
7946         * modules/unictype/property-unassigned-code-value-tests: New file.
7947         * modules/unictype/property-unified-ideograph-tests: New file.
7948         * modules/unictype/property-uppercase-tests: New file.
7949         * modules/unictype/property-variation-selector-tests: New file.
7950         * modules/unictype/property-white-space-tests: New file.
7951         * modules/unictype/property-xid-continue-tests: New file.
7952         * modules/unictype/property-xid-start-tests: New file.
7953         * modules/unictype/property-zero-width-tests: New file.
7954         * modules/unictype/scripts-tests: New file.
7955         * modules/unictype/syntax-c-ident-tests: New file.
7956         * modules/unictype/syntax-c-whitespace-tests: New file.
7957         * modules/unictype/syntax-java-ident-tests: New file.
7958         * modules/unictype/syntax-java-whitespace-tests: New file.
7959         * tests/unictype/test-bidi_byname.c: New file.
7960         * tests/unictype/test-bidi_name.c: New file.
7961         * tests/unictype/test-bidi_of.c: New file.
7962         * tests/unictype/test-bidi_test.c: New file.
7963         * tests/unictype/test-block_list.c: New file.
7964         * tests/unictype/test-block_of.c: New file.
7965         * tests/unictype/test-block_test.c: New file.
7966         * tests/unictype/test-categ_and.c: New file.
7967         * tests/unictype/test-categ_and_not.c: New file.
7968         * tests/unictype/test-categ_byname.c: New file.
7969         * tests/unictype/test-categ_name.c: New file.
7970         * tests/unictype/test-categ_none.c: New file.
7971         * tests/unictype/test-categ_of.c: New file.
7972         * tests/unictype/test-categ_or.c: New file.
7973         * tests/unictype/test-categ_test_withtable.c: New file.
7974         * tests/unictype/test-combining.c: New file.
7975         * tests/unictype/test-decdigit.c: New file.
7976         * tests/unictype/test-digit.c: New file.
7977         * tests/unictype/test-mirror.c: New file.
7978         * tests/unictype/test-numeric.c: New file.
7979         * tests/unictype/test-pr_byname.c: New file.
7980         * tests/unictype/test-pr_test.c: New file.
7981         * tests/unictype/test-predicate-part1.h: New file.
7982         * tests/unictype/test-predicate-part2.h: New file.
7983         * tests/unictype/test-scripts.c: New file.
7984         * tests/unictype/test-sy_c_ident.c: New file.
7985         * tests/unictype/test-sy_java_ident.c: New file.
7986
7987         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
7988         for Unicode 5.0.0.
7989         * tests/unictype/test-categ_Cc.c: Likewise.
7990         * tests/unictype/test-categ_Cf.c: Likewise.
7991         * tests/unictype/test-categ_Cn.c: Likewise.
7992         * tests/unictype/test-categ_Co.c: Likewise.
7993         * tests/unictype/test-categ_Cs.c: Likewise.
7994         * tests/unictype/test-categ_L.c: Likewise.
7995         * tests/unictype/test-categ_Ll.c: Likewise.
7996         * tests/unictype/test-categ_Lm.c: Likewise.
7997         * tests/unictype/test-categ_Lo.c: Likewise.
7998         * tests/unictype/test-categ_Lt.c: Likewise.
7999         * tests/unictype/test-categ_Lu.c: Likewise.
8000         * tests/unictype/test-categ_M.c: Likewise.
8001         * tests/unictype/test-categ_Mc.c: Likewise.
8002         * tests/unictype/test-categ_Me.c: Likewise.
8003         * tests/unictype/test-categ_Mn.c: Likewise.
8004         * tests/unictype/test-categ_N.c: Likewise.
8005         * tests/unictype/test-categ_Nd.c: Likewise.
8006         * tests/unictype/test-categ_Nl.c: Likewise.
8007         * tests/unictype/test-categ_No.c: Likewise.
8008         * tests/unictype/test-categ_P.c: Likewise.
8009         * tests/unictype/test-categ_Pc.c: Likewise.
8010         * tests/unictype/test-categ_Pd.c: Likewise.
8011         * tests/unictype/test-categ_Pe.c: Likewise.
8012         * tests/unictype/test-categ_Pf.c: Likewise.
8013         * tests/unictype/test-categ_Pi.c: Likewise.
8014         * tests/unictype/test-categ_Po.c: Likewise.
8015         * tests/unictype/test-categ_Ps.c: Likewise.
8016         * tests/unictype/test-categ_S.c: Likewise.
8017         * tests/unictype/test-categ_Sc.c: Likewise.
8018         * tests/unictype/test-categ_Sk.c: Likewise.
8019         * tests/unictype/test-categ_Sm.c: Likewise.
8020         * tests/unictype/test-categ_So.c: Likewise.
8021         * tests/unictype/test-categ_Z.c: Likewise.
8022         * tests/unictype/test-categ_Zl.c: Likewise.
8023         * tests/unictype/test-categ_Zp.c: Likewise.
8024         * tests/unictype/test-categ_Zs.c: Likewise.
8025         * tests/unictype/test-ctype_alnum.c: Likewise.
8026         * tests/unictype/test-ctype_alpha.c: Likewise.
8027         * tests/unictype/test-ctype_blank.c: Likewise.
8028         * tests/unictype/test-ctype_cntrl.c: Likewise.
8029         * tests/unictype/test-ctype_digit.c: Likewise.
8030         * tests/unictype/test-ctype_graph.c: Likewise.
8031         * tests/unictype/test-ctype_lower.c: Likewise.
8032         * tests/unictype/test-ctype_print.c: Likewise.
8033         * tests/unictype/test-ctype_punct.c: Likewise.
8034         * tests/unictype/test-ctype_space.c: Likewise.
8035         * tests/unictype/test-ctype_upper.c: Likewise.
8036         * tests/unictype/test-ctype_xdigit.c: Likewise.
8037         * tests/unictype/test-decdigit.h: Likewise.
8038         * tests/unictype/test-digit.h: Likewise.
8039         * tests/unictype/test-numeric.h: Likewise.
8040         * tests/unictype/test-pr_alphabetic.c: Likewise.
8041         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8042         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8043         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8044         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8045         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8046         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8047         * tests/unictype/test-pr_bidi_control.c: Likewise.
8048         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8049         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8050         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8051         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8052         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8053         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8054         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8055         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8056         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8057         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8058         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8059         * tests/unictype/test-pr_combining.c: Likewise.
8060         * tests/unictype/test-pr_composite.c: Likewise.
8061         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8062         * tests/unictype/test-pr_dash.c: Likewise.
8063         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8064         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8065         * tests/unictype/test-pr_deprecated.c: Likewise.
8066         * tests/unictype/test-pr_diacritic.c: Likewise.
8067         * tests/unictype/test-pr_extender.c: Likewise.
8068         * tests/unictype/test-pr_format_control.c: Likewise.
8069         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8070         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8071         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8072         * tests/unictype/test-pr_hex_digit.c: Likewise.
8073         * tests/unictype/test-pr_hyphen.c: Likewise.
8074         * tests/unictype/test-pr_id_continue.c: Likewise.
8075         * tests/unictype/test-pr_id_start.c: Likewise.
8076         * tests/unictype/test-pr_ideographic.c: Likewise.
8077         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8078         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8079         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8080         * tests/unictype/test-pr_iso_control.c: Likewise.
8081         * tests/unictype/test-pr_join_control.c: Likewise.
8082         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8083         * tests/unictype/test-pr_line_separator.c: Likewise.
8084         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8085         * tests/unictype/test-pr_lowercase.c: Likewise.
8086         * tests/unictype/test-pr_math.c: Likewise.
8087         * tests/unictype/test-pr_non_break.c: Likewise.
8088         * tests/unictype/test-pr_not_a_character.c: Likewise.
8089         * tests/unictype/test-pr_numeric.c: Likewise.
8090         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8091         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8092         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8093         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8094         * tests/unictype/test-pr_other_id_start.c: Likewise.
8095         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8096         * tests/unictype/test-pr_other_math.c: Likewise.
8097         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8098         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8099         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8100         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8101         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8102         * tests/unictype/test-pr_private_use.c: Likewise.
8103         * tests/unictype/test-pr_punctuation.c: Likewise.
8104         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8105         * tests/unictype/test-pr_radical.c: Likewise.
8106         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8107         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8108         * tests/unictype/test-pr_space.c: Likewise.
8109         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8110         * tests/unictype/test-pr_titlecase.c: Likewise.
8111         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8112         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8113         * tests/unictype/test-pr_uppercase.c: Likewise.
8114         * tests/unictype/test-pr_variation_selector.c: Likewise.
8115         * tests/unictype/test-pr_white_space.c: Likewise.
8116         * tests/unictype/test-pr_xid_continue.c: Likewise.
8117         * tests/unictype/test-pr_xid_start.c: Likewise.
8118         * tests/unictype/test-pr_zero_width.c: Likewise.
8119         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8120         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8121
8122 2007-11-12  Bruno Haible  <bruno@clisp.org>
8123
8124         Unicode character classification functions.
8125         * lib/unictype.h: New file.
8126         * modules/unictype/base: New file.
8127         * modules/unictype/category-L: New file.
8128         * modules/unictype/category-Lu: New file.
8129         * modules/unictype/category-Ll: New file.
8130         * modules/unictype/category-Lt: New file.
8131         * modules/unictype/category-Lm: New file.
8132         * modules/unictype/category-Lo: New file.
8133         * modules/unictype/category-M: New file.
8134         * modules/unictype/category-Mn: New file.
8135         * modules/unictype/category-Mc: New file.
8136         * modules/unictype/category-Me: New file.
8137         * modules/unictype/category-N: New file.
8138         * modules/unictype/category-Nd: New file.
8139         * modules/unictype/category-Nl: New file.
8140         * modules/unictype/category-No: New file.
8141         * modules/unictype/category-P: New file.
8142         * modules/unictype/category-Pc: New file.
8143         * modules/unictype/category-Pd: New file.
8144         * modules/unictype/category-Ps: New file.
8145         * modules/unictype/category-Pe: New file.
8146         * modules/unictype/category-Pi: New file.
8147         * modules/unictype/category-Pf: New file.
8148         * modules/unictype/category-Po: New file.
8149         * modules/unictype/category-S: New file.
8150         * modules/unictype/category-Sm: New file.
8151         * modules/unictype/category-Sc: New file.
8152         * modules/unictype/category-Sk: New file.
8153         * modules/unictype/category-So: New file.
8154         * modules/unictype/category-Z: New file.
8155         * modules/unictype/category-Zs: New file.
8156         * modules/unictype/category-Zl: New file.
8157         * modules/unictype/category-Zp: New file.
8158         * modules/unictype/category-C: New file.
8159         * modules/unictype/category-Cc: New file.
8160         * modules/unictype/category-Cf: New file.
8161         * modules/unictype/category-Cs: New file.
8162         * modules/unictype/category-Co: New file.
8163         * modules/unictype/category-Cn: New file.
8164         * modules/unictype/category-or: New file.
8165         * modules/unictype/category-of: New file.
8166         * modules/unictype/category-test: New file.
8167         * modules/unictype/category-test-withtable: New file.
8168         * modules/unictype/category-byname: New file.
8169         * modules/unictype/category-none: New file.
8170         * modules/unictype/category-and: New file.
8171         * modules/unictype/category-and-not: New file.
8172         * modules/unictype/category-name: New file.
8173         * modules/unictype/combining-class: New file.
8174         * modules/unictype/category-all: New file.
8175         * modules/unictype/bidicategory-all: New file.
8176         * modules/unictype/bidicategory-byname: New file.
8177         * modules/unictype/bidicategory-name: New file.
8178         * modules/unictype/bidicategory-of: New file.
8179         * modules/unictype/bidicategory-test: New file.
8180         * modules/unictype/decimal-digit: New file.
8181         * modules/unictype/digit: New file.
8182         * modules/unictype/numeric: New file.
8183         * modules/unictype/mirror: New file.
8184         * modules/unictype/property-white-space: New file.
8185         * modules/unictype/property-alphabetic: New file.
8186         * modules/unictype/property-other-alphabetic: New file.
8187         * modules/unictype/property-not-a-character: New file.
8188         * modules/unictype/property-default-ignorable-code-point: New file.
8189         * modules/unictype/property-other-default-ignorable-code-point: New
8190         file.
8191         * modules/unictype/property-deprecated: New file.
8192         * modules/unictype/property-logical-order-exception: New file.
8193         * modules/unictype/property-variation-selector: New file.
8194         * modules/unictype/property-private-use: New file.
8195         * modules/unictype/property-unassigned-code-value: New file.
8196         * modules/unictype/property-uppercase: New file.
8197         * modules/unictype/property-other-uppercase: New file.
8198         * modules/unictype/property-lowercase: New file.
8199         * modules/unictype/property-other-lowercase: New file.
8200         * modules/unictype/property-titlecase: New file.
8201         * modules/unictype/property-soft-dotted: New file.
8202         * modules/unictype/property-id-start: New file.
8203         * modules/unictype/property-other-id-start: New file.
8204         * modules/unictype/property-id-continue: New file.
8205         * modules/unictype/property-other-id-continue: New file.
8206         * modules/unictype/property-xid-start: New file.
8207         * modules/unictype/property-xid-continue: New file.
8208         * modules/unictype/property-pattern-white-space: New file.
8209         * modules/unictype/property-pattern-syntax: New file.
8210         * modules/unictype/property-join-control: New file.
8211         * modules/unictype/property-grapheme-base: New file.
8212         * modules/unictype/property-grapheme-extend: New file.
8213         * modules/unictype/property-other-grapheme-extend: New file.
8214         * modules/unictype/property-grapheme-link: New file.
8215         * modules/unictype/property-bidi-control: New file.
8216         * modules/unictype/property-bidi-left-to-right: New file.
8217         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8218         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8219         * modules/unictype/property-bidi-european-digit: New file.
8220         * modules/unictype/property-bidi-eur-num-separator: New file.
8221         * modules/unictype/property-bidi-eur-num-terminator: New file.
8222         * modules/unictype/property-bidi-arabic-digit: New file.
8223         * modules/unictype/property-bidi-common-separator: New file.
8224         * modules/unictype/property-bidi-block-separator: New file.
8225         * modules/unictype/property-bidi-segment-separator: New file.
8226         * modules/unictype/property-bidi-whitespace: New file.
8227         * modules/unictype/property-bidi-non-spacing-mark: New file.
8228         * modules/unictype/property-bidi-boundary-neutral: New file.
8229         * modules/unictype/property-bidi-pdf: New file.
8230         * modules/unictype/property-bidi-embedding-or-override: New file.
8231         * modules/unictype/property-bidi-other-neutral: New file.
8232         * modules/unictype/property-hex-digit: New file.
8233         * modules/unictype/property-ascii-hex-digit: New file.
8234         * modules/unictype/property-ideographic: New file.
8235         * modules/unictype/property-unified-ideograph: New file.
8236         * modules/unictype/property-radical: New file.
8237         * modules/unictype/property-ids-binary-operator: New file.
8238         * modules/unictype/property-ids-trinary-operator: New file.
8239         * modules/unictype/property-zero-width: New file.
8240         * modules/unictype/property-space: New file.
8241         * modules/unictype/property-non-break: New file.
8242         * modules/unictype/property-iso-control: New file.
8243         * modules/unictype/property-format-control: New file.
8244         * modules/unictype/property-dash: New file.
8245         * modules/unictype/property-hyphen: New file.
8246         * modules/unictype/property-punctuation: New file.
8247         * modules/unictype/property-line-separator: New file.
8248         * modules/unictype/property-paragraph-separator: New file.
8249         * modules/unictype/property-quotation-mark: New file.
8250         * modules/unictype/property-sentence-terminal: New file.
8251         * modules/unictype/property-terminal-punctuation: New file.
8252         * modules/unictype/property-currency-symbol: New file.
8253         * modules/unictype/property-math: New file.
8254         * modules/unictype/property-other-math: New file.
8255         * modules/unictype/property-paired-punctuation: New file.
8256         * modules/unictype/property-left-of-pair: New file.
8257         * modules/unictype/property-combining: New file.
8258         * modules/unictype/property-composite: New file.
8259         * modules/unictype/property-decimal-digit: New file.
8260         * modules/unictype/property-numeric: New file.
8261         * modules/unictype/property-diacritic: New file.
8262         * modules/unictype/property-extender: New file.
8263         * modules/unictype/property-ignorable-control: New file.
8264         * modules/unictype/property-test: New file.
8265         * modules/unictype/property-byname: New file.
8266         * modules/unictype/property-all: New file.
8267         * modules/unictype/scripts: New file.
8268         * modules/unictype/scripts-all: New file.
8269         * modules/unictype/block-of: New file.
8270         * modules/unictype/block-test: New file.
8271         * modules/unictype/block-list: New file.
8272         * modules/unictype/block-all: New file.
8273         * modules/unictype/syntax-c-whitespace: New file.
8274         * modules/unictype/syntax-java-whitespace: New file.
8275         * modules/unictype/syntax-c-ident: New file.
8276         * modules/unictype/syntax-java-ident: New file.
8277         * modules/unictype/ctype-alnum: New file.
8278         * modules/unictype/ctype-alpha: New file.
8279         * modules/unictype/ctype-cntrl: New file.
8280         * modules/unictype/ctype-digit: New file.
8281         * modules/unictype/ctype-graph: New file.
8282         * modules/unictype/ctype-lower: New file.
8283         * modules/unictype/ctype-print: New file.
8284         * modules/unictype/ctype-punct: New file.
8285         * modules/unictype/ctype-space: New file.
8286         * modules/unictype/ctype-upper: New file.
8287         * modules/unictype/ctype-xdigit: New file.
8288         * modules/unictype/ctype-blank: New file.
8289         * lib/unictype/bidi_byname.c: New file.
8290         * lib/unictype/bidi_name.c: New file.
8291         * lib/unictype/bidi_of.c: New file.
8292         * lib/unictype/bidi_test.c: New file.
8293         * lib/unictype/bitmap.h: New file.
8294         * lib/unictype/block_test.c: New file.
8295         * lib/unictype/blocks.c: New file.
8296         * lib/unictype/categ_C.c: New file.
8297         * lib/unictype/categ_Cc.c: New file.
8298         * lib/unictype/categ_Cf.c: New file.
8299         * lib/unictype/categ_Cn.c: New file.
8300         * lib/unictype/categ_Co.c: New file.
8301         * lib/unictype/categ_Cs.c: New file.
8302         * lib/unictype/categ_L.c: New file.
8303         * lib/unictype/categ_Ll.c: New file.
8304         * lib/unictype/categ_Lm.c: New file.
8305         * lib/unictype/categ_Lo.c: New file.
8306         * lib/unictype/categ_Lt.c: New file.
8307         * lib/unictype/categ_Lu.c: New file.
8308         * lib/unictype/categ_M.c: New file.
8309         * lib/unictype/categ_Mc.c: New file.
8310         * lib/unictype/categ_Me.c: New file.
8311         * lib/unictype/categ_Mn.c: New file.
8312         * lib/unictype/categ_N.c: New file.
8313         * lib/unictype/categ_Nd.c: New file.
8314         * lib/unictype/categ_Nl.c: New file.
8315         * lib/unictype/categ_No.c: New file.
8316         * lib/unictype/categ_P.c: New file.
8317         * lib/unictype/categ_Pc.c: New file.
8318         * lib/unictype/categ_Pd.c: New file.
8319         * lib/unictype/categ_Pe.c: New file.
8320         * lib/unictype/categ_Pf.c: New file.
8321         * lib/unictype/categ_Pi.c: New file.
8322         * lib/unictype/categ_Po.c: New file.
8323         * lib/unictype/categ_Ps.c: New file.
8324         * lib/unictype/categ_S.c: New file.
8325         * lib/unictype/categ_Sc.c: New file.
8326         * lib/unictype/categ_Sk.c: New file.
8327         * lib/unictype/categ_Sm.c: New file.
8328         * lib/unictype/categ_So.c: New file.
8329         * lib/unictype/categ_Z.c: New file.
8330         * lib/unictype/categ_Zl.c: New file.
8331         * lib/unictype/categ_Zp.c: New file.
8332         * lib/unictype/categ_Zs.c: New file.
8333         * lib/unictype/categ_and.c: New file.
8334         * lib/unictype/categ_and_not.c: New file.
8335         * lib/unictype/categ_byname.c: New file.
8336         * lib/unictype/categ_name.c: New file.
8337         * lib/unictype/categ_none.c: New file.
8338         * lib/unictype/categ_of.c: New file.
8339         * lib/unictype/categ_or.c: New file.
8340         * lib/unictype/categ_test.c: New file.
8341         * lib/unictype/combining.c: New file.
8342         * lib/unictype/ctype_alnum.c: New file.
8343         * lib/unictype/ctype_alpha.c: New file.
8344         * lib/unictype/ctype_blank.c: New file.
8345         * lib/unictype/ctype_cntrl.c: New file.
8346         * lib/unictype/ctype_digit.c: New file.
8347         * lib/unictype/ctype_graph.c: New file.
8348         * lib/unictype/ctype_lower.c: New file.
8349         * lib/unictype/ctype_print.c: New file.
8350         * lib/unictype/ctype_punct.c: New file.
8351         * lib/unictype/ctype_space.c: New file.
8352         * lib/unictype/ctype_upper.c: New file.
8353         * lib/unictype/ctype_xdigit.c: New file.
8354         * lib/unictype/decdigit.c: New file.
8355         * lib/unictype/digit.c: New file.
8356         * lib/unictype/identsyntaxmap.h: New file.
8357         * lib/unictype/mirror.c: New file.
8358         * lib/unictype/numeric.c: New file.
8359         * lib/unictype/pr_alphabetic.c: New file.
8360         * lib/unictype/pr_ascii_hex_digit.c: New file.
8361         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8362         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8363         * lib/unictype/pr_bidi_block_separator.c: New file.
8364         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8365         * lib/unictype/pr_bidi_common_separator.c: New file.
8366         * lib/unictype/pr_bidi_control.c: New file.
8367         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8368         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8369         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8370         * lib/unictype/pr_bidi_european_digit.c: New file.
8371         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8372         * lib/unictype/pr_bidi_left_to_right.c: New file.
8373         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8374         * lib/unictype/pr_bidi_other_neutral.c: New file.
8375         * lib/unictype/pr_bidi_pdf.c: New file.
8376         * lib/unictype/pr_bidi_segment_separator.c: New file.
8377         * lib/unictype/pr_bidi_whitespace.c: New file.
8378         * lib/unictype/pr_byname.c: New file.
8379         * lib/unictype/pr_byname.gperf: New file.
8380         * lib/unictype/pr_combining.c: New file.
8381         * lib/unictype/pr_composite.c: New file.
8382         * lib/unictype/pr_currency_symbol.c: New file.
8383         * lib/unictype/pr_dash.c: New file.
8384         * lib/unictype/pr_decimal_digit.c: New file.
8385         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8386         * lib/unictype/pr_deprecated.c: New file.
8387         * lib/unictype/pr_diacritic.c: New file.
8388         * lib/unictype/pr_extender.c: New file.
8389         * lib/unictype/pr_format_control.c: New file.
8390         * lib/unictype/pr_grapheme_base.c: New file.
8391         * lib/unictype/pr_grapheme_extend.c: New file.
8392         * lib/unictype/pr_grapheme_link.c: New file.
8393         * lib/unictype/pr_hex_digit.c: New file.
8394         * lib/unictype/pr_hyphen.c: New file.
8395         * lib/unictype/pr_id_continue.c: New file.
8396         * lib/unictype/pr_id_start.c: New file.
8397         * lib/unictype/pr_ideographic.c: New file.
8398         * lib/unictype/pr_ids_binary_operator.c: New file.
8399         * lib/unictype/pr_ids_trinary_operator.c: New file.
8400         * lib/unictype/pr_ignorable_control.c: New file.
8401         * lib/unictype/pr_iso_control.c: New file.
8402         * lib/unictype/pr_join_control.c: New file.
8403         * lib/unictype/pr_left_of_pair.c: New file.
8404         * lib/unictype/pr_line_separator.c: New file.
8405         * lib/unictype/pr_logical_order_exception.c: New file.
8406         * lib/unictype/pr_lowercase.c: New file.
8407         * lib/unictype/pr_math.c: New file.
8408         * lib/unictype/pr_non_break.c: New file.
8409         * lib/unictype/pr_not_a_character.c: New file.
8410         * lib/unictype/pr_numeric.c: New file.
8411         * lib/unictype/pr_other_alphabetic.c: New file.
8412         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8413         * lib/unictype/pr_other_grapheme_extend.c: New file.
8414         * lib/unictype/pr_other_id_continue.c: New file.
8415         * lib/unictype/pr_other_id_start.c: New file.
8416         * lib/unictype/pr_other_lowercase.c: New file.
8417         * lib/unictype/pr_other_math.c: New file.
8418         * lib/unictype/pr_other_uppercase.c: New file.
8419         * lib/unictype/pr_paired_punctuation.c: New file.
8420         * lib/unictype/pr_paragraph_separator.c: New file.
8421         * lib/unictype/pr_pattern_syntax.c: New file.
8422         * lib/unictype/pr_pattern_white_space.c: New file.
8423         * lib/unictype/pr_private_use.c: New file.
8424         * lib/unictype/pr_punctuation.c: New file.
8425         * lib/unictype/pr_quotation_mark.c: New file.
8426         * lib/unictype/pr_radical.c: New file.
8427         * lib/unictype/pr_sentence_terminal.c: New file.
8428         * lib/unictype/pr_soft_dotted.c: New file.
8429         * lib/unictype/pr_space.c: New file.
8430         * lib/unictype/pr_terminal_punctuation.c: New file.
8431         * lib/unictype/pr_test.c: New file.
8432         * lib/unictype/pr_titlecase.c: New file.
8433         * lib/unictype/pr_unassigned_code_value.c: New file.
8434         * lib/unictype/pr_unified_ideograph.c: New file.
8435         * lib/unictype/pr_uppercase.c: New file.
8436         * lib/unictype/pr_variation_selector.c: New file.
8437         * lib/unictype/pr_white_space.c: New file.
8438         * lib/unictype/pr_xid_continue.c: New file.
8439         * lib/unictype/pr_xid_start.c: New file.
8440         * lib/unictype/pr_zero_width.c: New file.
8441         * lib/unictype/scripts.c: New file.
8442         * lib/unictype/sy_c_ident.c: New file.
8443         * lib/unictype/sy_c_whitespace.c: New file.
8444         * lib/unictype/sy_java_ident.c: New file.
8445         * lib/unictype/sy_java_whitespace.c: New file.
8446
8447         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8448         Unicode 5.0.0.
8449         * lib/unictype/blocks.h: Likewise.
8450         * lib/unictype/categ_C.h: Likewise.
8451         * lib/unictype/categ_Cc.h: Likewise.
8452         * lib/unictype/categ_Cf.h: Likewise.
8453         * lib/unictype/categ_Cn.h: Likewise.
8454         * lib/unictype/categ_Co.h: Likewise.
8455         * lib/unictype/categ_Cs.h: Likewise.
8456         * lib/unictype/categ_L.h: Likewise.
8457         * lib/unictype/categ_Ll.h: Likewise.
8458         * lib/unictype/categ_Lm.h: Likewise.
8459         * lib/unictype/categ_Lo.h: Likewise.
8460         * lib/unictype/categ_Lt.h: Likewise.
8461         * lib/unictype/categ_Lu.h: Likewise.
8462         * lib/unictype/categ_M.h: Likewise.
8463         * lib/unictype/categ_Mc.h: Likewise.
8464         * lib/unictype/categ_Me.h: Likewise.
8465         * lib/unictype/categ_Mn.h: Likewise.
8466         * lib/unictype/categ_N.h: Likewise.
8467         * lib/unictype/categ_Nd.h: Likewise.
8468         * lib/unictype/categ_Nl.h: Likewise.
8469         * lib/unictype/categ_No.h: Likewise.
8470         * lib/unictype/categ_P.h: Likewise.
8471         * lib/unictype/categ_Pc.h: Likewise.
8472         * lib/unictype/categ_Pd.h: Likewise.
8473         * lib/unictype/categ_Pe.h: Likewise.
8474         * lib/unictype/categ_Pf.h: Likewise.
8475         * lib/unictype/categ_Pi.h: Likewise.
8476         * lib/unictype/categ_Po.h: Likewise.
8477         * lib/unictype/categ_Ps.h: Likewise.
8478         * lib/unictype/categ_S.h: Likewise.
8479         * lib/unictype/categ_Sc.h: Likewise.
8480         * lib/unictype/categ_Sk.h: Likewise.
8481         * lib/unictype/categ_Sm.h: Likewise.
8482         * lib/unictype/categ_So.h: Likewise.
8483         * lib/unictype/categ_Z.h: Likewise.
8484         * lib/unictype/categ_Zl.h: Likewise.
8485         * lib/unictype/categ_Zp.h: Likewise.
8486         * lib/unictype/categ_Zs.h: Likewise.
8487         * lib/unictype/categ_of.h: Likewise.
8488         * lib/unictype/combining.h: Likewise.
8489         * lib/unictype/ctype_alnum.h: Likewise.
8490         * lib/unictype/ctype_alpha.h: Likewise.
8491         * lib/unictype/ctype_blank.h: Likewise.
8492         * lib/unictype/ctype_cntrl.h: Likewise.
8493         * lib/unictype/ctype_digit.h: Likewise.
8494         * lib/unictype/ctype_graph.h: Likewise.
8495         * lib/unictype/ctype_lower.h: Likewise.
8496         * lib/unictype/ctype_print.h: Likewise.
8497         * lib/unictype/ctype_punct.h: Likewise.
8498         * lib/unictype/ctype_space.h: Likewise.
8499         * lib/unictype/ctype_upper.h: Likewise.
8500         * lib/unictype/ctype_xdigit.h: Likewise.
8501         * lib/unictype/decdigit.h: Likewise.
8502         * lib/unictype/digit.h: Likewise.
8503         * lib/unictype/mirror.h: Likewise.
8504         * lib/unictype/numeric.h: Likewise.
8505         * lib/unictype/pr_alphabetic.h: Likewise.
8506         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8507         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8508         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8509         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8510         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8511         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8512         * lib/unictype/pr_bidi_control.h: Likewise.
8513         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8514         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8515         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8516         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8517         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8518         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8519         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8520         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8521         * lib/unictype/pr_bidi_pdf.h: Likewise.
8522         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8523         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8524         * lib/unictype/pr_combining.h: Likewise.
8525         * lib/unictype/pr_composite.h: Likewise.
8526         * lib/unictype/pr_currency_symbol.h: Likewise.
8527         * lib/unictype/pr_dash.h: Likewise.
8528         * lib/unictype/pr_decimal_digit.h: Likewise.
8529         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8530         * lib/unictype/pr_deprecated.h: Likewise.
8531         * lib/unictype/pr_diacritic.h: Likewise.
8532         * lib/unictype/pr_extender.h: Likewise.
8533         * lib/unictype/pr_format_control.h: Likewise.
8534         * lib/unictype/pr_grapheme_base.h: Likewise.
8535         * lib/unictype/pr_grapheme_extend.h: Likewise.
8536         * lib/unictype/pr_grapheme_link.h: Likewise.
8537         * lib/unictype/pr_hex_digit.h: Likewise.
8538         * lib/unictype/pr_hyphen.h: Likewise.
8539         * lib/unictype/pr_id_continue.h: Likewise.
8540         * lib/unictype/pr_id_start.h: Likewise.
8541         * lib/unictype/pr_ideographic.h: Likewise.
8542         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8543         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8544         * lib/unictype/pr_ignorable_control.h: Likewise.
8545         * lib/unictype/pr_iso_control.h: Likewise.
8546         * lib/unictype/pr_join_control.h: Likewise.
8547         * lib/unictype/pr_left_of_pair.h: Likewise.
8548         * lib/unictype/pr_line_separator.h: Likewise.
8549         * lib/unictype/pr_logical_order_exception.h: Likewise.
8550         * lib/unictype/pr_lowercase.h: Likewise.
8551         * lib/unictype/pr_math.h: Likewise.
8552         * lib/unictype/pr_non_break.h: Likewise.
8553         * lib/unictype/pr_not_a_character.h: Likewise.
8554         * lib/unictype/pr_numeric.h: Likewise.
8555         * lib/unictype/pr_other_alphabetic.h: Likewise.
8556         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8557         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8558         * lib/unictype/pr_other_id_continue.h: Likewise.
8559         * lib/unictype/pr_other_id_start.h: Likewise.
8560         * lib/unictype/pr_other_lowercase.h: Likewise.
8561         * lib/unictype/pr_other_math.h: Likewise.
8562         * lib/unictype/pr_other_uppercase.h: Likewise.
8563         * lib/unictype/pr_paired_punctuation.h: Likewise.
8564         * lib/unictype/pr_paragraph_separator.h: Likewise.
8565         * lib/unictype/pr_pattern_syntax.h: Likewise.
8566         * lib/unictype/pr_pattern_white_space.h: Likewise.
8567         * lib/unictype/pr_private_use.h: Likewise.
8568         * lib/unictype/pr_punctuation.h: Likewise.
8569         * lib/unictype/pr_quotation_mark.h: Likewise.
8570         * lib/unictype/pr_radical.h: Likewise.
8571         * lib/unictype/pr_sentence_terminal.h: Likewise.
8572         * lib/unictype/pr_soft_dotted.h: Likewise.
8573         * lib/unictype/pr_space.h: Likewise.
8574         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8575         * lib/unictype/pr_titlecase.h: Likewise.
8576         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8577         * lib/unictype/pr_unified_ideograph.h: Likewise.
8578         * lib/unictype/pr_uppercase.h: Likewise.
8579         * lib/unictype/pr_variation_selector.h: Likewise.
8580         * lib/unictype/pr_white_space.h: Likewise.
8581         * lib/unictype/pr_xid_continue.h: Likewise.
8582         * lib/unictype/pr_xid_start.h: Likewise.
8583         * lib/unictype/pr_zero_width.h: Likewise.
8584         * lib/unictype/scripts.h: Likewise.
8585         * lib/unictype/scripts_byname.gperf: Likewise.
8586         * lib/unictype/sy_c_ident.h: Likewise.
8587         * lib/unictype/sy_c_whitespace.h: Likewise.
8588         * lib/unictype/sy_java_ident.h: Likewise.
8589         * lib/unictype/sy_java_whitespace.h: Likewise.
8590
8591         * lib/unictype/Makefile: New file.
8592         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8593         glibc.
8594         * lib/unictype/3level.h: New file, copied from glibc.
8595         * lib/unictype/3levelbit.h: New file.
8596
8597 2007-11-11  Bruno Haible  <bruno@clisp.org>
8598
8599         * modules/gperf: New file.
8600         * modules/iconv_open (Depends-on): Add it.
8601         (Makefile.am): Remove the GPERF definition.
8602
8603 2007-11-11  Bruno Haible  <bruno@clisp.org>
8604
8605         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8606         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8607
8608 2007-11-11  Bruno Haible  <bruno@clisp.org>
8609
8610         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8611         (usage): Remove function.
8612
8613 2007-11-11  Bruno Haible  <bruno@clisp.org>
8614
8615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8616         gl_FUNC_CEILF_LIBS.
8617         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8618         gl_FUNC_CEIL_LIBS.
8619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8620         gl_FUNC_CEILL_LIBS.
8621         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8622         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8623         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8624
8625 2007-11-11  Bruno Haible  <bruno@clisp.org>
8626
8627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8628         roundf were declared but do not exist on functions.
8629         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8630         roundl were declared but do not exist on functions.
8631         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8632         HAVE_FLOORL_AND_CEILL, respectively.
8633         Needed for Sun C on Solaris 10.
8634
8635 2007-11-11  Bruno Haible  <bruno@clisp.org>
8636
8637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8638         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8639         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8640         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8641         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8642         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8643         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8644         HAVE_DECL_ROUNDF.
8645         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8646         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8648         of HAVE_DECL_ROUND*.
8649         * modules/math (Makefile.am): Update.
8650
8651 2007-11-10  Bruno Haible  <bruno@clisp.org>
8652
8653         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8654         ptrdiff_t as m4/intl.m4.
8655
8656 2007-11-10  Jim Meyering  <meyering@redhat.com>
8657
8658         Avoid link failure for the argmatch test.
8659         * tests/test-argmatch.c (usage): Define function to avoid a link
8660         failure: argmatch_die requires a usage function.
8661
8662 2007-11-09  Bruno Haible  <bruno@clisp.org>
8663
8664         * doc/functions/snprintf.texi: Mention BeOS deficiency.
8665         * doc/functions/vsnprintf.texi: Likewise.
8666         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8667         with a size argument < 2.
8668
8669 2007-11-09  Bruno Haible  <bruno@clisp.org>
8670
8671         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8672         buffer. Fixes an inefficiency introduced on 2007-11-03.
8673
8674 2007-11-09  Bruno Haible  <bruno@clisp.org>
8675
8676         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8677         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8678
8679 2007-11-08  Jim Meyering  <meyering@redhat.com>
8680
8681         Change cache variable name prefix "jm_" to "gl_" everywhere.
8682         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8683         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8684         * m4/uptime.m4: s/gl_/jm_/
8685
8686 2007-11-07  Bruno Haible  <bruno@clisp.org>
8687
8688         Update to GNU gettext 0.17.
8689         * m4/intl.m4: Update to GNU gettext 0.17.
8690         * m4/po.m4: Likewise.
8691         * modules/gettext (Files): Remove m4/ulonglong.m4.
8692         (configure.ac): Require gettext infrastructure from version 0.17.
8693
8694 2007-11-06  Bruno Haible  <bruno@clisp.org>
8695
8696         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8697         symbolic values are not defined in a public header.
8698         * lib/freadable.c (freadable) [QNX]: Likewise.
8699         * lib/freadahead.c (freadahead) [QNX]: Likewise.
8700         * lib/freading.c (freading) [QNX]: Likewise.
8701         * lib/fseterr.c (fseterr) [QNX]: Likewise.
8702         * lib/fwritable.c (fwritable) [QNX]: Likewise.
8703         * lib/fwriting.c (fwriting) [QNX]: Likewise.
8704         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8705         Reported by Alain Magloire.
8706
8707         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8708
8709 2007-11-05  Bruno Haible  <bruno@clisp.org>
8710
8711         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8712         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8713         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8714         Reported by Eric Blake.
8715
8716 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8717             Bruno Haible  <bruno@clisp.org>
8718
8719         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8720         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8721         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8722         (malloc): Undefine also before including <stdlib.h>.
8723         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8724         Needed on OSF/1 4.0.
8725
8726 2007-11-05  Jim Meyering  <meyering@redhat.com>
8727
8728         git-version-gen: sync from coreutils.
8729         * build-aux/git-version-gen: Add comments.
8730         Change the first '-' to '.' in the snapshot version string,
8731         e.g., 6.9-377-08144 -> 6.9.377-08144
8732         Remove first parameter.
8733         Don't declare a version "-dirty" merely because a time
8734         stamp has changed.
8735
8736 2007-11-04  Bruno Haible  <bruno@clisp.org>
8737
8738         * lib/lock.h: Protect all macro definitions containing an 'if'
8739         statement through a "do { ... } while (0)".
8740         * lib/tls.h: Likewise.
8741
8742 2007-11-04  Bruno Haible  <bruno@clisp.org>
8743
8744         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8745
8746 2007-11-04  Bruno Haible  <bruno@clisp.org>
8747
8748         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8749         * modules/fprintf-posix (Depends-on): Add nocrash.
8750         * modules/snprintf-posix (Depends-on): Likewise.
8751         * modules/sprintf-posix (Depends-on): Likewise.
8752         * modules/vasnprintf-posix (Depends-on): Likewise.
8753         * modules/vasprintf-posix (Depends-on): Likewise.
8754         * modules/vfprintf-posix (Depends-on): Likewise.
8755         * modules/vsnprintf-posix (Depends-on): Likewise.
8756         * modules/vsprintf-posix (Depends-on): Likewise.
8757         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8758         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8759         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8760         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8761         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8762         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8763         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8764
8765 2007-11-04  Bruno Haible  <bruno@clisp.org>
8766
8767         * modules/nocrash: New file.
8768         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8769         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8770
8771 2007-11-04  Bruno Haible  <bruno@clisp.org>
8772
8773         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8774         precision handling.
8775         * tests/test-vasprintf-posix.c (test_function): Likewise.
8776         * tests/test-snprintf-posix.h (test_function): Likewise.
8777         * tests/test-sprintf-posix.h (test_function): Likewise.
8778
8779         Fix *printf behaviour for large precisions on mingw and BeOS.
8780         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8781         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8783         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8784         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8785         gl_PRINTF_PRECISION and test its result. Invoke
8786         gl_PREREQ_VASNPRINTF_PRECISION.
8787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8789         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8794         * doc/functions/fprintf.texi: Update.
8795         * doc/functions/printf.texi: Update.
8796         * doc/functions/snprintf.texi: Update.
8797         * doc/functions/sprintf.texi: Update.
8798         * doc/functions/vfprintf.texi: Update.
8799         * doc/functions/vprintf.texi: Update.
8800         * doc/functions/vsnprintf.texi: Update.
8801         * doc/functions/vsprintf.texi: Update.
8802
8803 2007-11-04  Bruno Haible  <bruno@clisp.org>
8804
8805         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8806
8807 2007-11-04  Bruno Haible  <bruno@clisp.org>
8808
8809         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8810         Reported by Sylvain Beucler <beuc@gnu.org>.
8811
8812 2007-11-03  Bruno Haible  <bruno@clisp.org>
8813
8814         * tests/test-fprintf-posix2.sh: New file.
8815         * tests/test-fprintf-posix2.c: New file.
8816         * modules/fprintf-posix-tests (Files): Add them.
8817         (TESTS): Add test-fprintf-posix2.sh.
8818         (configure.ac): Check for getrlimit and setrlimit.
8819         (check_PROGRAMS): Add test-fprintf-posix2.
8820
8821         * tests/test-printf-posix2.sh: New file.
8822         * tests/test-printf-posix2.c: New file.
8823         * modules/printf-posix-tests (Files): Add them.
8824         (TESTS): Add test-printf-posix2.sh.
8825         (configure.ac): Check for getrlimit and setrlimit.
8826         (check_PROGRAMS): Add test-printf-posix2.
8827
8828         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8829         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8830         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8831         (decode_double): New function, copied from decode_long_double.
8832         (scale10_round_decimal_decoded): New function, extracted from
8833         scale10_round_decimal_long_double.
8834         (scale10_round_decimal_long_double): Use it.
8835         (scale10_round_decimal_double): New function.
8836         (floorlog10): New function.
8837         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8839         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8841         gl_PRINTF_ENOMEM and test its result. Invoke
8842         gl_PREREQ_VASNPRINTF_ENOMEM.
8843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8844         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8850         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8851         * modules/snprintf-posix (Depends-on): Likewise.
8852         * modules/sprintf-posix (Depends-on): Likewise.
8853         * modules/vasnprintf-posix (Depends-on): Likewise.
8854         * modules/vasprintf-posix (Depends-on): Likewise.
8855         * modules/vfprintf-posix (Depends-on): Likewise.
8856         * modules/vsnprintf-posix (Depends-on): Likewise.
8857         * modules/vsprintf-posix (Depends-on): Likewise.
8858         * doc/functions/fprintf.texi: Update.
8859         * doc/functions/printf.texi: Update.
8860         * doc/functions/snprintf.texi: Update.
8861         * doc/functions/sprintf.texi: Update.
8862         * doc/functions/vfprintf.texi: Update.
8863         * doc/functions/vprintf.texi: Update.
8864         * doc/functions/vsnprintf.texi: Update.
8865         * doc/functions/vsprintf.texi: Update.
8866
8867 2007-11-03  Bruno Haible  <bruno@clisp.org>
8868
8869         * modules/frexp-nolibm-tests: New file.
8870
8871         * modules/frexp-nolibm: New file.
8872         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8873
8874 2007-11-03  Bruno Haible  <bruno@clisp.org>
8875
8876         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8877         value is C99 compliant.
8878         Needed for OSF/1 5.1.
8879
8880 2007-11-03  Bruno Haible  <bruno@clisp.org>
8881
8882         Fix out-of-memory handling of vasnprintf.
8883         * lib/printf-parse.c: Include <errno.h>.
8884         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8885         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8886         is already set.
8887
8888 2007-11-02  Eric Blake  <ebb9@byu.net>
8889
8890         Fix tests on cygwin.
8891         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
8892
8893 2007-11-01  Bruno Haible  <bruno@clisp.org>
8894
8895         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
8896         warning.
8897         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
8898         needed for POSIX compatibility.
8899
8900 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8901
8902         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
8903         for compatibility with GNU.
8904
8905 2007-11-01  Bruno Haible  <bruno@clisp.org>
8906
8907         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
8908         (putenv): Renamed from rpl_putenv. Change argument type from
8909         'const char *' to 'char *'.
8910         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
8911         of defining putenv in config.h, just set REPLACE_PUTENV.
8912         * modules/putenv (Depends-on): Add stdlib.
8913         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8914         (Include): Use <stdlib.h>.
8915         * lib/stdlib.in.h (putenv): New declaration.
8916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
8917         REPLACE_PUTENV.
8918         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
8919         REPLACE_PUTENV.
8920         Needed for MacOS X 10.5.0.
8921         Reported by Peter O'Gorman <peter@pogma.com>.
8922
8923 2007-11-01  Jim Meyering  <meyering@redhat.com>
8924
8925         Treat an empty date string exactly like "0".
8926         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
8927         if the remaining date string (to be parsed) is empty, use "0".
8928         Reported by Mischa Molhoek and discussed in this thread:
8929         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
8930
8931 2007-10-31  Bruno Haible  <bruno@clisp.org>
8932
8933         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
8934         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
8935         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
8936         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
8937         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
8938         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
8939
8940 2007-10-31  Bruno Haible  <bruno@clisp.org>
8941
8942         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
8943         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
8944         (AC_TYPE_LONG_LONG_INT): Use it.
8945         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
8946         it as well.
8947         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
8948         to m4/longlong.m4.
8949         * modules/stdint (Files): Remove m4/ulonglong.m4.
8950         * modules/strtoull (Files): Use m4/longlong.m4 instead of
8951         m4/ulonglong.m4.
8952         * modules/strtoumax (Files): Likewise.
8953
8954 2007-10-30  Bruno Haible  <bruno@clisp.org>
8955
8956         * modules/xvasprintf-posix: New file.
8957         Suggested by Eric Blake.
8958
8959 2007-10-30  Bruno Haible  <bruno@clisp.org>
8960
8961         * modules/xprintf-posix-tests: New file.
8962         * tests/test-xprintf-posix.sh: New file.
8963         * tests/test-xprintf-posix.c: New file.
8964         * tests/test-xfprintf-posix.c: New file.
8965
8966         * modules/xprintf-posix: New file.
8967
8968 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8969
8970         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
8971         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
8972         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
8973
8974 2007-10-29  Bruno Haible  <bruno@clisp.org>
8975
8976         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
8977         contain the special marker '_cv_'.
8978         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8979         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8980         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8981         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8982         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8983         Reported by Ralf Wildenhues.
8984
8985 2007-10-29  Bruno Haible  <bruno@clisp.org>
8986
8987         * gnulib-tool (func_import): When --lgpl is not specified, set
8988         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
8989         GPLv3.
8990         Reported by Simon Josefsson.
8991
8992 2007-10-28  Bruno Haible  <bruno@clisp.org>
8993
8994         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
8995         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
8996         HAVE_DECL_ISFINITE.
8997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8998         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
8999         HAVE_DECL_ISFINITE.
9000
9001 2007-10-28  Bruno Haible  <bruno@clisp.org>
9002
9003         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9004         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9005
9006 2007-10-28  Bruno Haible  <bruno@clisp.org>
9007
9008         Fix link errors with Sun C 5.0 on Solaris 10.
9009         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9010         function is declared but not present in the compiler's libm.
9011         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9012         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9013         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9014         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9015         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9016         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9017         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9019         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9020         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9021         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9022         HAVE_DECL_FLOORL.
9023
9024 2007-10-28  Bruno Haible  <bruno@clisp.org>
9025
9026         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9027         gl_FUNC_FLOORL. Cache the result.
9028         (gl_FUNC_FLOORL): Use it.
9029         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9030         gl_FUNC_CEILL. Cache the result.
9031         (gl_FUNC_CEILL): Use it.
9032
9033         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9034         gl_FUNC_FLOOR. Cache the result.
9035         (gl_FUNC_FLOOR): Use it.
9036         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9037         gl_FUNC_CEIL. Cache the result.
9038         (gl_FUNC_CEIL): Use it.
9039
9040         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9041         gl_FUNC_FLOORF. Cache the result.
9042         (gl_FUNC_FLOORF): Use it.
9043         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9044         gl_FUNC_CEILF. Cache the result.
9045         (gl_FUNC_CEILF): Use it.
9046
9047 2007-10-28  Bruno Haible  <bruno@clisp.org>
9048
9049         * gnulib-tool: Allow specifying the LGPL version number through
9050         --lgpl=2 or --lgpl=3.
9051         (func_usage): Document --lgpl with argument.
9052         Handle --lgpl=... arguments.
9053         (func_import): Recognize also gl_LGPL calls with an argument. When
9054         --lgpl=2 is used and the module's license is just LGPL, report an
9055         error. Set sed_transform_lib_file according to the lgpl variable. In
9056         the generated files, use --lgpl or gl_LGPL invocations with argument,
9057         if necessary.
9058         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9059         an LGPv2+ license.
9060         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9061         gl_LGPL macro.
9062
9063 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9064             Bruno Haible  <bruno@clisp.org>
9065
9066         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9067         (u16_uctomb_aux): Likewise.
9068         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9069         !HAVE_INLINE.
9070         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9071
9072 2007-10-28  Bruno Haible  <bruno@clisp.org>
9073
9074         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9075         Invoke AM_GETTEXT_OPTION if it exists.
9076         * modules/vasprintf: Likewise.
9077         * modules/verror: Likewise.
9078         * modules/xprintf: Likewise.
9079         * modules/xvasprintf: Likewise.
9080
9081 2007-10-27  Ben Pfaff  <blp@gnu.org>
9082
9083         * lib/math.in.h: Define isfinite macro and prototypes for
9084         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9085         implementations.
9086         * m4/math_h.m4: New substitutions for isfinite module.
9087         * lib/isfinite.c: New file.
9088         * m4/isfinite.m4: New file.
9089         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9090         * modules/isfinite: New file.
9091         * modules/isfinite-tests: New file.
9092         * tests/tests-isfinite.c: New file.
9093         * doc/functions/isfinite.texi: Mention isfinite module.
9094         * MODULES.html.sh: Mention new module.
9095
9096 2007-10-27  Ben Pfaff  <blp@gnu.org>
9097
9098         Ralf Wildenhues reported that Tru64 4.0D declares the round
9099         functions but does not have definitions.
9100         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9101         cannot be found in any library, set the output variable to
9102         "missing" instead of "".
9103         * m4/round.m4: Also use our substitute if we cannot find round in
9104         any library, even if it is declared.
9105         * m4/roundf.m4: Likewise for roundf.
9106         * m4/roundl.m4: Likewise for roundl.
9107         * lib/math.in.h: Undefine roundf, round, roundl before defining
9108         their replacements, to allow for hypothetical systems where these
9109         may be defined as macros but not available in libraries.
9110
9111 2007-10-27  Bruno Haible  <bruno@clisp.org>
9112
9113         * doc/gnulib.texi: Invoke @firstparagraphindent.
9114         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9115         changes in gnulib.
9116         (Source changes): New section.
9117
9118 2007-10-26  Bruno Haible  <bruno@clisp.org>
9119
9120         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9121         borrowed from autoconf.
9122
9123 2007-10-26  Bruno Haible  <bruno@clisp.org>
9124
9125         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9126         strerror returned the empty string. Needed on HP-UX 11.00.
9127
9128 2007-10-24  Micah Cowan  <micah@cowan.name>
9129
9130         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9131         * build-aux/bootstrap: Remove support for now-unnecessary option,
9132         --cvs-user, and envvars CVS_USER, CVS_RSH.
9133
9134 2007-10-24  Jim Meyering  <meyering@redhat.com>
9135
9136         Avoid diagnostics from sha1sum when there is no cached checksum.
9137         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9138         if the po.s1 file hasn't been created yet.
9139
9140         * build-aux/bootstrap: Sync from coreutils:
9141         2007-10-24  Jim Meyering  <meyering@redhat.com>
9142         Get gnulib from the git repository, not from an obsolete cvs one.
9143         * build-aux/bootstrap: Suggestion from Micah Cowan.
9144         2007-10-04  Jim Meyering  <jim@meyering.net>
9145         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9146         (update_po_files): Work also when there are no .po files in po/.
9147
9148 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9149
9150         * README: Append ".git" to git and cg examples.
9151         Problem reported by Benoit Sigoure.
9152
9153 2007-10-23  Micah Cowan  <micah@cowan.name>
9154
9155         * users.txt: Add wget.
9156
9157 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9158
9159         Fix linking of some unistdio tests on FreeBSD.
9160         * modules/unistdio/u16-vsnprintf-tests
9161         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9162         * modules/unistdio/u16-vsprintf-tests
9163         (test_u16_vsnprintf1_LDADD): Likewise.
9164         * modules/unistdio/u32-vsnprintf-tests
9165         (test_u32_vsnprintf1_LDADD): Likewise.
9166         * modules/unistdio/u32-vsprintf-tests
9167         (test_u32_vsprintf1_LDADD): Likewise.
9168         * modules/unistdio/u8-vsnprintf-tests
9169         (test_u8_vsnprintf1_LDADD): Likewise.
9170         * modules/unistdio/u8-vsprintf-tests
9171         (test_u8_vsprintf1_LDADD): Likewise.
9172         * modules/unistdio/ulc-vsnprintf-tests
9173         (test_ulc_vsnprintf1_LDADD): Likewise.
9174         * modules/unistdio/ulc-vsprintf-tests
9175         (test_ulc_vsprintf1_LDADD): Likewise.
9176
9177         Fix linking of some uniconv tests on FreeBSD.
9178         * modules/uniconv/u16-conv-from-enc-tests
9179         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9180         * modules/uniconv/u16-conv-to-enc-tests
9181         (test_u16_conv_to_enc_LDADD): Likewise.
9182         * modules/uniconv/u16-strconv-from-enc-tests
9183         (test_u16_strconv_from_enc_LDADD): Likewise.
9184         * modules/uniconv/u16-strconv-to-enc-tests
9185         (test_u16_strconv_to_enc_LDADD): Likewise.
9186         * modules/uniconv/u32-conv-from-enc-tests
9187         (test_u32_conv_from_enc_LDADD): Likewise.
9188         * modules/uniconv/u32-conv-to-enc-tests
9189         (test_u32_conv_to_enc_LDADD): Likewise.
9190         * modules/uniconv/u32-strconv-from-enc-tests
9191         (test_u32_strconv_from_enc_LDADD): Likewise.
9192         * modules/uniconv/u32-strconv-to-enc-tests
9193         (test_u32_strconv_to_enc_LDADD): Likewise.
9194         * modules/uniconv/u8-conv-from-enc-tests
9195         (test_u8_conv_from_enc_LDADD): Likewise.
9196         * modules/uniconv/u8-conv-to-enc-tests
9197         (test_u8_conv_to_enc_LDADD): Likewise.
9198         * modules/uniconv/u8-strconv-from-enc-tests
9199         (test_u8_strconv_from_enc_LDADD): Likewise.
9200         * modules/uniconv/u8-strconv-to-enc-tests
9201         (test_u8_strconv_to_enc_LDADD): Likewise.
9202
9203 2007-10-22  Bruno Haible  <bruno@clisp.org>
9204
9205         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9206         size.
9207
9208 2007-10-22  Eric Blake  <ebb9@byu.net>
9209
9210         Tweak x*printf documentation.
9211         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9212         variable name and comments.
9213         Suggested by Bruno Haible.
9214
9215 2007-10-22  Bruno Haible  <bruno@clisp.org>
9216
9217         * lib/acl.c (copy_acl): Fix file name in comment.
9218
9219 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9220
9221         Fix Tru64 problem with stdbool.h.
9222         * lib/stdbool.in.h (false, true):
9223         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9224         Don't declare as an enum in this situation; it runs afoul of Tru64.
9225         Problem reported by Steven M. Schweda in
9226         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9227
9228 2007-10-22  Eric Blake  <ebb9@byu.net>
9229
9230         Also wrap vf?printf.
9231         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9232         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9233         (xvprintf, xvfprintf): New functions.
9234
9235 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9236
9237         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9238         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9239
9240         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9241         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9242
9243 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9244
9245         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9246         by Bruno Haible.
9247
9248 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9249
9250         * lib/getloadavg.c
9251         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9252         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9253
9254         * tests/test-i-ring.c: Work for C89.
9255
9256 2007-10-22  Bruno Haible  <bruno@clisp.org>
9257
9258         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9259         -1u, in preprocessor expression, so that we don't test for the bug
9260         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9262
9263 2007-10-22  Eric Blake  <ebb9@byu.net>
9264
9265         * tests/test-yesno.sh: Silence stderr during test.
9266
9267 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9268
9269         * modules/crypto/gc-camellia: New file.
9270
9271         * m4/gc-camellia.m4: New file.
9272
9273         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9274
9275         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9276
9277 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9278
9279         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9280         --help to stdout.  Reported by sms@antinode.org (Steven
9281         M. Schweda).
9282
9283 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9284
9285         * users.txt: Fix link to libksba.
9286
9287 2007-10-21  Ben Pfaff  <blp@gnu.org>
9288
9289         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9290         round.c roundf implementation that depends on floorf and ceilf to
9291         be tested unconditionally.
9292
9293 2007-10-21  Ben Pfaff  <blp@gnu.org>
9294
9295         * m4/check-libm-func.m4: Removed.
9296         * m4/check-math-lib.m4: New file.
9297         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9298         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9299         definition and lack of AC_LIBOBJ([roundf]).
9300         * m4/roundl.m4: Ditto, and similarly for roundl.
9301         * modules/round: Reference new m4 file.
9302         * modules/roundf: Ditto.
9303         * modules/roundl: Ditto.
9304         * tests/test-round2.c (main): Use ROUND instead of round.
9305         Bug report from Bruno Haible.
9306
9307 2007-10-21  Bruno Haible  <bruno@clisp.org>
9308
9309         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9310         context.
9311
9312 2007-10-21  Bruno Haible  <bruno@clisp.org>
9313
9314         * tests/test-wcwidth.c (main): Allow negative result for some control
9315         characters.
9316
9317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9318         Needed on OSF/1 5.1.
9319
9320 2007-10-21  Bruno Haible  <bruno@clisp.org>
9321
9322         * tests/test-floorf1.c: Include isnanf.h.
9323         (main): Use isnanf() instead of isnan().
9324         * tests/test-ceilf1.c: Include isnanf.h.
9325         (main): Use isnanf() instead of isnan().
9326         * tests/test-truncf1.c: Include isnanf.h.
9327         (main): Use isnanf() instead of isnan().
9328         * tests/test-roundf1.c: Include isnanf.h.
9329         (main): Use isnanf() instead of isnan().
9330
9331 2007-10-21  Eric Blake  <ebb9@byu.net>
9332
9333         * users.txt: Update URL for m4.
9334
9335 2007-10-21  Bruno Haible  <bruno@clisp.org>
9336
9337         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9338
9339 2007-10-21  Bruno Haible  <bruno@clisp.org>
9340
9341         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9342         Git's management files if the CVS files are not present.
9343
9344 2007-10-20  Bruno Haible  <bruno@clisp.org>
9345
9346         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9347         gcc-3.4.x.
9348
9349 2007-10-20  Ben Pfaff  <blp@gnu.org>
9350
9351         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9352         implementations.
9353         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9354         * lib/round.c: New file.
9355         * lib/roundf.c: New file.
9356         * lib/roundl.c: New file.
9357         * m4/round.m4: New file.
9358         * m4/roundf.m4: New file.
9359         * m4/roundl.m4: New file.
9360         * m4/check-libm-func-m4: New file.
9361         * modules/math: Replace round, roundf, roundl related @VARS@ in
9362         math.in.h.
9363         * modules/round: New file.
9364         * modules/round-tests: New file.
9365         * modules/roundf: New file.
9366         * modules/roundf-tests: New file.
9367         * modules/roundl: New file.
9368         * modules/roundl-tests: New file.
9369         * tests/test-round1.c: New file.
9370         * tests/test-round2.c: New file.
9371         * tests/test-roundf1.c: New file.
9372         * tests/test-roundf2.c: New file.
9373         * tests/test-roundl.c: New file.
9374         * doc/functions/round.texi: Mention round module.
9375         * doc/functions/roundf.texi: Mention roundf module.
9376         * doc/functions/roundl.texi: Mention roundl module.
9377         * MODULES.html.sh: Mention new modules.
9378         Thanks to Bruno Haible for suggestions.
9379
9380 2007-10-20  Jim Meyering  <meyering@redhat.com>
9381
9382         * lib/xprintf.c: Include <config.h> unconditionally.
9383
9384         Change xprintf's license to GPL.
9385         * modules/xprintf (License): s/LGPL/GPL/, since this module
9386         depends on modules (exit and exitfail) which are GPL.
9387         Suggestion from Bruno Haible.
9388
9389         xprintf fixes.
9390         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9391         Use a clearer diagnostic.
9392         Patch from Bruno Haible.
9393
9394 2007-10-20  Bruno Haible  <bruno@clisp.org>
9395
9396         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9397         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9399
9400 2007-10-20  Bruno Haible  <bruno@clisp.org>
9401
9402         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9403         precision in the comparison result > x - 1 or similar.
9404         * tests/test-ceilf2.c (correct_result_p): Likewise.
9405         * tests/test-truncf2.c (correct_result_p): Likewise.
9406         * tests/test-trunc2.c (correct_result_p): Likewise.
9407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9408
9409 2007-10-20  Bruno Haible  <bruno@clisp.org>
9410
9411         * modules/ceil: New file.
9412         * m4/ceil.m4: New file.
9413         * doc/functions/ceil.texi: Mention the 'ceil' module.
9414
9415 2007-10-20  Bruno Haible  <bruno@clisp.org>
9416
9417         * modules/floor: New file.
9418         * m4/floor.m4: New file.
9419         * doc/functions/floor.texi: Mention the 'floor' module.
9420
9421 2007-10-20  Bruno Haible  <bruno@clisp.org>
9422
9423         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9424         of %a.
9425         * modules/floorf-tests (Depends-on): Likewise.
9426         * modules/truncf-tests (Depends-on): Likewise.
9427         * modules/trunc-tests (Depends-on): Likewise.
9428         Reported by Ben Pfaff.
9429
9430 2007-10-19  Jim Meyering  <meyering@redhat.com>
9431
9432         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9433         Don't bother testing specific errno values.  Just test ferror.
9434
9435         New module: xprintf
9436         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9437
9438 2007-10-19  Bruno Haible  <bruno@clisp.org>
9439
9440         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9441         syntax.
9442         * modules/javaexec (Makefile.am): Likewise.
9443         * modules/relocatable-prog (Makefile.am): Likewise.
9444         Suggested by Jim Meyering.
9445
9446 2007-10-18  Bruno Haible  <bruno@clisp.org>
9447
9448         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9449         Reported by Jim Meyering.
9450
9451 2007-10-18  Eric Blake  <ebb9@byu.net>
9452
9453         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9454
9455 2007-10-18  Bruno Haible  <bruno@clisp.org>
9456
9457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9458         the format string into writable memory. Needed in Fortify conditions.
9459
9460 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9461             Bruno Haible  <bruno@clisp.org>
9462
9463         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9464         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9465         * modules/trim (Depends-on): Add mbchar.
9466         (configure.ac): Add gl_FUNC_MBRTOWC.
9467         (Makefile.am): Augment lib_SOURCES.
9468
9469 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9470
9471         Modify glob.c to use fstatat and dirfd, to simplify it.
9472         Suggested by Eric Blake.
9473         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9474         Don't include <stdbool.h>; not used.
9475         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9476         (link_exists_p): Simplify implementation, since we can now assume
9477         dirfd and fstatat.
9478         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9479
9480 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9481
9482         * gnulib-tool (func_get_dependencies): Fix sed script to
9483         match only tests.
9484
9485 2007-10-17  Bruno Haible  <bruno@clisp.org>
9486
9487         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9488         allow locale names without encoding suffix.
9489         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9490         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9491
9492 2007-10-16  Bruno Haible  <bruno@clisp.org>
9493
9494         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9495         * lib/getgroups.c (getgroups): Likewise.
9496         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9497
9498 2007-10-16  Bruno Haible  <bruno@clisp.org>
9499
9500         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9501         * modules/malloc-posix (License): Likewise.
9502         * modules/realloc-posix (License): Likewise.
9503         * modules/calloc-posix (License): Likewise.
9504         * modules/intprops (License): Change from GPL to LGPL, with
9505         Paul Eggert's approval.
9506
9507 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9508
9509         Merge glibc changes into lib/glob.c.
9510
9511         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9512         2007-10-15 04:59:03 UTC.  Here are the changes:
9513
9514         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
9515
9516         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9517
9518         * lib/glob.c: Add some branch prediction throughout.
9519
9520         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
9521
9522         [BZ #5103]
9523         * lib/glob.c (glob): Recognize patterns starting \/.
9524
9525         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9526
9527         [BZ #3996]
9528         * lib/glob.c (attribute_hidden): Define if not defined.
9529         (glob): Unescape dirname, filename or username when needed and not
9530         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9531         is NULL.  Handle unescaped [ in pattern without closing ].
9532         Don't pass GLOB_CHECK down to recursive glob for directories.
9533         (__glob_pattern_type): New function.
9534         (__glob_pattern_p): Implement using __glob_pattern_type.
9535         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9536         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9537         Remove unreachable code.
9538
9539         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9540
9541         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9542         explain why there are no leaks.
9543
9544         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9545
9546         [BZ #3253]
9547         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9548         time, rather allocate increasingly bigger arrays of pointers, if
9549         possible with alloca, if too large with malloc.
9550
9551 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9552
9553         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9554         Problem reported by H.Merijn Brand in
9555         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9556         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9557         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9558
9559 2007-10-15  Bruno Haible  <bruno@clisp.org>
9560
9561         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9562         with explicit rpl_ prefix.
9563         * lib/fopen.c (fopen): Likewise.
9564         * lib/freopen.c (freopen): Likewise.
9565         * lib/iconv.c (iconv): Likewise.
9566         * lib/iconv_close.c (iconv_close): Likewise.
9567
9568 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9569
9570         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9571
9572 2007-10-15  Bruno Haible  <bruno@clisp.org>
9573
9574         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9575         <stddef.h> instead of <stdlib.h> since we only need NULL.
9576         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9577
9578 2007-10-15  Bruno Haible  <bruno@clisp.org>
9579
9580         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9581         Replace paragraph talking about LIBOBJS.
9582         Reported by Colin Watson <cjwatson@debian.org>.
9583
9584 2007-10-15  Bruno Haible  <bruno@clisp.org>
9585
9586         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9587         <stdlib.h> before using NULL.
9588
9589 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9590
9591         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9592         Reported by Albert Chin <china@thewrittenword.com>.
9593
9594 2007-10-14  Bruno Haible  <bruno@clisp.org>
9595
9596         * modules/iconv_open-utf-tests: New file.
9597         * tests/test-iconv-utf.c: New file.
9598
9599         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9600         * modules/iconv_open-utf: New file.
9601         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9602         (iconv, iconv_close): New declarations.
9603         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9604         be defined.
9605         (iconv_open): Add special handling of conversion between UTF-8 and
9606         UTF-{16,32}{BE,LE}.
9607         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9608         * lib/iconv_close.c: New file.
9609         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9610         gl_FUNC_ICONV_OPEN.
9611         (gl_FUNC_ICONV_OPEN): Use it.
9612         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9613         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9614         and REPLACE_ICONV_UTF.
9615         * modules/iconv_open (Depends-on): Add c-strcase.
9616         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9617         ICONV_CONST.
9618         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9619
9620 2007-10-13  Albert Chin  <china@thewrittenword.com>
9621             Bruno Haible  <bruno@clisp.org>
9622
9623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9624         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9625
9626 2007-10-13  Bruno Haible  <bruno@clisp.org>
9627
9628         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9629         defined, use the ISO C99 inline semantics.
9630         * lib/argp.h (ARGP_EI): Likewise.
9631
9632 2007-10-13  Bruno Haible  <bruno@clisp.org>
9633
9634         Handle 'inline' change in gcc 4.3.0.
9635         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9636         argp_fmtstream_write, argp_fmtstream_set_lmargin,
9637         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9638         argp_fmtstream_point): Disable 'extern' declaration if the function
9639         definition is going to be provided inline.
9640         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9641         semantics, not the ISO C99 inline semantics.
9642         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9643         'extern' declaration if the function definition is going to be provided
9644         inline.
9645         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9646         the GNU C inline semantics, not the ISO C99 inline semantics. With
9647         GCC 4.2, avoid a warning.
9648
9649 2007-10-13  Bruno Haible  <bruno@clisp.org>
9650
9651         * lib/freading.h (freading): Enable the use of __freading for
9652         glibc >= 2.7.
9653         * lib/freading.c (freading): Likewise.
9654
9655 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9656
9657         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9658         "warning: C99 inline functions are not supported; using GNU89".
9659
9660 2007-10-12  Bruno Haible  <bruno@clisp.org>
9661
9662         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9663         of 2.
9664         * tests/test-ceilf2.c: New file.
9665         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9666
9667         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9668         * modules/ceilf-tests: Update.
9669
9670 2007-10-12  Bruno Haible  <bruno@clisp.org>
9671
9672         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9673         of 2.
9674         * tests/test-floorf2.c: New file.
9675         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9676
9677         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9678         * modules/floorf-tests: Update.
9679
9680 2007-10-12  Bruno Haible  <bruno@clisp.org>
9681
9682         * tests/test-trunc2.c: New file.
9683         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9684
9685         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9686         * modules/trunc-tests: Update.
9687
9688 2007-10-12  Bruno Haible  <bruno@clisp.org>
9689
9690         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9691         of 2.
9692         * tests/test-truncf2.c: New file.
9693         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9694
9695         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9696         * modules/truncf-tests: Update.
9697
9698 2007-10-11  Eric Blake  <ebb9@byu.net>
9699
9700         Don't claim strerror is broken on Interix.
9701         * doc/functions/strerror.texi (strerror): Known broken systems are
9702         now Solaris 8, and not Interix.
9703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9704         Interix on cross-compile.
9705         Reported by Martin Koeppe in
9706         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9707
9708 2007-10-11  Bruno Haible  <bruno@clisp.org>
9709
9710         * modules/i-ring-tests: New file.
9711         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9712         instead of assert.
9713
9714 2007-10-11  Bruno Haible  <bruno@clisp.org>
9715
9716         * modules/filenamecat-tests: New file.
9717         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9718         * lib/filenamecat.c: Remove test code.
9719
9720 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9721
9722         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9723
9724         * lib/strerror.c: Include <string.h> always, to test interface,
9725         and to remove the need for the dummy.
9726         Include intprops.h to compute width instead of doing it ourselves
9727         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9728         (strerror): Define it to return NULL if there's no system strerror.
9729         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9730         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
9731         ancient pre-strerror Unix systems well any more.  Saying "unknown
9732         system error" is enough.
9733         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9734         simpler strerror.c implementation.
9735         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9736         Simplify the tests to reflect the simpler strerror implementation.
9737         * modules/strerror (Depends-on): Add intprops.
9738
9739 2007-10-09  Eric Blake  <ebb9@byu.net>
9740
9741         Silence test-fpending.
9742         * modules/fpending-tests (Files): Add wrapper script.
9743         * tests/test-fpending.sh: New file.
9744
9745 2007-10-09  Bruno Haible  <bruno@clisp.org>
9746
9747         * MODULES.html.sh (func_module): Don't create a hyperlink for
9748         function names like 'printf_frexp'.
9749         (Misc): Add crc, memxor.
9750         (Characteristics of floating types): New section.
9751         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9752         isnanf-nolibm, signbit, trunc, truncf, truncl.
9753         (Enhancements for ISO C 99 functions): New subsection Input/output.
9754         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9755         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9756         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9757         (Compatibility checks for POSIX:2001 functions): Add clock-time.
9758         (Enhancements for POSIX:2001 functions): Add chdir-long.
9759         (File system functions): Add areadlink, chdir-safer, read-file.
9760         Remove cycle-check.
9761         (File system as inode set): New section.
9762         (Date and time): Add gethrxtime.
9763         (Multithreading): Add openmp.
9764         (Internationalization functions): Add localename.
9765         (Unicode string functions): Add unistr/u*-mbsnlen.
9766         (Support for maintaining and releasing projects): Add git-version-gen.
9767         (Lone files): Remove directories.
9768
9769 2007-10-08  Ben Pfaff  <blp@gnu.org>
9770
9771         * lib/xmalloca.h: Fix typo in comment.
9772
9773 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9774
9775         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9776         when avoiding problems with integer overflow.  Use a portable test
9777         instead.
9778
9779 2007-10-08  Simon Josefsson  <simon@josefsson.org>
9780
9781         * modules/dummy (License): Change to LGPLv2+.
9782         * modules/float (License): Likewise
9783         * modules/realloc (License): Likewise
9784         * modules/stdlib (License): Likewise
9785
9786 2007-10-07  Bruno Haible  <bruno@clisp.org>
9787
9788         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9789         * floor.c (TWO_MANT_DIG): Likewise.
9790         * ceil.c (TWO_MANT_DIG): Likewise.
9791         Reported by Ben Pfaff.
9792
9793 2007-10-07  Bruno Haible  <bruno@clisp.org>
9794
9795         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9796         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9797         * lib/frexp.c (FUNC): Likewise.
9798         * lib/printf-frexp.h (printf_frexp): Likewise.
9799         * lib/printf-frexpl.h (printf_frexpl): Likewise.
9800         * lib/printf-frexp.c (FUNC): Likewise.
9801         Suggested by Jim Meyering.
9802
9803 2007-10-07  Jim Meyering  <meyering@redhat.com>
9804
9805         Make xnanosleep's integer overflow test more robust.
9806         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9807         so that gcc-4.3.0 doesn't optimize away this test for overflow.
9808
9809 2007-10-07  Bruno Haible  <bruno@clisp.org>
9810
9811         * NEWS: Mention the license change.
9812
9813         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9814         abbreviations in the modules files.
9815
9816         Change copyright notice from GPLv2+ to GPLv3+.
9817         * README: Change copyright notice.
9818         * MODULES.html.sh: Likewise.
9819         * build-aux/bootstrap.conf: Likewise.
9820         * build-aux/config.libpath: Likewise.
9821         * build-aux/csharpcomp.sh.in: Likewise.
9822         * build-aux/csharpexec.sh.in: Likewise.
9823         * build-aux/install-reloc: Likewise.
9824         * build-aux/javacomp.sh.in: Likewise.
9825         * build-aux/javaexec.sh.in: Likewise.
9826         * build-aux/ldd.sh.in: Likewise.
9827         * build-aux/reloc-ldflags: Likewise.
9828         * build-aux/relocatable.sh.in: Likewise.
9829         * build-aux/x-to-1.in: Likewise.
9830         * check-module: Likewise.
9831         * config/srclistvars.sh: Likewise.
9832         * gnulib-tool: Likewise.
9833         * lib/acl-internal.h: Likewise.
9834         * lib/acl.c: Likewise.
9835         * lib/acl.h: Likewise.
9836         * lib/acl_entries.c: Likewise.
9837         * lib/areadlink-with-size.c: Likewise.
9838         * lib/areadlink.c: Likewise.
9839         * lib/areadlink.h: Likewise.
9840         * lib/argmatch.c: Likewise.
9841         * lib/argmatch.h: Likewise.
9842         * lib/argp-ba.c: Likewise.
9843         * lib/argp-eexst.c: Likewise.
9844         * lib/argp-fmtstream.c: Likewise.
9845         * lib/argp-fmtstream.h: Likewise.
9846         * lib/argp-fs-xinl.c: Likewise.
9847         * lib/argp-help.c: Likewise.
9848         * lib/argp-namefrob.h: Likewise.
9849         * lib/argp-parse.c: Likewise.
9850         * lib/argp-pin.c: Likewise.
9851         * lib/argp-pv.c: Likewise.
9852         * lib/argp-pvh.c: Likewise.
9853         * lib/argp-xinl.c: Likewise.
9854         * lib/argp.h: Likewise.
9855         * lib/at-func.c: Likewise.
9856         * lib/atanl.c: Likewise.
9857         * lib/backupfile.c: Likewise.
9858         * lib/backupfile.h: Likewise.
9859         * lib/basename.c: Likewise.
9860         * lib/binary-io.h: Likewise.
9861         * lib/byteswap.in.h: Likewise.
9862         * lib/c-stack.c: Likewise.
9863         * lib/c-stack.h: Likewise.
9864         * lib/c-strcasestr.c: Likewise.
9865         * lib/c-strcasestr.h: Likewise.
9866         * lib/c-strstr.c: Likewise.
9867         * lib/c-strstr.h: Likewise.
9868         * lib/c-strtod.c: Likewise.
9869         * lib/calloc.c: Likewise.
9870         * lib/canon-host.c: Likewise.
9871         * lib/canon-host.h: Likewise.
9872         * lib/canonicalize-lgpl.c: Likewise.
9873         * lib/canonicalize.c: Likewise.
9874         * lib/canonicalize.h: Likewise.
9875         * lib/ceil.c: Likewise.
9876         * lib/ceilf.c: Likewise.
9877         * lib/ceill.c: Likewise.
9878         * lib/chdir-long.c: Likewise.
9879         * lib/chdir-long.h: Likewise.
9880         * lib/chdir-safer.c: Likewise.
9881         * lib/chdir-safer.h: Likewise.
9882         * lib/chown.c: Likewise.
9883         * lib/classpath.c: Likewise.
9884         * lib/classpath.h: Likewise.
9885         * lib/clean-temp.c: Likewise.
9886         * lib/clean-temp.h: Likewise.
9887         * lib/cloexec.c: Likewise.
9888         * lib/close-stream.c: Likewise.
9889         * lib/closein.c: Likewise.
9890         * lib/closein.h: Likewise.
9891         * lib/closeout.c: Likewise.
9892         * lib/closeout.h: Likewise.
9893         * lib/concat-filename.c: Likewise.
9894         * lib/copy-file.c: Likewise.
9895         * lib/copy-file.h: Likewise.
9896         * lib/count-one-bits.h: Likewise.
9897         * lib/crc.c: Likewise.
9898         * lib/crc.h: Likewise.
9899         * lib/creat-safer.c: Likewise.
9900         * lib/csharpcomp.c: Likewise.
9901         * lib/csharpcomp.h: Likewise.
9902         * lib/csharpexec.c: Likewise.
9903         * lib/csharpexec.h: Likewise.
9904         * lib/cycle-check.c: Likewise.
9905         * lib/cycle-check.h: Likewise.
9906         * lib/diacrit.c: Likewise.
9907         * lib/diacrit.h: Likewise.
9908         * lib/diffseq.h: Likewise.
9909         * lib/dirchownmod.c: Likewise.
9910         * lib/dirent.in.h: Likewise.
9911         * lib/dirfd.c: Likewise.
9912         * lib/dirfd.h: Likewise.
9913         * lib/dirname.c: Likewise.
9914         * lib/dirname.h: Likewise.
9915         * lib/dummy.c: Likewise.
9916         * lib/dup-safer.c: Likewise.
9917         * lib/dup2.c: Likewise.
9918         * lib/eealloc.h: Likewise.
9919         * lib/error.c: Likewise.
9920         * lib/error.h: Likewise.
9921         * lib/euidaccess.c: Likewise.
9922         * lib/exclude.c: Likewise.
9923         * lib/exclude.h: Likewise.
9924         * lib/execute.c: Likewise.
9925         * lib/execute.h: Likewise.
9926         * lib/exitfail.c: Likewise.
9927         * lib/exitfail.h: Likewise.
9928         * lib/expl.c: Likewise.
9929         * lib/fatal-signal.c: Likewise.
9930         * lib/fatal-signal.h: Likewise.
9931         * lib/fbufmode.c: Likewise.
9932         * lib/fbufmode.h: Likewise.
9933         * lib/fchdir.c: Likewise.
9934         * lib/fchmodat.c: Likewise.
9935         * lib/fchownat.c: Likewise.
9936         * lib/fcntl--.h: Likewise.
9937         * lib/fcntl-safer.h: Likewise.
9938         * lib/fcntl.in.h: Likewise.
9939         * lib/fd-safer.c: Likewise.
9940         * lib/fflush.c: Likewise.
9941         * lib/file-has-acl.c: Likewise.
9942         * lib/file-set.c: Likewise.
9943         * lib/file-type.c: Likewise.
9944         * lib/file-type.h: Likewise.
9945         * lib/fileblocks.c: Likewise.
9946         * lib/filemode.c: Likewise.
9947         * lib/filemode.h: Likewise.
9948         * lib/filename.h: Likewise.
9949         * lib/filenamecat.c: Likewise.
9950         * lib/filenamecat.h: Likewise.
9951         * lib/findprog.c: Likewise.
9952         * lib/findprog.h: Likewise.
9953         * lib/float.in.h: Likewise.
9954         * lib/floor.c: Likewise.
9955         * lib/floorf.c: Likewise.
9956         * lib/floorl.c: Likewise.
9957         * lib/fopen-safer.c: Likewise.
9958         * lib/fopen.c: Likewise.
9959         * lib/fpending.c: Likewise.
9960         * lib/fpending.h: Likewise.
9961         * lib/fprintf.c: Likewise.
9962         * lib/fprintftime.h: Likewise.
9963         * lib/fpucw.h: Likewise.
9964         * lib/fpurge.c: Likewise.
9965         * lib/fpurge.h: Likewise.
9966         * lib/freadable.c: Likewise.
9967         * lib/freadable.h: Likewise.
9968         * lib/freadahead.c: Likewise.
9969         * lib/freadahead.h: Likewise.
9970         * lib/freading.c: Likewise.
9971         * lib/freading.h: Likewise.
9972         * lib/free.c: Likewise.
9973         * lib/freopen.c: Likewise.
9974         * lib/frexp.c: Likewise.
9975         * lib/frexpl.c: Likewise.
9976         * lib/fseek.c: Likewise.
9977         * lib/fseterr.c: Likewise.
9978         * lib/fseterr.h: Likewise.
9979         * lib/fstatat.c: Likewise.
9980         * lib/fstrcmp.c: Likewise.
9981         * lib/fstrcmp.h: Likewise.
9982         * lib/fsusage.c: Likewise.
9983         * lib/fsusage.h: Likewise.
9984         * lib/ftell.c: Likewise.
9985         * lib/ftello.c: Likewise.
9986         * lib/fts-cycle.c: Likewise.
9987         * lib/fts.c: Likewise.
9988         * lib/fts_.h: Likewise.
9989         * lib/full-read.c: Likewise.
9990         * lib/full-read.h: Likewise.
9991         * lib/full-write.c: Likewise.
9992         * lib/full-write.h: Likewise.
9993         * lib/fwritable.c: Likewise.
9994         * lib/fwritable.h: Likewise.
9995         * lib/fwriteerror.c: Likewise.
9996         * lib/fwriteerror.h: Likewise.
9997         * lib/fwriting.c: Likewise.
9998         * lib/fwriting.h: Likewise.
9999         * lib/gcd.c: Likewise.
10000         * lib/gcd.h: Likewise.
10001         * lib/getcwd.c: Likewise.
10002         * lib/getdate.h: Likewise.
10003         * lib/getdate.y: Likewise.
10004         * lib/getdomainname.c: Likewise.
10005         * lib/getdomainname.h: Likewise.
10006         * lib/getgroups.c: Likewise.
10007         * lib/gethostname.c: Likewise.
10008         * lib/gethrxtime.c: Likewise.
10009         * lib/gethrxtime.h: Likewise.
10010         * lib/getloadavg.c: Likewise.
10011         * lib/getndelim2.c: Likewise.
10012         * lib/getndelim2.h: Likewise.
10013         * lib/getnline.c: Likewise.
10014         * lib/getnline.h: Likewise.
10015         * lib/getopt.c: Likewise.
10016         * lib/getopt.in.h: Likewise.
10017         * lib/getopt1.c: Likewise.
10018         * lib/getopt_int.h: Likewise.
10019         * lib/getpagesize.h: Likewise.
10020         * lib/getsubopt.c: Likewise.
10021         * lib/gettime.c: Likewise.
10022         * lib/getugroups.c: Likewise.
10023         * lib/getugroups.h: Likewise.
10024         * lib/getusershell.c: Likewise.
10025         * lib/gl_anyavltree_list1.h: Likewise.
10026         * lib/gl_anyavltree_list2.h: Likewise.
10027         * lib/gl_anyhash_list1.h: Likewise.
10028         * lib/gl_anyhash_list2.h: Likewise.
10029         * lib/gl_anylinked_list1.h: Likewise.
10030         * lib/gl_anylinked_list2.h: Likewise.
10031         * lib/gl_anyrbtree_list1.h: Likewise.
10032         * lib/gl_anyrbtree_list2.h: Likewise.
10033         * lib/gl_anytree_list1.h: Likewise.
10034         * lib/gl_anytree_list2.h: Likewise.
10035         * lib/gl_anytree_oset.h: Likewise.
10036         * lib/gl_anytreehash_list1.h: Likewise.
10037         * lib/gl_anytreehash_list2.h: Likewise.
10038         * lib/gl_array_list.c: Likewise.
10039         * lib/gl_array_list.h: Likewise.
10040         * lib/gl_array_oset.c: Likewise.
10041         * lib/gl_array_oset.h: Likewise.
10042         * lib/gl_avltree_list.c: Likewise.
10043         * lib/gl_avltree_list.h: Likewise.
10044         * lib/gl_avltree_oset.c: Likewise.
10045         * lib/gl_avltree_oset.h: Likewise.
10046         * lib/gl_avltreehash_list.c: Likewise.
10047         * lib/gl_avltreehash_list.h: Likewise.
10048         * lib/gl_carray_list.c: Likewise.
10049         * lib/gl_carray_list.h: Likewise.
10050         * lib/gl_linked_list.c: Likewise.
10051         * lib/gl_linked_list.h: Likewise.
10052         * lib/gl_linkedhash_list.c: Likewise.
10053         * lib/gl_linkedhash_list.h: Likewise.
10054         * lib/gl_list.c: Likewise.
10055         * lib/gl_list.h: Likewise.
10056         * lib/gl_oset.c: Likewise.
10057         * lib/gl_oset.h: Likewise.
10058         * lib/gl_rbtree_list.c: Likewise.
10059         * lib/gl_rbtree_list.h: Likewise.
10060         * lib/gl_rbtree_oset.c: Likewise.
10061         * lib/gl_rbtree_oset.h: Likewise.
10062         * lib/gl_rbtreehash_list.c: Likewise.
10063         * lib/gl_rbtreehash_list.h: Likewise.
10064         * lib/gl_sublist.c: Likewise.
10065         * lib/gl_sublist.h: Likewise.
10066         * lib/group-member.c: Likewise.
10067         * lib/group-member.h: Likewise.
10068         * lib/hard-locale.c: Likewise.
10069         * lib/hard-locale.h: Likewise.
10070         * lib/hash-pjw.c: Likewise.
10071         * lib/hash-pjw.h: Likewise.
10072         * lib/hash-triple.c: Likewise.
10073         * lib/hash.c: Likewise.
10074         * lib/hash.h: Likewise.
10075         * lib/human.c: Likewise.
10076         * lib/human.h: Likewise.
10077         * lib/i-ring.c: Likewise.
10078         * lib/i-ring.h: Likewise.
10079         * lib/idcache.c: Likewise.
10080         * lib/imaxabs.c: Likewise.
10081         * lib/imaxdiv.c: Likewise.
10082         * lib/inet_pton.c: Likewise.
10083         * lib/inet_pton.h: Likewise.
10084         * lib/intprops.h: Likewise.
10085         * lib/inttostr.c: Likewise.
10086         * lib/inttostr.h: Likewise.
10087         * lib/inttypes.in.h: Likewise.
10088         * lib/isapipe.c: Likewise.
10089         * lib/isdir.c: Likewise.
10090         * lib/isnan.c: Likewise.
10091         * lib/isnan.h: Likewise.
10092         * lib/isnanf.c: Likewise.
10093         * lib/isnanf.h: Likewise.
10094         * lib/isnanl-nolibm.h: Likewise.
10095         * lib/isnanl.c: Likewise.
10096         * lib/isnanl.h: Likewise.
10097         * lib/javacomp.c: Likewise.
10098         * lib/javacomp.h: Likewise.
10099         * lib/javaexec.c: Likewise.
10100         * lib/javaexec.h: Likewise.
10101         * lib/javaversion.c: Likewise.
10102         * lib/javaversion.h: Likewise.
10103         * lib/javaversion.java: Likewise.
10104         * lib/lbrkprop.h: Likewise.
10105         * lib/lchmod.h: Likewise.
10106         * lib/lchown.c: Likewise.
10107         * lib/ldexpl.c: Likewise.
10108         * lib/linebreak.c: Likewise.
10109         * lib/linebreak.h: Likewise.
10110         * lib/linebuffer.c: Likewise.
10111         * lib/linebuffer.h: Likewise.
10112         * lib/locale.in.h: Likewise.
10113         * lib/logl.c: Likewise.
10114         * lib/long-options.c: Likewise.
10115         * lib/long-options.h: Likewise.
10116         * lib/lstat.c: Likewise.
10117         * lib/lstat.h: Likewise.
10118         * lib/math.in.h: Likewise.
10119         * lib/mbchar.c: Likewise.
10120         * lib/mbchar.h: Likewise.
10121         * lib/mbfile.h: Likewise.
10122         * lib/mbiter.h: Likewise.
10123         * lib/mbscasecmp.c: Likewise.
10124         * lib/mbscasestr.c: Likewise.
10125         * lib/mbschr.c: Likewise.
10126         * lib/mbscspn.c: Likewise.
10127         * lib/mbslen.c: Likewise.
10128         * lib/mbsncasecmp.c: Likewise.
10129         * lib/mbsnlen.c: Likewise.
10130         * lib/mbspbrk.c: Likewise.
10131         * lib/mbspcasecmp.c: Likewise.
10132         * lib/mbsrchr.c: Likewise.
10133         * lib/mbssep.c: Likewise.
10134         * lib/mbsspn.c: Likewise.
10135         * lib/mbsstr.c: Likewise.
10136         * lib/mbstok_r.c: Likewise.
10137         * lib/mbswidth.c: Likewise.
10138         * lib/mbswidth.h: Likewise.
10139         * lib/mbuiter.h: Likewise.
10140         * lib/memcasecmp.c: Likewise.
10141         * lib/memcasecmp.h: Likewise.
10142         * lib/memchr.c: Likewise.
10143         * lib/memcmp.c: Likewise.
10144         * lib/memcoll.c: Likewise.
10145         * lib/memcoll.h: Likewise.
10146         * lib/memcpy.c: Likewise.
10147         * lib/memrchr.c: Likewise.
10148         * lib/mkancesdirs.c: Likewise.
10149         * lib/mkdir-p.c: Likewise.
10150         * lib/mkdir-p.h: Likewise.
10151         * lib/mkdir.c: Likewise.
10152         * lib/mkdirat.c: Likewise.
10153         * lib/mkdtemp.c: Likewise.
10154         * lib/mkstemp-safer.c: Likewise.
10155         * lib/mkstemp.c: Likewise.
10156         * lib/modechange.c: Likewise.
10157         * lib/modechange.h: Likewise.
10158         * lib/mountlist.c: Likewise.
10159         * lib/mountlist.h: Likewise.
10160         * lib/mpsort.c: Likewise.
10161         * lib/nanosleep.c: Likewise.
10162         * lib/obstack.c: Likewise.
10163         * lib/obstack.h: Likewise.
10164         * lib/open-safer.c: Likewise.
10165         * lib/open.c: Likewise.
10166         * lib/openat-die.c: Likewise.
10167         * lib/openat-priv.h: Likewise.
10168         * lib/openat-proc.c: Likewise.
10169         * lib/openat.c: Likewise.
10170         * lib/openat.h: Likewise.
10171         * lib/pagealign_alloc.c: Likewise.
10172         * lib/pagealign_alloc.h: Likewise.
10173         * lib/physmem.c: Likewise.
10174         * lib/physmem.h: Likewise.
10175         * lib/pipe-safer.c: Likewise.
10176         * lib/pipe.c: Likewise.
10177         * lib/pipe.h: Likewise.
10178         * lib/posixtm.c: Likewise.
10179         * lib/posixtm.h: Likewise.
10180         * lib/posixver.c: Likewise.
10181         * lib/printf-frexp.c: Likewise.
10182         * lib/printf-frexp.h: Likewise.
10183         * lib/printf-frexpl.c: Likewise.
10184         * lib/printf-frexpl.h: Likewise.
10185         * lib/printf.c: Likewise.
10186         * lib/progname.c: Likewise.
10187         * lib/progname.h: Likewise.
10188         * lib/progreloc.c: Likewise.
10189         * lib/putenv.c: Likewise.
10190         * lib/quote.c: Likewise.
10191         * lib/quote.h: Likewise.
10192         * lib/quotearg.c: Likewise.
10193         * lib/quotearg.h: Likewise.
10194         * lib/raise.c: Likewise.
10195         * lib/readline.c: Likewise.
10196         * lib/readline.h: Likewise.
10197         * lib/readlink.c: Likewise.
10198         * lib/readtokens.c: Likewise.
10199         * lib/readtokens.h: Likewise.
10200         * lib/readtokens0.c: Likewise.
10201         * lib/readtokens0.h: Likewise.
10202         * lib/readutmp.c: Likewise.
10203         * lib/readutmp.h: Likewise.
10204         * lib/realloc.c: Likewise.
10205         * lib/relocwrapper.c: Likewise.
10206         * lib/rename-dest-slash.c: Likewise.
10207         * lib/rename.c: Likewise.
10208         * lib/rmdir.c: Likewise.
10209         * lib/rpmatch.c: Likewise.
10210         * lib/safe-read.c: Likewise.
10211         * lib/safe-read.h: Likewise.
10212         * lib/safe-write.c: Likewise.
10213         * lib/safe-write.h: Likewise.
10214         * lib/same-inode.h: Likewise.
10215         * lib/same.c: Likewise.
10216         * lib/same.h: Likewise.
10217         * lib/save-cwd.c: Likewise.
10218         * lib/save-cwd.h: Likewise.
10219         * lib/savedir.c: Likewise.
10220         * lib/savedir.h: Likewise.
10221         * lib/savewd.c: Likewise.
10222         * lib/savewd.h: Likewise.
10223         * lib/search.in.h: Likewise.
10224         * lib/setenv.c: Likewise.
10225         * lib/setenv.h: Likewise.
10226         * lib/settime.c: Likewise.
10227         * lib/sh-quote.c: Likewise.
10228         * lib/sh-quote.h: Likewise.
10229         * lib/sig2str.c: Likewise.
10230         * lib/sig2str.h: Likewise.
10231         * lib/signal.in.h: Likewise.
10232         * lib/signbitd.c: Likewise.
10233         * lib/signbitf.c: Likewise.
10234         * lib/signbitl.c: Likewise.
10235         * lib/sigprocmask.c: Likewise.
10236         * lib/sincosl.c: Likewise.
10237         * lib/sleep.c: Likewise.
10238         * lib/sprintf.c: Likewise.
10239         * lib/sqrtl.c: Likewise.
10240         * lib/stat-time.h: Likewise.
10241         * lib/stdio--.h: Likewise.
10242         * lib/stdio-safer.h: Likewise.
10243         * lib/stdlib--.h: Likewise.
10244         * lib/stdlib-safer.h: Likewise.
10245         * lib/stdlib.in.h: Likewise.
10246         * lib/stpcpy.c: Likewise.
10247         * lib/stpncpy.c: Likewise.
10248         * lib/strchrnul.c: Likewise.
10249         * lib/strcspn.c: Likewise.
10250         * lib/strerror.c: Likewise.
10251         * lib/strftime.c: Likewise.
10252         * lib/strftime.h: Likewise.
10253         * lib/striconveh.c: Likewise.
10254         * lib/striconveh.h: Likewise.
10255         * lib/striconveha.c: Likewise.
10256         * lib/striconveha.h: Likewise.
10257         * lib/stripslash.c: Likewise.
10258         * lib/strnlen1.c: Likewise.
10259         * lib/strnlen1.h: Likewise.
10260         * lib/strtod.c: Likewise.
10261         * lib/strtoimax.c: Likewise.
10262         * lib/strtok_r.c: Likewise.
10263         * lib/strtol.c: Likewise.
10264         * lib/strtoll.c: Likewise.
10265         * lib/strtoul.c: Likewise.
10266         * lib/strtoull.c: Likewise.
10267         * lib/sysexits.in.h: Likewise.
10268         * lib/tempname.c: Likewise.
10269         * lib/tempname.h: Likewise.
10270         * lib/timespec.h: Likewise.
10271         * lib/tls.c: Likewise.
10272         * lib/tls.h: Likewise.
10273         * lib/tmpdir.c: Likewise.
10274         * lib/tmpdir.h: Likewise.
10275         * lib/tmpfile-safer.c: Likewise.
10276         * lib/tmpfile.c: Likewise.
10277         * lib/trigl.c: Likewise.
10278         * lib/trigl.h: Likewise.
10279         * lib/trim.c: Likewise.
10280         * lib/trim.h: Likewise.
10281         * lib/trunc.c: Likewise.
10282         * lib/truncf.c: Likewise.
10283         * lib/truncl.c: Likewise.
10284         * lib/tsearch.c: Likewise.
10285         * lib/unicodeio.c: Likewise.
10286         * lib/unicodeio.h: Likewise.
10287         * lib/unistd--.h: Likewise.
10288         * lib/unistd-safer.h: Likewise.
10289         * lib/unistdio/ulc-fprintf.c: Likewise.
10290         * lib/unistdio/ulc-vfprintf.c: Likewise.
10291         * lib/unlinkdir.c: Likewise.
10292         * lib/unlinkdir.h: Likewise.
10293         * lib/unlocked-io.h: Likewise.
10294         * lib/unsetenv.c: Likewise.
10295         * lib/userspec.c: Likewise.
10296         * lib/utime.c: Likewise.
10297         * lib/utimecmp.c: Likewise.
10298         * lib/utimecmp.h: Likewise.
10299         * lib/utimens.c: Likewise.
10300         * lib/verify.h: Likewise.
10301         * lib/verror.c: Likewise.
10302         * lib/verror.h: Likewise.
10303         * lib/version-etc-fsf.c: Likewise.
10304         * lib/version-etc.c: Likewise.
10305         * lib/version-etc.h: Likewise.
10306         * lib/vfprintf.c: Likewise.
10307         * lib/vprintf.c: Likewise.
10308         * lib/vsprintf.c: Likewise.
10309         * lib/w32spawn.h: Likewise.
10310         * lib/wait-process.c: Likewise.
10311         * lib/wait-process.h: Likewise.
10312         * lib/wcwidth.c: Likewise.
10313         * lib/write-any-file.c: Likewise.
10314         * lib/xalloc-die.c: Likewise.
10315         * lib/xalloc.h: Likewise.
10316         * lib/xasprintf.c: Likewise.
10317         * lib/xgetcwd.c: Likewise.
10318         * lib/xgetcwd.h: Likewise.
10319         * lib/xgetdomainname.c: Likewise.
10320         * lib/xgetdomainname.h: Likewise.
10321         * lib/xgethostname.c: Likewise.
10322         * lib/xmalloc.c: Likewise.
10323         * lib/xmalloca.c: Likewise.
10324         * lib/xmalloca.h: Likewise.
10325         * lib/xmemcoll.c: Likewise.
10326         * lib/xnanosleep.c: Likewise.
10327         * lib/xreadlink.c: Likewise.
10328         * lib/xreadlink.h: Likewise.
10329         * lib/xsetenv.c: Likewise.
10330         * lib/xsetenv.h: Likewise.
10331         * lib/xstriconv.c: Likewise.
10332         * lib/xstriconv.h: Likewise.
10333         * lib/xstrndup.c: Likewise.
10334         * lib/xstrndup.h: Likewise.
10335         * lib/xstrtod.c: Likewise.
10336         * lib/xstrtod.h: Likewise.
10337         * lib/xstrtol-error.c: Likewise.
10338         * lib/xstrtol.c: Likewise.
10339         * lib/xstrtol.h: Likewise.
10340         * lib/xtime.h: Likewise.
10341         * lib/xvasprintf.c: Likewise.
10342         * lib/xvasprintf.h: Likewise.
10343         * lib/yesno.c: Likewise.
10344         * lib/yesno.h: Likewise.
10345         * posix-modules: Likewise.
10346         * tests/test-alloca-opt.c: Likewise.
10347         * tests/test-arcfour.c: Likewise.
10348         * tests/test-arctwo.c: Likewise.
10349         * tests/test-argmatch.c: Likewise.
10350         * tests/test-argp-2.sh: Likewise.
10351         * tests/test-argp.c: Likewise.
10352         * tests/test-arpa_inet.c: Likewise.
10353         * tests/test-array_list.c: Likewise.
10354         * tests/test-array_oset.c: Likewise.
10355         * tests/test-atexit.c: Likewise.
10356         * tests/test-avltree_list.c: Likewise.
10357         * tests/test-avltree_oset.c: Likewise.
10358         * tests/test-avltreehash_list.c: Likewise.
10359         * tests/test-base64.c: Likewise.
10360         * tests/test-binary-io.c: Likewise.
10361         * tests/test-byteswap.c: Likewise.
10362         * tests/test-c-ctype.c: Likewise.
10363         * tests/test-c-strcasecmp.c: Likewise.
10364         * tests/test-c-strcasestr.c: Likewise.
10365         * tests/test-c-strncasecmp.c: Likewise.
10366         * tests/test-c-strstr.c: Likewise.
10367         * tests/test-canonicalize-lgpl.c: Likewise.
10368         * tests/test-canonicalize.c: Likewise.
10369         * tests/test-carray_list.c: Likewise.
10370         * tests/test-ceilf.c: Likewise.
10371         * tests/test-ceill.c: Likewise.
10372         * tests/test-count-one-bits.c: Likewise.
10373         * tests/test-crc.c: Likewise.
10374         * tests/test-dirname.c: Likewise.
10375         * tests/test-fbufmode.c: Likewise.
10376         * tests/test-fcntl.c: Likewise.
10377         * tests/test-fflush.c: Likewise.
10378         * tests/test-floorf.c: Likewise.
10379         * tests/test-floorl.c: Likewise.
10380         * tests/test-fopen.c: Likewise.
10381         * tests/test-fprintf-posix.c: Likewise.
10382         * tests/test-fprintf-posix.h: Likewise.
10383         * tests/test-fpurge.c: Likewise.
10384         * tests/test-freadable.c: Likewise.
10385         * tests/test-freadahead.c: Likewise.
10386         * tests/test-freading.c: Likewise.
10387         * tests/test-freopen.c: Likewise.
10388         * tests/test-frexp.c: Likewise.
10389         * tests/test-frexpl.c: Likewise.
10390         * tests/test-fseek.c: Likewise.
10391         * tests/test-fseeko.c: Likewise.
10392         * tests/test-fseterr.c: Likewise.
10393         * tests/test-fstrcmp.c: Likewise.
10394         * tests/test-ftell.c: Likewise.
10395         * tests/test-ftello.c: Likewise.
10396         * tests/test-fwritable.c: Likewise.
10397         * tests/test-fwriting.c: Likewise.
10398         * tests/test-getaddrinfo.c: Likewise.
10399         * tests/test-getpass.c: Likewise.
10400         * tests/test-gettimeofday.c: Likewise.
10401         * tests/test-hmac-md5.c: Likewise.
10402         * tests/test-hmac-sha1.c: Likewise.
10403         * tests/test-iconv.c: Likewise.
10404         * tests/test-iconvme.c: Likewise.
10405         * tests/test-inttypes.c: Likewise.
10406         * tests/test-isnan.c: Likewise.
10407         * tests/test-isnanf.c: Likewise.
10408         * tests/test-isnanl-nolibm.c: Likewise.
10409         * tests/test-isnanl.c: Likewise.
10410         * tests/test-isnanl.h: Likewise.
10411         * tests/test-ldexpl.c: Likewise.
10412         * tests/test-linked_list.c: Likewise.
10413         * tests/test-linkedhash_list.c: Likewise.
10414         * tests/test-locale.c: Likewise.
10415         * tests/test-localename.c: Likewise.
10416         * tests/test-lock.c: Likewise.
10417         * tests/test-lseek.c: Likewise.
10418         * tests/test-malloca.c: Likewise.
10419         * tests/test-math.c: Likewise.
10420         * tests/test-mbscasecmp.c: Likewise.
10421         * tests/test-mbscasestr1.c: Likewise.
10422         * tests/test-mbscasestr2.c: Likewise.
10423         * tests/test-mbscasestr3.c: Likewise.
10424         * tests/test-mbscasestr4.c: Likewise.
10425         * tests/test-mbschr.c: Likewise.
10426         * tests/test-mbscspn.c: Likewise.
10427         * tests/test-mbsncasecmp.c: Likewise.
10428         * tests/test-mbspbrk.c: Likewise.
10429         * tests/test-mbspcasecmp.c: Likewise.
10430         * tests/test-mbsrchr.c: Likewise.
10431         * tests/test-mbsspn.c: Likewise.
10432         * tests/test-mbsstr1.c: Likewise.
10433         * tests/test-mbsstr2.c: Likewise.
10434         * tests/test-mbsstr3.c: Likewise.
10435         * tests/test-md5.c: Likewise.
10436         * tests/test-memmem.c: Likewise.
10437         * tests/test-netinet_in.c: Likewise.
10438         * tests/test-open.c: Likewise.
10439         * tests/test-printf-frexp.c: Likewise.
10440         * tests/test-printf-frexpl.c: Likewise.
10441         * tests/test-printf-posix.c: Likewise.
10442         * tests/test-printf-posix.h: Likewise.
10443         * tests/test-rbtree_list.c: Likewise.
10444         * tests/test-rbtree_oset.c: Likewise.
10445         * tests/test-rbtreehash_list.c: Likewise.
10446         * tests/test-read-file.c: Likewise.
10447         * tests/test-rijndael.c: Likewise.
10448         * tests/test-search.c: Likewise.
10449         * tests/test-signbit.c: Likewise.
10450         * tests/test-sleep.c: Likewise.
10451         * tests/test-snprintf-posix.c: Likewise.
10452         * tests/test-snprintf-posix.h: Likewise.
10453         * tests/test-snprintf.c: Likewise.
10454         * tests/test-sprintf-posix.c: Likewise.
10455         * tests/test-sprintf-posix.h: Likewise.
10456         * tests/test-stat-time.c: Likewise.
10457         * tests/test-stdbool.c: Likewise.
10458         * tests/test-stdint.c: Likewise.
10459         * tests/test-stdio.c: Likewise.
10460         * tests/test-stdlib.c: Likewise.
10461         * tests/test-stpncpy.c: Likewise.
10462         * tests/test-strcasestr.c: Likewise.
10463         * tests/test-striconv.c: Likewise.
10464         * tests/test-striconveh.c: Likewise.
10465         * tests/test-striconveha.c: Likewise.
10466         * tests/test-string.c: Likewise.
10467         * tests/test-sys_select.c: Likewise.
10468         * tests/test-sys_socket.c: Likewise.
10469         * tests/test-sys_stat.c: Likewise.
10470         * tests/test-sys_time.c: Likewise.
10471         * tests/test-sysexits.c: Likewise.
10472         * tests/test-time.c: Likewise.
10473         * tests/test-tls.c: Likewise.
10474         * tests/test-trunc.c: Likewise.
10475         * tests/test-truncf.c: Likewise.
10476         * tests/test-truncl.c: Likewise.
10477         * tests/test-unistd.c: Likewise.
10478         * tests/test-vasnprintf-posix.c: Likewise.
10479         * tests/test-vasnprintf-posix2.c: Likewise.
10480         * tests/test-vasnprintf.c: Likewise.
10481         * tests/test-vasprintf-posix.c: Likewise.
10482         * tests/test-vasprintf.c: Likewise.
10483         * tests/test-verify.c: Likewise.
10484         * tests/test-vfprintf-posix.c: Likewise.
10485         * tests/test-vprintf-posix.c: Likewise.
10486         * tests/test-vsnprintf-posix.c: Likewise.
10487         * tests/test-vsnprintf.c: Likewise.
10488         * tests/test-vsprintf-posix.c: Likewise.
10489         * tests/test-wchar.c: Likewise.
10490         * tests/test-wctype.c: Likewise.
10491         * tests/test-wcwidth.c: Likewise.
10492         * tests/test-xstrtol.c: Likewise.
10493         * tests/test-xvasprintf.c: Likewise.
10494         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10495         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10496         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10497         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10498         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10499         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10500         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10501         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10502         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10503         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10504         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10505         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10506         * tests/uniname/test-uninames.c: Likewise.
10507         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10508         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10509         * tests/unistdio/test-u16-printf1.h: Likewise.
10510         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10511         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10512         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10513         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10514         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10515         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10516         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10517         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10518         * tests/unistdio/test-u32-printf1.h: Likewise.
10519         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10520         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10521         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10522         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10523         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10524         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10525         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10526         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10527         * tests/unistdio/test-u8-printf1.h: Likewise.
10528         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10529         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10530         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10531         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10532         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10533         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10534         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10535         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10536         * tests/unistdio/test-ulc-printf1.h: Likewise.
10537         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10538         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10539         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10540         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10541         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10542         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10543         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10544         * tests/uniwidth/test-u16-width.c: Likewise.
10545         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10546         * tests/uniwidth/test-u32-width.c: Likewise.
10547         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10548         * tests/uniwidth/test-u8-width.c: Likewise.
10549         * tests/uniwidth/test-uc_width.c: Likewise.
10550         * config/srclist-update: Likewise.
10551         (fixlicense): Update to GPLv3+.
10552
10553         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10554         * tests/test-tsearch.c: Change copyright notice.
10555
10556         Change copyright notice from LGPLv2.0+ to LGPLv3+.
10557         * lib/c-strcaseeq.h: Change copyright notice.
10558         * lib/streq.h: Likewise.
10559         * lib/uniconv.h: Likewise.
10560         * lib/uniconv/u-conv-from-enc.h: Likewise.
10561         * lib/uniconv/u-conv-to-enc.h: Likewise.
10562         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10563         * lib/uniconv/u-strconv-to-enc.h: Likewise.
10564         * lib/uniconv/u16-conv-from-enc.c: Likewise.
10565         * lib/uniconv/u16-conv-to-enc.c: Likewise.
10566         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10567         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10568         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10569         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10570         * lib/uniconv/u32-conv-from-enc.c: Likewise.
10571         * lib/uniconv/u32-conv-to-enc.c: Likewise.
10572         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10573         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10574         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10575         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10576         * lib/uniconv/u8-conv-from-enc.c: Likewise.
10577         * lib/uniconv/u8-conv-to-enc.c: Likewise.
10578         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10579         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10580         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10581         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10582         * lib/uniname.h: Likewise.
10583         * lib/uniname/uniname.c: Likewise.
10584         * lib/unistdio.h: Likewise.
10585         * lib/unistdio/u-asnprintf.h: Likewise.
10586         * lib/unistdio/u-asprintf.h: Likewise.
10587         * lib/unistdio/u-printf-args.c: Likewise.
10588         * lib/unistdio/u-printf-args.h: Likewise.
10589         * lib/unistdio/u-printf-parse.h: Likewise.
10590         * lib/unistdio/u-snprintf.h: Likewise.
10591         * lib/unistdio/u-sprintf.h: Likewise.
10592         * lib/unistdio/u-vasprintf.h: Likewise.
10593         * lib/unistdio/u-vsnprintf.h: Likewise.
10594         * lib/unistdio/u-vsprintf.h: Likewise.
10595         * lib/unistdio/u16-asnprintf.c: Likewise.
10596         * lib/unistdio/u16-asprintf.c: Likewise.
10597         * lib/unistdio/u16-printf-parse.c: Likewise.
10598         * lib/unistdio/u16-snprintf.c: Likewise.
10599         * lib/unistdio/u16-sprintf.c: Likewise.
10600         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10601         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10602         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10603         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10604         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10605         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10606         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10607         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10608         * lib/unistdio/u16-vasnprintf.c: Likewise.
10609         * lib/unistdio/u16-vasprintf.c: Likewise.
10610         * lib/unistdio/u16-vsnprintf.c: Likewise.
10611         * lib/unistdio/u16-vsprintf.c: Likewise.
10612         * lib/unistdio/u32-asnprintf.c: Likewise.
10613         * lib/unistdio/u32-asprintf.c: Likewise.
10614         * lib/unistdio/u32-printf-parse.c: Likewise.
10615         * lib/unistdio/u32-snprintf.c: Likewise.
10616         * lib/unistdio/u32-sprintf.c: Likewise.
10617         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10618         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10619         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10620         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10621         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10622         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10623         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10624         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10625         * lib/unistdio/u32-vasnprintf.c: Likewise.
10626         * lib/unistdio/u32-vasprintf.c: Likewise.
10627         * lib/unistdio/u32-vsnprintf.c: Likewise.
10628         * lib/unistdio/u32-vsprintf.c: Likewise.
10629         * lib/unistdio/u8-asnprintf.c: Likewise.
10630         * lib/unistdio/u8-asprintf.c: Likewise.
10631         * lib/unistdio/u8-printf-parse.c: Likewise.
10632         * lib/unistdio/u8-snprintf.c: Likewise.
10633         * lib/unistdio/u8-sprintf.c: Likewise.
10634         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10635         * lib/unistdio/u8-u8-asprintf.c: Likewise.
10636         * lib/unistdio/u8-u8-snprintf.c: Likewise.
10637         * lib/unistdio/u8-u8-sprintf.c: Likewise.
10638         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10639         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10640         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10641         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10642         * lib/unistdio/u8-vasnprintf.c: Likewise.
10643         * lib/unistdio/u8-vasprintf.c: Likewise.
10644         * lib/unistdio/u8-vsnprintf.c: Likewise.
10645         * lib/unistdio/u8-vsprintf.c: Likewise.
10646         * lib/unistdio/ulc-asnprintf.c: Likewise.
10647         * lib/unistdio/ulc-asprintf.c: Likewise.
10648         * lib/unistdio/ulc-printf-parse.c: Likewise.
10649         * lib/unistdio/ulc-snprintf.c: Likewise.
10650         * lib/unistdio/ulc-sprintf.c: Likewise.
10651         * lib/unistdio/ulc-vasnprintf.c: Likewise.
10652         * lib/unistdio/ulc-vasprintf.c: Likewise.
10653         * lib/unistdio/ulc-vsnprintf.c: Likewise.
10654         * lib/unistdio/ulc-vsprintf.c: Likewise.
10655         * lib/unistr.h: Likewise.
10656         * lib/unistr/u-cpy-alloc.h: Likewise.
10657         * lib/unistr/u-cpy.h: Likewise.
10658         * lib/unistr/u-endswith.h: Likewise.
10659         * lib/unistr/u-move.h: Likewise.
10660         * lib/unistr/u-set.h: Likewise.
10661         * lib/unistr/u-startswith.h: Likewise.
10662         * lib/unistr/u-stpcpy.h: Likewise.
10663         * lib/unistr/u-stpncpy.h: Likewise.
10664         * lib/unistr/u-strcat.h: Likewise.
10665         * lib/unistr/u-strcpy.h: Likewise.
10666         * lib/unistr/u-strcspn.h: Likewise.
10667         * lib/unistr/u-strdup.h: Likewise.
10668         * lib/unistr/u-strlen.h: Likewise.
10669         * lib/unistr/u-strncat.h: Likewise.
10670         * lib/unistr/u-strncpy.h: Likewise.
10671         * lib/unistr/u-strnlen.h: Likewise.
10672         * lib/unistr/u-strpbrk.h: Likewise.
10673         * lib/unistr/u-strspn.h: Likewise.
10674         * lib/unistr/u-strstr.h: Likewise.
10675         * lib/unistr/u-strtok.h: Likewise.
10676         * lib/unistr/u16-check.c: Likewise.
10677         * lib/unistr/u16-chr.c: Likewise.
10678         * lib/unistr/u16-cmp.c: Likewise.
10679         * lib/unistr/u16-cpy-alloc.c: Likewise.
10680         * lib/unistr/u16-cpy.c: Likewise.
10681         * lib/unistr/u16-endswith.c: Likewise.
10682         * lib/unistr/u16-mblen.c: Likewise.
10683         * lib/unistr/u16-mbsnlen.c: Likewise.
10684         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10685         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10686         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10687         * lib/unistr/u16-mbtouc.c: Likewise.
10688         * lib/unistr/u16-mbtoucr.c: Likewise.
10689         * lib/unistr/u16-move.c: Likewise.
10690         * lib/unistr/u16-next.c: Likewise.
10691         * lib/unistr/u16-prev.c: Likewise.
10692         * lib/unistr/u16-set.c: Likewise.
10693         * lib/unistr/u16-startswith.c: Likewise.
10694         * lib/unistr/u16-stpcpy.c: Likewise.
10695         * lib/unistr/u16-stpncpy.c: Likewise.
10696         * lib/unistr/u16-strcat.c: Likewise.
10697         * lib/unistr/u16-strchr.c: Likewise.
10698         * lib/unistr/u16-strcmp.c: Likewise.
10699         * lib/unistr/u16-strcpy.c: Likewise.
10700         * lib/unistr/u16-strcspn.c: Likewise.
10701         * lib/unistr/u16-strdup.c: Likewise.
10702         * lib/unistr/u16-strlen.c: Likewise.
10703         * lib/unistr/u16-strmblen.c: Likewise.
10704         * lib/unistr/u16-strmbtouc.c: Likewise.
10705         * lib/unistr/u16-strncat.c: Likewise.
10706         * lib/unistr/u16-strncmp.c: Likewise.
10707         * lib/unistr/u16-strncpy.c: Likewise.
10708         * lib/unistr/u16-strnlen.c: Likewise.
10709         * lib/unistr/u16-strpbrk.c: Likewise.
10710         * lib/unistr/u16-strrchr.c: Likewise.
10711         * lib/unistr/u16-strspn.c: Likewise.
10712         * lib/unistr/u16-strstr.c: Likewise.
10713         * lib/unistr/u16-strtok.c: Likewise.
10714         * lib/unistr/u16-to-u32.c: Likewise.
10715         * lib/unistr/u16-to-u8.c: Likewise.
10716         * lib/unistr/u16-uctomb-aux.c: Likewise.
10717         * lib/unistr/u16-uctomb.c: Likewise.
10718         * lib/unistr/u32-check.c: Likewise.
10719         * lib/unistr/u32-chr.c: Likewise.
10720         * lib/unistr/u32-cmp.c: Likewise.
10721         * lib/unistr/u32-cpy-alloc.c: Likewise.
10722         * lib/unistr/u32-cpy.c: Likewise.
10723         * lib/unistr/u32-endswith.c: Likewise.
10724         * lib/unistr/u32-mblen.c: Likewise.
10725         * lib/unistr/u32-mbsnlen.c: Likewise.
10726         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10727         * lib/unistr/u32-mbtouc.c: Likewise.
10728         * lib/unistr/u32-mbtoucr.c: Likewise.
10729         * lib/unistr/u32-move.c: Likewise.
10730         * lib/unistr/u32-next.c: Likewise.
10731         * lib/unistr/u32-prev.c: Likewise.
10732         * lib/unistr/u32-set.c: Likewise.
10733         * lib/unistr/u32-startswith.c: Likewise.
10734         * lib/unistr/u32-stpcpy.c: Likewise.
10735         * lib/unistr/u32-stpncpy.c: Likewise.
10736         * lib/unistr/u32-strcat.c: Likewise.
10737         * lib/unistr/u32-strchr.c: Likewise.
10738         * lib/unistr/u32-strcmp.c: Likewise.
10739         * lib/unistr/u32-strcpy.c: Likewise.
10740         * lib/unistr/u32-strcspn.c: Likewise.
10741         * lib/unistr/u32-strdup.c: Likewise.
10742         * lib/unistr/u32-strlen.c: Likewise.
10743         * lib/unistr/u32-strmblen.c: Likewise.
10744         * lib/unistr/u32-strmbtouc.c: Likewise.
10745         * lib/unistr/u32-strncat.c: Likewise.
10746         * lib/unistr/u32-strncmp.c: Likewise.
10747         * lib/unistr/u32-strncpy.c: Likewise.
10748         * lib/unistr/u32-strnlen.c: Likewise.
10749         * lib/unistr/u32-strpbrk.c: Likewise.
10750         * lib/unistr/u32-strrchr.c: Likewise.
10751         * lib/unistr/u32-strspn.c: Likewise.
10752         * lib/unistr/u32-strstr.c: Likewise.
10753         * lib/unistr/u32-strtok.c: Likewise.
10754         * lib/unistr/u32-to-u16.c: Likewise.
10755         * lib/unistr/u32-to-u8.c: Likewise.
10756         * lib/unistr/u32-uctomb.c: Likewise.
10757         * lib/unistr/u8-check.c: Likewise.
10758         * lib/unistr/u8-chr.c: Likewise.
10759         * lib/unistr/u8-cmp.c: Likewise.
10760         * lib/unistr/u8-cpy-alloc.c: Likewise.
10761         * lib/unistr/u8-cpy.c: Likewise.
10762         * lib/unistr/u8-endswith.c: Likewise.
10763         * lib/unistr/u8-mblen.c: Likewise.
10764         * lib/unistr/u8-mbsnlen.c: Likewise.
10765         * lib/unistr/u8-mbtouc-aux.c: Likewise.
10766         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10767         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10768         * lib/unistr/u8-mbtouc.c: Likewise.
10769         * lib/unistr/u8-mbtoucr.c: Likewise.
10770         * lib/unistr/u8-move.c: Likewise.
10771         * lib/unistr/u8-next.c: Likewise.
10772         * lib/unistr/u8-prev.c: Likewise.
10773         * lib/unistr/u8-set.c: Likewise.
10774         * lib/unistr/u8-startswith.c: Likewise.
10775         * lib/unistr/u8-stpcpy.c: Likewise.
10776         * lib/unistr/u8-stpncpy.c: Likewise.
10777         * lib/unistr/u8-strcat.c: Likewise.
10778         * lib/unistr/u8-strchr.c: Likewise.
10779         * lib/unistr/u8-strcmp.c: Likewise.
10780         * lib/unistr/u8-strcpy.c: Likewise.
10781         * lib/unistr/u8-strcspn.c: Likewise.
10782         * lib/unistr/u8-strdup.c: Likewise.
10783         * lib/unistr/u8-strlen.c: Likewise.
10784         * lib/unistr/u8-strmblen.c: Likewise.
10785         * lib/unistr/u8-strmbtouc.c: Likewise.
10786         * lib/unistr/u8-strncat.c: Likewise.
10787         * lib/unistr/u8-strncmp.c: Likewise.
10788         * lib/unistr/u8-strncpy.c: Likewise.
10789         * lib/unistr/u8-strnlen.c: Likewise.
10790         * lib/unistr/u8-strpbrk.c: Likewise.
10791         * lib/unistr/u8-strrchr.c: Likewise.
10792         * lib/unistr/u8-strspn.c: Likewise.
10793         * lib/unistr/u8-strstr.c: Likewise.
10794         * lib/unistr/u8-strtok.c: Likewise.
10795         * lib/unistr/u8-to-u16.c: Likewise.
10796         * lib/unistr/u8-to-u32.c: Likewise.
10797         * lib/unistr/u8-uctomb-aux.c: Likewise.
10798         * lib/unistr/u8-uctomb.c: Likewise.
10799         * lib/unitypes.h: Likewise.
10800         * lib/uniwidth.h: Likewise.
10801         * lib/uniwidth/cjk.h: Likewise.
10802         * lib/uniwidth/u16-strwidth.c: Likewise.
10803         * lib/uniwidth/u16-width.c: Likewise.
10804         * lib/uniwidth/u32-strwidth.c: Likewise.
10805         * lib/uniwidth/u32-width.c: Likewise.
10806         * lib/uniwidth/u8-strwidth.c: Likewise.
10807         * lib/uniwidth/u8-width.c: Likewise.
10808         * lib/uniwidth/width.c: Likewise.
10809
10810 2007-10-07  Bruno Haible  <bruno@clisp.org>
10811
10812         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10813         The file is still under LGPL (see modules/inttypes).
10814
10815 2007-10-06  Bruno Haible  <bruno@clisp.org>
10816
10817         * modules/trunc (Dependencies): Add 'extensions'.
10818         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10819         Reported by Ben Pfaff <blp@gnu.org>.
10820
10821 2007-10-06  Bruno Haible  <bruno@clisp.org>
10822
10823         * modules/freopen-tests: New file.
10824         * tests/test-freopen.c: New file.
10825
10826         * modules/fopen-tests: New file.
10827         * tests/test-fopen.c: New file.
10828
10829         * modules/fopen: New file.
10830         * lib/fopen.c: New file.
10831         * m4/fopen.m4: New file.
10832         * modules/freopen: New file.
10833         * lib/freopen.c: New file.
10834         * m4/freopen.m4: New file.
10835         * lib/stdio.in.h (fopen, freopen): New declarations.
10836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10837         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10838         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10839         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10840         * doc/functions/fopen.texi: Mention the 'fopen' module.
10841         * doc/functions/freopen.texi: Mention the 'freopen' module.
10842
10843 2007-10-06  Bruno Haible  <bruno@clisp.org>
10844
10845         * modules/open-tests: New file.
10846         * tests/test-open.c: New file.
10847
10848         * modules/open: New file.
10849         * lib/open.c: New file.
10850         * m4/open.m4: New file.
10851         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10852         lib/open.c does.
10853         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10854         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10855         macros.
10856         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10857         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10858         REPLACE_OPEN.
10859         * doc/functions/open.texi: Mention the 'open' module.
10860
10861 2007-10-04  Bruno Haible  <bruno@clisp.org>
10862
10863         * modules/ceill-tests: New file.
10864         * tests/test-ceill.c: New file.
10865
10866         * modules/ceill: New file.
10867         * lib/ceill.c: Replace entire file.
10868         * m4/ceill.m4: New file.
10869         * lib/math.in.h (ceill): Replace declaration.
10870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10871         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10872         * doc/functions/ceill.texi: Mention the 'ceill' module.
10873         * modules/mathl (Files): Remove lib/ceill.c.
10874         (Depends-on): Add ceill.
10875
10876 2007-10-04  Bruno Haible  <bruno@clisp.org>
10877
10878         * modules/ceilf-tests: New file.
10879         * tests/test-ceilf.c: New file.
10880
10881         * modules/ceilf: New file.
10882         * lib/ceil.c: New file.
10883         * lib/ceilf.c: New file.
10884         * m4/ceilf.m4: New file.
10885         * lib/math.in.h (ceilf): New declaration.
10886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10887         HAVE_DECL_CEILF.
10888         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10889         HAVE_DECL_CEILF.
10890         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
10891
10892 2007-10-04  Bruno Haible  <bruno@clisp.org>
10893
10894         * modules/floorl-tests: New file.
10895         * tests/test-floorl.c: New file.
10896
10897         * modules/floorl: New file.
10898         * lib/floorl.c: Replace entire file.
10899         * m4/floorl.m4: New file.
10900         * lib/math.in.h (floorl): Replace declaration.
10901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
10902         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
10903         * doc/functions/floorl.texi: Mention the 'floorl' module.
10904         * modules/mathl (Files): Remove lib/floorl.c.
10905         (Depends-on): Add floorl.
10906
10907 2007-10-04  Bruno Haible  <bruno@clisp.org>
10908
10909         * modules/floorf-tests: New file.
10910         * tests/test-floorf.c: New file.
10911
10912         * modules/floorf: New file.
10913         * lib/floor.c: New file.
10914         * lib/floorf.c: New file.
10915         * m4/floorf.m4: New file.
10916         * lib/math.in.h (floorf): New declaration.
10917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
10918         HAVE_DECL_FLOORF.
10919         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
10920         HAVE_DECL_FLOORF.
10921         * doc/functions/floorf.texi: Mention the 'floorf' module.
10922
10923 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
10924             Bruno Haible  <bruno@clisp.org>
10925
10926         Advertise for the Git server instead of the CVS server.
10927         * doc/gnulib-intro.texi (Steady Development): Mention the Git
10928         repository instead of the CVS one.
10929         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
10930         about all VCS systems generically.
10931         * doc/gnulib.texi (Introduction): Capitalize `Git'.
10932
10933 2007-10-04  Bruno Haible  <bruno@clisp.org>
10934
10935         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
10936         means.
10937         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
10938
10939 2007-10-04  Bruno Haible  <bruno@clisp.org>
10940
10941         * modules/truncl-tests: New file.
10942         * tests/test-truncl.c: New file.
10943
10944         * modules/truncl: New file.
10945         * lib/truncl.c: New file.
10946         * m4/truncl.m4: New file.
10947         * lib/math.in.h (truncl): New declaration.
10948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
10949         HAVE_DECL_TRUNCL.
10950         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
10951         HAVE_DECL_TRUNCL.
10952         * doc/functions/truncl.texi: Mention the 'truncl' module.
10953
10954 2007-10-04  Bruno Haible  <bruno@clisp.org>
10955
10956         * modules/truncf-tests: New file.
10957         * tests/test-truncf.c: New file.
10958
10959         * modules/truncf: New file.
10960         * lib/trunc.c: Make paramerizable through USE_* macros.
10961         * lib/truncf.c: New file.
10962         * m4/truncf.m4: New file.
10963         * lib/math.in.h (truncf): New declaration.
10964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10965         HAVE_DECL_TRUNCF.
10966         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10967         HAVE_DECL_TRUNCF.
10968         * doc/functions/truncf.texi: Mention the 'truncf' module.
10969
10970 2007-10-03  Bruno Haible  <bruno@clisp.org>
10971
10972         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10973         augmentation also for tests modules.
10974         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
10975         * modules/atexit-tests (Makefile.am): Likewise.
10976         * modules/binary-io-tests (Makefile.am): Likewise.
10977         * modules/c-strcase-tests (Makefile.am): Likewise.
10978         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
10979         * modules/canonicalize-tests (Makefile.am): Likewise.
10980         * modules/closein-tests (Makefile.am): Likewise.
10981         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10982         * modules/freadahead-tests (Makefile.am): Likewise.
10983         * modules/fseek-tests (Makefile.am): Likewise.
10984         * modules/fseeko-tests (Makefile.am): Likewise.
10985         * modules/ftell-tests (Makefile.am): Likewise.
10986         * modules/ftello-tests (Makefile.am): Likewise.
10987         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
10988         * modules/isnanl-tests (Makefile.am): Likewise.
10989         * modules/lseek-tests (Makefile.am): Likewise.
10990         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10991         * modules/mbscasestr-tests (Makefile.am): Likewise.
10992         * modules/mbschr-tests (Makefile.am): Likewise.
10993         * modules/mbscspn-tests (Makefile.am): Likewise.
10994         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10995         * modules/mbspbrk-tests (Makefile.am): Likewise.
10996         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10997         * modules/mbsrchr-tests (Makefile.am): Likewise.
10998         * modules/mbsspn-tests (Makefile.am): Likewise.
10999         * modules/mbsstr-tests (Makefile.am): Likewise.
11000         * modules/printf-posix-tests (Makefile.am): Likewise.
11001         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11002         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11003         * modules/tsearch-tests (Makefile.am): Likewise.
11004         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11005         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11006         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11007         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11008         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11009         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11010         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11011         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11012         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11013         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11014         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11015         * modules/xstrtol-tests (Makefile.am): Likewise.
11016         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11017         * modules/yesno-tests (Makefile.am): Likewise.
11018
11019 2007-10-03  Bruno Haible  <bruno@clisp.org>
11020
11021         * modules/trunc-tests: New file.
11022         * tests/test-trunc.c: New file.
11023
11024         * modules/trunc: New file.
11025         * lib/trunc.c: New file.
11026         * m4/trunc.m4: New file.
11027         * lib/math.in.h (trunc): New declaration.
11028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11029         HAVE_DECL_TRUNC.
11030         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11031         HAVE_DECL_TRUNC.
11032         * doc/functions/trunc.texi: Mention the 'trunc' module.
11033
11034 2007-10-03  Bruno Haible  <bruno@clisp.org>
11035
11036         * tests/test-fpending.c: New file, mostly copied
11037         from coreutils/lib/t-fpending.c.
11038         * modules/fpending-tests: New file.
11039
11040 2007-10-03  Bruno Haible  <bruno@clisp.org>
11041
11042         Port the stdio extensions to QNX (untested).
11043         * lib/fseterr.c (fseterr): Add support for QNX.
11044         * lib/fbufmode.c (fbufmode): Likewise.
11045         * lib/freadable.c (freadable): Likewise.
11046         * lib/fwritable.c (fwritable): Likewise.
11047         * lib/freading.c (freading): Likewise.
11048         * lib/fwriting.c (fwriting): Likewise.
11049         * lib/freadahead.c (freadahed): Likewise.
11050         * lib/fpurge.c (fpurge): Likewise.
11051         * lib/fseeko.c (rpl_fseeko): Likewise.
11052
11053 2007-10-03  Bruno Haible  <bruno@clisp.org>
11054             Jim Meyering  <jim@meyering.net>
11055             Eric Blake  <ebb9@byu.net>
11056
11057         * doc/relocatable.texi: Use @command instead of @program.
11058
11059 2007-10-02  Jim Meyering  <jim@meyering.net>
11060
11061         Perform one more "_.h" -> ".in.h" substitution.
11062         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11063         instead of unistd_.h here, too.
11064
11065 2007-10-01  Bruno Haible  <bruno@clisp.org>
11066
11067         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11068         Needed for the alloca-opt module.
11069
11070 2007-09-30  Bruno Haible  <bruno@clisp.org>
11071
11072         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11073         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11074         alloca_.h.
11075         * lib/argz.in.h: Renamed from lib/argz_.h.
11076         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11077         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11078         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11079         byteswap_.h.
11080         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11081         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11082         dirent_.h.
11083         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11084         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11085         fcntl_.h.
11086         * lib/float.in.h: Renamed from lib/float_.h.
11087         * modules/float (Files, Makefile.am): Use float.in.h instead of
11088         float_.h.
11089         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11090         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11091         fnmatch_.h.
11092         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11093         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11094         getopt_.h.
11095         * lib/glob.in.h: Renamed from lib/glob_.h.
11096         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11097         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11098         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11099         iconv_.h.
11100         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11101         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11102         inttypes_.h.
11103         * lib/locale.in.h: Renamed from lib/locale_.h.
11104         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11105         locale_.h.
11106         * lib/math.in.h: Renamed from lib/math_.h.
11107         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11108         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11109         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11110         of netinet_in_.h. Add dependency.
11111         * lib/poll.in.h: Renamed from lib/poll_.h.
11112         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11113         * lib/search.in.h: Renamed from lib/search_.h.
11114         * modules/search (Files, Makefile.am): Use search.in.h instead of
11115         search_.h.
11116         * lib/signal.in.h: Renamed from lib/signal_.h.
11117         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11118         _signal.h.
11119         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11120         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11121         stdbool_.h.
11122         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11123         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11124         stdint_.h.
11125         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11126         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11127         stdio_.h.
11128         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11129         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11130         stdlib_.h.
11131         * lib/string.in.h: Renamed from lib/string_.h.
11132         * modules/string (Files, Makefile.am): Use string.in.h instead of
11133         string_.h.
11134         * doc/gnulib-tool.texi (Initial import): Update.
11135         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11136         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11137         of sys_select_.h. Add dependency.
11138         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11139         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11140         of sys_socket_.h.
11141         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11142         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11143         sys_stat_.h.
11144         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11145         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11146         sys_time_.h.
11147         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11148         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11149         sysexits_.h.
11150         * lib/time.in.h: Renamed from lib/time_.h.
11151         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11152         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11153         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11154         unistd_.h.
11155         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11156         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11157         wchar_.h.
11158         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11159         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11160         wctype_.h.
11161         * build-aux/bootstrap (slurp): Update.
11162         * lib/.cppi-disable: Update.
11163
11164 2007-09-30  Bruno Haible  <bruno@clisp.org>
11165
11166         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11167         Needed on BeOS.
11168
11169 2007-09-30  Bruno Haible  <bruno@clisp.org>
11170
11171         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11172
11173 2007-09-29  Bruno Haible  <bruno@clisp.org>
11174
11175         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11176
11177 2007-09-29  Bruno Haible  <bruno@clisp.org>
11178
11179         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11180         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11181         * build-aux/install-reloc: Compile also areadlink.c.
11182         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11183
11184 2007-09-29  Bruno Haible  <bruno@clisp.org>
11185
11186         * gnulib-tool (func_emit_initmacro_done): Indentation.
11187
11188 2007-09-29  Bruno Haible  <bruno@clisp.org>
11189
11190         * README: Add CVS checkout update instructions.
11191         Info from Bob Proulx <bob@proulx.com>.
11192
11193 2007-09-28  Eric Blake  <ebb9@byu.net>
11194
11195         Provide move-if-change.
11196         * build-aux/move-if-change: New file, based on best practice
11197         rather than any canonical upstream location.
11198
11199 2007-09-28  Jim Meyering  <jim@meyering.net>
11200
11201         Fix canonicalize loop-detection corner case.
11202         Do not attempt to stat the symlink values stored via seen_triple.
11203         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11204         on linux-2.6.18, (but not 2.6.22).
11205         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11206         triple_compare.  The former compares dev,ino,filename, while the latter
11207         would actually stat dirname(filename) when dev and ino were equal.
11208         * lib/hash-triple.c: Install <string.h>.
11209         (STREQ): Define.
11210         (triple_compare_ino_str): New function.
11211         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11212
11213 2007-09-28  Eric Blake  <ebb9@byu.net>
11214
11215         Enforce that AC_REPLACE_FUNCS files exist.
11216         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11217         override check for typos.
11218
11219         Fix test-closein on Solaris 10.
11220         * tests/test-closein.c (main): Don't assume stdin can be inherited
11221         closed on all systems.
11222         * tests/test-closein.sh: Likewise.
11223         Reported by Piotr Tarnowski.
11224
11225 2007-09-28  Jim Meyering  <jim@meyering.net>
11226
11227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11228
11229 2007-09-27  Jim Meyering  <jim@meyering.net>
11230
11231         canonicalize: Avoid a false-positive cycle failure.
11232         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11233         Sort.  Remove cycle-check.
11234         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11235         not cycle-check.h.
11236         (seen_triple): New function.
11237         (canonicalize_filename_mode): Use it instead of cycle-check.
11238         * tests/test-canonicalize.c: Add a test for this bug.
11239         * tests/test-canonicalize.sh: Set up and run the test.
11240
11241         New module, file-set, from coreutils.
11242         * modules/file-set: Define it.
11243         * lib/file-set.c, lib/file-set.h: Implement.
11244
11245         New module, hash-triple, from coreutils.
11246         * modules/hash-triple: Define it.
11247         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11248
11249 2007-09-25  Eric Blake  <ebb9@byu.net>
11250
11251         Fix strerror on Interix.
11252         * lib/string_.h (strerror): Declare replacement.
11253         * doc/functions/strerror.texi (strerror): Document the Interix
11254         shortcoming.
11255         * modules/string (Makefile.am): Support new hooks.
11256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11257         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11258         gl_FUNC_STRERROR_SEPARATE.
11259         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11260         * lib/strerror.c (rpl_strerror): Provide replacement.
11261         * modules/strerror (Depends-on): Add string.
11262         (configure.ac): Detect use of module.
11263         * tests/test-strerror.c: New file.
11264         * modules/strerror-tests: New test module.
11265         * modules/argp (Depends-on): Add strerror.
11266         * modules/error (Depends-on): Likewise.
11267         Reported by Martin Koeppe.
11268
11269 2007-09-24  Bruno Haible  <bruno@clisp.org>
11270
11271         * README: Update git instructions.
11272
11273 2007-09-24  Eric Blake  <ebb9@byu.net>
11274
11275         Revert fpending breakage from 2007-09-08.
11276         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11277         __fpending.c.
11278
11279 2007-09-24  Jim Meyering  <jim@meyering.net>
11280
11281         filenamecat.c: Add a test.
11282         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11283         showing how the function works when DIR is the empty string.
11284
11285 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11286
11287         * tests/test-canonicalize.sh: Turn on executable bit.
11288
11289 2007-09-19  Eric Blake  <ebb9@byu.net>
11290
11291         * README: Update CVS instructions.
11292
11293 2007-09-18  Bruno Haible  <bruno@clisp.org>
11294
11295         * modules/areadlink: New file.
11296         * lib/areadlink.h (areadlink): New declaration.
11297         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11298
11299 2007-09-17  Jim Meyering  <jim@meyering.net>
11300
11301         * lib/savewd.c (ESTALE) [!defined]: Define.
11302         Reported to be required on Interix by Martin Koeppe.
11303
11304 2007-09-17  Bruno Haible  <bruno@clisp.org>
11305
11306         * gnulib-tool (func_version): Use $version.
11307
11308 2007-09-16  Bruno Haible  <bruno@clisp.org>
11309
11310         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11311         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11312         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11313         Reported by Greg Schafer <gschafer@zip.com.au>.
11314
11315 2007-09-15  Bruno Haible  <bruno@clisp.org>
11316
11317         * gnulib-tool (sed): Try a little harder to make bash understand the
11318         alias.
11319         Reported by Bruce Korb <bruce.korb@gmail.com>.
11320
11321 2007-09-13  Eric Blake  <ebb9@byu.net>
11322
11323         * ChangeLog: Remove conflict markers.
11324
11325 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11326
11327         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11328         Reported by Bruno Haible <bruno@clisp.org>.
11329
11330 2007-09-12  Bruno Haible  <bruno@clisp.org>
11331
11332         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11333         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11334         is not defined.
11335
11336 2007-09-12  Eric Blake  <ebb9@byu.net>
11337
11338         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11339         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11340         Autoconf definition.
11341         * modules/euidaccess (Depends-on): Add extensions, for
11342         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11343         * modules/fnmatch (Depends-on): Likewise.
11344         * modules/getaddrinfo (Depends-on): Likewise.
11345         * modules/getdelim (Depends-on): Likewise.
11346         * modules/getline (Depends-on): Likewise.
11347         * modules/getsubopt (Depends-on): Likewise.
11348         * modules/gettext (Depends-on): Likewise.
11349         * modules/group-member (Depends-on): Likewise.
11350         * modules/mbchar (Depends-on): Likewise.
11351         * modules/memmem (Depends-on): Likewise.
11352         * modules/mempcpy (Depends-on): Likewise.
11353         * modules/memrchr (Depends-on): Likewise.
11354         * modules/pagealign_alloc (Depends-on): Likewise.
11355         * modules/readutmp (Depends-on): Likewise.
11356         * modules/stpcpy (Depends-on): Likewise.
11357         * modules/stpncpy (Depends-on): Likewise.
11358         * modules/strchrnul (Depends-on): Likewise.
11359         * modules/strndup (Depends-on): Likewise.
11360         * modules/strsep (Depends-on): Likewise.
11361         * modules/strverscmp (Depends-on): Likewise.
11362         * modules/vasprintf (Depends-on): Likewise.
11363         * modules/wcwidth (Depends-on): Likewise.
11364         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11365         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11366         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11369         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11370         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11371         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11372         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11373         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11374         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11375         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11376         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11377         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11378         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11379         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11380         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11381         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11383         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11384         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11385         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11386         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11387         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11388         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11390         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11391         so that lock.m4 can be used in gettext without extensions module.
11392
11393 2007-09-11  Bruno Haible  <bruno@clisp.org>
11394
11395         * m4/isc-posix.m4: Remove file.
11396         Suggested by Eric Blake.
11397
11398 2007-09-11  Eric Blake  <ebb9@byu.net>
11399
11400         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11401
11402 2007-09-10  Bruno Haible  <bruno@clisp.org>
11403
11404         * posix-modules: Fix typo in error message.
11405         Reported by Matt <mkraai@beckman.com>.
11406
11407 2007-09-09  Bruno Haible  <bruno@clisp.org>
11408
11409         * doc/functions/getdelim.texi: Update list of platforms lacking the
11410         function.
11411         * doc/functions/getline.texi: Likewise.
11412
11413 2007-09-09  Jim Meyering  <jim@meyering.net>
11414
11415         * lib/hash.c (hash_initialize): Detect calloc failure.
11416         Reported by Bruno Haible.
11417
11418 2007-09-09  Bruno Haible  <bruno@clisp.org>
11419
11420         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11421         malloc or realloc fails.
11422
11423 2007-09-09  Bruno Haible  <bruno@clisp.org>
11424
11425         * modules/getcwd (Depends-on): Add malloc-posix.
11426         * modules/glob (Depends-on): Likewise.
11427         * modules/putenv (Depends-on): Likewise.
11428         * modules/strdup (Depends-on): Likewise.
11429         * modules/getdelim (Depends-on): Add realloc-posix.
11430         * modules/read-file (Depends-on): Likewise.
11431
11432 2007-09-09  Bruno Haible  <bruno@clisp.org>
11433
11434         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11435         (gl_FUNC_MALLOC_POSIX): Require it.
11436         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11437         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11438         * modules/realloc (Files): Add m4/malloc.m4.
11439         * modules/calloc (Files): Likewise.
11440
11441 2007-09-09  Bruno Haible  <bruno@clisp.org>
11442
11443         * modules/malloc-posix: New file.
11444         * modules/malloc (Depends-on): Add malloc-posix.
11445         * lib/malloc.c: Include errno.h.
11446         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11447         and a POSIX-compatible malloc into a single function. Set ENOMEM
11448         when returning NULL.
11449         * m4/malloc.m4: New file.
11450         * doc/functions/malloc.texi: Mention the malloc-posix module.
11451         * lib/stdlib_.h (malloc): New declaration.
11452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11453         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11454         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11455         and HAVE_MALLOC_POSIX.
11456
11457 2007-09-09  Bruno Haible  <bruno@clisp.org>
11458
11459         * modules/realloc-posix: New file.
11460         * modules/realloc (Depends-on): Add realloc-posix.
11461         * lib/realloc.c: Include errno.h.
11462         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11463         and a POSIX-compatible realloc into a single function. Set ENOMEM
11464         when returning NULL.
11465         * m4/realloc.m4: New file.
11466         * doc/functions/realloc.texi: Mention the realloc-posix module.
11467         * lib/stdlib_.h (realloc): New declaration.
11468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11469         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11470         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11471         and HAVE_REALLOC_POSIX.
11472
11473 2007-09-09  Bruno Haible  <bruno@clisp.org>
11474
11475         * modules/calloc-posix: New file.
11476         * modules/calloc (Depends-on): Add calloc-posix.
11477         * lib/calloc.c: Include errno.h.
11478         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11479         and a POSIX-compatible calloc into a single function. Set ENOMEM
11480         when returning NULL.
11481         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11482         * doc/functions/calloc.texi: Mention the calloc-posix module.
11483         * lib/stdlib_.h (calloc): New declaration.
11484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11485         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11486         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11487         and HAVE_CALLOC_POSIX.
11488
11489 2007-09-09  Bruno Haible  <bruno@clisp.org>
11490
11491         Allow for modules to show an arbitrary notice.
11492         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11493         * gnulib-tool: New option --extract-notice.
11494         (func_usage): Document it.
11495         (sed_extract_prog): Update.
11496         (func_get_notice): New function.
11497         (func_modules_notice): New function.
11498         (func_import, func_create_testdir): Invoke it.
11499         Suggested by Jim Meyering.
11500
11501 2007-09-09  Bruno Haible  <bruno@clisp.org>
11502
11503         * gnulib-tool: New options --verbose, --quiet.
11504         (func_usage): Document them.
11505         (verbose): New variable.
11506         (func_execute_command): New function.
11507         (func_import): Don't show the module list and the file list if
11508         $verbose < 0.
11509         (func_create_testdir): Likewise. Use func_execute_command.
11510         (func_create_megatestdir): Use func_execute_command.
11511
11512 2007-09-08  Bruno Haible  <bruno@clisp.org>
11513
11514         * gnulib-tool (func_import): Prefer rsync over wget when available,
11515         for fetching the PO files.
11516
11517 2007-09-08  Bruno Haible  <bruno@clisp.org>
11518
11519         * posix-modules: New file. Portions copied from gnulib-tool.
11520         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11521
11522 2007-09-08  Jim Meyering  <jim@meyering.net>
11523
11524         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11525         * lib/fpending.h: Rename from __fpending.h.
11526         * lib/fpending.c: Rename from __fpending.c.
11527         Include "fpending.h", not "__fpending.h".
11528         * lib/__fpending.h, lib/__fpending.c: Remove files.
11529         * modules/fpending (Files): Reflect new file names.
11530         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11531
11532 2007-09-08  Bruno Haible  <bruno@clisp.org>
11533
11534         * m4/inttypes-h.m4: Remove stub file.
11535
11536 2007-09-07  Simon Josefsson  <simon@josefsson.org>
11537
11538         * doc/headers/stdint.texi: Discuss #include_next issue.
11539
11540 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11541
11542         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11543
11544 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11545
11546         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11547         in variable name.
11548
11549 2007-09-03  Jim Meyering  <jim@meyering.net>
11550
11551         New module: git-version-gen.
11552         * modules/git-version-gen: New file.
11553
11554         Import changes from coreutils for bootstrap script.
11555
11556         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11557
11558         bootstrap: uses rsync to download the .po files
11559         * build-aux/bootstrap (po_download_command_format): New global.
11560         (download_po_files): Use rsync.
11561         (update_po_files): Don't remove .po files after download,
11562         so future rsync runs can take advantage of the copies.
11563
11564         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11565
11566         Solve the unnecessary-.po-file-regeneration problem once and for all.
11567         * build-aux/bootstrap (download_po_files): New function, renamed from
11568         get_translations.  Now, downloads, but doesn't update LINGUAS.
11569         (update_po_files): New function.
11570
11571         bootstrap: Ignore more.
11572         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11573         uniwidth to e.g., lib/.gitignore.
11574         (slurp): Handle the sys_stat_.h -> sys mapping, too.
11575
11576         * build-aux/bootstrap: New setting: vc_ignore.
11577         (insert_sorted_if_absent): Create $file if absent.
11578         Adapt to new, possibly empty, list: $vc_ignore.
11579
11580         bootstrap: generate more ignorable names
11581         * build-aux/bootstrap (slurp): When generating ignorable names,
11582         also map .sin to .sed, .gperf to .c, and .y to .c.
11583
11584 2007-09-03  Jim Meyering  <jim@meyering.net>
11585
11586         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11587         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11588
11589 2007-09-02  Bruno Haible  <bruno@clisp.org>
11590
11591         Fix mis-recognition of 'mcs' on QNX 6.
11592         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11593         output contains the string "Mono".
11594         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11595         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11596
11597 2007-09-01  Bruno Haible  <bruno@clisp.org>
11598
11599         Fix collision between uniwidth/* and linebreak modules.
11600         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11601         u32_width): Remove declarations.
11602         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11603         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11604         streq3, streq2, streq1, streq0): Remove functions.
11605         (STREQ): Remove macro.
11606         (is_cjk_encoding): Remove function.
11607         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11608         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11609         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11610         * NEWS: Document the change.
11611
11612 2007-09-01  Bruno Haible  <bruno@clisp.org>
11613
11614         * lib/streq.h: Add double-inclusion guard.
11615
11616 2007-09-01  Karl Berry  <karl@gnu.org>
11617
11618         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11619
11620 2007-08-28  Jim Meyering  <jim@meyering.net>
11621
11622         Rename mreadlink_with_size to areadlink_with_size.
11623         * NEWS: Document the change.
11624         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11625         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11626         * lib/mreadlink.h: Rename this to...
11627         * lib/areadlink.h: ...this.
11628         * modules/mreadlink-with-size: Rename this to...
11629         * modules/areadlink-with-size: ...this.
11630         * lib/canonicalize.c: Reflect the renaming.
11631         * modules/canonicalize: Likewise.
11632
11633 2007-08-26  Bruno Haible  <bruno@clisp.org>
11634
11635         * gnulib-tool (func_import): When deciding which files to remove,
11636         consider also dangling symbolic links.
11637         Reported by Eric Blake.
11638
11639 2007-08-26  Bruno Haible  <bruno@clisp.org>
11640
11641         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11642
11643 2007-08-23  Simon Josefsson  <simon@josefsson.org>
11644
11645         * lib/readline.c: Don't include getline.h, the prototype is now
11646         found in stdio.h.
11647
11648 2007-08-23  Jim Meyering  <jim@meyering.net>
11649
11650         Getdelim touchup.
11651         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11652         around the funlockfile call, since funlockfile never sets errno.
11653         Don't set errno upon failed realloc.
11654
11655 2007-08-22  Eric Blake  <ebb9@byu.net>
11656
11657         Getline touchups.
11658         * lib/getdelim.c (getdelim): Revert regression that required *n to
11659         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
11660         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11661         getdelim, rather than whether implementation is missing.
11662         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11663         * lib/stdio_.h (getline): Also declare if replacement is
11664         required.
11665         * doc/functions/getdelim.texi: New file.
11666         * doc/functions/getline.texi: Likewise.
11667         * doc/gnulib.texi (Function Substitutes): Add new files.
11668         Reported by Bruno Haible.
11669
11670 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
11671
11672         * users.txt: Add Guile.
11673
11674 2007-08-22  Eric Blake  <ebb9@byu.net>
11675
11676         * tests/test-getdelim.c (main): Use remove, not unlink.
11677         * tests/test-getline.c (main): Likewise.
11678
11679         Move getline and getdelim into stdio.h, per POSIX 200x.
11680         * modules/getline (Files): Remove getline.h.
11681         (Depends-on): Add stdio.
11682         (configure.ac): Add module indicator.
11683         * modules/getdelim (Files): Remove getdelim.h.
11684         (Depends-on): Add stdio.
11685         (configure.ac): Add module indicator.
11686         * modules/stdio (Makefile.am): Work with new indicators.
11687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11688         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11689         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11690         * lib/getdelim.h: Delete.
11691         * lib/getline.h: Delete.
11692         * lib/stdio_.h (getdelim, getline): Declare.
11693         * modules/getdelim-tests: New module.
11694         * modules/getline-tests: Likewise.
11695         * tests/test-getdelim.c: New file.
11696         * tests/test-getline.c: Likewise.
11697         * NEWS: Document the change.
11698         * lib/getline.c: Update choice of header.
11699         * lib/csharpcomp.c: Likewise.
11700         * lib/getpass.c: Likewise.
11701         * lib/javacomp.c: Likewise.
11702         * lib/javaversion.c: Likewise.
11703         * lib/yesno.c: Likewise.
11704         * lib/getdelim.c: Likewise.
11705         (getdelim): Set errno on failure, and avoid memory leak.
11706
11707 2007-08-19  Bruno Haible  <bruno@clisp.org>
11708
11709         * modules/closein (Depends-on): Add freadahead.
11710         * lib/closein.c: Include freadahead.h.
11711         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11712         is zero.
11713
11714 2007-08-19  Bruno Haible  <bruno@clisp.org>
11715
11716         * modules/freadahead-tests: New file.
11717         * tests/test-freadahead.sh: New file.
11718         * tests/test-freadahead.c: New file.
11719
11720         * modules/freadahead: New file.
11721         * lib/freadahead.h: New file.
11722         * lib/freadahead.c: New file.
11723         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11724         fbufmode, fpurge, freadable, fwritable.
11725
11726 2007-08-19  Eric Blake  <ebb9@byu.net>
11727
11728         Test yesno in combination with closein.
11729         * lib/yesno.c (yesno): Document use of stdin.
11730         * modules/yesno-tests (Files): New module.
11731         * tests/test-yesno.c (main): New file.
11732         * tests/test-yesno.sh: Likewise.
11733
11734 2007-08-19  Bruno Haible  <bruno@clisp.org>
11735
11736         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11737         * lib/fseeko.c (rpl_fseeko): Likewise.
11738         * lib/fseterr.c (fseterr): Likewise.
11739
11740 2007-08-19  Bruno Haible  <bruno@clisp.org>
11741
11742         * tests/test-lseek.c (main): Disable a test for BeOS.
11743         * doc/functions/lseek.texi: Document the BeOS bug.
11744
11745 2007-08-19  Bruno Haible  <bruno@clisp.org>
11746             Eric Blake  <ebb9@byu.net>
11747
11748         * lib/lseek.c: Include <sys/stat.h>.
11749         (rpl_lseek): Add workaround code also for Unix platforms.
11750         Needed for BeOS.
11751         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11752         * doc/functions/lseek.texi: Document BeOS definiency.
11753
11754 2007-08-18  Bruno Haible  <bruno@clisp.org>
11755
11756         * modules/fstrcmp-tests: New file.
11757         * tests/test-fstrcmp.c: New file.
11758
11759 2007-08-18  Bruno Haible  <bruno@clisp.org>
11760
11761         * modules/fstrcmp: New file, from GNU gettext with modifications.
11762         * lib/fstrcmp.h: New file, from GNU gettext.
11763         * lib/fstrcmp.c: New file, from GNU gettext.
11764         * MODULES.html.sh (String handling): Add fstrcmp.
11765
11766 2007-08-18  Bruno Haible  <bruno@clisp.org>
11767
11768         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11769         'bool'.
11770         (diag, compareseq): Remove const from the ctxt argument.
11771         (USE_HEURISTIC): Undefine at the end.
11772
11773 2007-08-18  Jim Meyering  <jim@meyering.net>
11774
11775         New file: lib/idcache.h
11776         * NEWS: Mention the addition.
11777         * modules/idcache (Files): Add lib/idcache.h
11778         * lib/idcache.c: Include "idcache.h".
11779         Don't include <sys/types.h>.
11780         Add a FIXME comment.
11781         Move file-scoped "static" declarations to the top.
11782         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
11783
11784 2007-08-17  Bruno Haible  <bruno@clisp.org>
11785         and Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         * MODULES.html.sh: Add diffseq.
11788         * modules/diffseq: New file.
11789         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11790         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11791
11792 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11793
11794         Import changes from coreutils for bootstrap script.
11795
11796         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
11797
11798         * build-aux/bootstrap (slurp): Work even in environments where
11799         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
11800         current code does not slurp files whose names start with ".", and
11801         this looks like it might be a troublesome area.
11802
11803         2007-07-11  Jim Meyering  <jim@meyering.net>
11804
11805         If there's a GPL vN copyright comment, require that N == 3.
11806
11807         2007-07-08  Jim Meyering  <jim@meyering.net>
11808
11809         Run the coreutils-specific code only if tests/Makefile.am.in exists.
11810         * build-aux/bootstrap (mam_template): Move definition out of loop.
11811
11812         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11813
11814         * build-aux/bootstrap (symlink_to_dir): Rename function from
11815         symlink_to_gnulib.  Add a directory parameter.  Update all
11816         callers.
11817         (cp_mark_as_generated): Also check for -- and link to -- files in
11818         gl/.
11819
11820         2007-07-08  Jim Meyering  <jim@meyering.net>
11821
11822         Adapt to deeper hierarchy in gnulib.
11823         * build-aux/bootstrap (symlink_to_dir): If the destination
11824         directory doesn't exist, create it. This is required at least for
11825         "lib/uniwidth/cjk.h".
11826
11827         2007-05-15  Jim Meyering  <jim@meyering.net>
11828
11829         * build-aux/bootstrap: Now that generated Makefile.am files
11830         are no longer under version control, they must be created at
11831         bootstrap time.
11832
11833 2007-08-14  Ben Pfaff  <blp@gnu.org>
11834
11835         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
11836
11837 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11838
11839         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11840         given the changes below.
11841         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
11842         even on hosts that have padding bits beyond the supported 64.
11843
11844 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11845
11846         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11847         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11848         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
11849         depends on it.
11850         (xstrtol_error): Remove.
11851         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11852         but with a different signature.
11853         (ATTRIBUTE_NORETURN, __attribute__): New macros.
11854         * lib/xstrtol-error.c: Include exitfail.h.
11855         (xstrtol_fatal): New function, with a different signature from the
11856         old xstrtol_error, so that the caller need not worry about passing
11857         in an exit status, or about storage management of the option argument.
11858         (xstrtol_error): Now a static function.  Redo signature to
11859         implement xstrtol_fatal.  Output the correct number of hyphens in
11860         front of the option so that the caller need not worry about
11861         storage management.
11862         (N_): New macro.
11863         (_): Remove; not used now.
11864         * modules/xstrtol: Depend on getopt.
11865         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11866         of old STRTOL_FATAL_ERROR macro.
11867         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11868         of test program.
11869         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11870         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11871
11872 2007-08-08  Eric Blake  <ebb9@byu.net>
11873
11874         * lib/xstrtol-error.c: Add missing include.
11875
11876         Move xstrtol messages into gnulib domain, when --pobase is used.
11877         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11878         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11879         * modules/xstrtol (Files): Distribute new file.
11880         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11881         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11882         * tests/test-xstrtol.c: ...into new file.
11883         * tests/test-xstrtoul.c: Also test xstrtoul.
11884         * tests/test-xstrtoimax.c: Also test xstrtoimax.
11885         * tests/test-xstrtoumax.c: Also test xstrtoumax.
11886         * tests/test-xstrtol.sh: Drive the tests.
11887         * tests/test-xstrtoimax.sh: Likewise.
11888         * tests/test-xstrtoumax.sh: Likewise.
11889         * modules/xstrtol-tests: New module.
11890         * modules/xstrtoimax-tests: Likewise.
11891         * modules/xstrtoumax-tests: Likewise.
11892
11893 2007-08-08  Jim Meyering  <jim@meyering.net>
11894
11895         New function: mfile_name_concat.
11896         * lib/filenamecat.c (mfile_name_concat): New function, just like
11897         file_name_concat, but return NULL upon failure rather than exiting
11898         with a diagnostic.
11899         * lib/filenamecat.h: Declare it.
11900
11901 2007-08-07  Bruno Haible  <bruno@clisp.org>
11902
11903         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
11904         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
11905         warning from gcc.
11906         Reported by Eric Blake.
11907
11908 2007-08-07  Simon Josefsson  <simon@josefsson.org>
11909
11910         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
11911         * modules/crypto/arcfour (License): Likewise.
11912         * modules/crypto/des-tests (License): Likewise.
11913         * modules/crypto/gc-arctwo-tests (License): Likewise.
11914         * modules/crypto/gc-des-tests (License): Likewise.
11915         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
11916         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
11917         * modules/crypto/gc-md2-tests (License): Likewise.
11918         * modules/crypto/gc-md4-tests (License): Likewise.
11919         * modules/crypto/gc-md5-tests (License): Likewise.
11920         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
11921         * modules/crypto/gc-rijndael-tests (License): Likewise.
11922         * modules/crypto/gc-sha1-tests (License): Likewise.
11923         * modules/crypto/gc-tests (License): Likewise.
11924         * modules/crypto/hmac-md5 (License): Likewise.
11925         * modules/crypto/hmac-sha1 (License): Likewise.
11926         * modules/crypto/md2-tests (License): Likewise.
11927         * modules/crypto/md4-tests (License): Likewise.
11928         * modules/crypto/md5 (License): Likewise.
11929         * modules/crypto/rijndael (License): Likewise.
11930         * modules/crypto/sha1 (License): Likewise.
11931         * modules/memxor (License): Likewise.
11932
11933 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11934         and Bruno Haible  <bruno@clisp.org>
11935
11936         * NEWS: Describe interface changes to human, xstrtol.
11937         * lib/human.h: Include <xstrtol.h>.
11938         (human_options): Return enum strtol_error, not int.  Remove
11939         bool arg; take int * instead.
11940         * lib/human.c: Don't include "gettext.h".
11941         (_): Remove; no longer used.
11942         Don't include <xstrtol.h>, since human.h does it.
11943         (human_options): Adjust to abovementioned interface changes.
11944         Do not report error to stderr; that's now the caller's
11945         responsibility.
11946         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
11947         interface change.
11948         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
11949         Str, Argument_type_string.  All uses changed.  Put " argument"
11950         in diagnostics to make them clearer.  Change wording of suffix
11951         message for clarity.
11952         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
11953         Argument_type_string.
11954         (STRTOL_FATAL_WARN): Remove; no longer used.
11955         * modules/human (Depends-on): Remove gettext-h.
11956
11957 2007-08-06  Simon Josefsson  <simon@josefsson.org>
11958
11959         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
11960
11961 2007-07-31  Bruno Haible  <bruno@clisp.org>
11962
11963         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11964         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11965         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11966
11967 2007-07-31  Bruno Haible  <bruno@clisp.org>
11968
11969         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
11970         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
11971
11972 2007-07-30  Bruno Haible  <bruno@clisp.org>
11973
11974         * modules/base64 (License): Use the synonymous term "LGPLv2+".
11975         * modules/c-ctype (License): Likewise.
11976         * modules/c-strcase (License): Likewise.
11977         * modules/check-version (License): Likewise.
11978         * modules/iconv (License): Likewise.
11979         * modules/iconv_open (License): Likewise.
11980         * modules/read-file (License): Likewise.
11981         * modules/striconv (License): Likewise.
11982         * modules/strverscmp (License): Likewise.
11983         * modules/vasprintf (License): Likewise.
11984         * modules/crypto/des (License): Likewise.
11985         * modules/crypto/gc (License): Likewise.
11986         * modules/crypto/gc-arcfour (License): Likewise.
11987         * modules/crypto/gc-arctwo (License): Likewise.
11988         * modules/crypto/gc-des (License): Likewise.
11989         * modules/crypto/gc-hmac-md5 (License): Likewise.
11990         * modules/crypto/gc-hmac-sha1 (License): Likewise.
11991         * modules/crypto/gc-md2 (License): Likewise.
11992         * modules/crypto/gc-md4 (License): Likewise.
11993         * modules/crypto/gc-md5 (License): Likewise.
11994         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
11995         * modules/crypto/gc-random (License): Likewise.
11996         * modules/crypto/gc-rijndael (License): Likewise.
11997         * modules/crypto/gc-sha1 (License): Likewise.
11998         * modules/crypto/md2 (License): Likewise.
11999         * modules/crypto/md4 (License): Likewise.
12000
12001 2007-07-30  Jim Meyering  <jim@meyering.net>
12002
12003         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12004         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12005         it has valid stat data.  This bug would cause du not to count the
12006         sizes of inaccessible directories.
12007         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12008         in <http://bugzilla.redhat.com/250077>.
12009
12010 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12011             Bruno Haible  <bruno@clisp.org>
12012
12013         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12014         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12015         #include_next, gives a diagnostic about it, but reports no error in
12016         the exit code.
12017         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12018
12019 2007-07-24  Ben Pfaff  <blp@gnu.org>
12020
12021         Improve name: "count-one-bits" is better than "popcount".
12022         * MODULES.html.sh: Update name.
12023         * lib/popcount.h: Renamed lib/count-one-bits.h.
12024         (popcount): Renamed count_one_bits.
12025         (popcountl): Renamed count_one_bits_l.
12026         (popcountll): Renamed count_one_bits_ll.
12027         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12028         * modules/popcount: Renamed module/count-one-bits.
12029         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12030         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12031
12032 2007-07-23  Ben Pfaff  <blp@gnu.org>
12033
12034         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12035         better code generation, and add U to large constants to avoid
12036         warnings, in non-GCC case.
12037         Suggested by Bruno Haible.
12038
12039 2007-07-23  Ben Pfaff  <blp@gnu.org>
12040
12041         * lib/popcount.h: Use verify_true instead of if...abort.
12042         * modules/popcount: Depend on verify module.
12043         Suggested by Jim Meyering.
12044
12045 2007-07-23  Bruno Haible  <bruno@clisp.org>
12046
12047         * gnulib-tool (func_import): Create a .cvsignore file also when the
12048         directory is not yet in CVS but the toplevel directory is. When
12049         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12050         Reported by Karl Berry.
12051
12052 2007-07-22  Ben Pfaff  <blp@gnu.org>
12053
12054         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12055         case.
12056         Suggested by Eric Blake.
12057
12058 2007-07-22  Ben Pfaff  <blp@gnu.org>
12059
12060         New module: popcount.
12061         * MODULES.html.sh: Add popcount.
12062         * modules/popcount: New file.
12063         * modules/popcount-tests: New file.
12064         * tests/test-popcount.c: New file.
12065         * lib/popcount.h: New file.
12066         * m4/popcount.m4: New file.
12067
12068 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12069
12070         * build-aux/announce-gen: Update to GPLv3.
12071
12072         * build-aux/config.guess: Update from config.
12073
12074 2007-07-21  Bruno Haible  <bruno@clisp.org>
12075
12076         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12077         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12078
12079 2007-07-20  Jim Meyering  <jim@meyering.net>
12080
12081         * check-module: Diagnose a self-dependency.
12082
12083 2007-07-19  Bruno Haible  <bruno@clisp.org>
12084
12085         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12086         empty.
12087         Reported by Eric Blake.
12088
12089 2007-07-18  Bruno Haible  <bruno@clisp.org>
12090
12091         * gnulib-tool: New options --po-base, --po-domain.
12092         (func_usage): Document them.
12093         (pobase, po_domain): New variables.
12094         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12095         DEFAULT_TEXT_DOMAIN.
12096         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12097         (func_import): Consider pobase and po_domain. Create a po/ directory.
12098         (func_create_testdir): Set pobase and po_domain to empty.
12099         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12100         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12101
12102 2007-07-18  Bruno Haible  <bruno@clisp.org>
12103
12104         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12105         EXTRA_DIST augmentation for files in build-aux/.
12106
12107 2007-07-16  Bruno Haible  <bruno@clisp.org>
12108
12109         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12110         * modules/getdelim (License): Likewise.
12111
12112 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12113
12114         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12115         * modules/d-type (License): Likewise.
12116         * modules/extensions (License): Likewise.
12117         * modules/fnmatch (License): Likewise.
12118         * modules/fseeko (License): Likewise.
12119         * modules/getaddrinfo (License): Likewise.
12120         * modules/getline (License): Likewise.
12121         * modules/getlogin_r (License): Likewise.
12122         * modules/getpass (License): Likewise.
12123         * modules/gettimeofday (License): Likewise.
12124         * modules/glob (License): Likewise.
12125         * modules/inet_ntop (License): Likewise.
12126         * modules/malloc (License): Likewise.
12127         * modules/malloca (License): Likewise.
12128         * modules/memmem (License): Likewise.
12129         * modules/mempcpy (License): Likewise.
12130         * modules/memset (License): Likewise.
12131         * modules/minmax (License): Likewise.
12132         * modules/mktime (License): Likewise.
12133         * modules/netinet_in (License): Likewise.
12134         * modules/pathmax (License): Likewise.
12135         * modules/poll (License): Likewise.
12136         * modules/regex (License): Likewise.
12137         * modules/snprintf (License): Likewise.
12138         * modules/stdbool (License): Likewise.
12139         * modules/stdint (License): Likewise.
12140         * modules/stdio (License): Likewise.
12141         * modules/strcase (License): Likewise.
12142         * modules/strcasestr (License): Likewise.
12143         * modules/strdup (License): Likewise.
12144         * modules/string (License): Likewise.
12145         * modules/strndup (License): Likewise.
12146         * modules/strnlen (License): Likewise.
12147         * modules/strpbrk (License): Likewise.
12148         * modules/strptime (License): Likewise.
12149         * modules/strsep (License): Likewise.
12150         * modules/sys_select (License): Likewise.
12151         * modules/sys_socket (License): Likewise.
12152         * modules/sys_stat (License): Likewise.
12153         * modules/sys_time (License): Likewise.
12154         * modules/time (License): Likewise.
12155         * modules/time_r (License): Likewise.
12156         * modules/timegm (License): Likewise.
12157         * modules/unistd (License): Likewise.
12158         * modules/vsnprintf (License): Likewise.
12159         * modules/wctype (License): Likewise.
12160
12161 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12162
12163         * modules/argz (License): LGPLv2+.
12164
12165 2007-07-15  Karl Berry  <karl@gnu.org>
12166
12167         * doc/gnulib.texi: revise node structure per new fdl.texi.
12168
12169 2007-07-14  Bruno Haible  <bruno@clisp.org>
12170
12171         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12172         the output file.
12173         * lib/uniname/uninames.h: Regenerated.
12174
12175 2007-07-14  Karl Berry  <karl@gnu.org>
12176
12177         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12178         omitting sectioning and index commands.
12179
12180 2007-07-13  Bruno Haible  <bruno@clisp.org>
12181
12182         New gnulib-tool option --more-symlinks.
12183         * gnulib-tool (func_usage): Document --more-symlinks.
12184         (do_copyrights): New variable.
12185         Recognize option --more-symlinks.
12186         (func_import): Don't add a copyright notice transform to
12187         sed_transform_lib_file if do_copyrights is empty.
12188
12189 2007-07-13  Bruno Haible  <bruno@clisp.org>
12190
12191         * lib/vasnprintf.c (decimal_point_char): Define also if
12192         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12193         && !NEED_PRINTF_DIRECTIVE_A.
12194         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12195         Gary V. Vaughan <gary@gnu.org>.
12196
12197 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12198
12199         * lib/inttypes_.h: Undo previous change, since it was fixed
12200         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12201
12202 2007-07-13  Bruno Haible  <bruno@clisp.org>
12203
12204         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12205         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12206
12207 2007-07-13  Jim Meyering  <jim@meyering.net>
12208
12209         df: Don't fail for Tru64's "file-on-file mount".
12210         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12211         so we fall through and use statfs instead.  Details here:
12212         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12213         Reported by Albert Chin.
12214
12215 2007-07-13  Bruno Haible  <bruno@clisp.org>
12216
12217         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12218         * modules/configmake (License): Likewise.
12219         * modules/gettext (License): Likewise.
12220         * modules/gettext-h (License): Likewise.
12221         * modules/include_next (License): Likewise.
12222         * modules/link-warning (License): Likewise.
12223         * modules/localcharset (License): Likewise.
12224         * modules/localename (License): Likewise.
12225         * modules/lock (License): Likewise.
12226         * modules/relocatable-lib-lgpl (License): Likewise.
12227         * modules/size_max (License): Likewise.
12228         * modules/vasnprintf (License): Likewise.
12229         * modules/wchar (License): Likewise.
12230         * modules/xsize (License): Likewise.
12231
12232 2007-07-13  Bruno Haible  <bruno@clisp.org>
12233
12234         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12235         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12236
12237 2007-07-12  Bruno Haible  <bruno@clisp.org>
12238
12239         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12240         in the modules files.
12241
12242 2007-07-11  Karl Berry  <karl@gnu.org>
12243
12244         * MODULES.html.sh (func_module): use
12245          sed -e '\|^'"${includefile}"'$|d'
12246          instead of /.../d, to avoid errors on $includefile's containing /.
12247
12248 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12249
12250         * gnulib-tool (func_import): Avoid duplication of --avoid
12251         statements
12252         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12253         names to `_' in variable names.
12254
12255 2007-07-10  Eric Blake  <ebb9@byu.net>
12256
12257         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12258         * NEWS: Document this change.
12259
12260 2007-07-08  Bruno Haible  <bruno@clisp.org>
12261
12262         Update to Unicode 5.0.
12263         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12264         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12265         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12266         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12267         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12268         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12269         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12270         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12271         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12272         U+10A3F, U+1D242..U+1D244.
12273         (nonspacing_table_ind): Update.
12274         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12275         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12276
12277 2007-07-08  Bruno Haible  <bruno@clisp.org>
12278
12279         Update to Unicode 5.0.
12280         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12281         code transform. Extend the name index field of unicode_name_to_code and
12282         unicode_code_to_name from 16 to 24 bits.
12283         * lib/uniname/uniname.c (unicode_character_name,
12284         unicode_name_character): Add the range 0x12xxx to the code transform.
12285         * lib/uniname/uninames.h: Regenerated.
12286         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12287
12288 2007-07-07  Bruno Haible  <bruno@clisp.org>
12289
12290         * modules/wcwidth-tests: New file.
12291         * tests/test-wcwidth.c: New file.
12292
12293         Work around MacOS X wcwidth() bug.
12294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12295         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12296         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12297         original wcwidth in non-UTF-8 locales.
12298         * modules/wcwidth (Depends-on): Add localcharset, streq,
12299         uniwidth/width.
12300         * doc/functions/wcwidth.texi: Update.
12301
12302 2007-07-07  Bruno Haible  <bruno@clisp.org>
12303
12304         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12305         (wcwidth): New declaration.
12306         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12307         macros.
12308         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12309         here. Prepare for creating <wchar.h> unconditionally.
12310         * modules/wchar (Depends-on): Add link-warning.
12311         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12312         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12313         * lib/wcwidth.h: Remove file.
12314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12315         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12316         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12317         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12318         (Include): Replace wcwidth.h with <wchar.h>.
12319         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12320         * lib/mbchar.h: Don't include wcwidth.h.
12321         * lib/mbswidth.c: Likewise.
12322         * NEWS: Mention the change.
12323
12324 2007-07-07  Bruno Haible  <bruno@clisp.org>
12325
12326         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12327         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12328         definition with an external declaration.
12329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12330         defined as a function. Remove AC_C_INLINE requirement.
12331         * modules/wcwidth (Files): Add lib/wcwidth.c.
12332         (Makefile.am): Remove redundant statement.
12333
12334 2007-07-07  Bruno Haible  <bruno@clisp.org>
12335
12336         * MODULES.html.sh (Unicode string functions): Add the new modules.
12337
12338         * tests/uniwidth/test-u32-strwidth.c: New file.
12339         * modules/uniwidth/u32-strwidth-tests: New file.
12340
12341         * lib/uniwidth/u32-strwidth.c: New file.
12342         * modules/uniwidth/u32-strwidth: New file.
12343
12344         * tests/uniwidth/test-u16-strwidth.c: New file.
12345         * modules/uniwidth/u16-strwidth-tests: New file.
12346
12347         * lib/uniwidth/u16-strwidth.c: New file.
12348         * modules/uniwidth/u16-strwidth: New file.
12349
12350         * tests/uniwidth/test-u8-strwidth.c: New file.
12351         * modules/uniwidth/u8-strwidth-tests: New file.
12352
12353         * lib/uniwidth/u8-strwidth.c: New file.
12354         * modules/uniwidth/u8-strwidth: New file.
12355
12356         * tests/uniwidth/test-u32-width.c: New file.
12357         * modules/uniwidth/u32-width-tests: New file.
12358
12359         * lib/uniwidth/u32-width.c: New file.
12360         * modules/uniwidth/u32-width: New file.
12361
12362         * tests/uniwidth/test-u16-width.c: New file.
12363         * modules/uniwidth/u16-width-tests: New file.
12364
12365         * lib/uniwidth/u16-width.c: New file.
12366         * modules/uniwidth/u16-width: New file.
12367
12368         * tests/uniwidth/test-u8-width.c: New file.
12369         * modules/uniwidth/u8-width-tests: New file.
12370
12371         * lib/uniwidth/u8-width.c: New file.
12372         * modules/uniwidth/u8-width: New file.
12373
12374         * tests/uniwidth/test-uc_width.c: New file.
12375         * modules/uniwidth/width-tests: New file.
12376
12377         * lib/uniwidth/width.c: New file, from GNU libiconv.
12378         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12379         * modules/uniwidth/width: New file.
12380
12381         * lib/uniwidth.h: New file, from GNU libiconv.
12382         * modules/uniwidth/base: New file.
12383
12384 2007-07-07  Bruno Haible  <bruno@clisp.org>
12385
12386         * lib/uniname.h: New file, from GNU gettext.
12387         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12388         * lib/uniname/uninames.h: New file, from GNU gettext.
12389         * lib/uniname/uniname.c: New file, from GNU gettext.
12390         * tests/uniname/test-uninames.sh: New file.
12391         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12392         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12393         * modules/uniname/base: New file.
12394         * modules/uniname/uniname: New file.
12395         * modules/uniname/uniname-tests: New file.
12396         * MODULES.html.sh (Unicode string functions): Add the new modules.
12397
12398 2007-07-06  Bruno Haible  <bruno@clisp.org>
12399
12400         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12401
12402 2007-07-06  Bruno Haible  <bruno@clisp.org>
12403
12404         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12405         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12406         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12407         include <sys/time.h>.
12408         Reported by Eric Blake.
12409
12410 2007-07-06  Eric Blake  <ebb9@byu.net>
12411
12412         Fix testing canonicalize on cygwin.
12413         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12414         Revert patch from 2007-06-19.
12415         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12416         canonicalize module is also in use.
12417         * tests/test-canonicalize.c: New file.
12418         * tests/test-canonicalize.sh: Likewise.
12419         * modules/canonicalize-tests: Likewise.
12420
12421 2007-07-06  Jim Meyering  <jim@meyering.net>
12422
12423         * lib/getugroups.c (getugroups): Detect getgrent failure.
12424         Adjust comment to reflect reality: this function may return -1.
12425
12426 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12427
12428         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12429         the new TP address.
12430         (usage): Fix typo
12431         (gnulib_mk): New variable.
12432
12433 2007-07-05  Jim Meyering  <jim@meyering.net>
12434
12435         Don't let endgrent clobber errno, no matter how improbable.
12436         * lib/getugroups.c (getugroups): Save and restore errno around
12437         endgrent call.
12438
12439         Close the group DB even when failing with 2^31 or more members.
12440         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12441
12442 2007-07-04  Jim Meyering  <jim@meyering.net>
12443
12444         * lib/getugroups.h: New file.
12445         * lib/getugroups.c: Include "getugroups.h".
12446         Remove uses of "register" keyword.
12447         Move local variable, "cp", down into scope where used.
12448         Give "username" parameter the "const" attribute.
12449         * modules/getugroups (Files): Add lib/getugroups.h
12450
12451 2007-07-04  Karl Berry  <karl@gnu.org>
12452
12453         * MODULES.html.sh (func_all_modules): Complete rename of
12454         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12455
12456 2007-07-02  Bruno Haible  <bruno@clisp.org>
12457
12458         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12459         mode, when inttypes.h comes from gnulib.
12460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12461
12462 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12463
12464         * NEWS: Mention lgpl module name change.
12465
12466         * modules/lgpl-2.1: Renamed from lgpl.
12467
12468         * NEWS: Mention gpl module name change.
12469
12470         * modules/gpl-3.0: New file, based on gpl-2.0.
12471
12472         * modules/gpl-2.0: Renamed from gpl.
12473
12474         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12475         doc/gpl-2.0.texi.
12476
12477 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12478
12479         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12480         #define __STDC_LIMIT_MACROS temporarily while including
12481         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12482         Problem reported by Joel E. Denny in
12483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12484
12485 2007-07-01  Bruno Haible  <bruno@clisp.org>
12486
12487         * lib/unistdio.h: New file.
12488         * lib/unistdio/u-asnprintf.h: New file.
12489         * lib/unistdio/u-asprintf.h: New file.
12490         * lib/unistdio/u-printf-args.c: New file.
12491         * lib/unistdio/u-printf-args.h: New file.
12492         * lib/unistdio/u-printf-parse.h: New file.
12493         * lib/unistdio/u-snprintf.h: New file.
12494         * lib/unistdio/u-sprintf.h: New file.
12495         * lib/unistdio/u-vasprintf.h: New file.
12496         * lib/unistdio/u-vsnprintf.h: New file.
12497         * lib/unistdio/u-vsprintf.h: New file.
12498         * lib/unistdio/ulc-asnprintf.c: New file.
12499         * lib/unistdio/ulc-asprintf.c: New file.
12500         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12501         * lib/unistdio/ulc-printf-parse.c: New file.
12502         * lib/unistdio/ulc-snprintf.c: New file.
12503         * lib/unistdio/ulc-sprintf.c: New file.
12504         * lib/unistdio/ulc-vasnprintf.c: New file.
12505         * lib/unistdio/ulc-vasprintf.c: New file.
12506         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12507         * lib/unistdio/ulc-vsnprintf.c: New file.
12508         * lib/unistdio/ulc-vsprintf.c: New file.
12509         * lib/unistdio/u8-asnprintf.c: New file.
12510         * lib/unistdio/u8-asprintf.c: New file.
12511         * lib/unistdio/u8-printf-parse.c: New file.
12512         * lib/unistdio/u8-snprintf.c: New file.
12513         * lib/unistdio/u8-sprintf.c: New file.
12514         * lib/unistdio/u8-vasnprintf.c: New file.
12515         * lib/unistdio/u8-vasprintf.c: New file.
12516         * lib/unistdio/u8-vsnprintf.c: New file.
12517         * lib/unistdio/u8-vsprintf.c: New file.
12518         * lib/unistdio/u8-u8-asnprintf.c: New file.
12519         * lib/unistdio/u8-u8-asprintf.c: New file.
12520         * lib/unistdio/u8-u8-snprintf.c: New file.
12521         * lib/unistdio/u8-u8-sprintf.c: New file.
12522         * lib/unistdio/u8-u8-vasnprintf.c: New file.
12523         * lib/unistdio/u8-u8-vasprintf.c: New file.
12524         * lib/unistdio/u8-u8-vsnprintf.c: New file.
12525         * lib/unistdio/u8-u8-vsprintf.c: New file.
12526         * lib/unistdio/u16-asnprintf.c: New file.
12527         * lib/unistdio/u16-asprintf.c: New file.
12528         * lib/unistdio/u16-printf-parse.c: New file.
12529         * lib/unistdio/u16-snprintf.c: New file.
12530         * lib/unistdio/u16-sprintf.c: New file.
12531         * lib/unistdio/u16-vasnprintf.c: New file.
12532         * lib/unistdio/u16-vasprintf.c: New file.
12533         * lib/unistdio/u16-vsnprintf.c: New file.
12534         * lib/unistdio/u16-vsprintf.c: New file.
12535         * lib/unistdio/u16-u16-asnprintf.c: New file.
12536         * lib/unistdio/u16-u16-asprintf.c: New file.
12537         * lib/unistdio/u16-u16-snprintf.c: New file.
12538         * lib/unistdio/u16-u16-sprintf.c: New file.
12539         * lib/unistdio/u16-u16-vasnprintf.c: New file.
12540         * lib/unistdio/u16-u16-vasprintf.c: New file.
12541         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12542         * lib/unistdio/u16-u16-vsprintf.c: New file.
12543         * lib/unistdio/u32-asnprintf.c: New file.
12544         * lib/unistdio/u32-asprintf.c: New file.
12545         * lib/unistdio/u32-printf-parse.c: New file.
12546         * lib/unistdio/u32-snprintf.c: New file.
12547         * lib/unistdio/u32-sprintf.c: New file.
12548         * lib/unistdio/u32-vasnprintf.c: New file.
12549         * lib/unistdio/u32-vasprintf.c: New file.
12550         * lib/unistdio/u32-vsnprintf.c: New file.
12551         * lib/unistdio/u32-vsprintf.c: New file.
12552         * lib/unistdio/u32-u32-asnprintf.c: New file.
12553         * lib/unistdio/u32-u32-asprintf.c: New file.
12554         * lib/unistdio/u32-u32-snprintf.c: New file.
12555         * lib/unistdio/u32-u32-sprintf.c: New file.
12556         * lib/unistdio/u32-u32-vasnprintf.c: New file.
12557         * lib/unistdio/u32-u32-vasprintf.c: New file.
12558         * lib/unistdio/u32-u32-vsnprintf.c: New file.
12559         * lib/unistdio/u32-u32-vsprintf.c: New file.
12560         * tests/unistdio/test-ulc-asnprintf1.c: New file.
12561         * tests/unistdio/test-ulc-asnprintf1.h: New file.
12562         * tests/unistdio/test-ulc-printf1.h: New file.
12563         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12564         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12565         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12566         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12567         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12568         * tests/unistdio/test-ulc-vasprintf1.c: New file.
12569         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12570         * tests/unistdio/test-ulc-vsprintf1.c: New file.
12571         * tests/unistdio/test-u8-asnprintf1.c: New file.
12572         * tests/unistdio/test-u8-asnprintf1.h: New file.
12573         * tests/unistdio/test-u8-printf1.h: New file.
12574         * tests/unistdio/test-u8-vasnprintf1.c: New file.
12575         * tests/unistdio/test-u8-vasnprintf2.c: New file.
12576         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12577         * tests/unistdio/test-u8-vasnprintf3.c: New file.
12578         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12579         * tests/unistdio/test-u8-vasprintf1.c: New file.
12580         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12581         * tests/unistdio/test-u8-vsprintf1.c: New file.
12582         * tests/unistdio/test-u16-asnprintf1.c: New file.
12583         * tests/unistdio/test-u16-asnprintf1.h: New file.
12584         * tests/unistdio/test-u16-printf1.h: New file.
12585         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12586         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12587         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12588         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12589         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12590         * tests/unistdio/test-u16-vasprintf1.c: New file.
12591         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12592         * tests/unistdio/test-u16-vsprintf1.c: New file.
12593         * tests/unistdio/test-u32-asnprintf1.c: New file.
12594         * tests/unistdio/test-u32-asnprintf1.h: New file.
12595         * tests/unistdio/test-u32-printf1.h: New file.
12596         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12597         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12598         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12599         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12600         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12601         * tests/unistdio/test-u32-vasprintf1.c: New file.
12602         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12603         * tests/unistdio/test-u32-vsprintf1.c: New file.
12604         * modules/unistdio/base: New file.
12605         * modules/unistdio/u-printf-args: New file.
12606         * modules/unistdio/ulc-asnprintf: New file.
12607         * modules/unistdio/ulc-asprintf: New file.
12608         * modules/unistdio/ulc-fprintf: New file.
12609         * modules/unistdio/ulc-printf-parse: New file.
12610         * modules/unistdio/ulc-snprintf: New file.
12611         * modules/unistdio/ulc-sprintf: New file.
12612         * modules/unistdio/ulc-vasnprintf: New file.
12613         * modules/unistdio/ulc-vasprintf: New file.
12614         * modules/unistdio/ulc-vfprintf: New file.
12615         * modules/unistdio/ulc-vsnprintf: New file.
12616         * modules/unistdio/ulc-vsprintf: New file.
12617         * modules/unistdio/u8-asnprintf: New file.
12618         * modules/unistdio/u8-asprintf: New file.
12619         * modules/unistdio/u8-printf-parse: New file.
12620         * modules/unistdio/u8-snprintf: New file.
12621         * modules/unistdio/u8-sprintf: New file.
12622         * modules/unistdio/u8-vasnprintf: New file.
12623         * modules/unistdio/u8-vasprintf: New file.
12624         * modules/unistdio/u8-vsnprintf: New file.
12625         * modules/unistdio/u8-vsprintf: New file.
12626         * modules/unistdio/u8-u8-asnprintf: New file.
12627         * modules/unistdio/u8-u8-asprintf: New file.
12628         * modules/unistdio/u8-u8-snprintf: New file.
12629         * modules/unistdio/u8-u8-sprintf: New file.
12630         * modules/unistdio/u8-u8-vasnprintf: New file.
12631         * modules/unistdio/u8-u8-vasprintf: New file.
12632         * modules/unistdio/u8-u8-vsnprintf: New file.
12633         * modules/unistdio/u8-u8-vsprintf: New file.
12634         * modules/unistdio/u16-asnprintf: New file.
12635         * modules/unistdio/u16-asprintf: New file.
12636         * modules/unistdio/u16-printf-parse: New file.
12637         * modules/unistdio/u16-snprintf: New file.
12638         * modules/unistdio/u16-sprintf: New file.
12639         * modules/unistdio/u16-vasnprintf: New file.
12640         * modules/unistdio/u16-vasprintf: New file.
12641         * modules/unistdio/u16-vsnprintf: New file.
12642         * modules/unistdio/u16-vsprintf: New file.
12643         * modules/unistdio/u16-u16-asnprintf: New file.
12644         * modules/unistdio/u16-u16-asprintf: New file.
12645         * modules/unistdio/u16-u16-snprintf: New file.
12646         * modules/unistdio/u16-u16-sprintf: New file.
12647         * modules/unistdio/u16-u16-vasnprintf: New file.
12648         * modules/unistdio/u16-u16-vasprintf: New file.
12649         * modules/unistdio/u16-u16-vsnprintf: New file.
12650         * modules/unistdio/u16-u16-vsprintf: New file.
12651         * modules/unistdio/u32-asnprintf: New file.
12652         * modules/unistdio/u32-asprintf: New file.
12653         * modules/unistdio/u32-printf-parse: New file.
12654         * modules/unistdio/u32-snprintf: New file.
12655         * modules/unistdio/u32-sprintf: New file.
12656         * modules/unistdio/u32-vasnprintf: New file.
12657         * modules/unistdio/u32-vasprintf: New file.
12658         * modules/unistdio/u32-vsnprintf: New file.
12659         * modules/unistdio/u32-vsprintf: New file.
12660         * modules/unistdio/u32-u32-asnprintf: New file.
12661         * modules/unistdio/u32-u32-asprintf: New file.
12662         * modules/unistdio/u32-u32-snprintf: New file.
12663         * modules/unistdio/u32-u32-sprintf: New file.
12664         * modules/unistdio/u32-u32-vasnprintf: New file.
12665         * modules/unistdio/u32-u32-vasprintf: New file.
12666         * modules/unistdio/u32-u32-vsnprintf: New file.
12667         * modules/unistdio/u32-u32-vsprintf: New file.
12668         * modules/unistdio/ulc-asnprintf-tests: New file.
12669         * modules/unistdio/ulc-vasnprintf-tests: New file.
12670         * modules/unistdio/ulc-vasprintf-tests: New file.
12671         * modules/unistdio/ulc-vsnprintf-tests: New file.
12672         * modules/unistdio/ulc-vsprintf-tests: New file.
12673         * modules/unistdio/u8-asnprintf-tests: New file.
12674         * modules/unistdio/u8-vasnprintf-tests: New file.
12675         * modules/unistdio/u8-vasprintf-tests: New file.
12676         * modules/unistdio/u8-vsnprintf-tests: New file.
12677         * modules/unistdio/u8-vsprintf-tests: New file.
12678         * modules/unistdio/u16-asnprintf-tests: New file.
12679         * modules/unistdio/u16-vasnprintf-tests: New file.
12680         * modules/unistdio/u16-vasprintf-tests: New file.
12681         * modules/unistdio/u16-vsnprintf-tests: New file.
12682         * modules/unistdio/u16-vsprintf-tests: New file.
12683         * modules/unistdio/u32-asnprintf-tests: New file.
12684         * modules/unistdio/u32-vasnprintf-tests: New file.
12685         * modules/unistdio/u32-vasprintf-tests: New file.
12686         * modules/unistdio/u32-vsnprintf-tests: New file.
12687         * modules/unistdio/u32-vsprintf-tests: New file.
12688         * MODULES.html.sh (Unicode string functions): Add the new modules.
12689
12690 2007-07-01  Bruno Haible  <bruno@clisp.org>
12691
12692         * lib/sprintf.c (sprintf): Limit the available length estimation,
12693         to avoid address wraparound.
12694         * lib/vsprintf.c (vsprintf): Likewise.
12695         * modules/sprintf-posix (Dependencies): Add stdint.
12696         * modules/vsprintf-posix (Dependencies): Likewise.
12697
12698 2007-07-01  Bruno Haible  <bruno@clisp.org>
12699
12700         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12701         Windows PATH as well. Conservative double-quoting. Comments.
12702
12703 2007-07-01  Bruno Haible  <bruno@clisp.org>
12704             Eric Blake  <ebb9@byu.net>
12705             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12706
12707         * gnulib-tool (self_abspathname): Fix algorithm to cope with
12708         empty components in $PATH, denoting '.'.
12709
12710 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12711
12712         * gnulib-tool: Fix indentation.
12713         (func_create_megatestdir): Likewise.
12714         Report by Bruno Haible.
12715
12716 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12717
12718         Sync from Automake.
12719         * build-aux/gnupload: Fix shell portability issues with for loops.
12720         Report by Karl Berry.
12721
12722 2007-06-29  Simon Josefsson  <simon@josefsson.org>
12723
12724         * build-aux/maint.mk (POURL): Use translationproject.org.
12725
12726 2007-06-27  Simon Josefsson  <simon@josefsson.org>
12727             Bruno Haible  <bruno@clisp.org>
12728
12729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12730         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12731         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12732         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12733         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12734
12735 2007-06-27  Bruno Haible  <bruno@clisp.org>
12736
12737         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12738         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12739
12740 2007-06-26  Karl Berry  <karl@gnu.org>
12741
12742         * MODULES.html.sh: remove xreadlink-with-size.
12743
12744 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12747         method that I hope also handles the double-include problem noted
12748         by Bruno Haible in
12749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12750
12751 2007-06-23  Bruno Haible  <bruno@clisp.org>
12752
12753         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12754         Don't let the 'mostlyclean' target fail if the last subdirectory could
12755         not be removed.
12756         Reported by Karl Berry.
12757
12758 2007-06-23  Bruno Haible  <bruno@clisp.org>
12759
12760         * gnulib-tool (echo): Add a speedier workaround for ksh.
12761         * tests/test-echo.sh: Likewise.
12762
12763 2007-06-23  Bruno Haible  <bruno@clisp.org>
12764
12765         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12766         * tests/test-echo.sh: Likewise.
12767
12768 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12769
12770         * gnulib-tool (IFS): Initialize early, so we don't set it to
12771         empty later.
12772         (self_abspathname): Rewrite algorithm to set it, reindent.
12773         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12774         (func_create_megatestdir): Merge some sed scripts.
12775
12776 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12777
12778         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12779         exposed by Sun Studio 11 cc on Solaris 8.
12780
12781 2007-06-22  Bruno Haible  <bruno@clisp.org>
12782
12783         * gnulib-tool (echo): Ensure the echo primitive does not interpret
12784         backslashes.
12785         * tests/test-echo.sh: New file.
12786
12787 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12788
12789         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12790         simplify `sed_replace_build_aux' scripts, they are portable but
12791         echoing them with `echo' is not.
12792         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12793
12794 2007-06-21  Karl Berry  <karl@gnu.org>
12795
12796         * config/srclist.txt: guess we can't handle the licenses via
12797         srclist at the moment.
12798
12799 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12800
12801         * MODULES.html.sh: Add include_next.
12802         * modules/include_next: New file.
12803
12804 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12805
12806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12807         INCLUDE_NEXT.
12808         (gl_CHECK_NEXT_HEADERS): New macro.
12809         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12810         the obsolescent gl_ABSOLUTE_HEADER.
12811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12812         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12813         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12814         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12815         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12816         * m4/math_h.m4 (gl_MATH_H): Likewise.
12817         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12818         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12819         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12820         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12821         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12822         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12823         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12824         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12827         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12828         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12829         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12830         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12831         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12832         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12833         * m4/inttypes.m4 (gl_INTTYPES_H): Define
12834         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12835         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12836         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12837         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12838         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12839         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12840         * lib/float_.h: Likewise.
12841         * lib/inttypes_.h: Likewise.
12842         * lib/math_.h: Likewise.
12843         * lib/search_.h: Likewise.
12844         * lib/signal_.h: Likewise.
12845         * lib/stdint_.h: Likewise.
12846         * lib/stdio_.h: Likewise.
12847         * lib/stdlib_.h: Likewise.
12848         * lib/string_.h: Likewise.
12849         * lib/sys_stat_.h: Likewise.
12850         * lib/sys_time_.h: Likewise.
12851         * lib/time_.h: Likewise.
12852         * lib/unistd_.h: Likewise.
12853         * lib/wchar_.h: Likewise.
12854         * lib/wctype_.h: Likewise.
12855         * lib/dirent_.h: Likewise.
12856         * lib/iconv_.h: Likewise.
12857         * lib/locale_.h: Likewise.
12858         * lib/netinet_in_.h: Likewise.
12859         * lib/sys_select_.h: Likewise.
12860         * lib/sys_socket_.h: Likewise.
12861         * lib/sysexits_.h: Likewise.
12862         * modules/fcntl (Depends-on): Depend on include_next, not
12863         absolute_header.
12864         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12865         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12866         * modules/fchdir: Likewise.
12867         * modules/float: Likewise.
12868         * modules/iconv_open: Likewise.
12869         * modules/inttypes: Likewise.
12870         * modules/locale: Likewise.
12871         * modules/math: Likewise.
12872         * modules/netinet_in: Likewise.
12873         * modules/search: Likewise.
12874         * modules/signal: Likewise.
12875         * modules/stdint: Likewise.
12876         * modules/stdio: Likewise.
12877         * modules/stdlib: Likewise.
12878         * modules/string: Likewise.
12879         * modules/sys_select: Likewise.
12880         * modules/sys_socket: Likewise.
12881         * modules/sys_stat: Likewise.
12882         * modules/sys_time: Likewise.
12883         * modules/sysexits: Likewise.
12884         * modules/time: Likewise.
12885         * modules/unistd: Likewise.
12886         * modules/wchar: Likewise.
12887         * modules/wctype: Likewise.
12888         * modules/sys_stat: Change maintainer to "all".
12889         * modules/unistd: Likewise.
12890
12891 2007-06-20  Karl Berry  <karl@gnu.org>
12892
12893         * config/srclist.txt: track www changes in license files.
12894
12895 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
12896
12897         * build-aux/bootstrap: Remove stray dot.
12898         Make sure build_aux settings are honored when linking
12899         gnulib_extra_files.
12900
12901 2007-06-19  Eric Blake  <ebb9@byu.net>
12902
12903         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12904         Allow compilation on cygwin.
12905
12906 2007-06-19  Jim Meyering  <jim@meyering.net>
12907
12908         xreadlink-with-size: Remove module.  No longer used.
12909         Ex-callers now use xreadlink or mreadlink-with-size.
12910         * modules/xreadlink-with-size: Remove module.
12911         * lib/xreadlink-with-size.c: Remove file.
12912         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
12913         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
12914         just before the function definition *is* accurate.
12915
12916         Eliminate one way canonicalize_filename_mode could exit.
12917         * lib/canonicalize.c (canonicalize_filename_mode):
12918         Use mreadlink_with_size, not xreadlink_with_size.
12919
12920 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12921
12922         Detect porting problems to FreeBSD/arm, which has time_t wider than
12923         long int.  Original problem reported for GNU diff by Xin Li in
12924         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
12925         * modules/getdate (Depends-on): Add intprops, verify.
12926         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
12927         is an integer type no wider than long int.
12928
12929 2007-06-18  Jim Meyering  <jim@meyering.net>
12930
12931         New module: mreadlink-with-size.
12932         * MODULES.html.sh: Add mreadlink-with-size.
12933         * modules/mreadlink-with-size: New module
12934         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
12935         not xreadlink-with-size.
12936         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
12937
12938 2007-06-16  Bruno Haible  <bruno@clisp.org>
12939
12940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
12941         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
12942         Reported by Gary V. Vaughan <gary@gnu.org>.
12943
12944 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12945
12946         Revamp lchown so that it lives in unistd.h where it belongs.
12947         * lib/lchown.h: Remove.
12948         * lib/dirchownmod.c: Don't include lib/lchown.h.
12949         * lib/fchownat.c: Likewise.
12950         * lib/openat.c: Likewise.
12951         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
12952         does not follow symlinks.
12953         (EOPNOTSUPP): Define if not defined.
12954         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
12955         is defined to 0.
12956         (lchown): New decl.
12957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
12958         Do not check for lchown decl.
12959         Set REPLACE_LCHOWN.
12960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
12961         REPLACE_LCHOWN.
12962         * modules/chown: Make it clear it follows symlinks.
12963         * modules/lchown: Make it clear it doesn't follow symlinks.
12964         (Files): Remove lib/lchown.h
12965         (Depends-on): Add unistd.
12966         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12967         (Include): Include <unistd.h>, not "lchown.h".
12968         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
12969         REPLACE_LCHOWN.
12970
12971 2007-06-15  Jim Meyering  <jim@meyering.net>
12972
12973         Change license (GPL to LGPL) of fsusage and dependents.
12974         * modules/fsusage (License): Change to LGPL.
12975         * modules/full-read (License): Likewise.
12976         * modules/full-write (License): Likewise.
12977         * modules/safe-read (License): Likewise.
12978         * modules/safe-write (License): Likewise.
12979
12980 2007-06-14  Ben Pfaff  <blp@gnu.org>
12981
12982         Missing part of allocsa -> malloca transition.
12983         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
12984         gl_MALLOCA.
12985
12986 2007-06-12  Bruno Haible  <bruno@clisp.org>
12987
12988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
12989         to ia64, x86_64, i386.
12990         Reported by Eric Blake.
12991
12992 2007-06-12  Bruno Haible  <bruno@clisp.org>
12993
12994         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
12995         cross-compiling to x86_64.
12996
12997 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
12998
12999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13000         glitch reported by Ralf Wildenhues in
13001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13002
13003         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13004         Vin Shelton.
13005
13006 2007-06-11  Bruno Haible  <bruno@clisp.org>
13007
13008         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13009         replacement string.
13010         Reported by Eric Blake.
13011
13012 2007-06-10  Bruno Haible  <bruno@clisp.org>
13013
13014         Prepare vasnprintf code for use with Unicode strings.
13015         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13016         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13017         TYPE_U32_STRING.
13018         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13019         a_u32_string variants.
13020         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13021         * lib/printf-args.c: Don't include config.h and the specification
13022         header if PRINTF_FETCHARGS is already defined.
13023         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13024         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13025         TYPE_U16_STRING, TYPE_U32_STRING.
13026         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13027         u16_directive, u16_directives, u32_directive, u32_directives): New
13028         types.
13029         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13030         New declarations.
13031         * lib/printf-parse.c: Don't include config.h and the specification
13032         header if PRINTF_PARSE is already defined. Eliminate the set of
13033         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13034         them now. Include c-ctype.h.
13035         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13036         directive and CHAR_T_ONLY_ASCII.
13037         * lib/vasnprintf.c: Don't include config.h and the specification header
13038         if VASNPRINTF is already defined.
13039         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13040         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13041         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13042         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13043         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13044         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13045         code accordingly.
13046         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13047         pad_ourselves also in this case, with the 'c' and 's' directives, and
13048         with a different notion of "width".
13049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13050
13051 2007-06-10  Bruno Haible  <bruno@clisp.org>
13052
13053         * modules/unistr/u32-mbsnlen: New file.
13054         * lib/unistr/u32-mbsnlen.c: New file.
13055
13056         * modules/unistr/u16-mbsnlen: New file.
13057         * lib/unistr/u16-mbsnlen.c: New file.
13058
13059         * modules/unistr/u8-mbsnlen: New file.
13060         * lib/unistr/u8-mbsnlen.c: New file.
13061
13062         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13063         declarations.
13064
13065 2007-06-10  Bruno Haible  <bruno@clisp.org>
13066
13067         * lib/string_.h (mbsnlen): New declaration.
13068         * lib/mbsnlen.c: New file.
13069         * m4/mbsnlen.m4: New file.
13070         * modules/mbsnlen: New file.
13071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13072         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13073         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13074
13075 2007-06-10  Bruno Haible  <bruno@clisp.org>
13076
13077         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13078
13079 2007-06-10  Bruno Haible  <bruno@clisp.org>
13080
13081         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13082         * lib/mbuiter.h: Likewise.
13083
13084 2007-06-10  Bruno Haible  <bruno@clisp.org>
13085
13086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13087         declaration.
13088
13089 2007-06-10  Karl Berry  <karl@gnu.org>
13090
13091         * config/srclist.txt: remove gettext entries, Bruno prefers
13092         to update individually.
13093
13094 2007-06-10  Bruno Haible  <bruno@clisp.org>
13095
13096         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13097         'maxlen'. Ensure only length + width bytes are allocated, not
13098         length + 1 + width.
13099
13100 2007-06-09  Bruno Haible  <bruno@clisp.org>
13101
13102         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13103         (CHAR_T): Remove macro.
13104         (VASNPRINTF): Update.
13105
13106 2007-06-09  Bruno Haible  <bruno@clisp.org>
13107
13108         * MODULES.html.sh (Unicode string functions): Add the new modules.
13109
13110         * modules/uniconv/u32-conv-to-enc: New file.
13111         * lib/uniconv/u32-conv-to-enc.c: New file.
13112         * modules/uniconv/u32-conv-to-enc-tests: New file.
13113         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13114
13115         * modules/uniconv/u16-conv-to-enc: New file.
13116         * lib/uniconv/u16-conv-to-enc.c: New file.
13117         * lib/uniconv/u-conv-to-enc.h: New file.
13118         * modules/uniconv/u16-conv-to-enc-tests: New file.
13119         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13120
13121         * modules/uniconv/u8-conv-to-enc: New file.
13122         * lib/uniconv/u8-conv-to-enc.c: New file.
13123         * modules/uniconv/u8-conv-to-enc-tests: New file.
13124         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13125
13126         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13127         u32_conv_to_encoding): New declarations.
13128
13129 2007-06-09  Bruno Haible  <bruno@clisp.org>
13130
13131         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13132
13133 2007-06-09  Bruno Haible  <bruno@clisp.org>
13134
13135         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13136         * modules/malloca: Renamed from modules/allocsa, updated.
13137         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13138         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13139         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13140         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13141         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13142         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13143         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13144         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13145         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13146         * modules/c-strcasestr (Depends-on): Update.
13147         * lib/c-strcasestr.c: Update.
13148         * modules/c-strstr (Depends-on): Update.
13149         * lib/c-strstr.c: Update.
13150         * modules/canonicalize-lgpl (Depends-on): Update.
13151         * lib/canonicalize-lgpl.c: Update.
13152         * modules/clean-temp (Depends-on): Update.
13153         * lib/clean-temp.c: Update.
13154         * modules/csharpcomp (Depends-on): Update.
13155         * lib/csharpcomp.c: Update.
13156         * modules/csharpexec (Depends-on): Update.
13157         * lib/csharpexec.c: Update.
13158         * modules/javacomp (Depends-on): Update.
13159         * lib/javacomp.c: Update.
13160         * modules/javaexec (Depends-on): Update.
13161         * lib/javaexec.c: Update.
13162         * modules/mbscasestr (Depends-on): Update.
13163         * lib/mbscasestr.c: Update.
13164         * modules/mbsstr (Depends-on): Update.
13165         * lib/mbsstr.c: Update.
13166         * modules/setenv (Depends-on): Update.
13167         * lib/setenv.c: Update.
13168         * modules/strcasestr (Depends-on): Update.
13169         * lib/strcasestr.c: Update.
13170         * modules/striconveha (Depends-on): Update.
13171         * lib/striconveha.c: Update.
13172         * modules/relocatable-prog-wrapper (Files): Update.
13173         * lib/relocwrapper.c: Update.
13174         * build-aux/install-reloc: Update.
13175         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13176
13177 2007-06-08  Bruno Haible  <bruno@clisp.org>
13178
13179         Port to uClibc.
13180         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13181         * lib/fpurge.c (fpurge): Likewise.
13182         * lib/freading.c (freading): Likewise.
13183         * lib/fseeko.c (rpl_fseeko): Likewise.
13184         * lib/fseterr.c (fseterr): Likewise.
13185         * lib/fwriting.c (fwriting): Likewise.
13186         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13187
13188 2007-06-08  Bruno Haible  <bruno@clisp.org>
13189
13190         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13191         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13192         * modules/gettext (Files): Add m4/intlmacosx.m4.
13193
13194 2007-06-07  Bruno Haible  <bruno@clisp.org>
13195
13196         * modules/localename-tests: New file.
13197         * tests/test-localename.c: New file.
13198
13199         New module 'localename'.
13200         * lib/localename.h: New file.
13201         * lib/localename.c: New file, from GNU gettext.
13202         * m4/localename.m4: New file.
13203         * modules/localename: New file.
13204
13205 2007-06-07  Bruno Haible  <bruno@clisp.org>
13206
13207         Work around the lack of <wchar.h> on some builds of uClibc.
13208         * doc/headers/wchar.texi: Update.
13209         * lib/wchar_.h: Include <wchar.h> only if it exists.
13210         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13211         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13212         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13213         doesn't exist.
13214         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13215         * modules/mbfile (Depends-on): Add wchar.
13216         * modules/mbiter (Depends-on): Likewise.
13217         * modules/mbuiter (Depends-on): Likewise.
13218         Reported by Simon Josefsson.
13219
13220 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         Work around problem reported by Steven M. Schweda in
13223         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13224         Tru64 5.1B with the Compaq compiler environment installed declares
13225         an 'isblank' function but does not define it in the C library.
13226         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13227         * lib/regex_internal.h (isblank): Likewise.
13228         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13229         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13230
13231 2007-06-05  Bruno Haible  <bruno@clisp.org>
13232
13233         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13234         ia64.
13235         * modules/printf-safe: New file.
13236         * modules/fprintf-posix (Depends-on): Add printf-safe.
13237         * modules/printf-posix (Depends-on): Likewise.
13238         * modules/snprintf-posix (Depends-on): Likewise.
13239         * modules/sprintf-posix (Depends-on): Likewise.
13240         * modules/vasnprintf-posix (Depends-on): Likewise.
13241         * modules/vasprintf-posix (Depends-on): Likewise.
13242         * modules/vfprintf-posix (Depends-on): Likewise.
13243         * modules/vprintf-posix (Depends-on): Likewise.
13244         * modules/vsnprintf-posix (Depends-on): Likewise.
13245         * modules/vsprintf-posix (Depends-on): Likewise.
13246         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13247         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13248         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13249         "no" on i386, x86_64, ia64.
13250         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13251         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13252         on i386, x86_64, ia64.
13253         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13254         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13255         on i386, x86_64, ia64.
13256         * tests/test-vasnprintf-posix.c: Include float.h.
13257         (LDBL80_WORDS): New macro.
13258         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13259         on i386, x86_64, ia64.
13260         * tests/test-vasprintf-posix.c: Include float.h.
13261         (LDBL80_WORDS): New macro.
13262         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13263         on i386, x86_64, ia64.
13264         * tests/test-snprintf-posix.c: Include float.h.
13265         * tests/test-sprintf-posix.c: Likewise.
13266         * tests/test-vsnprintf-posix.c: Likewise.
13267         * tests/test-vsprintf-posix.c: Likewise.
13268
13269 2007-06-05  Bruno Haible  <bruno@clisp.org>
13270
13271         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13272         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13273         non-IEEE numbers on i386, x86_64, ia64.
13274         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13275         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13276         * tests/test-isnanl.h: Include float.h.
13277         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13278
13279 2007-06-05  Bruno Haible  <bruno@clisp.org>
13280
13281         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13282         also the %a / %A. Handle the %a / %A code before this extra handling.
13283
13284 2007-06-05  Bruno Haible  <bruno@clisp.org>
13285
13286         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13287         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13288
13289 2007-06-05  Bruno Haible  <bruno@clisp.org>
13290
13291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13292         typo in variable name.
13293
13294 2007-06-05  Eric Blake  <ebb9@byu.net>
13295
13296         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13297         Reported by Simon Josefsson.
13298
13299 2007-06-04  Bruno Haible  <bruno@clisp.org>
13300
13301         Avoid test failures on some PowerPC platforms.
13302         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13303         Define differently for PowerPC.
13304         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13305         Reported by Gary V. Vaughan <gary@gnu.org>.
13306
13307 2007-06-02  Bruno Haible  <bruno@clisp.org>
13308
13309         Fix test-stdint failure on FreeBSD/ia64.
13310         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13311         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13312         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13313         * doc/headers/stdint.texi: Update.
13314
13315 2007-06-01  Bruno Haible  <bruno@clisp.org>
13316
13317         * tests/test-binary-io.c (main): Pass a third argument to open().
13318         Reported by Gary V. Vaughan <gary@gnu.org>.
13319
13320 2007-06-01  Bruno Haible  <bruno@clisp.org>
13321
13322         * doc/functions/frexpl.texi: Update for mingw.
13323
13324 2007-06-01  Bruno Haible  <bruno@clisp.org>
13325
13326         * tests/test-lseek.c (main): Disable test of errno for invalid third
13327         argument.
13328         * doc/functions/lseek.texi: Update.
13329         Reported by Gary V. Vaughan <gary@gnu.org>.
13330
13331 2007-05-28  Bruno Haible  <bruno@clisp.org>
13332
13333         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13334
13335 2007-05-31  Eric Blake  <ebb9@byu.net>
13336
13337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13338         cross compiling.
13339
13340 2007-05-30  Eric Blake  <ebb9@byu.net>
13341         and Bruno Haible  <bruno@clisp.org>
13342
13343         Work around mingw test failures exposed by m4-1.4.9b.
13344         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13345         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13346         moment.
13347
13348 2007-05-30  Bruno Haible  <bruno@clisp.org>
13349
13350         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13351         assuming that they are closed. Needed on HP-UX 11.
13352
13353 2007-05-29  Bruno Haible  <bruno@clisp.org>
13354
13355         Fix a problem with #include_next.
13356         * lib/dirent_.h: Split the double-inclusion guard.
13357         * lib/fcntl_.h: Likewise.
13358         * lib/float_.h: Likewise.
13359         * lib/iconv_.h: Likewise.
13360         * lib/inttypes_.h: Likewise.
13361         * lib/locale_.h: Likewise.
13362         * lib/math_.h: Likewise.
13363         * lib/netinet_in_.h: Likewise.
13364         * lib/search_.h: Likewise.
13365         * lib/signal_.h: Likewise.
13366         * lib/stdint_.h: Likewise.
13367         * lib/stdio_.h: Likewise.
13368         * lib/stdlib_.h: Likewise.
13369         * lib/string_.h: Likewise.
13370         * lib/sys_select_.h: Likewise.
13371         * lib/sys_socket_.h: Likewise.
13372         * lib/sys_stat_.h: Likewise.
13373         * lib/sys_time_.h: Likewise.
13374         * lib/sysexits_.h: Likewise.
13375         * lib/time_.h: Likewise.
13376         * lib/unistd_.h: Likewise.
13377         * lib/wchar_.h: Likewise.
13378         * lib/wctype_.h: Likewise.
13379
13380 2007-05-29  Bruno Haible  <bruno@clisp.org>
13381
13382         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13383         for the moment.
13384
13385 2007-05-29  Bruno Haible  <bruno@clisp.org>
13386
13387         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13388         invocation.
13389         Reported by Eric Blake.
13390
13391 2007-05-29  Bruno Haible  <bruno@clisp.org>
13392
13393         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13394         compiling case.
13395
13396 2007-05-29  Eric Blake  <ebb9@byu.net>
13397             Bruno Haible  <bruno@clisp.org>
13398
13399         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13400         cross compiles.
13401
13402 2007-05-28  Eric Blake  <ebb9@byu.net>
13403
13404         * modules/closein-tests (test_closein_LDADD): Support test on
13405         cygwin with libtool.
13406
13407 2007-05-28  Bruno Haible  <bruno@clisp.org>
13408
13409         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13410         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13411         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13412         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13413         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13414         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13415         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13416         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13417         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13418
13419 2007-05-28  Eric Blake  <ebb9@byu.net>
13420
13421         Unconditionally include <config.h> in unit tests.
13422         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13423         * tests/test-allocsa.c, tests/test-arcfour.c,
13424         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13425         tests/test-array_list.c, tests/test-array_oset.c,
13426         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13427         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13428         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13429         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13430         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13431         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13432         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13433         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13434         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13435         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13436         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13437         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13438         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13439         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13440         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13441         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13442         test-md5.c, test-memmem.c, test-printf-posix.c,
13443         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13444         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13445         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13446         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13447         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13448         test-vasnprintf-posix2.c, test-vasnprintf.c,
13449         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13450         test-vfprintf-posix.c, test-vprintf-posix.c,
13451         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13452         test-xvasprintf.c: Likewise.
13453
13454 2007-05-28  Bruno Haible  <bruno@clisp.org>
13455
13456         * gnulib-tool (func_import): Remember the --with-tests command-line
13457         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13458         Reported by Eric Blake.
13459
13460 2007-05-28  Bruno Haible  <bruno@clisp.org>
13461
13462         * modules/ftell-tests: New file.
13463         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13464         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13465
13466         * lib/ftell.c: New file.
13467         * modules/ftell: New file.
13468         * m4/ftell.m4: New file.
13469         * doc/functions/ftell.texi: Update.
13470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13471         REPLACE_FTELL.
13472         * lib/stdio_.h (rpl_ftell): New declaration.
13473         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13474         REPLACE_FTELL.
13475
13476 2007-05-28  Eric Blake  <ebb9@byu.net>
13477
13478         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13479
13480 2007-05-28  Bruno Haible  <bruno@clisp.org>
13481
13482         * modules/fseek-tests: New file.
13483         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13484         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13485
13486         * lib/fseek.c: New file.
13487         * modules/fseek: New file.
13488         * m4/fseek.m4: New file.
13489         * doc/functions/fseek.texi: Update.
13490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13491         REPLACE_FSEEK.
13492         * lib/stdio_.h (rpl_fseek): New declaration.
13493         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13494         REPLACE_FSEEK.
13495
13496 2007-05-28  Bruno Haible  <bruno@clisp.org>
13497
13498         * lib/stdio_.h (fflush): More comments.
13499
13500 2007-05-28  Bruno Haible  <bruno@clisp.org>
13501
13502         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13503         runtime test.
13504
13505 2007-05-28  Eric Blake  <ebb9@byu.net>
13506
13507         Improve lseek module.
13508         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13509         * lib/unistd_.h (lseek): Scale back link warning message.
13510         * tests/test-lseek.c: Beef up test.
13511         * tests/test-lseek.sh: Exercise more facets of lseek.
13512         Reported by Bruno Haible.
13513
13514 2007-05-28  Bruno Haible  <bruno@clisp.org>
13515
13516         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13517         to define.
13518
13519 2007-05-27  Bruno Haible  <bruno@clisp.org>
13520
13521         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13522
13523 2007-05-27  Bruno Haible  <bruno@clisp.org>
13524
13525         * modules/openmp: New file.
13526         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13527         Noah Misch.
13528
13529 2007-05-26  Bruno Haible  <bruno@clisp.org>
13530
13531         * modules/chdir-long (Depends-on): Add fchdir.
13532         * modules/chdir-safer (Depends-on): Likewise.
13533         * modules/fts (Depends-on): Likewise.
13534         * modules/fts-lgpl (Depends-on): Likewise.
13535         * modules/openat (Depends-on): Likewise.
13536         * modules/savewd (Depends-on): Likewise.
13537
13538 2007-05-24  Eric Blake  <ebb9@byu.net>
13539
13540         Fix lseek on mingw.
13541         * modules/lseek: New module.
13542         * m4/lseek.m4: New file.
13543         * lib/lseek.c: New file.
13544         * modules/lseek-tests: New file.
13545         * tests/test-lseek.c: New file.
13546         * tests/test-lseek.sh: New file.
13547         * MODULES.html.sh: Document lseek module.
13548         * modules/fflush (Depends-on): Add lseek, fseeko.
13549         * modules/fseeko (Depends-on): Likewise.
13550         * modules/ftello (Depends-on): Likewise.
13551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13552         broken.
13553         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13554         broken.
13555         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13556         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13557         * lib/ftello.c (rpl_ftello): Likewise.
13558         * tests/test-fseeko.c (main): Test this.
13559         * tests/test-fseeko.sh: Likewise.
13560         * tests/test-ftello.c (main): Likewise.
13561         * tests/test-ftello.sh: Likewise.
13562         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13563         implies replacing fseek.
13564         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13565         HAVE_FTELLO.
13566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13567         * modules/unistd (Makefile.am): Likewise.
13568         * lib/unistd_.h (lseek): Declare a replacement.
13569         * doc/functions/lseek.texi (lseek): Document this fix.
13570         * doc/functions/fseek.texi (fseek): Likewise.
13571         * doc/functions/ftell.texi (ftell): Likewise.
13572
13573 2007-05-24  Bruno Haible  <bruno@clisp.org>
13574
13575         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13576         in the printed representation of a NaN.
13577         * tests/test-vasprintf-posix.c (test_function): Likewise.
13578         * tests/test-snprintf-posix.h (test_function): Likewise.
13579         * tests/test-sprintf-posix.h (test_function): Likewise.
13580         Reported by Eric Blake.
13581
13582 2007-05-23  Eric Blake  <ebb9@byu.net>
13583
13584         Fix fseeko/ftello on cygwin 1.5.24.
13585         * doc/functions/fseeko.texi (fseeko): Document the fix.
13586         * doc/functions/ftello.texi (ftello): Document the fix.
13587         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13588         * doc/functions/stdout.text (stdout): New file.
13589         * doc/functions/stderr.text (stderr): New file.
13590         * doc/gnulib.texi (Function Substitutes): Use new files.
13591         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13592         prior to 1.7.0.
13593         * tests/test-ftello.c (main): Likewise for ftello.
13594         * tests/test-fseeko.sh: New file.
13595         * tests/test-ftello.sh: New file.
13596         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13597         with seekable stdin.
13598         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13600         (gl_REPLACE_FSEEKO): New macro.
13601         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13602         * modules/fseeko (Files): Distribute fseeko.c.
13603         * modules/ftello (Files): Distribute ftello.c.
13604         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13605         mode.
13606         * lib/ftello.c (rpl_ftello): New file.
13607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13608         fseeko, ftello.
13609         (gl_STDIN_LARGE_OFFSET): New macro.
13610         * modules/stdio (Makefile.am): Perform the replacement.
13611         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13612
13613 2007-05-23  Bruno Haible  <bruno@clisp.org>
13614
13615         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13616         GNULIB_POSIXCHECK is defined.
13617
13618 2007-05-21  Bruno Haible  <bruno@clisp.org>
13619
13620         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13621         Check also the output for NaN arguments. When cross-compiling, guess
13622         no on IRIX.
13623         * lib/vasnprintf.c: Update comments.
13624         * tests/test-vasnprintf-posix.c (strisnan): New function.
13625         (test_function): Use it.
13626         * tests/test-vasprintf-posix.c (strisnan): New function.
13627         (test_function): Use it.
13628         * tests/test-snprintf-posix.h (strisnan): New function.
13629         (test_function): Use it.
13630         * tests/test-sprintf-posix.h (strisnan): New function.
13631         (test_function): Use it.
13632         Reported by Eric Blake.
13633
13634 2007-05-20  Bruno Haible  <bruno@clisp.org>
13635
13636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13637         numbers that fails on BeOS.
13638         * doc/functions/frexpl.texi: Update.
13639
13640 2007-05-20  Jim Meyering  <jim@meyering.net>
13641
13642         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13643         forced upon us by glibc-2.6.
13644
13645 2007-05-20  Bruno Haible  <bruno@clisp.org>
13646
13647         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13648         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13649         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13650         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13651         NEED_PRINTF_INFINITE.
13652         (is_infinitel): New function.
13653         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13655         gl_PREREQ_VASNPRINTF_INFINITE.
13656         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13658         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13659         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13660         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13661         gl_PREREQ_VASNPRINTF_INFINITE.
13662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13663         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13665         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13669         * doc/functions/fprintf.texi: Update.
13670         * doc/functions/printf.texi: Update.
13671         * doc/functions/snprintf.texi: Update.
13672         * doc/functions/sprintf.texi: Update.
13673         * doc/functions/vfprintf.texi: Update.
13674         * doc/functions/vprintf.texi: Update.
13675         * doc/functions/vsnprintf.texi: Update.
13676         * doc/functions/vsprintf.texi: Update.
13677
13678 2007-05-20  Bruno Haible  <bruno@clisp.org>
13679
13680         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13681         was not found in libc.
13682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13683
13684 2007-05-20  Bruno Haible  <bruno@clisp.org>
13685
13686         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13687         printed as "-nan" instead of "nan".
13688         * tests/test-vasprintf-posix.c (test_function): Likewise.
13689         * tests/test-snprintf-posix.h (test_function): Likewise.
13690         * tests/test-sprintf-posix.h (test_function): Likewise.
13691         Needed for HP-UX 11.
13692
13693 2007-05-20  Jim Meyering  <jim@meyering.net>
13694
13695         Fix buggy test for the fchownat-deref bug.
13696         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13697         symlink required for the run-test.  Without it, this test would
13698         always declare that fchownat doesn't work, and client code would
13699         unnecessarily use the replacement function with fixed libc.
13700         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13701         Reported by Greg Schafer.
13702
13703 2007-05-19  Bruno Haible  <bruno@clisp.org>
13704
13705         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13706         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13707         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13708         Needed for IRIX 6.5 and Solaris 2.5.1.
13709
13710 2007-05-19  Bruno Haible  <bruno@clisp.org>
13711
13712         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13713         (test_function): Skip tests involving -0.0 on platforms where
13714         -0.0 = 0.0.
13715         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13716         (test_function): Skip tests involving -0.0 on platforms where
13717         -0.0 = 0.0.
13718         * tests/test-snprintf-posix.h (have_minus_zero): New function.
13719         (test_function): Skip tests involving -0.0 on platforms where
13720         -0.0 = 0.0.
13721         * tests/test-sprintf-posix.h (have_minus_zero): New function.
13722         (test_function): Skip tests involving -0.0 on platforms where
13723         -0.0 = 0.0.
13724         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13725         tests.
13726         * tests/test-printf-posix.h (test_function): Likewise.
13727         * tests/test-printf-posix.output: Remove all -0.0 related results.
13728         Needed for IRIX 6.5.
13729
13730 2007-05-19  Bruno Haible  <bruno@clisp.org>
13731
13732         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13733         printed as "nan0x7fffffff" instead of "nan".
13734         * tests/test-vasprintf-posix.c (test_function): Likewise.
13735         * tests/test-snprintf-posix.h (test_function): Likewise.
13736         * tests/test-sprintf-posix.h (test_function): Likewise.
13737         * tests/test-fprintf-posix.h (NaN): Remove macro.
13738         (test_function): Remove all NaN related tests.
13739         * tests/test-printf-posix.h (NaN): Remove macro.
13740         (test_function): Remove all NaN related tests.
13741         * tests/test-printf-posix.output: Remove all NaN related results.
13742         Needed for IRIX 6.5.
13743
13744 2007-05-19  Bruno Haible  <bruno@clisp.org>
13745
13746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13748
13749 2007-05-19  Bruno Haible  <bruno@clisp.org>
13750
13751         * lib/float_.h: New file.
13752         * m4/float_h.m4: New file.
13753         * modules/float: New file.
13754         * modules/isnanl (Dependencies): Add float.
13755         * modules/isnanl-nolibm (Dependencies): Likewise.
13756         * modules/mathl (Dependencies): Likewise.
13757         * modules/printf-frexpl (Dependencies): Likewise.
13758         * modules/signbit (Dependencies): Likewise.
13759         * modules/vasnprintf (Dependencies): Likewise.
13760         * doc/headers/float.texi: Update.
13761
13762 2007-05-19  Jim Meyering  <jim@meyering.net>
13763
13764         * lib/utimens.c (gl_futimens): Rename from futimens,
13765         now that glibc-2.6 declares futimens.
13766         * lib/utimens.h: Likewise.
13767
13768 2007-05-19  Bruno Haible  <bruno@clisp.org>
13769
13770         Avoid test failures on mingw.
13771         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13772         * tests/test-printf-posix.sh: Likewise.
13773         * tests/test-vfprintf-posix.sh: Likewise.
13774         * tests/test-vprintf-posix.sh: Likewise.
13775
13776 2007-05-19  Bruno Haible  <bruno@clisp.org>
13777
13778         Fix *printf result for NaN, Inf, -0.0 on mingw.
13779         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13780         * lib/vasnprintf.c: Include math.h and isnan.h.
13781         (is_infinite_or_zero): New function.
13782         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13783         values in the %f, %F, %e, %E, %g, %G directives.
13784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13785         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13786         gl_PRINTF_INFINITE and test its result. Invoke
13787         gl_PREREQ_VASNPRINTF_INFINITE.
13788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13792         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13794         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13795         * doc/functions/fprintf.texi: Update.
13796         * doc/functions/printf.texi: Update.
13797         * doc/functions/snprintf.texi: Update.
13798         * doc/functions/sprintf.texi: Update.
13799         * doc/functions/vfprintf.texi: Update.
13800         * doc/functions/vprintf.texi: Update.
13801         * doc/functions/vsnprintf.texi: Update.
13802         * doc/functions/vsprintf.texi: Update.
13803
13804 2007-05-19  Bruno Haible  <bruno@clisp.org>
13805
13806         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13807         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13808         Instead of multiplying with 10^k, set extra_zeroes to k.
13809         (scale10_round_long_double): Remove function.
13810
13811 2007-05-18  Bruno Haible  <bruno@clisp.org>
13812
13813         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13814         introduced on 2007-05-06.
13815
13816 2007-05-18  Bruno Haible  <bruno@clisp.org>
13817
13818         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13819         %g directives.
13820         * tests/test-vasprintf-posix.c (test_function): Likewise.
13821         * tests/test-snprintf-posix.h (test_function): Likewise.
13822         * tests/test-sprintf-posix.h (test_function): Likewise.
13823
13824 2007-05-18  Bruno Haible  <bruno@clisp.org>
13825
13826         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13827         (strmatch): New function.
13828         (test_function): Test the %f directive on numbers of various exponents.
13829         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13830         (strmatch): New function.
13831         (test_function): Test the %f directive on numbers of various exponents.
13832         * tests/test-snprintf-posix.h (strmatch): New function.
13833         (test_function): Test the %f directive on numbers of various exponents.
13834         * tests/test-sprintf-posix.h (strmatch): New function.
13835         (test_function): Test the %f directive on numbers of various exponents.
13836         * tests/test-snprintf-posix.c (SIZEOF): New macro.
13837         * tests/test-sprintf-posix.c (SIZEOF): New macro.
13838         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13839         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13840
13841 2007-05-18  Bruno Haible  <bruno@clisp.org>
13842
13843         Add support for 'long double' number output.
13844         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13845         * lib/vasnprintf.c: Include math.h and float+.h.
13846         (mp_limb_t): New type.
13847         (GMP_LIMB_BITS): New macro.
13848         (mp_twolimb_t): New type.
13849         (GMP_TWOLIMB_BITS): New macro.
13850         (mpn_t): New type.
13851         (multiply, divide, convert_to_decimal, decode_long_double,
13852         scale10_round_long_double, scale10_round_decimal_long_double,
13853         floorlog10l): New functions.
13854         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13855         for the %f, %F, %e, %E, %g, %G directives.
13856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13858         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13859         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13867         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13868         * modules/snprintf-posix (Depends-on): Likewise.
13869         * modules/sprintf-posix (Depends-on): Likewise.
13870         * modules/vasnprintf-posix (Depends-on): Likewise.
13871         * modules/vasprintf-posix (Depends-on): Likewise.
13872         * modules/vfprintf-posix (Depends-on): Likewise.
13873         * modules/vsnprintf-posix (Depends-on): Likewise.
13874         * modules/vsprintf-posix (Depends-on): Likewise.
13875         * modules/vasnprintf (Files): Add lib/float+.h.
13876         * doc/functions/fprintf.texi: Update.
13877         * doc/functions/printf.texi: Update.
13878         * doc/functions/snprintf.texi: Update.
13879         * doc/functions/sprintf.texi: Update.
13880         * doc/functions/vfprintf.texi: Update.
13881         * doc/functions/vprintf.texi: Update.
13882         * doc/functions/vsnprintf.texi: Update.
13883         * doc/functions/vsprintf.texi: Update.
13884
13885 2007-05-18  Bruno Haible  <bruno@clisp.org>
13886
13887         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13888
13889 2007-05-18  Bruno Haible  <bruno@clisp.org>
13890
13891         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
13892         for printing 64-bit integers. Needed for mingw.
13893
13894 2007-05-18  Bruno Haible  <bruno@clisp.org>
13895
13896         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13897         gl_FUNC_FREXPL_WORKS.
13898         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
13899
13900 2007-05-18  Bruno Haible  <bruno@clisp.org>
13901
13902         * modules/frexpl-nolibm-tests: New file.
13903
13904         * modules/frexpl-nolibm: New file.
13905         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
13906
13907 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13908
13909         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
13910         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13911         GCC 4.2, which otherwise issues a lot of warnings.
13912         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
13913         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
13914         Likewise.
13915         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
13916         * modules/iconv_open (iconv.h): Likewise.
13917         * modules/locale (locale.h): Likewise.
13918         * modules/netinet_in (netinet/in.h): Likewise.
13919         * modules/sys_select (sys_select.h): Likewise.
13920         * modules/sys_socket (sys/socket.h): Likewise.
13921         * modules/sys_stat (sys/stat.h): Likewise.
13922         * modules/sysexits (sysexits.h): Likewise.
13923         * modules/unistd (unistd.h): Likewise.
13924
13925 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13926
13927         * modules/closein-tests (Makefile.am): Distribute
13928         `test-closein.sh'.
13929
13930 2007-05-17  Bruno Haible  <bruno@clisp.org>
13931
13932         * tests/test-printf-posix.output: Renamed from
13933         tests/test-fprintf-posix.out.
13934         * modules/fprintf-posix-tests: Update.
13935         * modules/printf-posix-tests: Update.
13936         * modules/vfprintf-posix-tests: Update.
13937         * modules/vprintf-posix-tests: Update.
13938         * tests/test-fprintf-posix.sh: Update.
13939         * tests/test-printf-posix.sh: Update.
13940         * tests/test-vfprintf-posix.sh: Update.
13941         * tests/test-vprintf-posix.sh: Update.
13942         Reported by Ralf Wildenhues.
13943
13944 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13945
13946         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
13947         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13948         GCC 4.2, which otherwise issues a lot of warnings.
13949         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
13950         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
13951         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
13952         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
13953         it should no longer be needed.
13954         * lib/string_.h: Likewise.
13955         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
13956         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
13957         * modules/inttypes (inttypes.h): Likewise.
13958         * modules/math (math.h): Likewise.
13959         * modules/search (search.h): Likewise.
13960         * modules/signal (signal.h): Likewise.
13961         * modules/stdint (stdint.h): Likewise.
13962         * modules/stdio (stdio.h): Likewise.
13963         * modules/stdlib (stdlib.h): Likewise.
13964         * modules/string (string.h): Likewise.
13965         * modules/sys_time (sys/time.h): Likewise.
13966         * modules/time (time.h): Likewise.
13967         * modules/wchar (wchar.h): Likewise.
13968         * modules/wctype (wtype.h): Likewise.
13969
13970 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13971
13972         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
13973
13974 2007-05-13  Bruno Haible  <bruno@clisp.org>
13975
13976         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
13977         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13978         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
13979         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13980         (gl_PREREQ_STRTOK_R): Don't require it here.
13981
13982 2007-05-13  Bruno Haible  <bruno@clisp.org>
13983
13984         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
13985         when used in C++ mode.
13986
13987 2007-05-12  Bruno Haible  <bruno@clisp.org>
13988
13989         * lib/linebuffer.h: Tweak doc.
13990         * lib/linebuffer.c: Likewise.
13991
13992 2007-05-12  James Youngman  <jay@gnu.org>
13993
13994         * lib/linebuffer.c (readlinebuffer_delim): New function,
13995         like readlinebuffer, but use a caller-specified delimiter.
13996         (readlinebuffer): Just call readlinebuffer_delim with '\n'
13997         as the delimiter.
13998         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
13999
14000 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14001
14002         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14003         * modules/openat (Files): Remove openat-die.c.
14004         (Depends-on): Add openat-die.
14005         * modules/openat-die: New module.
14006
14007 2007-05-06  Bruno Haible  <bruno@clisp.org>
14008
14009         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14010         Update with info about Cygwin.
14011         * doc/functions/fprintf.texi: Update.
14012         * doc/functions/printf.texi: Update.
14013         * doc/functions/snprintf.texi: Update.
14014         * doc/functions/sprintf.texi: Update.
14015         * doc/functions/vfprintf.texi: Update.
14016         * doc/functions/vprintf.texi: Update.
14017         * doc/functions/vsnprintf.texi: Update.
14018         * doc/functions/vsprintf.texi: Update.
14019         Reported by Eric Blake.
14020
14021 2007-05-06  Bruno Haible  <bruno@clisp.org>
14022
14023         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14024         padding ourselves for the floating-point directives.
14025         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14028         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14029         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14037         * tests/test-snprintf-posix.h (test_function): Also check the width
14038         and some flags in the %f directive.
14039         * tests/test-sprintf-posix.h (test_function): Likewise.
14040         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14041         * tests/test-vasprintf-posix.c (test_function): Likewise.
14042         * doc/functions/fprintf.texi: Update.
14043         * doc/functions/printf.texi: Update.
14044         * doc/functions/snprintf.texi: Update.
14045         * doc/functions/sprintf.texi: Update.
14046         * doc/functions/vfprintf.texi: Update.
14047         * doc/functions/vprintf.texi: Update.
14048         * doc/functions/vsnprintf.texi: Update.
14049         * doc/functions/vsprintf.texi: Update.
14050
14051 2007-05-06  Bruno Haible  <bruno@clisp.org>
14052
14053         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14054         pass the ' flag character to sprintf or snprintf.
14055         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14058         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14059         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14064         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14067         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14068         flag.
14069         * tests/test-sprintf-posix.h (test_function): Likewise.
14070         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14071         * tests/test-vasprintf-posix.c (test_function): Likewise.
14072         * doc/functions/fprintf.texi: Update.
14073         * doc/functions/printf.texi: Update.
14074         * doc/functions/snprintf.texi: Update.
14075         * doc/functions/sprintf.texi: Update.
14076         * doc/functions/vfprintf.texi: Update.
14077         * doc/functions/vprintf.texi: Update.
14078         * doc/functions/vsnprintf.texi: Update.
14079         * doc/functions/vsprintf.texi: Update.
14080
14081 2007-05-01  Bruno Haible  <bruno@clisp.org>
14082
14083         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14084
14085 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14086
14087         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14088         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14089
14090 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14091
14092         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14093         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14095
14096 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14097
14098         * lib/argp-help.c (struct hol_entry): New member `ord'.
14099         (HOL_ENTRY_PTRCMP): Use ord for comparison
14100         (hol_sort): Initialize ord.
14101
14102 2007-05-01  Bruno Haible  <bruno@clisp.org>
14103
14104         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14105         Reported by Eric Blake.
14106         * doc/gnulib.texi (Function Substitutes): Update.
14107
14108 2007-05-01  Bruno Haible  <bruno@clisp.org>
14109
14110         * doc/functions.texi: Remove file, now redundant through
14111         doc/functions/*.texi.
14112
14113 2007-05-01  Bruno Haible  <bruno@clisp.org>
14114
14115         * modules/argp (Depends-on): Add sleep.
14116
14117 2007-05-01  Bruno Haible  <bruno@clisp.org>
14118
14119         * modules/sleep-tests: New file.
14120         * tests/test-sleep.c: New file.
14121
14122         * modules/sleep: New file.
14123         * lib/sleep.c: New file.
14124         * m4/sleep.m4: New file.
14125         * lib/unistd_.h (sleep): New declaration.
14126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14127         HAVE_SLEEP.
14128         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14129         * doc/functions/sleep.texi: Document the sleep module.
14130
14131 2007-05-01  Bruno Haible  <bruno@clisp.org>
14132
14133         * lib/sigprocmask.h: Remove file.
14134         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14135         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14136         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14137         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14138         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14139         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14140         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14141         HAVE_SIGSET_T as a shell variable.
14142         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14143         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14144         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14145         (Depends-on): Add signal. Remove verify.
14146         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14147         (Include): Mention <signal.h> instead of sigprocmask.h.
14148         * NEWS: Mention the change.
14149         * lib/fatal-signal.c: Don't include sigprocmask.h.
14150
14151 2007-05-01  Bruno Haible  <bruno@clisp.org>
14152
14153         * modules/signal: New file.
14154         * lib/signal_.h: New file.
14155         * m4/signal_h.m4: New file.
14156
14157 2007-05-01  Bruno Haible  <bruno@clisp.org>
14158
14159         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14160         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14161         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14162         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14163
14164 2007-05-01  Bruno Haible  <bruno@clisp.org>
14165
14166         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14167         configure time.
14168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14169         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14170         * modules/sys_stat (Makefile.am): Substitute their values into
14171         sys/stat.h.
14172
14173 2007-05-01  Bruno Haible  <bruno@clisp.org>
14174
14175         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14176         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14177         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14178
14179 2007-05-01  Bruno Haible  <bruno@clisp.org>
14180
14181         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14182         'assert' module here.
14183
14184 2007-05-01  Bruno Haible  <bruno@clisp.org>
14185
14186         * doc/functions/*.texi: New files.
14187         * doc/functions/google-ranking.txt: New file.
14188         * doc/gnulib.texi (Function Substitutes): New chapter.
14189         (ctime, inet_ntoa): Remove sections.
14190         * doc/ctime.texi: Remove file.
14191         * doc/inet_ntoa.texi: Remove file.
14192         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14193         dependencies.
14194         (%.info): New rule, specifying a --reference-limit.
14195
14196 2007-05-01  Bruno Haible  <bruno@clisp.org>
14197
14198         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14199
14200 2007-05-01  Bruno Haible  <bruno@clisp.org>
14201
14202         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14203         the portability of 'mkdir' to mingw systems.
14204
14205 2007-05-01  Bruno Haible  <bruno@clisp.org>
14206
14207         * doc/headers/google-ranking.txt: New file.
14208
14209 2007-04-30  Eric Blake  <ebb9@byu.net>
14210
14211         Prefer fseeko to fseek.
14212         * modules/getpass (Depends-on): Add fseeko.
14213         * lib/getpass.c (getpass): Use fseeko, not fseek.
14214
14215 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14216
14217         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14218         assumes the sorting is stable, while most qsort implementations
14219         are not.  Use argument addresses to ensure they never compare as
14220         equal.
14221
14222         * tests/test-argp-2.sh (usage-indent test): Fix output
14223         (func_compare): Restore diff options
14224         * tests/test-argp.c: Restore #include "progname.h"
14225
14226 2007-04-29  Bruno Haible  <bruno@clisp.org>
14227
14228         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14230         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14232         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14233         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14234         (TESTS, check_PROGRAMS): Add test-snprintf.
14235         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14236         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14237         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14238         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14239         assertions that fail on HP-UX, OSF/1, or IRIX.
14240         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14241
14242 2007-04-29  Bruno Haible  <bruno@clisp.org>
14243
14244         * MODULES.html.sh (posix_functions): Remove 'contents'.
14245
14246 2007-04-29  Karl Berry  <karl@gnu.org>
14247
14248         * config/srclist.txt (gendocs_template_min): new entry.
14249
14250 2007-04-29  Bruno Haible  <bruno@clisp.org>
14251
14252         Work around fpurge bug on BSD systems.
14253         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14255         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14256         fpurge to rpl_fpurge if the system already has this function.
14257         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14258         the case where the system already has this function. Correct invariants
14259         on BSD systems.
14260         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14261         BSD systems.
14262
14263 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14264
14265         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14266         proposed by Sven Verdoolaege.
14267
14268         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14269         options.
14270         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14271         (usage and help tests): Update
14272
14273 2007-04-29  Bruno Haible  <bruno@clisp.org>
14274
14275         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14276         Print more information in case of failure. Disable a test on BeOS.
14277
14278 2007-04-29  Bruno Haible  <bruno@clisp.org>
14279
14280         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14281         This helps debugging on systems on which no gdb is available.
14282
14283 2007-04-29  Bruno Haible  <bruno@clisp.org>
14284
14285         * lib/freading.h: Improve comments.
14286         * lib/fwriting.h: Likewise.
14287         * tests/test-freading.c (main): Don't check freading immediately after
14288         repositioning. Needed for glibc.
14289
14290 2007-04-29  Bruno Haible  <bruno@clisp.org>
14291
14292         * lib/freading.c (freading): Trivial simplification.
14293
14294 2007-04-28  Bruno Haible  <bruno@clisp.org>
14295
14296         * tests/test-fwriting.c (main): Also test the interaction between
14297         fflush and fwriting.
14298         * modules/fwriting-tests (Depends-on): Add fflush.
14299
14300         * tests/test-freading.c (main): Also test the interaction between
14301         fflush and freading.
14302         * modules/freading-tests (Depends-on): Add fflush.
14303
14304 2007-04-28  Bruno Haible  <bruno@clisp.org>
14305
14306         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14307         fseeko and ftello.
14308         Suggested by Eric Blake.
14309
14310 2007-04-28  Jim Meyering  <jim@meyering.net>
14311
14312         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14313         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14314         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14315
14316 2007-04-27  Eric Blake  <ebb9@byu.net>
14317
14318         * doc/headers/assert.texi (assert.h): Document assert module use.
14319
14320 2007-04-27  Bruno Haible  <bruno@clisp.org>
14321
14322         * doc/headers/*.texi: New files.
14323         * doc/gnulib.texi (Header File Substitutes): New chapter.
14324         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14325         dependencies.
14326         (standards.info ,standards.html, standards.dvi): Update dependencies.
14327         (mostlyclean, clean): New targets.
14328
14329 2007-04-27  Bruno Haible  <bruno@clisp.org>
14330
14331         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14332         * modules/sysexits (Files, Makefile.am): Update.
14333
14334         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14335         * modules/sys_socket (Files, Makefile.am): Update.
14336
14337         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14338         * modules/sys_stat (Files, Makefile.am): Update.
14339
14340 2007-04-27  Eric Blake  <ebb9@byu.net>
14341
14342         * lib/freading.h: Improve comments.
14343         * lib/fwriting.h: Likewise.
14344         * lib/fflush.c: Likewise.
14345
14346         Fix closein for mingw.
14347         * modules/closein-tests: Add tests for closein.
14348         * tests/test-closein.c: New file.
14349         * tests/test-closein.sh: Likewise.
14350         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14351         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14352
14353 2007-04-27  Bruno Haible  <bruno@clisp.org>
14354
14355         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14356         version is < 6.
14357         * lib/math_.h [__DECC]: Likewise.
14358         * lib/stdio_.h [__DECC]: Likewise.
14359         * lib/stdlib_.h [__DECC]: Likewise.
14360         * lib/string_.h [__DECC]: Likewise.
14361         * lib/time_.h [__DECC]: Likewise.
14362         * lib/wchar_.h [__DECC]: Likewise.
14363         * lib/wctype_.h [__DECC]: Likewise.
14364
14365 2007-04-27  Bruno Haible  <bruno@clisp.org>
14366
14367         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14368
14369 2007-04-27  Bruno Haible  <bruno@clisp.org>
14370
14371         * lib/fflush.c: Add comments.
14372         * modules/fpurge-tests (Depends-on): Add fflush.
14373         * modules/freadable-tests (Depends-on): Likewise.
14374         * modules/fwritable-tests (Depends-on): Likewise.
14375
14376 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14377
14378         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14379         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14380         Report by Bruno Haible <bruno@clisp.org>.
14381
14382 2007-04-26  Eric Blake  <ebb9@byu.net>
14383
14384         Fix fflush on mingw.
14385         * modules/fflush (Depends-on): Add freading.
14386         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14387         but unread data.
14388
14389 2007-04-26  Eric Blake  <ebb9@byu.net>
14390         and Bruno Haible  <bruno@clisp.org>
14391
14392         Implement freading and fwriting.
14393         * lib/freading.c: New file.
14394         * lib/freading.h: Likewise.
14395         * m4/freading.m4: Likewise.
14396         * modules/freading: Likewise.
14397         * modules/freading-tests: Likewise.
14398         * tests/test-freading.c: Likewise.
14399         * lib/fwriting.c: New file.
14400         * lib/fwriting.h: Likewise.
14401         * m4/fwriting.m4: Likewise.
14402         * modules/fwriting: Likewise.
14403         * modules/fwriting-tests: Likewise.
14404         * tests/test-fwriting.c: Likewise.
14405         * MODULES.html.sh (File stream based Input/Output): Mention them.
14406
14407 2007-04-26  Bruno Haible  <bruno@clisp.org>
14408
14409         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14410         'long' when we assume it.
14411         Suggested by Eric Blake.
14412
14413 2007-04-26  Bruno Haible  <bruno@clisp.org>
14414
14415         Ensure fseeko, ftello are declared on glibc systems.
14416         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14417         * modules/fseeko (configure.ac-early): Likewise.
14418         * modules/ftello (configure.ac-early): Likewise.
14419         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14420         AC_FUNC_FSEEKO for this.
14421         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14422         (gl_CHECK_FSEEKO): Remove macro.
14423
14424 2007-04-26  Bruno Haible  <bruno@clisp.org>
14425
14426         * tests/test-fflush.c (main): Also check the ftell result after
14427         fflush and fseek/fseeko.
14428         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14429         file descriptor position cache in the stream.
14430         * lib/fseeko.c (rpl_fseeko): Likewise.
14431
14432 2007-04-26  Bruno Haible  <bruno@clisp.org>
14433
14434         * modules/fflush-tests (Depends-on): Add fseeko.
14435
14436 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14437             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14438
14439         * lib/argz_.h: ensure error_t definition is obtained in same
14440         mechanism system argz.h would have.
14441         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14442         argz facilities are known bad.  Err on the side of caution if
14443         cross-compiling.
14444
14445 2007-04-25  Eric Blake  <ebb9@byu.net>
14446
14447         * lib/fpurge.c (includes): Use stdlib.h for free.
14448         * tests/test-fflush.c (main): Also test fflush-fseeko.
14449
14450 2007-04-25  Bruno Haible  <bruno@clisp.org>
14451
14452         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14453         * lib/fseeko.c: New file.
14454         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14455         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14456         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14457         gl_FUNC_FSEEKO.
14458         (gl_FUNC_FSEEKO): Invoke it.
14459         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14460         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14461         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14462
14463 2007-04-25  Bruno Haible  <bruno@clisp.org>
14464
14465         * modules/fflush (Depends-on): Add ftello.
14466
14467 2007-04-25  Bruno Haible  <bruno@clisp.org>
14468
14469         * modules/ftello-tests: New file.
14470         * tests/test-ftello.c: New file.
14471
14472         * modules/ftello: New file.
14473         * m4/ftello.m4: New file.
14474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14475         HAVE_FTELLO.
14476         * lib/stdio_.h (ftello): New declaration.
14477         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14478         HAVE_FTELLO.
14479
14480 2007-04-25  Bruno Haible  <bruno@clisp.org>
14481
14482         * modules/fseeko-tests: New file.
14483         * tests/test-fseeko.c: New file.
14484
14485         * modules/fseeko: New file.
14486         * m4/fseeko.m4: New file.
14487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14488         HAVE_FSEEKO.
14489         * lib/stdio_.h (fseeko): New declaration.
14490         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14491         HAVE_FSEEKO.
14492
14493 2007-04-25  Bruno Haible  <bruno@clisp.org>
14494
14495         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14496
14497 2007-04-25  Bruno Haible  <bruno@clisp.org>
14498
14499         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14500         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14501         * tests/test-unistd.c: Likewise.
14502         * tests/test-fcntl.c: Likewise.
14503
14504 2007-04-23  Eric Blake  <ebb9@byu.net>
14505
14506         * lib/fflush.c: Fix missing include.
14507         Reported by Bruno Haible.
14508
14509 2007-04-23  Bruno Haible  <bruno@clisp.org>
14510
14511         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14512         Reported by Eric Blake.
14513
14514 2007-04-23  Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14517
14518 2007-04-23  Bruno Haible  <bruno@clisp.org>
14519
14520         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14521
14522 2007-04-23  Bruno Haible  <bruno@clisp.org>
14523
14524         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14525         Needed on HP-UX 11.
14526
14527 2007-04-16  Eric Blake  <ebb9@byu.net>
14528
14529         Make fflush rely on fpurge.
14530         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14531         open coding all variants.
14532         * modules/fflush (Depends-on): Add fpurge and unistd.
14533         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14534         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14535
14536         Fix --with-tests compilation on cygwin.
14537         * modules/argmatch-tests (Makefile.am): List gnulib library first
14538         in LDADD.
14539         * modules/argp-tests (Makefile.am): Likewise.
14540         * modules/array-list-tests (Makefile.am): Likewise.
14541         * modules/array-oset-tests (Makefile.am): Likewise.
14542         * modules/avltree-list-tests (Makefile.am): Likewise.
14543         * modules/avltree-oset-tests (Makefile.am): Likewise.
14544         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14545         * modules/carray-list-tests (Makefile.am): Likewise.
14546         * modules/dirname-tests (Makefile.am): Likewise.
14547         * modules/frexp-tests (Makefile.am): Likewise.
14548         * modules/isnanl-tests (Makefile.am): Likewise.
14549         * modules/linked-list-tests (Makefile.am): Likewise.
14550         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14551         * modules/lock-tests (Makefile.am): Likewise.
14552         * modules/rbtree-list-tests (Makefile.am): Likewise.
14553         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14554         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14555         * modules/tls-tests (Makefile.am): Likewise.
14556         * modules/tsearch-tests (Makefile.am): Likewise.
14557         * modules/xvasprintf-tests (Makefile.am): Likewise.
14558
14559         Fix fpurge for cygwin.
14560         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14561         value.
14562         * modules/fpurge-tests (Depends-on): Clean up trash.
14563
14564 2007-04-16  Simon Josefsson  <simon@josefsson.org>
14565
14566         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14567
14568         * m4/autobuild.m4: Re-indent.
14569
14570 2007-04-13  Bruno Haible  <bruno@clisp.org>
14571
14572         * modules/fpurge-tests: New file.
14573         * tests/test-fpurge.c: New file.
14574
14575         * modules/fpurge: New file.
14576         * lib/fpurge.h: New file.
14577         * lib/fpurge.c: New file.
14578         * m4/fpurge.m4: New file.
14579
14580 2007-04-13  Bruno Haible  <bruno@clisp.org>
14581
14582         * modules/fbufmode-tests: New file.
14583         * tests/test-fbufmode.c: New file.
14584
14585         * modules/fbufmode: New file.
14586         * lib/fbufmode.h: New file.
14587         * lib/fbufmode.c: New file.
14588         * m4/fbufmode.m4: New file.
14589
14590 2007-04-13  Bruno Haible  <bruno@clisp.org>
14591
14592         * modules/fwritable-tests: New file.
14593         * tests/test-fwritable.c: New file.
14594
14595         * modules/fwritable: New file.
14596         * lib/fwritable.h: New file.
14597         * lib/fwritable.c: New file.
14598         * m4/fwritable.m4: New file.
14599
14600 2007-04-13  Bruno Haible  <bruno@clisp.org>
14601
14602         * modules/freadable-tests: New file.
14603         * tests/test-freadable.c: New file.
14604
14605         * modules/freadable: New file.
14606         * lib/freadable.h: New file.
14607         * lib/freadable.c: New file.
14608         * m4/freadable.m4: New file.
14609
14610 2007-04-13  Bruno Haible  <bruno@clisp.org>
14611
14612         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14613         MOSTLYCLEANFILES.
14614
14615 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14616
14617         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14618         gzip bootstrap.conf to avoid dragging in i18n machinery.
14619         (gnulib_tool_option): Use it.
14620
14621 2007-04-13  Bruno Haible  <bruno@clisp.org>
14622
14623         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14624         %F directives.
14625         * tests/test-vasprintf-posix.c (test_function): Likewise.
14626         * tests/test-snprintf-posix.h (test_function): Likewise.
14627         * tests/test-sprintf-posix.h (test_function): Likewise.
14628         * tests/test-fprintf-posix.h (test_function): Likewise.
14629         * tests/test-printf-posix.h (test_function): Likewise.
14630         * tests/test-fprintf-posix.out: Likewise.
14631
14632 2007-04-13  Bruno Haible  <bruno@clisp.org>
14633
14634         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14635         * modules/tls-tests (configure.ac): Likewise.
14636         Reported by Arto C. Nirkko <anirkko@insel.ch>.
14637
14638 2007-04-13  Bruno Haible  <bruno@clisp.org>
14639
14640         * lib/tls.c (glthread_tls_get): Fix return type.
14641         Patch by Arto C. Nirkko <anirkko@insel.ch>.
14642
14643 2007-04-12  Eric Blake  <ebb9@byu.net>
14644
14645         * modules/gettime (Depends-on): Remove gettime.
14646         Reported by Dmitry V. Levin.
14647
14648 2007-04-12  Bruno Haible  <bruno@clisp.org>
14649
14650         * modules/fflush (Include): Mention <stdio.h>.
14651         * modules/strtoimax (Include): Mention <inttypes.h>.
14652         * modules/strtoumax (Include): Likewise.
14653
14654 2007-04-12  Eric Blake  <ebb9@byu.net>
14655
14656         * .cvsignore: New file.
14657         * .gitignore: Likewise.
14658
14659 2007-04-12  Bruno Haible  <bruno@clisp.org>
14660
14661         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14662         not before, since $(LDADD) often contains libgnu.a.
14663         * modules/striconv-tests (test_striconv_LDADD): Likewise.
14664         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14665         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14666         Needed on Cygwin.
14667
14668 2007-04-12  Eric Blake  <ebb9@byu.net>
14669
14670         Work around glibc's failure to flush stdin on fclose.
14671         * lib/closein.c (close_stdin): Flush stdin before closing.
14672
14673         Work around glibc's failure to reset seekable stdin on exit.
14674         * modules/closein: New module.
14675         * lib/closein.c: New file.
14676         * lib/closein.h: Likewise.
14677         * m4/closein.m4: Likewise.
14678         * MODULES.html.sh (File stream based Input/Output): Document it.
14679
14680 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14681
14682         * gnulib-tool: Rename generated 'autobuild' script to
14683         'do-autobuild' in --create-megatestdir output.
14684
14685         * doc/gnulib.texi (Build robot for gnulib): Fix.
14686
14687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14688
14689         * modules/sysexits (Depends-on): Add absolute-header.
14690
14691 2007-04-12  Eric Blake  <ebb9@byu.net>
14692
14693         No need to preserve errno on success.
14694         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14695         Reported by Bruno Haible.
14696
14697 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14698
14699         * MODULES.html.sh (Support for maintaining and releasing
14700         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
14701
14702 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14703
14704         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14705
14706 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14707
14708         * modules/autobuild: New module.
14709
14710         * m4/autobuild.m4: New file.
14711
14712 2007-04-11  Bruno Haible  <bruno@clisp.org>
14713
14714         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14715         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14730         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14742         Reported by Eric Blake.
14743
14744 2007-04-11  Bruno Haible  <bruno@clisp.org>
14745
14746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14747
14748 2007-04-10  Bruno Haible  <bruno@clisp.org>
14749
14750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14751         for NaN and Infinity. Needed on FreeBSD 6.1.
14752         * tests/test-vasnprintf-posix.c (test_function): Undo last change
14753         regarding results for "%010a" of Infinity and NaN.
14754         * tests/test-vasprintf-posix.c (test_function): Likewise.
14755         * tests/test-snprintf-posix.h (test_function): Likewise.
14756         * tests/test-sprintf-posix.h (test_function): Likewise.
14757         * tests/test-fprintf-posix.h (test_function): Likewise.
14758         * tests/test-printf-posix.h (test_function): Likewise.
14759         * tests/test-fprintf-posix.out: Likewise.
14760
14761 2007-04-10  Bruno Haible  <bruno@clisp.org>
14762
14763         * modules/locale-tests: New file.
14764         * tests/test-locale.c: New file.
14765
14766         * modules/locale: New file.
14767         * lib/locale_.h: New file.
14768         * m4/locale_h.m4: New file.
14769
14770 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
14771             Bruno Haible  <bruno@clisp.org>
14772
14773         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14774         be determined, test for availability of the copysignf, copysign,
14775         copysignl functions.
14776         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14777         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14778         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14779
14780 2007-04-09  Eric Blake  <ebb9@byu.net>
14781
14782         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14783         * modules/stdio (Makefile.am): Support fflush.
14784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14785         * modules/fflush: New file.
14786         * lib/fflush.c: Likewise.
14787         * m4/fflush.m4: Likewise.
14788         * modules/fflush-tests: New test.
14789         * tests/test-fflush.c: Likewise.
14790         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14791
14792 2007-04-06  Bruno Haible  <bruno@clisp.org>
14793
14794         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14795         (VASNPRINTF): Use signbit for faster determination whether to print a
14796         minus sign.
14797         * modules/vasnprintf (Files): Remove lib/float+.h.
14798         * modules/fprintf-posix (Depends-on): Add signbit.
14799         * modules/snprintf-posix (Depends-on): Likewise.
14800         * modules/sprintf-posix (Depends-on): Likewise.
14801         * modules/vasnprintf-posix (Depends-on): Likewise.
14802         * modules/vasprintf-posix (Depends-on): Likewise.
14803         * modules/vfprintf-posix (Depends-on): Likewise.
14804         * modules/vsnprintf-posix (Depends-on): Likewise.
14805         * modules/vsprintf-posix (Depends-on): Likewise.
14806
14807 2007-04-06  Bruno Haible  <bruno@clisp.org>
14808
14809         * tests/test-frexp.c (main): Test also the sign bit of zero results.
14810         * tests/test-frexpl.c (main): Likewise.
14811         * tests/test-ldexpl.c (main): Likewise.
14812         * modules/frexp-tests (Depends-on): Add signbit.
14813         * modules/frexpl-tests (Depdends-on): Likewise.
14814         * modules/ldexpl-tests (Depdends-on): Likewise.
14815
14816 2007-04-06  Bruno Haible  <bruno@clisp.org>
14817
14818         * modules/signbit-tests: New file.
14819         * tests/test-signbit.c: New file.
14820
14821         * modules/signbit: New file.
14822         * lib/signbitf.c: New file.
14823         * lib/signbitd.c: New file.
14824         * lib/signbitl.c: New file.
14825         * m4/signbit.m4: New file.
14826         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14827         (signbit): New macro.
14828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14829         REPLACE_SIGNBIT.
14830         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14831         REPLACE_FREXPL into math.h.
14832
14833 2007-04-06  Bruno Haible  <bruno@clisp.org>
14834
14835         * modules/isnanf-nolibm-tests: New file.
14836         * tests/test-isnanf.c: New file.
14837
14838         * modules/isnanf-nolibm: New file.
14839         * lib/isnanf.h: New file.
14840         * lib/isnanf.c: New file.
14841         * lib/isnan.c: Consider the USE_FLOAT macro.
14842         * m4/isnanf.m4: New file.
14843
14844 2007-04-06  Bruno Haible  <bruno@clisp.org>
14845
14846         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14847         (Link): New section.
14848
14849         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14850
14851 2007-04-06  Bruno Haible  <bruno@clisp.org>
14852
14853         Assume the 'long double' type.
14854         * m4/longdouble.m4: Remove file.
14855         * config/srclist.txt: Don't mention longdouble.m4.
14856         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14857         * lib/float+.h: Likewise.
14858         * lib/frexp.c: Likewise.
14859         * lib/printf-args.h: Likewise.
14860         * lib/printf-args.c: Likewise.
14861         * lib/printf-frexp.c: Likewise.
14862         * lib/printf-parse.c: Likewise.
14863         * lib/vasnprintf.c: Likewise.
14864         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14865         * m4/intl.m4: Likewise.
14866         * m4/isnanl.m4: Likewise.
14867         * m4/printf.m4: Likewise.
14868         * m4/printf-frexpl.m4: Likewise.
14869         * m4/vasnprintf.m4: Likewise.
14870         * modules/allocsa (Files): Remove m4/longdouble.m4.
14871         * modules/gettext (Files): Likewise.
14872         * modules/relocatable-prog-wrapper (Files): Likewise.
14873         * modules/vasnprintf (Files): Likewise.
14874         * modules/isnanl (Files): Likewise.
14875         (Include): Simplify.
14876         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14877         (Include): Simplify.
14878         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14879         (Include): Simplify.
14880         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14882         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14883         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14884         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14885         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14886         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14887         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14888         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14889         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14890         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
14891         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14892         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
14893         * tests/test-isnanl.c: Likewise.
14894         * tests/test-snprintf-posix.h: Likewise.
14895         * tests/test-sprintf-posix.h: Likewise.
14896         * tests/test-vasnprintf-posix.c: Likewise.
14897         * tests/test-vasnprintf-posix2.c: Likewise.
14898         * tests/test-vasprintf-posix.c: Likewise.
14899
14900 2007-04-06  Bruno Haible  <bruno@clisp.org>
14901
14902         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
14903         * lib/math_.h [__DECC]: Include the overridden include file through
14904         #include_next, outside the double-inclusion guard.
14905         * lib/stdio_.h [__DECC]: Likewise.
14906         * lib/stdlib_.h [__DECC]: Likewise.
14907         * lib/string_.h [__DECC]: Likewise.
14908         * lib/time_.h [__DECC]: Likewise.
14909         * lib/wchar_.h [__DECC]: Likewise.
14910         * lib/wctype_.h [__DECC]: Likewise.
14911         * lib/inttypes_.h [__DECC]: Likewise.
14912         Reported by Albert Chin <china@thewrittenword.com> in
14913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
14914
14915 2007-04-04  Eric Blake  <ebb9@byu.net>
14916
14917         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
14918         1.5.x.
14919
14920 2007-04-04  Bruno Haible  <bruno@clisp.org>
14921
14922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
14923         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
14924
14925 2007-04-04  Bruno Haible  <bruno@clisp.org>
14926
14927         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
14928         results for "%010a" of Infinity and NaN.
14929         * tests/test-vasprintf-posix.c (test_function): Likewise.
14930         * tests/test-snprintf-posix.h (test_function): Likewise.
14931         * tests/test-sprintf-posix.h (test_function): Likewise.
14932         * tests/test-fprintf-posix.h (test_function): Remove these tests.
14933         * tests/test-printf-posix.h (test_function): Likewise.
14934         * tests/test-fprintf-posix.out: Update.
14935         Needed for FreeBSD 6.1.
14936
14937 2007-04-04  Bruno Haible  <bruno@clisp.org>
14938
14939         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
14940         directly used by the gnulib modules nor by gnulib-tool.
14941
14942 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14943
14944         * DEPENDENCIES: Give overall description of version dependency
14945         desirability.  Use more-typical names for apps.
14946         Add shell, coreutils, diffutils, grep, tar, gzip.
14947
14948 2007-04-04  Simon Josefsson  <simon@josefsson.org>
14949
14950         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
14951
14952 2007-04-04  Karl Berry  <karl@gnu.org>
14953
14954         * MODULES.html.sh (func_module): missing '.
14955
14956 2007-04-03  Bruno Haible  <bruno@clisp.org>
14957
14958         * modules/argmatch-tests (Makefile.am): New variable
14959         test_argmatch_LDADD.
14960         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
14961         * modules/array-list-tests (Makefile.am): New variable
14962         test_array_list_LDADD.
14963         * modules/array-oset-tests (Makefile.am): New variable
14964         test_array_oset_LDADD.
14965         * modules/avltree-list-tests (Makefile.am): New variable
14966         test_avltree_list_LDADD.
14967         * modules/avltree-oset-tests (Makefile.am): New variable
14968         test_avltree_oset_LDADD.
14969         * modules/avltreehash-list-tests (Makefile.am): New variable
14970         test_avltreehash_list_LDADD.
14971         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
14972         test_canonicalize_lgpl_LDADD.
14973         * modules/carray-list-tests (Makefile.am): New variable
14974         test_carray_list_LDADD.
14975         * modules/dirname-tests (Makefile.am): New variable
14976         test_dirname_LDADD.
14977         * modules/linked-list-tests (Makefile.am): New variable
14978         test_linked_list_LDADD.
14979         * modules/linkedhash-list-tests (Makefile.am): New variable
14980         test_linkedhash_list_LDADD.
14981         * modules/rbtree-list-tests (Makefile.am): New variable
14982         test_rbtree_list_LDADD.
14983         * modules/rbtree-oset-tests (Makefile.am): New variable
14984         test_rbtree_oset_LDADD.
14985         * modules/rbtreehash-list-tests (Makefile.am): New variable
14986         test_rbtreehash_list_LDADD.
14987         * modules/xvasprintf-tests (Makefile.am): New variable
14988         test_xvasprintf_LDADD.
14989         Reported by Eric Blake.
14990
14991 2007-04-03  Eric Blake  <ebb9@byu.net>
14992
14993         * DEPENDENCIES: Weaken m4 requirements.
14994
14995 2007-04-03  Bruno Haible  <bruno@clisp.org>
14996
14997         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
14998         * modules/isnanl-tests (configure.ac): Likewise.
14999
15000 2007-04-03  Ben Pfaff  <blp@gnu.org>
15001
15002         * modules/iconv_open: Add $(srcdir)/ to source directory
15003         references in Makefile fragments that call gperf, to fix VPATH
15004         builds.
15005
15006 2007-04-03  Bruno Haible  <bruno@clisp.org>
15007
15008         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15009         * lib/ldexpl.c: Undo last change.
15010
15011 2007-04-03  Bruno Haible  <bruno@clisp.org>
15012
15013         * modules/printf-frexpl (Depends-on): Undo last change.
15014         (Files): Add m4/ldexpl.m4.
15015
15016 2007-04-03  Bruno Haible  <bruno@clisp.org>
15017
15018         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15019         * modules/isnanl (Link): New section.
15020
15021         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15022         * modules/frexp (Link): New section.
15023
15024         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15025         * modules/frexpl (Link): New section.
15026
15027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15028         * modules/ldexpl (Link): New section.
15029
15030 2007-04-03  Bruno Haible  <bruno@clisp.org>
15031
15032         * modules/TEMPLATE-EXTENDED: New file.
15033         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15034
15035 2007-04-03  Bruno Haible  <bruno@clisp.org>
15036
15037         * DEPENDENCIES: New file.
15038         Suggested by Simon Josefsson.
15039
15040 2007-04-03  Bruno Haible  <bruno@clisp.org>
15041
15042         * doc/gnulib.texi: Escape @.
15043
15044 2007-04-03  James Youngman  <jay@gnu.org>
15045         and Paul Eggert  <eggert@cs.ucla.edu>
15046
15047         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15048         birthtime on all systems that have birthtime, not just those which
15049         use st_birthtimensec rather than st_birthtim.  Putting zero in
15050         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15051         that the birth time is not available for files on an NFS mount.
15052
15053 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15054
15055         * modules/memxor: Move back from crypto/, suggested by Bruno.
15056         * modules/crypto/hmac-sha1: Fix memxor dependency.
15057
15058         * modules/crypto/gc: Moved from ../.
15059
15060 2007-04-02  Eric Blake  <ebb9@byu.net>
15061
15062         * lib/ldexpl.c (includes): Avoid libm.
15063
15064         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15065
15066 2007-04-02  Bruno Haible  <bruno@clisp.org>
15067
15068         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15069         on IRIX.
15070
15071 2007-04-02  Bruno Haible  <bruno@clisp.org>
15072
15073         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15074         x86 or x86_64 platforms running MacOS X.
15075         Reported by Ryan Schmidt <@ryandesign.com>.
15076
15077 2007-04-02  Bruno Haible  <bruno@clisp.org>
15078
15079         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15080         i386.
15081
15082 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15083
15084         * modules/crypto/arcfour: Moved from ../.
15085         * modules/crypto/arcfour-tests: Moved from ../.
15086         * modules/crypto/arctwo: Moved from ../.
15087         * modules/crypto/arctwo-tests: Moved from ../.
15088         * modules/crypto/des: Moved from ../.
15089         * modules/crypto/des-tests: Moved from ../.
15090         * modules/crypto/gc-arcfour: Moved from ../.
15091         * modules/crypto/gc-arcfour-tests: Moved from ../.
15092         * modules/crypto/gc-arctwo: Moved from ../.
15093         * modules/crypto/gc-arctwo-tests: Moved from ../.
15094         * modules/crypto/gc-des: Moved from ../.
15095         * modules/crypto/gc-des-tests: Moved from ../.
15096         * modules/crypto/gc-hmac-md5: Moved from ../.
15097         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15098         * modules/crypto/gc-hmac-sha1: Moved from ../.
15099         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15100         * modules/crypto/gc-md2: Moved from ../.
15101         * modules/crypto/gc-md2-tests: Moved from ../.
15102         * modules/crypto/gc-md4: Moved from ../.
15103         * modules/crypto/gc-md4-tests: Moved from ../.
15104         * modules/crypto/gc-md5: Moved from ../.
15105         * modules/crypto/gc-md5-tests: Moved from ../.
15106         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15107         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15108         * modules/crypto/gc-random: Moved from ../.
15109         * modules/crypto/gc-rijndael: Moved from ../.
15110         * modules/crypto/gc-rijndael-tests: Moved from ../.
15111         * modules/crypto/gc-sha1: Moved from ../.
15112         * modules/crypto/gc-sha1-tests: Moved from ../.
15113         * modules/crypto/gc-tests: Moved from ../.
15114         * modules/crypto/hmac-md5: Moved from ../.
15115         * modules/crypto/hmac-md5-tests: Moved from ../.
15116         * modules/crypto/hmac-sha1: Moved from ../.
15117         * modules/crypto/hmac-sha1-tests: Moved from ../.
15118         * modules/crypto/md2: Moved from ../.
15119         * modules/crypto/md2-tests: Moved from ../.
15120         * modules/crypto/md4: Moved from ../.
15121         * modules/crypto/md4-tests: Moved from ../.
15122         * modules/crypto/md5: Moved from ../.
15123         * modules/crypto/md5-tests: Moved from ../.
15124         * modules/crypto/memxor: Moved from ../.
15125         * modules/crypto/rijndael: Moved from ../.
15126         * modules/crypto/rijndael-tests: Moved from ../.
15127         * modules/crypto/sha1: Moved from ../.
15128
15129 2007-03-30  James Youngman  <jay@gnu.org>
15130
15131         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15132         rename() to change the ctime of a file (because ctime is unaffected
15133         by rename on jfs2 on AIX 5.1).
15134         (main): Start by doing cleanup, in case a previous run failed leaving
15135         test files behind.
15136
15137 2007-03-31  Bruno Haible  <bruno@clisp.org>
15138
15139         Support old proprietary implementations of iconv.
15140         * modules/iconv_open: New file.
15141         * lib/iconv_.h: New file.
15142         * m4/iconv_h.m4: New file.
15143         * lib/iconv_open.c: New file.
15144         * lib/iconv_open-aix.gperf: New file.
15145         * lib/iconv_open-hpux.gperf: New file.
15146         * lib/iconv_open-irix.gperf: New file.
15147         * lib/iconv_open-osf.gperf: New file.
15148         * m4/iconv_open.m4: New file.
15149         * modules/linebreak (Depends-on): Add iconv_open.
15150         * modules/striconv (Depends-on): Likewise.
15151         * modules/striconveh (Depends-on): Likewise.
15152         * modules/unicodeio (Depends-on): Likewise.
15153         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15154         (iconv_t)(-1).
15155         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15156         conversion if cd is (iconv_t)(-1).
15157         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15158         is not possible.
15159
15160 2007-03-31  Bruno Haible  <bruno@clisp.org>
15161
15162         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15163         work on Solaris either. Protect also second use of "autodetect_jp".
15164
15165 2007-03-31  Bruno Haible  <bruno@clisp.org>
15166
15167         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15168         the function is not present.
15169
15170 2007-03-31  Bruno Haible  <bruno@clisp.org>
15171
15172         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15173         the function is not present.
15174
15175 2007-03-31  Bruno Haible  <bruno@clisp.org>
15176
15177         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15178         a bug in HP-UX iconv_open().
15179
15180 2007-03-31  Bruno Haible  <bruno@clisp.org>
15181
15182         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15183         (Mathematics <math.h>): New section, add fpieee.
15184         (Input/output <stdio.h>): Add fseterr.
15185         (Mathematics <math.h>): New section, add printf-frexp.
15186         (Container data structures): Add sublist.
15187         (Core language properties): Add fpucw, inline.
15188         (Functions for greatest-width integer types <inttypes.h>): Add
15189         imaxabs, imaxdiv, inttypes.
15190         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15191         isnanl-nolibm, ldexp.
15192         (Mathematics <math.h>): New section, add printf-frexpl.
15193         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15194         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15195         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15196         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15197         (Unicode string functions): Add unistr/u*-mbtoucr.
15198         (Java): Add javacomp-script, javaexec-script.
15199         (C#): Add csharpcomp-script, csharpexec-script.
15200         (Support for building libraries and executables): Add havelib,
15201         relocatable-*.
15202         (Support for maintaining and releasing projects): Renamed from
15203         'Support for maintaining and release projects'. Add announce-gen.
15204
15205 2007-03-31  Bruno Haible  <bruno@clisp.org>
15206
15207         * README: Talk primarily about git.
15208         (git and CVS): Renamed from CVS.
15209         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15210         gnulib is available through git.
15211         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15212
15213 2007-03-30  Bruno Haible  <bruno@clisp.org>
15214
15215         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15216         * lib/poll_.h: Likewise.
15217         * lib/stat_.h: Likewise.
15218         * lib/sys_time_.h: Likewise.
15219         * lib/sysexit_.h: Likewise.
15220         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15221         * lib/stdbool_.h: Likewise.
15222         * lib/byteswap_.h: Add double-inclusion guard.
15223
15224 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15225
15226         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15227
15228 2007-03-30  Karl Berry  <karl@gnu.org>
15229
15230         * config/srclist-update: double space after USA in the license
15231         substitution, since that's how it's usually (?) written.
15232
15233 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15234
15235         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15236         reported by Bruno Haible.
15237
15238 2007-03-29  Bruno Haible  <bruno@clisp.org>
15239
15240         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15241         a bug in AIX iconv().
15242
15243 2007-03-29  Bruno Haible  <bruno@clisp.org>
15244
15245         * modules/ldexpl-tests: New file.
15246         * tests/test-ldexpl.c: New file.
15247
15248 2007-03-29  Bruno Haible  <bruno@clisp.org>
15249
15250         * lib/ldexpl.c: Include fpucw.h.
15251         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15252         multiplication.
15253         * modules/ldexpl (Depends-on): Add fpucw.
15254
15255 2007-03-29  Bruno Haible  <bruno@clisp.org>
15256
15257         * modules/ldexpl: New file.
15258         * m4/ldexpl.m4: New file.
15259         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15260         set.
15261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15262         REPLACE_LDEXPL.
15263         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15264         REPLACE_LDEXPL.
15265         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15266         gl_FUNC_LDEXPL_WORKS.
15267         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15268         * modules/mathl (Files): Remove lib/ldexpl.c.
15269         (Depends-on): Add ldexpl.
15270
15271 2007-03-29  Bruno Haible  <bruno@clisp.org>
15272
15273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15274
15275 2007-03-29  Bruno Haible  <bruno@clisp.org>
15276
15277         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15278         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15279         and possibly also HP-UX.
15280         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15281         work on AIX, IRIX, HP-UX, OSF/1.
15282         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15283         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15284         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15285         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15286         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15287         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15288
15289 2007-03-29  Bruno Haible  <bruno@clisp.org>
15290
15291         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15292
15293 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15294
15295         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15296         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15297
15298 2007-03-29  Eric Blake  <ebb9@byu.net>
15299
15300         * lib/acl-internal.h: Remove redundant include.
15301         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15302         Cygwin when a file is locked.
15303
15304 2007-03-29  Bruno Haible  <bruno@clisp.org>
15305
15306         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15307         file.
15308         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15309
15310 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15311
15312         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15313         try to remove a parent directory if the child couldn't be removed
15314         (except for the first rmdir, which could fail because the child
15315         doesn't exist).  Problem reported by Jeff Blaine in
15316         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15317
15318 2007-03-28  Bruno Haible  <bruno@clisp.org>
15319
15320         * lib/striconveh.c (utf8conv_carefully): New function.
15321         (mem_cd_iconveh_internal): Invoke it.
15322
15323 2007-03-28  Bruno Haible  <bruno@clisp.org>
15324
15325         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15326         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15327         input.
15328         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15329         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15330         unistr/u8-uctomb.
15331
15332 2007-03-28  Bruno Haible  <bruno@clisp.org>
15333
15334         * modules/unistr/u8-mbtoucr: New file.
15335         * lib/unistr/u8-mbtoucr.c: New file.
15336         * modules/unistr/u16-mbtoucr: New file.
15337         * lib/unistr/u16-mbtoucr.c: New file.
15338         * modules/unistr/u16-mbtoucr: New file.
15339         * lib/unistr/u16-mbtoucr.c: New file.
15340         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15341
15342 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15343             Bruno Haible  <bruno@clisp.org>
15344
15345         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15346         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15347         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15348
15349         * m4/stdio_h.m4: Add stubs for vasprintf too.
15350
15351         * modules/stdio: Support vasprintf in sed command.
15352
15353         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15354         vasprintf.h.  Add stdio module indicator.
15355
15356         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15357         vasprintf.h.
15358
15359         * lib/vasprintf.h: File removed.
15360
15361         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15362         * lib/vasprintf.c: Ditto.
15363         * lib/xvasprintf.c: Ditto.
15364         * tests/test-vasprintf-posix.c: Ditto.
15365         * tests/test-vasprintf.c: Ditto.
15366
15367 2007-03-27  Bruno Haible  <bruno@clisp.org>
15368
15369         Make vasnprintf multithread-safe.
15370         * lib/vasnprintf.c (decimal_point_char): New function.
15371         (VASNPRINTF): Use it.
15372         Suggested by Simon Josefsson.
15373
15374 2007-03-27  Eric Blake  <ebb9@byu.net>
15375
15376         Support sub-second birthtime on cygwin.
15377         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15378         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15379         (get_stat_birthtime): Also work with st_birthtim.
15380
15381 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15382
15383         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15384         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15385         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15386         (get_stat_birthtime_ns): Simplify compile-time tests.
15387         (get_stat_birthtime): Change the API to look like
15388         get_stat_mtime etc., except return a negative tv_nsec on error.
15389         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15390         Don't check for "spare" fields.
15391         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15392         or for struct stat.st_birthtime, as these tests aren't used.
15393         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15394
15395 2007-03-27  Bruno Haible  <bruno@clisp.org>
15396
15397         * lib/stat-time.h: Include <sys/stat.h>.
15398
15399 2007-03-27  James Youngman  <jay@gnu.org>
15400
15401         * lib/stat-time.h (get_stat_birthtime): New function for
15402           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15403         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15404           and its variants.
15405         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15406         * modules/stat-time-test: New file.
15407         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15408
15409 2007-03-26  Bruno Haible  <bruno@clisp.org>
15410
15411         Better support of signalling NaNs.
15412         * lib/atanl.c: Include isnanl.h.
15413         (atanl): Perform test for NaN at the beginning of the function and
15414         through a call to isnanl.
15415         * lib/cosl.c: Include isnanl.h.
15416         (cosl): Perform test for NaN at the beginning of the function and
15417         through a call to isnanl.
15418         * lib/ldexpl.c: Include isnanl.h.
15419         (ldexpl): Perform test for NaN through a call to isnanl.
15420         * lib/logl.c: Include isnanl.h.
15421         (logl): Perform test for NaN at the beginning of the function and
15422         through a call to isnanl.
15423         * lib/sinl.c: Include isnanl.h.
15424         (sinl): Perform test for NaN at the beginning of the function and
15425         through a call to isnanl.
15426         * lib/sqrtl.c: Include isnanl.h.
15427         (sqrtl): Perform test for NaN at the beginning of the function and
15428         through a call to isnanl.
15429         * lib/tanl.c: Include isnanl.h.
15430         (tanl): Perform test for NaN at the beginning of the function and
15431         through a call to isnanl.
15432         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15433         * modules/mathl (Depends-on): Add isnanl.
15434
15435 2007-03-26  Eric Blake  <ebb9@byu.net>
15436
15437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15438         regression in logic sense of previous patch.
15439
15440 2007-03-26  Bruno Haible  <bruno@clisp.org>
15441
15442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15443         unportable shell command "if ! ...".
15444         Reported by Ralf Wildenhues.
15445
15446 2007-03-25  Bruno Haible  <bruno@clisp.org>
15447
15448         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15449         <sysexits.h> file, and only add EX_CONFIG.
15450         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15451         absolute file name and whether it is sufficient. Substitute also
15452         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15453         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15454         ABSOLUTE_SYSEXITS_H into sysexits.h.
15455
15456 2007-03-25  Bruno Haible  <bruno@clisp.org>
15457
15458         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15459         hints is NULL.
15460
15461 2007-03-25  Bruno Haible  <bruno@clisp.org>
15462
15463         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15464         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15465
15466 2007-03-25  Bruno Haible  <bruno@clisp.org>
15467
15468         * lib/vasnprintf.c: Include langinfo.h.
15469         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15470         multithread-safe.
15471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15480         Reported by Simon Josefsson.
15481
15482 2007-03-25  Bruno Haible  <bruno@clisp.org>
15483
15484         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15485         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15486         * modules/vasnprintf (Depends-on): Add stdint.
15487
15488 2007-03-25  Bruno Haible  <bruno@clisp.org>
15489
15490         * modules/fpieee: New file.
15491         * m4/fpieee.m4: New file.
15492         * modules/isnan-nolibm (Depends-on): Add fpieee.
15493         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15494         * modules/isnanl (Depends-on): Add fpieee.
15495
15496 2007-03-25  Bruno Haible  <bruno@clisp.org>
15497
15498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15499
15500 2007-03-25  Bruno Haible  <bruno@clisp.org>
15501
15502         Avoid test failures on IRIX 6.5.
15503         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15504         (main): Use it.
15505         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15506         macros.
15507         (main): Use them.
15508
15509 2007-03-25  Bruno Haible  <bruno@clisp.org>
15510
15511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15512         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15513         exists but doesn't work.
15514         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15515         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15517         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15518
15519 2007-03-25  Bruno Haible  <bruno@clisp.org>
15520
15521         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15522         returns inf. Needed on IRIX 6.5.
15523
15524 2007-03-25  Bruno Haible  <bruno@clisp.org>
15525
15526         * tests/test-frexpl.c: Include isnanl-nolibm.h.
15527         (main): Use isnanl instead of x != x idiom.
15528         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15529
15530         * tests/test-frexp.c: Include isnan.h.
15531         (main): Use isnan instead of x != x idiom.
15532         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15533
15534 2007-03-25  Bruno Haible  <bruno@clisp.org>
15535
15536         * tests/test-frexp.c (NaN): New function/macro.
15537         (main): Use it instead of 0.0 / 0.0.
15538         * tests/test-isnan.c (NaN): New function/macro.
15539         (main): Use it instead of 0.0 / 0.0.
15540         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15541         (test_function): Use it instead of 0.0 / 0.0.
15542         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15543         (test_function): Use it instead of 0.0 / 0.0.
15544         * tests/test-snprintf-posix.h (NaN): New function/macro.
15545         (test_function): Use it instead of 0.0 / 0.0.
15546         * tests/test-sprintf-posix.h (NaN): New function/macro.
15547         (test_function): Use it instead of 0.0 / 0.0.
15548         * tests/test-fprintf-posix.h (NaN): New function/macro.
15549         (test_function): Use it instead of 0.0 / 0.0.
15550         * tests/test-printf-posix.h (NaN): New function/macro.
15551         (test_function): Use it instead of 0.0 / 0.0.
15552
15553         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15554
15555 2007-03-25  Bruno Haible  <bruno@clisp.org>
15556
15557         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15558
15559 2007-03-25  Bruno Haible  <bruno@clisp.org>
15560
15561         * lib/regexec.c (merge_state_with_log): Make static.
15562
15563 2007-03-25  Bruno Haible  <bruno@clisp.org>
15564
15565         * lib/trigl.c (kernel_rem_pio2): Make static.
15566
15567 2007-03-25  Bruno Haible  <bruno@clisp.org>
15568
15569         * lib/sincosl.c (sincosl_table): Make static.
15570
15571 2007-03-25  Bruno Haible  <bruno@clisp.org>
15572
15573         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15574         if the compiler does not support C99.
15575
15576 2007-03-25  Bruno Haible  <bruno@clisp.org>
15577
15578         * modules/time (Makefile.am): Ensure all rule action lines start with a
15579         tab.
15580
15581 2007-03-24  Bruno Haible  <bruno@clisp.org>
15582
15583         * modules/tsearch-tests: New file.
15584         * tests/test-tsearch.sh: New file.
15585         * tests/test-tsearch.c: New file, mostly copied from glibc.
15586
15587         * modules/search-tests: New file.
15588         * tests/test-search.c: New file.
15589
15590         * modules/search: New file.
15591         * lib/search_.h: New file, incorporating lib/tsearch.h.
15592         * m4/search_h.m4: New file.
15593         * lib/tsearch.h: Remove file.
15594         * lib/tsearch.c: Include search.h instead of tsearch.h.
15595         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15596         HAVE_TSEARCH.
15597         * modules/tsearch (Files): Remove lib/tsearch.h.
15598         (Depends-on): Add search.
15599         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15600         (Include): Change tsearch.h into search.h.
15601
15602 2007-03-24  Bruno Haible  <bruno@clisp.org>
15603
15604         * modules/fpucw: New file.
15605         * lib/fpucw.h: New file.
15606         * lib/frexp.c: Include fpucw.h.
15607         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15608         (FUNC): Use them.
15609         * lib/printf-frexp.c: Include fpucw.h.
15610         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15611         (FUNC): Use them.
15612         * lib/vasnprintf.c: Include fpucw.h.
15613         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15614         'long double' calculations.
15615         * tests/test-frexpl.c: Include fpucw.h.
15616         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15617         * tests/test-printf-frexpl.c: Include fpucw.h.
15618         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15619         * modules/frexpl (Depends-on): Add fpucw.
15620         * modules/printf-frexpl (Depends-on): Likewise.
15621         * modules/fprintf-posix (Depends-on): Likewise.
15622         * modules/snprintf-posix (Depends-on): Likewise.
15623         * modules/sprintf-posix (Depends-on): Likewise.
15624         * modules/vasnprintf-posix (Depends-on): Likewise.
15625         * modules/vasprintf-posix (Depends-on): Likewise.
15626         * modules/vfprintf-posix (Depends-on): Likewise.
15627         * modules/vsnprintf-posix (Depends-on): Likewise.
15628         * modules/vsprintf-posix (Depends-on): Likewise.
15629         * modules/frexpl-tests (Depends-on): Likewise.
15630         * modules/printf-frexpl-tests (Depends-on): Likewise.
15631
15632 2007-03-24  Bruno Haible  <bruno@clisp.org>
15633
15634         * lib/float+.h: New file.
15635         * lib/isnan.c: Include float+.h.
15636         (SIZE): New macro.
15637         (FUNC): Compare only SIZE bytes of the value.
15638         * lib/vasnprintf.c: Include float+.h.
15639         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15640         SIZEOF_LDBL or SIZEOF_DBL bytes.
15641         * modules/isnan-nolibm (Files): Add lib/float+.h.
15642         * modules/isnanl-nolibm (Files): Add lib/float+.h.
15643         * modules/isnanl (Files): Add lib/float+.h.
15644         * modules/vasnprintf (Files): Add lib/float+.h.
15645
15646 2007-03-24  Bruno Haible  <bruno@clisp.org>
15647
15648         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15649         include isnanl-nolibm.h.
15650
15651 2007-03-24  Bruno Haible  <bruno@clisp.org>
15652
15653         * tests/test-read-file.c (main): Don't produce spurious output for
15654         expected situations. Make the test fail if it encountered unexpected
15655         results.
15656
15657 2007-03-24  Bruno Haible  <bruno@clisp.org>
15658
15659         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15660         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15661
15662 2007-03-24  Bruno Haible  <bruno@clisp.org>
15663
15664         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15665
15666 2007-03-24  Bruno Haible  <bruno@clisp.org>
15667
15668         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15669         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15670
15671         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15672         * modules/utf8-ucs4: Turn into a symbolic link to module
15673         unistr/u8-mbtouc.
15674
15675         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15676         utf8-ucs4-unsafe.
15677         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15678         unistr/u8-mbtouc-unsafe.
15679
15680         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15681         * modules/utf16-ucs4: Turn into a symbolic link to module
15682         unistr/u16-mbtouc.
15683
15684         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15685         utf16-ucs4-unsafe.
15686         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15687         unistr/u16-mbtouc-unsafe.
15688
15689         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15690         * modules/ucs4-utf8: Turn into a symbolic link to module
15691         unistr/u8-ubtomb.
15692
15693         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15694         * modules/ucs4-utf16: Turn into a symbolic link to module
15695         unistr/u16-ubtomb.
15696
15697 2007-03-24  Bruno Haible  <bruno@clisp.org>
15698
15699         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15700         Enable the function only if HAVE_INLINE.
15701         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15702         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15703         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15704         Enable the function only if HAVE_INLINE.
15705         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15706         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15707         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15708         Enable the function only if HAVE_INLINE.
15709         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15710         Enable the function only if HAVE_INLINE.
15711         * modules/utf8-ucs4: Update.
15712         * modules/utf8-ucs4-unsafe: Update.
15713         * modules/utf16-ucs4: Update.
15714         * modules/utf16-ucs4-unsafe: Update.
15715         * modules/ucs4-utf8: Update.
15716         * modules/ucs4-utf16: Update.
15717
15718 2007-03-24  Bruno Haible  <bruno@clisp.org>
15719
15720         * lib/utf8-ucs4.h: Remove file.
15721         * lib/utf8-ucs4-unsafe.h: Remove file.
15722         * lib/utf16-ucs4.h: Remove file.
15723         * lib/utf16-ucs4-unsafe.h: Remove file.
15724         * lib/ucs4-utf8.h: Remove file.
15725         * lib/ucs4-utf16.h: Remove file.
15726         * lib/unistr.h: Include their previous contents.
15727         * m4/utf-ucs4.m4: Remove file.
15728         * m4/ucs4-utf.m4: Remove file.
15729         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15730         (Depends-on): Add unistr/base.
15731         (configure.ac): Remove gl_UTF_UCS4.
15732         (Makefile.am): Update.
15733         (Include): Change to unistr.h.
15734         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15735         (Depends-on): Add unistr/base.
15736         (configure.ac): Remove gl_UTF_UCS4.
15737         (Makefile.am): Update.
15738         (Include): Change to unistr.h.
15739         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15740         (Depends-on): Add unistr/base.
15741         (configure.ac): Remove gl_UTF_UCS4.
15742         (Makefile.am): Update.
15743         (Include): Change to unistr.h.
15744         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15745         (Depends-on): Add unistr/base.
15746         (configure.ac): Remove gl_UTF_UCS4.
15747         (Makefile.am): Update.
15748         (Include): Change to unistr.h.
15749         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15750         (Depends-on): Add unistr/base.
15751         (configure.ac): Remove gl_UCS4_UTF.
15752         (Makefile.am): Update.
15753         (Include): Change to unistr.h.
15754         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15755         (Depends-on): Add unistr/base.
15756         (configure.ac): Remove gl_UCS4_UTF.
15757         (Makefile.am): Update.
15758         (Include): Change to unistr.h.
15759         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15760         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15761         utf8-ucs4-unsafe.h.
15762         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15763         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15764         utf16-ucs4-unsafe.h.
15765         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15766         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15767         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15768         * lib/unistr/u8-strchr.c: Likewise.
15769         * lib/unistr/u8-strrchr.c: Likewise.
15770         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15771         * lib/unistr/u16-strchr.c: Likewise.
15772         * lib/unistr/u16-strrchr.c: Likewise.
15773         * lib/striconveh.c: Update.
15774         * lib/linebreak.c: Update.
15775
15776 2007-03-24  Bruno Haible  <bruno@clisp.org>
15777
15778         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15779         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15780
15781 2007-03-22  Bruno Haible  <bruno@clisp.org>
15782
15783         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15784
15785 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15786
15787         * MODULES.html.sh (File system functions): New module write-any-file.
15788         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15789         * m4/write-any-file.m4: New files.
15790
15791 2007-03-23  Eric Blake  <ebb9@byu.net>
15792
15793         * gnulib-tool: Rearrange space-tab sequences, since some editors
15794         like to eat them.
15795
15796 2007-03-23  Eric Blake  <ebb9@byu.net>
15797
15798         * lib/version-etc.c (version_etc_va): Update license wording to
15799         be more concise.  Recommended by Richard Stallman.
15800
15801 2007-03-22  Bruno Haible  <bruno@clisp.org>
15802
15803         * lib/poll.c (MSG_PEEK): New fallback definition.
15804
15805 2007-03-22  Bruno Haible  <bruno@clisp.org>
15806
15807         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15808         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15809         (main): Update.
15810         Fixes a compilation error on BeOS.
15811
15812 2007-03-22  Bruno Haible  <bruno@clisp.org>
15813
15814         * modules/frexpl-tests: New file.
15815         * tests/test-frexpl.c: New file.
15816
15817         * modules/frexpl: New file.
15818         * m4/frexpl.m4: New file.
15819         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15820         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15822         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15823         (Depends-on): Add frexpl. Remove isnanl-nolibm.
15824         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15825
15826 2007-03-22  Bruno Haible  <bruno@clisp.org>
15827
15828         * lib/frexpl.c: Share code with lib/frexp.c.
15829         * modules/mathl (Files): Add lib/frexp.c.
15830         (Depends-on): Add isnanl-nolibm.
15831
15832 2007-03-22  Bruno Haible  <bruno@clisp.org>
15833
15834         * modules/printf-frexp (Files): Add m4/frexp.m4.
15835         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15836         only if the found frexp function actually works.
15837
15838 2007-03-22  Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/frexp.c: Remove older implementation that uses divisions.
15841
15842 2007-03-21  Bruno Haible  <bruno@clisp.org>
15843
15844         * modules/frexp-tests: New file.
15845         * tests/test-frexp.c: New file.
15846
15847         * modules/frexp: New file.
15848         * lib/frexp.c: New file.
15849         * m4/frexp.m4: New file.
15850         * lib/math_.h (frexp): New declaration.
15851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15852         REPLACE_FREXP.
15853         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15854
15855 2007-03-21  Bruno Haible  <bruno@clisp.org>
15856
15857         * modules/isnanl-tests: New file.
15858         * tests/test-isnanl.c: New file.
15859
15860         * modules/isnanl: New file.
15861         * lib/isnanl.h: New file.
15862         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15863         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15864         gl_FUNC_ISNANL_WORKS.
15865         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15866         New macros.
15867
15868 2007-03-21  Bruno Haible  <bruno@clisp.org>
15869
15870         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15871         lib/isnanl.h.
15872         (Include): Update.
15873         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15874         * lib/vasnprintf.c: Update.
15875         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15876         tests/test-isnanl.h, remove tests/test-isnanl.c.
15877         (Makefile.am): Update.
15878         * tests/test-isnanl-nolibm.c: New file.
15879         * tests/test-isnanl.h: New file.
15880         * tests/test-isnanl.c: Remove file.
15881
15882 2007-03-21  Jim Meyering  <jim@meyering.net>
15883
15884         When trying to open ".", treat ESTALE like EACCES.
15885         * lib/savewd.c (savewd_save): Resort to forking not just upon
15886         failure with EACCES, but also when errno is ESTALE.
15887
15888 2007-03-20  Bruno Haible  <bruno@clisp.org>
15889
15890         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
15891         Needed on AIX 5.1. Reported by Matthew Woehlke.
15892
15893 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15894
15895         Suggestions by Bruno Haible:
15896         * lib/acl-internal.h: Include "gettext.h" rather than rolling
15897         our own.
15898         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
15899         * modules/acl (Depends-on): Add gettext.
15900
15901 2007-03-19  Bruno Haible  <bruno@clisp.org>
15902
15903         * modules/iconvme: Remove file.
15904         * lib/iconvme.h: Remove file.
15905         * lib/iconvme.c: Remove file.
15906         * m4/iconvme.m4: Remove file.
15907
15908 2007-03-19  Bruno Haible  <bruno@clisp.org>
15909
15910         * doc/relocatable-maint.texi: Break long shell script line.
15911         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15912
15913 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15914
15915         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
15916         handle file_has_acl.
15917         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
15918         * lib/acl.c: Move header inclusions and related macro defns into
15919         lib/acl-internal.h.
15920         (S_ISLNK): Remove defn, since that's now done for us.
15921         (file_has_acl): Move to lib/file-has-acl.c.
15922         Call acl_trivial if available.  This is the crucial part of the fix.
15923         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
15924         shared within the library.  Rewrite a bit, partly to make it compatible
15925         with the GNU coding style.
15926         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
15927         Remove unnecessary double-quotes.
15928         Don't test for acl_to_text; the build will catch that.
15929         Replace acl_entries if it doesn't exist and it is needed.
15930         Check for -lsec and acl_trivial (as used on Solaris 10).
15931         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
15932         lib/file-has-acl.c.
15933         (Depends-on): Add sys_stat, for S_ISLNK.
15934
15935 2007-03-19  Ben Pfaff  <blp@gnu.org>
15936
15937         * doc/gnulib.texi: Fix typos.
15938         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15939
15940 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15941
15942         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
15943         If size is zero here, buf must be zero.
15944
15945 2007-03-19  Simon Josefsson  <simon@josefsson.org>
15946
15947         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
15948         <bruno@clisp.org>.
15949
15950 2007-03-18  Bruno Haible  <bruno@clisp.org>
15951
15952         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
15953         Suggested by Eric Blake.
15954
15955 2007-03-18  Ben Pfaff  <blp@gnu.org>
15956
15957         * doc/relocatable.texi: Recommend using as prefix a directory
15958         that does not exist and will never be created.  Based on
15959         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
15960         and others.
15961
15962 2007-03-17  Bruno Haible  <bruno@clisp.org>
15963
15964         * lib/fchownat.c: Include lchown.h.
15965
15966 2007-03-17  Bruno Haible  <bruno@clisp.org>
15967
15968         Fix endless loop when the given allocated size was > INT_MAX.
15969         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
15970         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
15971         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
15972         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
15973         * lib/sprintf.c (sprintf): Likewise.
15974
15975 2007-03-17  Bruno Haible  <bruno@clisp.org>
15976
15977         * tests/test-argp-2.sh (func_compare): Output a context diff.
15978
15979 2007-03-17  Bruno Haible  <bruno@clisp.org>
15980
15981         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
15982         locale's decimal-point character.
15983
15984 2007-03-17  Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
15987         before comparing it. Needed because on some platforms (e.g. x86) a
15988         'long double' occupies less bytes than sizeof (long double).
15989
15990 2007-03-17  Bruno Haible  <bruno@clisp.org>
15991
15992         * tests/test-crc.c (main): Make printf statements 64-bit clean.
15993         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
15994         * tests/test-getaddrinfo.c (simple): Likewise.
15995         * tests/test-read-file.c (main): Likewise.
15996
15997 2007-03-17  Bruno Haible  <bruno@clisp.org>
15998
15999         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16000
16001 2007-03-17  Bruno Haible  <bruno@clisp.org>
16002
16003         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16004         unused variable.
16005
16006 2007-03-17  Bruno Haible  <bruno@clisp.org>
16007
16008         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16009         * tests/test-c-strncasecmp.c: Likewise.
16010
16011 2007-03-17  Bruno Haible  <bruno@clisp.org>
16012
16013         * modules/stdlib (Depends-on): Add unistd.
16014         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16015         Needed for MacOS X 10.3.
16016
16017 2007-03-17  Bruno Haible  <bruno@clisp.org>
16018
16019         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16020
16021 2007-03-17  Bruno Haible  <bruno@clisp.org>
16022
16023         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16024
16025 2007-03-17  Bruno Haible  <bruno@clisp.org>
16026
16027         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16028         to reflect files copied from gnulib (with or without modifications).
16029         Suggested by Jim Meyering.
16030
16031 2007-03-17  Eric Blake  <ebb9@byu.net>
16032
16033         * NEWS: Document stdlib change from 2007-02-18.
16034
16035 2007-03-17  Jim Meyering  <jim@meyering.net>
16036
16037         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16038         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16039         someone uses a name containing shell meta-characters.
16040         Reported by Alfred M. Szmidt.
16041
16042         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16043
16044 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16045
16046         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16047         and copy gettext configuration files only if configure.ac contains
16048         a use of AM_GNU_GETTEXT_VERSION.
16049
16050 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16051
16052         * build-aux/bootstrap (gnulib_name): New variable.
16053         (gnulib_tool_options): Use it.
16054
16055 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16056
16057         * tests/test-des.c: Use new namespace.
16058
16059 2007-03-15  Bruno Haible  <bruno@clisp.org>
16060
16061         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16062         Reported by James Youngman <jay@gnu.org>.
16063
16064 2007-03-15  Bruno Haible  <bruno@clisp.org>
16065
16066         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16067         declared prototype. Needed with cc on OSF/1 5.1.
16068
16069 2007-03-15  Bruno Haible  <bruno@clisp.org>
16070
16071         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16072         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16073         (struct gl_list_implementation): Add dispose_fn argument to the
16074         'create_empty', 'create' methods.
16075         (struct gl_list_impl_base): Add field 'dispose_fn'.
16076         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16077         argument.
16078         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16079         dispose_fn argument.
16080         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16081         dispose_fn on the dropped values.
16082         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16083         dispose_fn argument.
16084         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16085         dropped values.
16086         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16087         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16088         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16089         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16090         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16091         argument.
16092         (gl_tree_list_free): Call dispose_fn on the dropped values.
16093         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16094         the dropped values.
16095         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16096         Add dispose_fn argument.
16097         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16098         Call dispose_fn on the dropped values.
16099         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16100         Add dispose_fn argument.
16101         (gl_sublist_create): Initialize the 'dispose_fn' field.
16102         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16103         * tests/test-array_list.c (main): Update.
16104         * tests/test-carray_list.c (main): Update.
16105         * tests/test-avltree_list.c (main): Update.
16106         * tests/test-rbtree_list.c (main): Update.
16107         * tests/test-avltreehash_list.c (main): Update.
16108         * tests/test-rbtreehash_list.c (main): Update.
16109         * tests/test-linked_list.c (main): Update.
16110         * tests/test-linkedhash_list.c (main): Update.
16111         * tests/test-array_oset.c (main): Update.
16112
16113 2007-03-15  Bruno Haible  <bruno@clisp.org>
16114
16115         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16116         (gl_oset_create_empty): Add dispose_fn argument.
16117         (struct gl_oset_implementation): Add dispose_fn argument to
16118         'create_empty' method.
16119         (struct gl_oset_impl_base): Add dispose_fn field.
16120         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16121         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16122         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16123         values.
16124         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16125         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16126         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16127         dropped value.
16128         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16129         dropped value.
16130         * tests/test-array_oset.c (main): Update.
16131         * tests/test-avltree_oset.c (main): Update.
16132         * tests/test-rbtree_oset.c (main): Update.
16133         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16134
16135 2007-03-13  Bruno Haible  <bruno@clisp.org>
16136
16137         * tests/test-stdbool.c (i): Update after last patch.
16138
16139 2007-03-12  Bruno Haible  <bruno@clisp.org>
16140
16141         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16142         the iswprint macro. Needed on Solaris 2.5.1.
16143
16144 2007-03-12  Bruno Haible  <bruno@clisp.org>
16145
16146         * tests/test-printf-frexp.c (main): Declare x as volatile.
16147
16148 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16149
16150         * doc/gnulib.texi (Build robot for gnulib): New section.
16151
16152 2007-03-12  Jim Meyering  <jim@meyering.net>
16153
16154         * build-aux/bootstrap: New file.
16155         * build-aux/bootstrap.conf: New file, from coreutils.
16156
16157 2007-03-11  Bruno Haible  <bruno@clisp.org>
16158
16159         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16160
16161 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16162
16163         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16164         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16165         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16166
16167 2007-03-11  Bruno Haible  <bruno@clisp.org>
16168
16169         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16170         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16171
16172 2007-03-11  Bruno Haible  <bruno@clisp.org>
16173
16174         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16175         formula. Needed for SunPRO C 5.0.
16176
16177 2007-03-11  Bruno Haible  <bruno@clisp.org>
16178
16179         * modules/long-options (Depends-on): Add getopt.
16180
16181 2007-03-11  Bruno Haible  <bruno@clisp.org>
16182
16183         * modules/modechange (Depends-on): Add stdbool.
16184
16185 2007-03-11  Bruno Haible  <bruno@clisp.org>
16186
16187         * modules/i-ring (Depends-on): Add stdbool.
16188
16189 2007-03-11  Bruno Haible  <bruno@clisp.org>
16190
16191         * modules/gc-des (Depends-on): Add stdbool.
16192
16193 2007-03-11  Bruno Haible  <bruno@clisp.org>
16194
16195         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16196
16197 2007-03-11  Bruno Haible  <bruno@clisp.org>
16198
16199         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16200
16201 2007-03-11  Bruno Haible  <bruno@clisp.org>
16202
16203         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16204
16205 2007-03-11  Bruno Haible  <bruno@clisp.org>
16206
16207         * lib/vasnprintf.c (sprintf): Undefine.
16208
16209 2007-03-11  Bruno Haible  <bruno@clisp.org>
16210
16211         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16212         initializers in SunPRO C and Compaq C compilers.
16213
16214 2007-03-11  Bruno Haible  <bruno@clisp.org>
16215
16216         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16217         decrementing code ANSI C compliant.
16218
16219 2007-03-11  Bruno Haible  <bruno@clisp.org>
16220
16221         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16222         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16223
16224 2007-03-11  Bruno Haible  <bruno@clisp.org>
16225
16226         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16227         <stdbool.h> substitute doesn't pass.
16228
16229 2007-03-11  Bruno Haible  <bruno@clisp.org>
16230
16231         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16232
16233 2007-03-11  Bruno Haible  <bruno@clisp.org>
16234
16235         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16236         script, for submission to autobuild.josefsson.org.
16237
16238 2007-03-10  Bruno Haible  <bruno@clisp.org>
16239
16240         * modules/canonicalize-lgpl-tests: New file.
16241         * tests/test-canonicalize-lgpl.sh: New file.
16242         * tests/test-canonicalize-lgpl.c: New file.
16243
16244         * modules/c-strcase-tests: New file.
16245         * tests/test-c-strcase.sh: New file.
16246         * tests/test-c-strcasecmp.c: New file.
16247         * tests/test-c-strncasecmp.c: New file.
16248
16249         * modules/atexit-tests: New file.
16250         * tests/test-atexit.sh: New file.
16251         * tests/test-atexit.c: New file.
16252
16253 2007-03-10  Bruno Haible  <bruno@clisp.org>
16254
16255         * tests/test-binary-io.sh: Use temporary filenames that are not so
16256         likely to clash with those of other tests (in a parallel make).
16257         * tests/test-binary-io.c: Likewise.
16258
16259 2007-03-10  Bruno Haible  <bruno@clisp.org>
16260
16261         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16262         fallback; use #error instead.
16263         Suggested by Simon Josefsson.
16264
16265 2007-03-10  Bruno Haible  <bruno@clisp.org>
16266
16267         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16268         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16269         first and the last.
16270
16271 2007-03-10  Bruno Haible  <bruno@clisp.org>
16272
16273         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16274
16275 2007-03-10  Bruno Haible  <bruno@clisp.org>
16276
16277         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16278         "make distcheck".
16279         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16280         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16281         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16282
16283 2007-03-10  Bruno Haible  <bruno@clisp.org>
16284
16285         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16286         variable.
16287         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16288         variable.
16289
16290 2007-03-09  Eric Blake  <ebb9@byu.net>
16291         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16292
16293         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16294         types are not being provided by gnulib.
16295         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16296         types are supported.
16297
16298 2007-03-10  Bruno Haible  <bruno@clisp.org>
16299
16300         * lib/stdio_.h (__attribute__): New macro.
16301         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16302         vsprintf): Specify __attribute__ __format__ for GCC.
16303         Suggested by Eric Blake.
16304
16305 2007-03-09  Bruno Haible  <bruno@clisp.org>
16306
16307         * modules/printf-posix-tests: New file.
16308         * tests/test-printf-posix.sh: New file.
16309         * tests/test-printf-posix.c: New file.
16310
16311         * modules/printf-posix: New file.
16312         * lib/printf.c: New file.
16313         * m4/printf-posix-rpl.m4: New file.
16314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16315         REPLACE_PRINTF.
16316         * lib/stdio_.h (printf): New declaration.
16317         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16318         ____strfmon____): New macros.
16319         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16320         REPLACE_PRINTF.
16321
16322 2007-03-09  Bruno Haible  <bruno@clisp.org>
16323
16324         * tests/test-vasnprintf-posix2.sh: New file.
16325         * tests/test-vasnprintf-posix2.c: New file.
16326         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16327         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16328         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16329
16330         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16331         a locale dependent decimal point, rather than always '.'.
16332
16333 2007-03-09  Eric Blake  <ebb9@byu.net>
16334
16335         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16336         spite of platforms like Tandem/NSK that define it to -1.
16337
16338 2007-03-08  Bruno Haible  <bruno@clisp.org>
16339
16340         * modules/vprintf-posix-tests: New file.
16341         * tests/test-vprintf-posix.sh: New file.
16342         * tests/test-vprintf-posix.c: New file.
16343         * tests/test-printf-posix.h: New file.
16344
16345         * modules/vprintf-posix: New file.
16346         * lib/vprintf.c: New file.
16347         * m4/vprintf-posix.m4: New file.
16348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16349         REPLACE_VPRINTF.
16350         * lib/stdio_.h (vprintf): New declaration.
16351         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16352         REPLACE_VPRINTF.
16353
16354 2007-03-08  Bruno Haible  <bruno@clisp.org>
16355
16356         * modules/fprintf-posix-tests: New file.
16357         * tests/test-fprintf-posix.sh: New file.
16358         * tests/test-fprintf-posix.c: New file.
16359
16360         * modules/fprintf-posix: New file.
16361         * lib/fprintf.c: New file.
16362         * m4/fprintf-posix.m4: New file.
16363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16364         REPLACE_FPRINTF.
16365         * lib/stdio_.h (fprintf): New declaration.
16366         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16367         REPLACE_FPRINTF.
16368
16369 2007-03-08  Bruno Haible  <bruno@clisp.org>
16370
16371         * modules/vfprintf-posix-tests: New file.
16372         * tests/test-vfprintf-posix.sh: New file.
16373         * tests/test-vfprintf-posix.c: New file.
16374         * tests/test-fprintf-posix.h: New file.
16375         * tests/test-fprintf-posix.out: New file.
16376
16377         * modules/vfprintf-posix: New file.
16378         * lib/vfprintf.c: New file.
16379         * m4/vfprintf-posix.m4: New file.
16380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16381         REPLACE_VFPRINTF.
16382         * lib/stdio_.h (vfprintf): New declaration.
16383         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16384         REPLACE_VFPRINTF.
16385
16386 2007-03-08  Bruno Haible  <bruno@clisp.org>
16387
16388         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16389
16390 2007-03-08  Bruno Haible  <bruno@clisp.org>
16391
16392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16393         instead of 'expr' invocations.
16394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16399         Suggested by Paul Eggert.
16400
16401 2007-03-08  Bruno Haible  <bruno@clisp.org>
16402
16403         * modules/fseterr-tests: New file.
16404         * tests/test-fseterr.c: New file.
16405
16406         * modules/fseterr: New file.
16407         * lib/fseterr.h: New file.
16408         * lib/fseterr.c: New file.
16409
16410 2007-03-08  Bruno Haible  <bruno@clisp.org>
16411
16412         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16413         * lib/getopt_.h: Likewise.
16414         * lib/mbswidth.h: Likewise.
16415         * lib/setenv.h: Likewise.
16416         * lib/vasnprintf.h: Likewise.
16417         * lib/vasprintf.h: Likewise.
16418         * lib/verror.h: Likewise.
16419         * lib/xsetenv.h: Likewise.
16420         * lib/xvasprintf.h: Likewise.
16421
16422 2007-03-08  Jim Meyering  <jim@meyering.net>
16423
16424         * users.txt: Add parted.
16425
16426         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16427
16428 2007-03-07  Bruno Haible  <bruno@clisp.org>
16429
16430         * m4/printf.m4: Make the shell script snippets copy&pastable.
16431
16432 2007-03-02  Bruno Haible  <bruno@clisp.org>
16433
16434         * lib/netinet_in_.h: New file.
16435         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16436         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16437         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16438         (Depends-on): Add absolute-header.
16439         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16440         into netinet/in.h.
16441
16442 2007-03-03  Bruno Haible  <bruno@clisp.org>
16443
16444         * lib/sys_select_.h: New file.
16445         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16446         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16447         * modules/sys_select (Files): Add lib/sys_select_.h.
16448         (Depends-on): Add absolute-header.
16449         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16450         into sys/select.h.
16451
16452 2007-03-02  Bruno Haible  <bruno@clisp.org>
16453
16454         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16455         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16456         values.
16457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16458         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16459         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16460         * modules/sys_socket (Depends-on): Add absolute-header.
16461         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16462         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16463         (Include): Remove requirement of inclusion of <sys/types.h>.
16464
16465 2007-03-02  Bruno Haible  <bruno@clisp.org>
16466
16467         * lib/byteswap_.h (bswap_32): Fix formula.
16468
16469 2007-03-06  Bruno Haible  <bruno@clisp.org>
16470
16471         * modules/sprintf-posix-tests: New file.
16472         * tests/test-sprintf-posix.c: New file.
16473
16474         * modules/sprintf-posix: New file.
16475         * lib/sprintf.c: New file.
16476         * m4/sprintf-posix.m4: New file.
16477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16478         REPLACE_SPRINTF.
16479         * lib/stdio_.h (sprintf): New declaration.
16480         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16481         REPLACE_SPRINTF.
16482
16483 2007-03-06  Bruno Haible  <bruno@clisp.org>
16484
16485         * modules/vsprintf-posix-tests: New file.
16486         * tests/test-vsprintf-posix.c: New file.
16487         * tests/test-sprintf-posix.h: New file.
16488
16489         * modules/vsprintf-posix: New file.
16490         * lib/vsprintf.c: New file.
16491         * m4/vsprintf-posix.m4: New file.
16492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16493         REPLACE_VSPRINTF.
16494         * lib/stdio_.h (vsprintf): New declaration.
16495         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16496         REPLACE_VSPRINTF.
16497
16498 2007-03-06  Bruno Haible  <bruno@clisp.org>
16499
16500         * modules/vsnprintf (Depend-on): Remove minmax.
16501
16502 2007-03-06  Bruno Haible  <bruno@clisp.org>
16503
16504         * modules/snprintf-posix-tests: New file.
16505         * tests/test-snprintf-posix.c: New file.
16506
16507         * modules/snprintf-posix: New file.
16508         * m4/snprintf-posix.m4: New file.
16509         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16510         gl_FUNC_SNPRINTF.
16511         (gl_FUNC_SNPRINTF): Invoke it.
16512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16513         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16514         is set.
16515         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16516
16517 2007-03-06  Bruno Haible  <bruno@clisp.org>
16518
16519         * modules/vsnprintf-posix-tests: New file.
16520         * tests/test-vsnprintf-posix.c: New file.
16521         * tests/test-snprintf-posix.h: New file.
16522
16523         * modules/vsnprintf-posix: New file.
16524         * m4/vsnprintf-posix.m4: New file.
16525         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16526         gl_FUNC_VSNPRINTF.
16527         (gl_FUNC_VSNPRINTF): Invoke it.
16528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16529         * lib/stdio_.h (vsnprintf): Define as a replacement if
16530         REPLACE_VSNPRINTF is set.
16531         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16532
16533 2007-03-06  Bruno Haible  <bruno@clisp.org>
16534
16535         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16537
16538 2007-03-06  Bruno Haible  <bruno@clisp.org>
16539
16540         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16541         (asinl): Declare also if HAVE_DECL_ASINL is set.
16542         (atanl): Declare also if HAVE_DECL_ATANL is set.
16543         (ceill): Declare also if HAVE_DECL_CEILL is set.
16544         (cosl): Declare also if HAVE_DECL_COSL is set.
16545         (expl): Declare also if HAVE_DECL_EXPL is set.
16546         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16547         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16548         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16549         (logl): Declare also if HAVE_DECL_LOGL is set.
16550         (sinl): Declare also if HAVE_DECL_SINL is set.
16551         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16552         (tanl): Declare also if HAVE_DECL_TANL is set.
16553         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16555         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16556         declaration of frexpl, ldexpl.
16557         * modules/printf-frexpl (Depends-on): Add math.
16558         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16559
16560 2007-03-05  Bruno Haible  <bruno@clisp.org>
16561
16562         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16563         frexpl and ldexpl are declared.
16564         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16565
16566 2007-03-05  Bruno Haible  <bruno@clisp.org>
16567
16568         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16569         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16570
16571 2007-03-05  Bruno Haible  <bruno@clisp.org>
16572
16573         * lib/stdio_.h: Include <stddef.h>.
16574
16575 2007-03-05  Bruno Haible  <bruno@clisp.org>
16576
16577         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16578
16579 2007-03-05  Bruno Haible  <bruno@clisp.org>
16580
16581         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16582         NetBSD 4, from Ralf Wildenhues.
16583
16584 2007-03-04  Bruno Haible  <bruno@clisp.org>
16585
16586         * lib/vasprintf.h: Update #if logic for the case when the functions
16587         exist but are overridden.
16588
16589 2007-03-04  Bruno Haible  <bruno@clisp.org>
16590
16591         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16592         implementations: glibc-2.4 and MacOS X 10.3.
16593         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16594         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16595         * tests/test-vasprintf-posix.c (test_function): Likewise.
16596
16597 2007-03-04  Bruno Haible  <bruno@clisp.org>
16598
16599         * modules/vasprintf-posix-tests: New file.
16600         * tests/test-vasprintf-posix.c: New file.
16601
16602         * modules/vasprintf-posix: New file.
16603         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16604         defined.
16605         * m4/vasprintf-posix.m4: New file.
16606         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16607         gl_FUNC_VASPRINTF.
16608         (gl_FUNC_VASPRINTF): Invoke it.
16609         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16610         here.
16611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16612
16613 2007-03-04  Bruno Haible  <bruno@clisp.org>
16614
16615         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16616         REPLACE_GETTIMEOFDAY.
16617         * modules/sys_time (Makefile.am): Likewise.
16618         * m4/sys_time_h.m4: Likewise.
16619         * m4/gettimeofday.m4: Likewise.
16620
16621 2007-03-04  Bruno Haible  <bruno@clisp.org>
16622
16623         * modules/vasnprintf-posix-tests: New file.
16624         * tests/test-vasnprintf-posix.c: New file.
16625
16626         * modules/vasnprintf-posix: New file.
16627         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16628         printf-frexpl.h.
16629         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16630         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16631         REPLACE_VASNPRINTF is defined.
16632         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16633         gl_FUNC_VASNPRINTF.
16634         (gl_FUNC_VASNPRINTF): Invoke it.
16635         * m4/vasnprintf-posix.m4: New file.
16636         * m4/printf.m4: New file.
16637
16638 2007-03-04  Bruno Haible  <bruno@clisp.org>
16639
16640         Compile progreloc.c only if --enable-relocatable is specified.
16641         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16642         if --enable-relocatable was specified.
16643         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16644         lib_SOURCES.
16645
16646 2007-03-04  Jim Meyering  <jim@meyering.net>
16647
16648         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16649         Use it consistently, rather than enumerating errno constants.
16650
16651 2007-03-04  Bruno Haible  <bruno@clisp.org>
16652
16653         * modules/xvasprintf-tests: New file.
16654         * tests/test-xvasprintf.c: New file.
16655
16656         * modules/vasprintf-tests: New file.
16657         * tests/test-vasprintf.c: New file.
16658
16659         * modules/vasnprintf-tests: New file.
16660         * tests/test-vasnprintf.c: New file.
16661
16662         * modules/vsnprintf-tests: New file.
16663         * tests/test-vsnprintf.c: New file.
16664
16665         * modules/snprintf-tests: New file.
16666         * tests/test-snprintf.c: New file.
16667
16668 2007-03-04  Bruno Haible  <bruno@clisp.org>
16669
16670         Compile relocatable.c only if --enable-relocatable is specified.
16671         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16672         gl_RELOCATABLE_LIBRARY.
16673         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16674         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16675         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16676         gl_RELOCATABLE_LIBRARY.
16677         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16678         (Makefile.am): Remove lib_SOURCES.
16679         * modules/relocatable-lib-lgpl (configure.ac): Invoke
16680         gl_RELOCATABLE_LIBRARY.
16681         (Makefile.am): Remove lib_SOURCES.
16682         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16683         always.
16684         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16685         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16686
16687 2007-03-04  Bruno Haible  <bruno@clisp.org>
16688
16689         * modules/argmatch-tests: New file.
16690         * tests/test-argmatch.c: New file.
16691
16692         * tests/test-allocsa.c (main): Halve the number of loop runs.
16693
16694         * modules/alloca-opt-tests: New file.
16695         * tests/test-alloca-opt.c: New file.
16696
16697 2007-03-04  Jim Meyering  <jim@meyering.net>
16698
16699         Work around difference between Linux ACLs and Solaris 10 ZFS.
16700         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16701         for EINVAL.
16702
16703 2007-03-03  Bruno Haible  <bruno@clisp.org>
16704
16705         * modules/relocatable-prog (Depends-on): Add back progreloc's
16706         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16707
16708 2007-03-03  Bruno Haible  <bruno@clisp.org>
16709
16710         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16711         * modules/relocatable-lib: New file.
16712
16713 2007-03-03  Bruno Haible  <bruno@clisp.org>
16714
16715         * modules/relocatable-prog: Renamed from modules/relocatable.
16716         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16717
16718 2007-03-03  Bruno Haible  <bruno@clisp.org>
16719
16720         * modules/relocatable-script (Files): Add doc/relocatable.texi,
16721         m4/relocatable-lib.m4.
16722         (Depends-on): Remove 'relocatable'.
16723         (configure.ac): Add gl_RELOCATABLE_NOP.
16724
16725 2007-03-03  Bruno Haible  <bruno@clisp.org>
16726
16727         * modules/relocatable-prog-wrapper: New file.
16728         * modules/relocatable (Depends-on): Add it. Remove all other
16729         dependencies except progname.
16730         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16731
16732         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16733         (gl_FUNC_STRERROR): Nop.
16734         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16735
16736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16737         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16738
16739         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16740         (gl_FUNC_READLINK): Update.
16741
16742         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16743
16744 2007-03-03  Bruno Haible  <bruno@clisp.org>
16745
16746         * lib/xreadlink.c: Include <unistd.h> unconditionally.
16747         * modules/xreadlink (Depends-on): Add unistd.
16748         * modules/xreadlink-with-size (Depends-on): Likewise.
16749
16750 2007-03-03  Bruno Haible  <bruno@clisp.org>
16751
16752         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16753         extracted from gt_FUNC_SETENV.
16754         (gt_FUNC_SETENV): Remove macro.
16755         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16756         remove gt_FUNC_SETENV.
16757
16758 2007-03-03  Bruno Haible  <bruno@clisp.org>
16759
16760         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16761         ENABLE_RELOCATABLE here.
16762         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16763
16764 2007-03-03  Bruno Haible  <bruno@clisp.org>
16765
16766         * modules/rbtreehash-list-tests (Depends-on): Add progname.
16767         * tests/test-rbtreehash_list.c: Include progname.h.
16768         (main): Call set_program_name.
16769
16770         * modules/rbtree-oset-tests (Depends-on): Add progname.
16771         * tests/test-rbtree_oset.c: Include progname.h.
16772         (main): Call set_program_name.
16773
16774         * modules/rbtree-list-tests (Depends-on): Add progname.
16775         * tests/test-rbtree_list.c: Include progname.h.
16776         (main): Call set_program_name.
16777
16778         * modules/linked-list-tests (Depends-on): Add progname.
16779         * tests/test-linked_list.c: Include progname.h.
16780         (main): Call set_program_name.
16781
16782 2007-03-03  Bruno Haible  <bruno@clisp.org>
16783
16784         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16785         All uses of __restrict changed to _Restrict_.
16786         * lib/glob_.h (__restrict): Remove macro.
16787
16788 2007-03-02  Bruno Haible  <bruno@clisp.org>
16789
16790         * modules/gettext (configure.ac): Require gettext infrastructure
16791         from version 0.16.1.
16792
16793 2007-03-02  Bruno Haible  <bruno@clisp.org>
16794
16795         * modules/linkedhash-list-tests (Depends-on): Add progname.
16796         * tests/test-linkedhash_list.c: Include progname.h.
16797         (main): Call set_program_name.
16798
16799         * modules/carray-list-tests (Depends-on): Add progname.
16800         * tests/test-carray_list.c: Include progname.h.
16801         (main): Call set_program_name.
16802
16803         * modules/avltreehash-list-tests (Depends-on): Add progname.
16804         * tests/test-avltreehash_list.c: Include progname.h.
16805         (main): Call set_program_name.
16806
16807         * modules/avltree-oset-tests (Depends-on): Add progname.
16808         * tests/test-avltree_oset.c: Include progname.h.
16809         (main): Call set_program_name.
16810
16811         * modules/avltree-list-tests (Depends-on): Add progname.
16812         * tests/test-avltree_list.c: Include progname.h.
16813         (main): Call set_program_name.
16814
16815         * modules/array-oset-tests (Depends-on): Add progname.
16816         * tests/test-array_oset.c: Include progname.h.
16817         (main): Call set_program_name.
16818
16819         * modules/array-list-tests (Depends-on): Add progname.
16820         * tests/test-array_list.c: Include progname.h.
16821         (main): Call set_program_name.
16822
16823         * modules/argp-tests (Depends-on): Add progname.
16824         * tests/test-argp.c: Include argp.h first. Include progname.h.
16825         (main): Call set_program_name.
16826
16827 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
16828
16829         * doc/gnulib-tool.texi (Initial import): Reword description of
16830         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16831         limited effect even if defined after the first system include.
16832
16833 2007-03-01  Bruno Haible  <bruno@clisp.org>
16834
16835         * build-aux/config.libpath: Update to libtool-1.5.22.
16836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16837
16838 2007-03-01  Bruno Haible  <bruno@clisp.org>
16839
16840         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16841         foo_CFLAGS.
16842         Reported by Ralf Wildenhues.
16843
16844 2007-03-01  Bruno Haible  <bruno@clisp.org>
16845
16846         * build-aux/install-reloc: Remove object files left over by some
16847         compilers.
16848         Reported by Ralf Wildenhues.
16849
16850 2007-03-01  Bruno Haible  <bruno@clisp.org>
16851
16852         * build-aux/install-reloc: Break long lines.
16853
16854 2007-03-01  Bruno Haible  <bruno@clisp.org>
16855
16856         * doc/relocatable.texi: Document that it may not work on OpenBSD.
16857         Reported by Ralf Wildenhues.
16858
16859 2007-03-01  Bruno Haible  <bruno@clisp.org>
16860
16861         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16862         include ordering constraints.
16863
16864 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16865
16866         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16868         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16869         as another example.
16870         * lib/time_.h: Fix misspelling.
16871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16872         Require gl_HEADER_TIME_H_DEFAULTS.
16873         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16874         * m4/time_r.m4 (gl_TIME_R): Likewise.
16875         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16876
16877 2007-03-01  Bruno Haible  <bruno@clisp.org>
16878
16879         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16880         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16881
16882 2007-03-01  Jim Meyering  <jim@meyering.net>
16883
16884         * modules/xreadlink (Maintainer): Add my name.
16885         * modules/xreadlink-with-size (Depends-on): Alphabetize.
16886
16887 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
16888             Bruno Haible  <bruno@clisp.org>
16889
16890         * build-aux/install-reloc: Compile also c-ctype.c.
16891         * build-aux/relocatable.sh.in: New file.
16892         * doc/relocatable.texi: New file.
16893         * doc/relocatable-maint.texi: New file.
16894         * doc/gnulib.texi: Include relocatable-maint.texi.
16895         * lib/progreloc.c: Include unistd.h unconditionally.
16896         * lib/relocwrapper.c: Include unistd.h unconditionally.
16897         Include c-ctype.h.
16898         (add_dotbin): Use c_tolower.
16899         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
16900         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
16901         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
16902         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
16903         to m4/relocatable-lib.m4.
16904         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
16905         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
16906         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
16907         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
16908         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
16909         * modules/relocatable: New file.
16910         * modules/relocatable-lib: New file.
16911         * modules/relocatable-script: New file.
16912
16913 2007-02-28  Bruno Haible  <bruno@clisp.org>
16914
16915         Import --enable-relocatable infrastructure.
16916         * build-aux/config.libpath: New file, from GNU gettext.
16917         * build-aux/install-reloc: New file, from GNU gettext.
16918         * build-aux/reloc-ldflags: New file, from GNU gettext.
16919         * lib/relocatable.h: New file, from GNU gettext.
16920         * lib/relocatable.c: New file, from GNU gettext.
16921         * lib/relocwrapper.c: New file, from GNU gettext.
16922         * m4/relocatable.m4: New file, from GNU gettext.
16923
16924 2007-02-28  Bruno Haible  <bruno@clisp.org>
16925
16926         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
16927
16928         * modules/xreadlink: New file, from GNU gettext with modifications.
16929         * lib/xreadlink.c: New file, from GNU gettext.
16930         * lib/xreadlink.h: Add comments.
16931         (xreadlink): New declaration.
16932
16933         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
16934         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
16935         lib/xreadlink-with-size.c.
16936         (configure.ac): Remove gl_XREADLINK invocation.
16937         (Makefile.am): Augment lib_SOURCES.
16938         * m4/xreadlink.m4: Remove file.
16939         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
16940         (xreadlink_with_size): Renamed from xreadink.
16941         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
16942         * modules/canonicalize (Depends-on): Replace xreadlink with
16943         xreadlink-with-size.
16944         * lib/canonicalize.c (canonicalize_filename_mode): Update.
16945
16946 2007-02-25  Jim Meyering  <jim@meyering.net>
16947
16948         * build-aux/announce-gen: When complaining about excess arguments,
16949         list them.
16950
16951 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16952
16953         * README: Document signed integer overflow situation more
16954         accurately.
16955
16956 2007-02-25  Bruno Haible  <bruno@clisp.org>
16957
16958         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
16959         'a' or 'A' conversion.
16960
16961 2007-02-25  Bruno Haible  <bruno@clisp.org>
16962
16963         * modules/filename: Renamed from modules/pathname.
16964         (Files): Replace lib/pathname.h with lib/filename.h. Replace
16965         lib/concatpath.c with lib/concat-filename.c.
16966         (Makefile.am): Update.
16967         (Include): Replace pathname.h with filename.h.
16968         * lib/filename.h: Renamed from lib/pathname.h.
16969         (concatenated_filename): Renamed from concatenated_pathname.
16970         * lib/concat-filename.c: Renamed from lib/concatpath.c.
16971         (concatenated_filename): Renamed from concatenated_pathname.
16972         * lib/findprog.c: Include filename.h instead of pathname.h.
16973         (find_in_path): Update.
16974         * lib/javacomp.c: Include filename.h instead of pathname.h.
16975         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16976         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16977         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16978         is_oldgcj_14_13_usable, is_javac_usable): Update.
16979         * lib/javaexec.c: Include filename.h instead of pathname.h.
16980         (execute_java_class): Update.
16981         * modules/findprog: Update.
16982         * modules/javacomp: Update.
16983         * modules/javaexec: Update.
16984         * MODULES.html.sh (File system functions): Add 'filename', remove
16985         'pathname'.
16986
16987 2007-02-25  Bruno Haible  <bruno@clisp.org>
16988
16989         * modules/printf-frexpl-tests: New file.
16990         * tests/test-printf-frexpl.c: New file.
16991
16992         * modules/printf-frexpl: New file.
16993         * lib/printf-frexpl.h: New file.
16994         * lib/printf-frexpl.c: New file.
16995         * m4/printf-frexpl.m4: New file.
16996
16997 2007-02-25  Bruno Haible  <bruno@clisp.org>
16998
16999         * modules/printf-frexp-tests: New file.
17000         * tests/test-printf-frexp.c: New file.
17001
17002         * modules/printf-frexp: New file.
17003         * lib/printf-frexp.h: New file.
17004         * lib/printf-frexp.c: New file.
17005         * m4/printf-frexp.m4: New file.
17006
17007 2007-02-25  Bruno Haible  <bruno@clisp.org>
17008
17009         Assume automake >= 1.10 for the tests.
17010         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17011         * modules/arctwo-tests: Likewise.
17012         * modules/argp-tests: Likewise.
17013         * modules/avltree-list-tests: Likewise.
17014         * modules/avltree-oset-tests: Likewise.
17015         * modules/avltreehash-list-tests: Likewise.
17016         * modules/carray-list-tests: Likewise.
17017         * modules/crc-tests: Likewise.
17018         * modules/des-tests: Likewise.
17019         * modules/gc-arcfour-tests: Likewise.
17020         * modules/gc-arctwo-tests: Likewise.
17021         * modules/gc-des-tests: Likewise.
17022         * modules/gc-hmac-md5-tests: Likewise.
17023         * modules/gc-hmac-sha1-tests: Likewise.
17024         * modules/gc-md2-tests: Likewise.
17025         * modules/gc-md4-tests: Likewise.
17026         * modules/gc-md5-tests: Likewise.
17027         * modules/gc-pbkdf2-sha1-tests: Likewise.
17028         * modules/gc-rijndael-tests: Likewise.
17029         * modules/gc-sha1-tests: Likewise.
17030         * modules/gc-tests: Likewise.
17031         * modules/getaddrinfo-tests: Likewise.
17032         * modules/hmac-md5-tests: Likewise.
17033         * modules/hmac-sha1-tests: Likewise.
17034         * modules/linked-list-tests: Likewise.
17035         * modules/linkedhash-list-tests: Likewise.
17036         * modules/lock-tests: Likewise.
17037         * modules/md2-tests: Likewise.
17038         * modules/md4-tests: Likewise.
17039         * modules/md5-tests: Likewise.
17040         * modules/rbtree-list-tests: Likewise.
17041         * modules/rbtree-oset-tests: Likewise.
17042         * modules/rbtreehash-list-tests: Likewise.
17043         * modules/read-file-tests: Likewise.
17044         * modules/rijndael-tests: Likewise.
17045         * modules/stdint-tests: Likewise.
17046         * modules/tls-tests: Likewise.
17047
17048 2007-02-24  Bruno Haible  <bruno@clisp.org>
17049
17050         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17051         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17052         function; instead check whether isnan with a double argument links.
17053         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17054         function; instead check whether isnan with a 'long double' argument
17055         links.
17056         Reported by Eric Blake <ebb9@byu.net>.
17057
17058 2007-02-24  Bruno Haible  <bruno@clisp.org>
17059
17060         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17061         defined.
17062         * lib/isnanl.c: Remove all code. Just include isnan.c.
17063         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17064
17065 2007-02-25  Jim Meyering  <jim@meyering.net>
17066
17067         Avoid conflicting types for 'unsetenv' on FreeBSD.
17068         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17069         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17070         in stdlib.h.
17071
17072 2007-02-24  Bruno Haible  <bruno@clisp.org>
17073
17074         * modules/isnanl-nolibm-tests: New file.
17075         * tests/test-isnanl.c: New file.
17076
17077         * modules/isnanl-nolibm: New file.
17078         * lib/isnanl.h: New file.
17079         * lib/isnanl.c: New file.
17080         * m4/isnanl.m4: New file.
17081
17082 2007-02-24  Bruno Haible  <bruno@clisp.org>
17083
17084         * modules/isnan-nolibm-tests: New file.
17085         * tests/test-isnan.c: New file.
17086
17087         * modules/isnan-nolibm: New file.
17088         * lib/isnan.h: New file.
17089         * lib/isnan.c: New file.
17090         * m4/isnan.m4: New file.
17091
17092 2007-02-24  Bruno Haible  <bruno@clisp.org>
17093
17094         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17095         assume that an exponent fits in 20 bits.
17096
17097 2007-02-24  Jim Meyering  <jim@meyering.net>
17098
17099         * m4/regex.m4: Update the description of the configure-time option,
17100         --without-included-regex, to state accurately what the defaults are,
17101         and perhaps to give people an idea why using this option is risky.
17102
17103 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17104
17105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17106         loops on small arguments.  This attempts to avoid the problem
17107         Bruno Haible reported for AIX 4.3.2 in
17108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17109
17110 2007-02-23  Bruno Haible  <bruno@clisp.org>
17111
17112         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17113         Needed for help2man.
17114
17115 2007-02-23  Karl Berry  <karl@gnu.org>
17116
17117         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17118         exists, foo.h should be cvs-ignored, not committed.
17119
17120 2007-02-23  Eric Blake  <ebb9@byu.net>
17121
17122         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17123         * lib/stat-time.h (includes): Likewise.
17124         * lib/utimecmp.c (includes): Likewise.
17125         * lib/utimens.h (includes): Likewise.
17126         * lib/getdate.y (includes): Also include "timespec.h" for use
17127         internal to the module.
17128         * modules/utimens (Depends-on): Revert yesterday's patch.
17129         * modules/nanosleep (Depends-on): Add missing dependency.
17130
17131 2007-02-22  Bruno Haible  <bruno@clisp.org>
17132
17133         * lib/glob.c: Don't include getlogin_r.h.
17134
17135 2007-02-22  Jim Meyering  <jim@meyering.net>
17136
17137         * modules/utimens (Depends-on): Add timespec, required for
17138         utimens.h's inclusion of timespec.h.
17139
17140 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17141
17142         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17143         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17144         Schwab in
17145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17146         I'll try to think of a better way to fix the Solaris problem.
17147
17148         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17149         like glibc; on Solaris 10, it fails with errno == EINVAL.
17150         POSIX says the behavior is unspecified if the first argument is NULL,
17151         so play it safe and never pass NULL to the system getcwd.
17152
17153 2007-02-21  Jim Meyering  <jim@meyering.net>
17154
17155         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17156         of gettimeofday.  It would conflict with the one now always
17157         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17158         an IRIX 6.5 build failure.
17159
17160 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17161
17162         Minor fixups to port to Solaris 10 with Sun C 5.8.
17163         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17164         * modules/getcwd (Depends-on): Add dirfd.
17165         * lib/putenv.c (putenv): #undef it.
17166         (rpl_putenv): New decl.
17167         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17168
17169 2007-02-20  Bruno Haible  <bruno@clisp.org>
17170
17171         * modules/stdio-tests: New file.
17172         * tests/test-stdio.c: New file.
17173
17174         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17175         (Depends-on): Add stdio.
17176         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17177         (Include): Use <stdio.h> instead of vsnprintf.h.
17178         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17179         HAVE_DECL_VSNPRINTF.
17180         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17181
17182         * modules/snprintf (Files): Remove lib/snprintf.h.
17183         (Depends-on): Add stdio.
17184         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17185         (Include): Use <stdio.h> instead of snprintf.h.
17186         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17187         HAVE_DECL_SNPRINTF.
17188         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17189         * lib/getaddrinfo.c: Likewise.
17190
17191         * modules/stdio: New file.
17192         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17193         * lib/snprintf.h: Remove file.
17194         * lib/vsnprintf.h: Remove file.
17195         * lib/.cppi-disable: Remove snprintf.h.
17196         * m4/stdio_h.m4: New file.
17197         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17198
17199 2007-02-20  Jim Meyering  <jim@meyering.net>
17200
17201         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17202         used by e.g., mingw.  From Bruno Haible.
17203
17204 2007-02-19  Bruno Haible  <bruno@clisp.org>
17205
17206         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17207         warnings.
17208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17209
17210 2007-02-19  Bruno Haible  <bruno@clisp.org>
17211
17212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17213         from mingw users.
17214
17215 2007-02-19  Bruno Haible  <bruno@clisp.org>
17216
17217         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17218         warnings.
17219         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17220
17221 2007-02-19  Jim Meyering  <jim@meyering.net>
17222
17223         Don't use FD after a successful "fdopendir (fd)".
17224         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17225         Reset it by calling dirfd on the just-obtained DIR*.
17226
17227         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17228         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17229
17230 2007-02-18  Bruno Haible  <bruno@clisp.org>
17231
17232         * lib/readlink.c: Include <unistd.h>.
17233         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17234         HAVE_READLINK.
17235         * modules/readlink (Depends-on): Add unistd.
17236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17237         (Include): Add <unistd.h>.
17238
17239         * lib/getlogin_r.h: Remove file.
17240         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17241         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17242         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17243         HAVE_DECL_GETLOGIN_R.
17244         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17245         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17246         (Include): Use <unistd.h> instead of getlogin_r.h.
17247
17248         * lib/getcwd.h: Remove file.
17249         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17250         * lib/xgetcwd.c: Likewise.
17251         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17252         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17253         * modules/getcwd (Files): Remove lib/getcwd.h.
17254         (Depends-on): Add unistd.
17255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17256         (Include): Use <unistd.h> instad of getcwd.h.
17257
17258         * lib/ftruncate.c: Include <unistd.h> first.
17259         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17260         Set HAVE_FTRUNCATE.
17261         * modules/ftruncate (Depends-on): Add unistd.
17262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17263
17264         * lib/fchdir.c: Include <unistd.h> first.
17265         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17267         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17268         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17269         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17270
17271         * lib/dup2.c: Include <unistd.h> first.
17272         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17273         HAVE_DUP2.
17274         * modules/dup2 (Depends-on): Add unistd.
17275         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17276
17277         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17278         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17279         REPLACE_CHOWN. Don't define chown as a macro here.
17280         * modules/chown (Depends-on): Add unistd.
17281         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17282
17283         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17284         Add definition for GL_LINK_WARNING.
17285         (chown, dup2): New declarations.
17286         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17287         link warning.
17288         (ftruncate): New declaration.
17289         (getcwd): New declaration, taken from old getcwd.h.
17290         (getlogin_r): New declaration, taken from old getlogin_r.h.
17291         (readlink): New declaration.
17292         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17293         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17294         (gl_PREREQ_UNISTD): Remove macro.
17295         (gl_UNISTD_MODULE_INDICATOR): New macro.
17296         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17297         many new variables. Don't set UNISTD_H.
17298         * modules/unistd (Description): Change.
17299         (Depends-on): Add link-warning.
17300         (configure.ac): Update.
17301         (Makefile.am): Create unistd.h always. Substitute many new variables
17302         into it.
17303
17304 2007-02-18  Bruno Haible  <bruno@clisp.org>
17305
17306         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17307         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17308         HAVE_GETSUBOPT.
17309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17310         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17311         * lib/getsubopt.h: Remove file.
17312         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17313         (Depends-on): Add stdlib.
17314         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17315         (Includes): Use <stdlib.h> instead of getsubopt.h.
17316         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17317         Set HAVE_GETSUBOPT.
17318         * lib/getsubopt.c: Don't include getsubopt.h.
17319
17320 2007-02-18  Bruno Haible  <bruno@clisp.org>
17321
17322         * modules/fchdir (Depends-on): Add dup2.
17323
17324 2007-02-18  Bruno Haible  <bruno@clisp.org>
17325
17326         * lib/stdlib_.h: Handle glibc's special invocation convention
17327         specially.
17328
17329 2007-02-18  Bruno Haible  <bruno@clisp.org>
17330
17331         * modules/stdlib-tests: New file.
17332         * tests/test-stdlib.c: New file.
17333
17334         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17335         (Depends-on): Add stdlib.
17336         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17337         (Includes): Use <stdlib.h> instead of mkstemp.h.
17338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17339         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17340         * lib/mkstemp.c: Don't include mkstemp.h.
17341         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17342         * lib/stdlib--.h: Don't include mkstemp.h.
17343
17344         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17345         (Depends-on): Add stdlib.
17346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17347         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17348         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17349         HAVE_MKDTEMP.
17350         * lib/mkdtemp.c: Don't include mkdtemp.h.
17351         * lib/clean-temp.c: Don't include mkdtemp.h.
17352
17353         * modules/exit (Files): Remove lib/exit.h.
17354         (Depends-on): Add stdlib.
17355         (Makefile.am): Remove lib_SOURCES.
17356         (Include): Use <stdlib.h> instead of exit.h.
17357         * lib/argmatch.c: Don't include exit.h.
17358         * lib/execute.c: Likewise.
17359         * lib/pagealign_alloc.c: Likewise.
17360         * lib/pipe.c: Likewise.
17361         * lib/wait-process.c: Likewise.
17362         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17363         * lib/exitfail.c: Likewise.
17364         * lib/savewd.c: Likewise.
17365         * lib/xsetenv.c: Likewise.
17366
17367         * modules/stdlib: New file.
17368         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17369         and extra comments about mkstemp().
17370         * lib/exit.h: Remove file.
17371         * lib/mkdtemp.h: Remove file.
17372         * lib/mkstemp.h: Remove file.
17373         * m4/stdlib_h.m4: New file.
17374         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17375
17376 2007-02-18  Bruno Haible  <bruno@clisp.org>
17377
17378         * modules/math-tests: New file.
17379         * tests/test-math.c: New file.
17380
17381         * modules/math: New file.
17382         * modules/mathl (Files): Remove lib/mathl.h.
17383         (Depends-on): Add math.
17384         (Makefile.am): Don't mention mathl.h.
17385         (Include): Use <math.h> instead of mathl.h.
17386         * lib/math_.h: New file.
17387         * lib/mathl.h: Remove file.
17388         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17389         mathl.h.
17390         * lib/asinl.c: Likewise.
17391         * lib/atanl.c: Likewise.
17392         * lib/ceill.c: Likewise.
17393         * lib/cosl.c: Likewise.
17394         * lib/expl.c: Likewise.
17395         * lib/floorl.c: Likewise.
17396         * lib/frexpl.c: Likewise.
17397         * lib/ldexpl.c: Likewise.
17398         * lib/logl.c: Likewise.
17399         * lib/sincosl.c: Likewise.
17400         * lib/sinl.c: Likewise.
17401         * lib/sqrtl.c: Likewise.
17402         * lib/tanl.c: Likewise.
17403         * lib/trigl.c: Likewise.
17404         * m4/math_h.m4: New file.
17405         * MODULES.html.sh (Mathematics): Add math.
17406
17407 2007-02-17  Bruno Haible  <bruno@clisp.org>
17408
17409         * modules/wctype-tests: New file.
17410         * tests/test-wctype.c: New file.
17411
17412         * modules/wchar-tests: New file.
17413         * tests/test-wchar.c: New file.
17414
17415         * modules/unistd-tests: New file.
17416         * tests/test-unistd.c: New file.
17417
17418         * modules/time-tests: New file.
17419         * tests/test-time.c: New file.
17420
17421         * modules/sysexits-tests: New file.
17422         * tests/test-sysexits.c: New file.
17423
17424         * modules/sys_time-tests: New file.
17425         * tests/test-sys_time.c: New file.
17426
17427         * modules/sys_stat-tests: New file.
17428         * tests/test-sys_stat.c: New file.
17429
17430         * modules/sys_socket-tests: New file.
17431         * tests/test-sys_socket.c: New file.
17432
17433         * modules/sys_select-tests: New file.
17434         * tests/test-sys_select.c: New file.
17435
17436         * modules/string-tests: New file.
17437         * tests/test-string.c: New file.
17438
17439         * modules/stdbool-tests: New file.
17440         * tests/test-stdbool.c: New file.
17441
17442         * modules/netinet_in-tests: New file.
17443         * tests/test-netinet_in.c: New file.
17444
17445         * modules/inttypes-tests: New file.
17446         * tests/test-inttypes.c: New file.
17447
17448         * modules/fcntl-tests: New file.
17449         * tests/test-fcntl.c: New file.
17450
17451         * modules/byteswap-tests: New file.
17452         * tests/test-byteswap.c: New file.
17453
17454         * modules/arpa_inet-tests: New file.
17455         * tests/test-arpa_inet.c: New file.
17456
17457 2007-02-17  Bruno Haible  <bruno@clisp.org>
17458
17459         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17460         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17461         if the corresponding module is not enabled. Emit link warnings if
17462         the function is used nevertheless.
17463         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17464         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17465         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17466         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17467         * modules/inttypes (Depends-on): Add link-warning.
17468         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17469         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17470         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17471         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17472         * modules/imaxdiv (configure.ac): Likewise.
17473         * modules/strtoimax (configure.ac): Likewise.
17474         * modules/strtoumax (configure.ac): Likewise.
17475
17476 2007-02-17  Bruno Haible  <bruno@clisp.org>
17477
17478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17479         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17480         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17481         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17482
17483 2007-02-17  Bruno Haible  <bruno@clisp.org>
17484
17485         * modules/link-warning: New file.
17486         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17487         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17488         * modules/string (Depends-on): Add link-warning.
17489         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17490         string.h.
17491         * MODULES.html.sh (Support for building libraries and executables): Add
17492         link-warning.
17493
17494 2007-02-17  Bruno Haible  <bruno@clisp.org>
17495
17496         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17497         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17498         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17499         long lines.
17500
17501 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17502             Bruno Haible  <bruno@clisp.org>
17503
17504         * modules/tmpfile: New file.
17505         * lib/tmpfile.c: New file.
17506         * m4/tmpfile.m4: New file.
17507         * MODULES.html.sh (func_all_modules): New section "Input/output".
17508
17509 2007-02-15  Bruno Haible  <bruno@clisp.org>
17510
17511         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17512         (supports_delete_on_close): New function.
17513         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17514
17515 2007-02-14  Bruno Haible  <bruno@clisp.org>
17516
17517         * modules/mbspcasecmp-tests: New file.
17518         * tests/test-mbspcasecmp.sh: New file.
17519         * tests/test-mbspcasecmp.c: New file.
17520
17521         New module mbspcasecmp.
17522         * modules/mbspcasecmp: New file.
17523         * lib/mbspcasecmp.c: New file.
17524         * lib/string_.h (strncasecmp): Change warning message.
17525         (mbspcasecmp): New declaration.
17526         * m4/mbspcasecmp.m4: New file.
17527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17528         GNULIB_MBSPCASECMP.
17529         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17530         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17531
17532 2007-02-14  Bruno Haible  <bruno@clisp.org>
17533
17534         * modules/mbsncasecmp-tests: New file.
17535         * tests/test-mbsncasecmp.sh: New file.
17536         * tests/test-mbsncasecmp.c: New file.
17537
17538         New module mbsncasecmp.
17539         * modules/mbsncasecmp: New file.
17540         * lib/mbsncasecmp.c: New file.
17541         * lib/string_.h (mbsncasecmp): New declaration.
17542         * m4/mbsncasecmp.m4: New file.
17543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17544         GNULIB_MBSNCASECMP.
17545         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17546         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17547
17548 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17549
17550         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17551         Verify that it doesn't overlap with our flags.
17552         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17553         do not have the desired effect in multibyte locales; instead, use
17554         mbscasecmp.
17555         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17556         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
17557         we don't require GNU fnmatch ourselves (if our users require it, they
17558         should do so explicitly).
17559
17560         Fix regex code so it doesn't rely on strcasecmp.
17561         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17562         Otherwise, include gnulib's langinfo.h.
17563         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17564         undesirable behavior in non-C locales.  Instead, rely on localecharset.
17565         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17566         * modules/regex (FILES): Remove m4/codeset.m4.
17567         (Depends-on): Add localcharset.  Remove strcase.
17568
17569 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17570
17571         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17572         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17573
17574 2007-02-13  Bruno Haible  <bruno@clisp.org>
17575
17576         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17578
17579 2007-02-12  Bruno Haible  <bruno@clisp.org>
17580
17581         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17582         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17583         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17584         time warning rather than a link error.
17585
17586 2007-02-12  Bruno Haible  <bruno@clisp.org>
17587
17588         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17589         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17590         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17591
17592 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17593
17594         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17595         args, not 2.
17596
17597 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17598
17599         New module 'time', so that apps can include <time.h> as per
17600         POSIX and GNU instead of separate include files like time_r.h
17601         and timegm.h.  This implementation tries out a simpler approach
17602         for replacing decls in standard include files (as compared to
17603         the string module), somewhat as an experiment.
17604
17605         * config/srclist.txt: Comment out mktime.c for now.
17606         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17607         since it doesn't apply any more.  Use generic wording instead.
17608         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17609         'time'.
17610         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17611         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17612         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17613         Don't include <sys/types.h>; no longer needed since we assume C89.
17614         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17615         * lib/strftime.c: Likewise.
17616         * lib/time_r.c: Likewise.
17617         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17618         * lib/nanosleep.c: Include <time.h> first, to check interface.
17619         * lib/strptime.c: Likewise.
17620         * lib/time_r.c: Likewise.
17621         * lib/timegm.c: Likewise.
17622         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17623         needed.
17624         * lib/timegm.c: Don't include timegm.h; no longer needed.
17625         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17626         time.h now handles any problems in that area.
17627         (struct timespec, nanosleep): Remove; time.h now arranges for these.
17628         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17629         that time.h defines struct timespec.
17630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17631         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
17632         handles that.
17633         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17634         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17635         needed.  Set REPLACE_LOCALTIME.
17636         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17637         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17638         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17639         nanosleep; time_h.m4 now does that.  Don't require
17640         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17641         module handles this now.
17642         * modules/getdate (Depends-on): Remove timespec.  Add time.
17643         * modules/nanosleep (Depends-on): Likewise.
17644         * modules/stat-time (Depends-on): Likewise.
17645         * modules/nanosleep (Include): Include time.h, not timespec.h.
17646         * modules/strptime (Files): Remove lib/strptime.h.
17647         (Depends-on): Add extensions, time.
17648         (Include): Include time.h, not strptime.h.
17649         * modules/time_r (Files): Remove lib/time_r.h.
17650         (Depends-on): Add time.
17651         (Include): Include time.h, not time_r.h.
17652         * modules/timegm: Likewise.
17653         * modules/timespec (Description): Now does timespec-related decls
17654         of our own, instead of struct timespec itself.
17655         (Depends-on): Add time; remove extensions.
17656         (Maintainer): Add self.
17657         * modules/utimecmp (Depends-on): Add time; remove timespec.
17658         * modules/utimens (Depends-on): Likewise.
17659         * modules/xnanosleep (Depends-on): Likewise.
17660
17661 2007-02-11  Bruno Haible  <bruno@clisp.org>
17662
17663         * lib/c-strstr.c: Include allocsa.h.
17664         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17665         * lib/c-strcasestr.c: Include allocsa.h.
17666         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17667         * lib/strcasestr.c: Include allocsa.h.
17668         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17669         * lib/mbsstr.c: Include allocsa.h.
17670         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17671         allocsa/freesa instead of malloc/free.
17672         * lib/mbscasestr.c: Include allocsa.h.
17673         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17674         allocsa/freesa instead of malloc/free.
17675         * modules/c-strstr (Depends-on): Add allocsa.
17676         * modules/c-strcasestr (Depends-on): Likewise.
17677         * modules/strcasestr (Depends-on): Likewise.
17678         * modules/mbsstr (Depends-on): Likewise.
17679         * modules/mbscasestr (Depends-on): Likewise.
17680
17681 2007-02-11  Bruno Haible  <bruno@clisp.org>
17682
17683         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17684
17685         * modules/mbsspn-tests: New file.
17686         * tests/test-mbsspn.sh: New file.
17687         * tests/test-mbsspn.c: New file.
17688
17689 2007-02-11  Bruno Haible  <bruno@clisp.org>
17690
17691         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17692
17693         * modules/mbspbrk-tests: New file.
17694         * tests/test-mbspbrk.sh: New file.
17695         * tests/test-mbspbrk.c: New file.
17696
17697 2007-02-11  Bruno Haible  <bruno@clisp.org>
17698
17699         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17700         unneeded cast.
17701
17702         * modules/mbscspn-tests: New file.
17703         * tests/test-mbscspn.sh: New file.
17704         * tests/test-mbscspn.c: New file.
17705
17706 2007-02-11  Bruno Haible  <bruno@clisp.org>
17707
17708         * modules/mbscasecmp-tests: New file.
17709         * tests/test-mbscasecmp.sh: New file.
17710         * tests/test-mbscasecmp.c: New file.
17711
17712 2007-02-11  Bruno Haible  <bruno@clisp.org>
17713
17714         Ensure O(n) worst-case complexity of mbscasestr.
17715         * lib/mbscasestr.c: Include stdbool.h.
17716         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17717         functions.
17718         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17719         the bookkeeping indicates that it's worth it.
17720         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17721
17722         * modules/mbscasestr-tests: New file.
17723         * tests/test-mbscasestr1.c: New file.
17724         * tests/test-mbscasestr2.sh: New file.
17725         * tests/test-mbscasestr2.c: New file.
17726         * tests/test-mbscasestr3.sh: New file.
17727         * tests/test-mbscasestr3.c: New file.
17728         * tests/test-mbscasestr4.sh: New file.
17729         * tests/test-mbscasestr4.c: New file.
17730         * m4/locale-tr.m4: New file.
17731
17732 2007-02-11  Bruno Haible  <bruno@clisp.org>
17733
17734         Ensure O(n) worst-case complexity of mbsstr.
17735         * lib/mbsstr.c: Include stdbool.h.
17736         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17737         functions.
17738         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17739         bookkeeping indicates that it's worth it.
17740         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17741
17742         * modules/mbsstr-tests: New file.
17743         * tests/test-mbsstr1.c: New file.
17744         * tests/test-mbsstr2.sh: New file.
17745         * tests/test-mbsstr2.c: New file.
17746         * tests/test-mbsstr3.sh: New file.
17747         * tests/test-mbsstr3.c: New file.
17748         * m4/locale-fr.m4: New file.
17749
17750 2007-02-11  Bruno Haible  <bruno@clisp.org>
17751
17752         * lib/mbsrchr.c (mbsrchr): Fix bug.
17753
17754         * modules/mbsrchr-tests: New file.
17755         * tests/test-mbsrchr.sh: New file.
17756         * tests/test-mbsrchr.c: New file.
17757
17758 2007-02-11  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/mbschr.c (mbschr): Fix bug.
17761
17762         * modules/mbschr-tests: New file.
17763         * tests/test-mbschr.sh: New file.
17764         * tests/test-mbschr.c: New file.
17765         * m4/locale-zh.m4: New file.
17766
17767 2007-02-11  Bruno Haible  <bruno@clisp.org>
17768
17769         Support for copying multibyte string iterators.
17770         * lib/mbiter.h: Include <string.h>.
17771         (mbiter_multi_copy): New function.
17772         (mbi_copy): New macro.
17773         * lib/mbuiter.h: Include <string.h>.
17774         (mbuiter_multi_copy): New function.
17775         (mbui_copy): New macro.
17776
17777 2007-02-11  Bruno Haible  <bruno@clisp.org>
17778
17779         New module mbslen.
17780         * modules/mbslen: New file.
17781         * lib/mbslen.c: New file.
17782         * lib/string_.h (mbslen): New declaration.
17783         * m4/mbslen.m4: New file.
17784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17785         GNULIB_MBSLEN.
17786         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17787         * MODULES.html.sh (Internationalization functions): Add mbslen.
17788
17789 2007-02-11  Bruno Haible  <bruno@clisp.org>
17790
17791         Ensure O(n) worst-case complexity of strcasestr substitute.
17792         * lib/strcasestr.c: Include stdbool.h.
17793         (knuth_morris_pratt): New function.
17794         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17795         bookkeeping indicates that it's worth it.
17796         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17797
17798         * modules/strcasestr-tests: New file.
17799         * tests/test-strcasestr.c: New file.
17800
17801 2007-02-11  Bruno Haible  <bruno@clisp.org>
17802
17803         Ensure O(n) worst-case complexity of c_strcasestr.
17804         * lib/c-strcasestr.c: Include stdbool.h, string.h.
17805         (knuth_morris_pratt): New function.
17806         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17807         the bookkeeping indicates that it's worth it.
17808         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17809
17810         * modules/c-strcasestr-tests: New file.
17811         * tests/test-c-strcasestr.c: New file.
17812
17813 2007-02-11  Bruno Haible  <bruno@clisp.org>
17814
17815         Ensure O(n) worst-case complexity of c_strstr.
17816         * lib/c-strstr.c: Include stdbool.h, string.h.
17817         (knuth_morris_pratt): New function.
17818         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17819         bookkeeping indicates that it's worth it.
17820         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17821
17822         * lib/c-strstr.c: Complete rewrite for maintainability.
17823
17824         * modules/c-strstr-tests: New file.
17825         * tests/test-c-strstr.c: New file.
17826
17827 2007-02-11  Bruno Haible  <bruno@clisp.org>
17828
17829         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17830         5.2.1 and earlier, whereby \055 was treated just like the range
17831         delimiter '-'.
17832         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17833
17834 2007-02-08  Bruno Haible  <bruno@clisp.org>
17835
17836         * modules/regex (Depends-on): Add stdbool.
17837         Reported by Dalibor Topic <robilad@kaffe.org>.
17838
17839 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17840
17841         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17842         Prefer returning from main to exiting from it.
17843         Remove unnecessary parens after sizeof.
17844
17845 2007-02-05  Bruno Haible  <bruno@clisp.org>
17846
17847         New module mbssep.
17848         * modules/mbssep: New file.
17849         * lib/mbssep.c: New file.
17850         * lib/string_.h (strsep): Add a conditional link warning.
17851         (mbssep): New declaration.
17852         * m4/mbssep.m4: New file.
17853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17854         GNULIB_MBSSEP.
17855         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17856         * MODULES.html.sh (Internationalization functions): Add mbssep.
17857
17858 2007-02-05  Bruno Haible  <bruno@clisp.org>
17859
17860         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17861         Optimize search in case of 1 delimiter.
17862
17863 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17864
17865         * lib/acl.h: Include sys/types.h before sys/acl.h.
17866
17867 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17868
17869         Merge upstream fix for glibc bugzilla #3957:
17870
17871         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
17872
17873         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17874         bit for RE_HAT_LISTS_NOT_NEWLINE.
17875         (build_charclass_op): Remove bogus comment.
17876
17877 2007-02-05  Simon Josefsson  <simon@josefsson.org>
17878
17879         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17880
17881 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17882
17883         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17884         * lib/memmem.c [!defined _LIBC]: Include config.h.
17885
17886 2007-02-04  Bruno Haible  <bruno@clisp.org>
17887
17888         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17889         warning message.
17890
17891 2007-02-04  Bruno Haible  <bruno@clisp.org>
17892
17893         New module mbstok_r.
17894         * modules/mbstok_r: New file.
17895         * lib/mbstok_r.c: New file.
17896         * lib/string_.h (strtok_r): Change argument names to match the
17897         comments. Add a conditional link warning.
17898         (mbstok_r): New declaration.
17899         * m4/mbstok_r.m4: New file.
17900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17901         GNULIB_MBSTOK_R.
17902         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
17903         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
17904
17905 2007-02-04  Bruno Haible  <bruno@clisp.org>
17906
17907         New module mbsspn.
17908         * modules/mbsspn: New file.
17909         * lib/mbsspn.c: New file.
17910         * lib/string_.h (strspn): Add a conditional link warning.
17911         (mbsspn): New declaration.
17912         * m4/mbsspn.m4: New file.
17913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17914         GNULIB_MBSSPN.
17915         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
17916         * MODULES.html.sh (Internationalization functions): Add mbsspn.
17917
17918 2007-02-04  Bruno Haible  <bruno@clisp.org>
17919
17920         New module mbspbrk.
17921         * modules/mbspbrk: New file.
17922         * lib/mbspbrk.c: New file.
17923         * lib/string_.h (strpbrk): Add a conditional link warning.
17924         (mbspbrk): New declaration.
17925         * m4/mbspbrk.m4: New file.
17926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17927         GNULIB_MBSPBRK.
17928         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
17929         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
17930
17931 2007-02-04  Bruno Haible  <bruno@clisp.org>
17932
17933         New module mbscspn.
17934         * modules/mbscspn: New file.
17935         * lib/mbscspn.c: New file.
17936         * lib/string_.h (strcspn): Add a conditional link warning.
17937         (mbscspn): New declaration.
17938         * m4/mbscspn.m4: New file.
17939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17940         GNULIB_MBSCSPN.
17941         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
17942         * MODULES.html.sh (Internationalization functions): Add mbscspn.
17943
17944 2007-02-04  Bruno Haible  <bruno@clisp.org>
17945
17946         New module mbscasestr, reduced goal of strcasestr.
17947         * modules/mbscasestr: New file.
17948         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
17949         (mbscasestr): Renamed from strcasestr.
17950         * lib/strcasestr.c: Don't include mbuiter.h.
17951         (strcasestr): Remove support for multibyte locales.
17952         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
17953         Change the conditional link warning.
17954         (mbscasestr): New declaration.
17955         * m4/mbscasestr.m4: New file.
17956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
17957         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
17958         REPLACE_STRCASESTR.
17959         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
17960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17961         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17962         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
17963         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17964         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17965         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17966         (Depends-on): Remove mbuiter.
17967         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17968
17969 2007-02-04  Bruno Haible  <bruno@clisp.org>
17970
17971         Simplify handling of strncasecmp.
17972         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
17973         the conditional link warning.
17974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17975         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
17976         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
17977         * modules/strcase (configure.ac): Don't invoke
17978         gl_STRING_MODULE_INDICATOR.
17979         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
17980
17981 2007-02-04  Bruno Haible  <bruno@clisp.org>
17982
17983         New module mbscasecmp, reduced goal of strcasecmp.
17984         * modules/mbscasecmp: New file.
17985         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
17986         (mbscasecmp): Renamed from strcasecmp.
17987         * lib/strcasecmp.c: Don't include mbuiter.h.
17988         (strcasecmp): Remove support for multibyte locales.
17989         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
17990         Change the conditional link warning.
17991         (mbscasecmp): New declaration.
17992         * m4/mbscasecmp.m4: New file.
17993         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
17994         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
17995         REPLACE_STRCASECMP.
17996         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
17997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17998         GNULIB_MBSCASECMP.
17999         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18000         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18001         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18002         (Depends-on): Remove mbuiter.
18003         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18004
18005 2007-02-04  Bruno Haible  <bruno@clisp.org>
18006
18007         New module mbsstr. Remove module strstr.
18008         * modules/mbsstr: New file.
18009         * modules/strstr: Remove file.
18010         * lib/mbsstr.c: Renamed from lib/strstr.c.
18011         (mbsstr): Renamed from strstr.
18012         * lib/string_.h (strstr): Remove declaration. Change the conditional
18013         link warning.
18014         (mbsstr): New declaration.
18015         * m4/mbsstr.m4: New file.
18016         * m4/strstr.m4: Remove file.
18017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18018         REPLACE_STRSTR.
18019         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18020         Don't initialize GNULIB_STRSTR.
18021         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18022         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18023         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18024         (Support for systems lacking ANSI C 89): Remove strstr.
18025
18026 2007-02-04  Bruno Haible  <bruno@clisp.org>
18027
18028         New module mbsrchr.
18029         * modules/mbsrchr: New file.
18030         * lib/mbsrchr.c: New file.
18031         * lib/string_.h (strrchr): Add a conditional link warning.
18032         (mbsrchr): New declaration.
18033         * m4/mbsrchr.m4: New file.
18034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18035         GNULIB_MBSRCHR.
18036         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18037         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18038
18039 2007-02-04  Bruno Haible  <bruno@clisp.org>
18040
18041         New module mbschr.
18042         * modules/mbschr: New file.
18043         * lib/mbschr.c: New file.
18044         * lib/string_.h (strchr): Add a conditional link warning.
18045         (mbschr): New declaration.
18046         * m4/mbschr.m4: New file.
18047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18048         GNULIB_MBSCHR.
18049         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18050         * MODULES.html.sh (Internationalization functions): Add mbschr.
18051
18052 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18053
18054         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18055
18056         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18057
18058 2007-02-04  Bruno Haible  <bruno@clisp.org>
18059
18060         New module description section 'configure.ac-early'.
18061         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18062         (func_get_autoconf_early_snippet): New function.
18063         (func_import, func_create_testdir): Use it. Remove special cases for
18064         modules 'extensions' and 'lock'.
18065         * modules/extensions (configure.ac-early): Require
18066         gl_USE_SYSTEM_EXTENSIONS.
18067         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18068
18069 2007-02-04  Bruno Haible  <bruno@clisp.org>
18070
18071         Make use of gcj-4.3's -fsource and -ftarget option.
18072         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18073         and if so try the options -fsource and -ftarget.
18074         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18075         source_version, ftarget_option, target_version arguments.
18076         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18077         (is_envjavac_oldgcj_14_14_usable): Renamed from
18078         is_envjavac_gcj_14_14_usable.
18079         (is_envjavac_oldgcj_14_13_usable): Renamed from
18080         is_envjavac_gcj_14_13_usable.
18081         (is_gcj_present): Update.
18082         (is_gcj_43, is_gcj43_usable): New functions.
18083         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18084         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18085         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18086         try the options -fsource and -ftarget.
18087
18088 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18089
18090         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18091         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18092         larger value.
18093
18094 2007-02-03  Jim Meyering  <jim@meyering.net>
18095
18096         Give tools a better chance to allocate space for very large buffers.
18097         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18098
18099         Make pwd and readlink work also when run with an unreadable parent dir
18100         on systems with openat support.
18101         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18102         provided getcwd function, even when we have openat support.
18103         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18104
18105 2007-02-02  Bruno Haible  <bruno@clisp.org>
18106
18107         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18108         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18109         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18110         portability problems if one of these functions is only used on specific
18111         platforms.
18112         Reported by Paul Eggert.
18113
18114 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18117         is causing more trouble than it's curing.
18118         * lib/regex_internal.h (__mempcpy): Remove.
18119         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18120         (and make the code a tad smaller to boot).
18121         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18122
18123 2007-02-02  Jim Meyering  <jim@meyering.net>
18124
18125         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18126         section, not in the Makefile.am: one.
18127
18128 2007-02-02  Eric Blake  <ebb9@byu.net>
18129
18130         * lib/strchrnul.c: Always include config.h first.
18131
18132         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18133         gnulib strstr is not necessary here.
18134
18135 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18136
18137         * m4/socklen.m4: Fix typo.
18138
18139 2007-02-02  Eric Blake  <ebb9@byu.net>
18140
18141         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18142         * modules/netinet_in (Makefile.am): Likewise.
18143
18144 2007-02-01  Bruno Haible  <bruno@clisp.org>
18145
18146         * lib/string_.h (GL_LINK_WARNING): New macro.
18147         (strcasecmp, strstr, strcasestr): If provided by the system,
18148         conditionally define as a macro that leads to a warning instead of to
18149         an error.
18150         (strncasecmp): Conditionally define as a macro that leads to a warning.
18151
18152 2007-02-01  Karl Berry  <karl@gnu.org>
18153
18154         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18155
18156 2007-02-01  Bruno Haible  <bruno@clisp.org>
18157
18158         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18159         renamings.
18160
18161 2007-02-01  Eric Blake  <ebb9@byu.net>
18162
18163         * modules/regex (Depends-on): Revert dependence on mempcpy.
18164         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18165         module's definition of mempcpy.
18166         Reported by Paul Eggert.
18167
18168 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18169
18170         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18171         the symbol XYZ before redefining it.  This fixes a problem with
18172         programs that don't use XYZ, when compiled on systems that define
18173         XYZ to something else.
18174
18175 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18176
18177         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18178         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18179         writeable to group or other and (2) is intended to have a special
18180         mode bit that is set or cleared.  In such a case, the directory
18181         should be neither group- nor other-writeable until the special
18182         mode bits are right.
18183
18184 2007-01-31  Eric Blake  <ebb9@byu.net>
18185
18186         * modules/mountlist (Depends-on): Add strstr.
18187
18188         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18189         bug.
18190         * modules/string (Makefile.am): Remove redundant replacement.
18191         * modules/regex (Depends-on): Add mempcpy.
18192
18193 2007-01-31  Bruno Haible  <bruno@clisp.org>
18194
18195         New module description field 'Link'.
18196         * gnulib-tool (func_usage): Document --extract-link-directive.
18197         (sed_extract_prog): Recognize 'Link' directive.
18198         (func_get_link_directive): New function.
18199         (func_import): Show summary of link directives.
18200         Handle --extract-link-directive option.
18201         * modules/acl (Link): New section.
18202         * modules/clock-time (Link): New section.
18203         * modules/euidaccess (Link): New section.
18204         * modules/gettext (Link): New section.
18205         * modules/iconv (Link): New section.
18206         * modules/lock (Link): New section.
18207         * modules/nanosleep (Link): New section.
18208         * modules/readline (Link): New section.
18209
18210 2007-01-27  Bruno Haible  <bruno@clisp.org>
18211
18212         Enforce the use of gnulib modules for unportable <string.h> functions.
18213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18214         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18215         (gl_HEADER_STRING_H_BODY): Require it.
18216         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18217         the symbol XYZ to one that gives a link error.
18218         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18219         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18220         * modules/mempcpy (configure.ac): Likewise.
18221         * modules/memrchr (configure.ac): Likewise.
18222         * modules/stpcpy (configure.ac): Likewise.
18223         * modules/stpncpy (configure.ac): Likewise.
18224         * modules/strcase (configure.ac): Likewise.
18225         * modules/strcasestr (configure.ac): Likewise.
18226         * modules/strchrnul (configure.ac): Likewise.
18227         * modules/strdup (configure.ac): Likewise.
18228         * modules/strndup (configure.ac): Likewise.
18229         * modules/strnlen (configure.ac): Likewise.
18230         * modules/strpbrk (configure.ac): Likewise.
18231         * modules/strsep (configure.ac): Likewise.
18232         * modules/strstr (configure.ac): Likewise.
18233         * modules/strtok_r (configure.ac): Likewise.
18234
18235 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18236
18237         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18238
18239 2007-01-30  Jim Meyering  <jim@meyering.net>
18240
18241         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18242
18243 2007-01-29  Bruno Haible  <bruno@clisp.org>
18244
18245         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18246         * lib/execute.c: Likewise.
18247         * lib/pipe.c: Likewise.
18248         * lib/printf-args.h: Likewise.
18249         * lib/printf-args.c: Likewise.
18250         * lib/printf-parse.c: Likewise.
18251         * lib/vasnprintf.c: Likewise.
18252
18253 2007-01-29  Eric Blake  <ebb9@byu.net>
18254
18255         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18256         declaration.
18257
18258 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18259
18260         * lib/strptime.h (strptime): Use 'restrict' for args where
18261         POSIX requires this.
18262         * lib/strptime.c (strptime): Likewise.
18263         Change license notice from LGPL to GPL, since gnulib-tool will
18264         change this as needed.
18265         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18266         defined.
18267         Include "strptime.h" first, to check interface.
18268         Do not #undef _LIBC and _NL_CURRENT.
18269         Do not include <stdlib.h>; no longer needed.
18270         Include "time_r.h" and declare ptime_locale_status
18271         only if _LIBC is not defined.
18272         (__P): Remove unused macro.
18273         (match_string): Bring back glibc version, but use it only if _LIBC
18274         is defined.
18275         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18276         Remove unnecessary assertion and abort() call.
18277         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18278         * m4/strptime.m4: Fix serial number comment.
18279         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18280         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18281         (Depends-on): Add time_r.
18282
18283 2007-01-29  Bruno Haible  <bruno@clisp.org>
18284
18285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18286         strptime.
18287         * modules/strptime (Depends-on): Add stdbool.
18288         * lib/strptime.h: Include <time.h> always. Add comments.
18289
18290 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18291
18292         * modules/strptime: New file.
18293         * lib/strptime.h: New file.
18294         * lib/strptime.c: New file.
18295         * m4/strptime.m4: New file.
18296
18297 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18298
18299         * MODULES.html.sh: New module mpsort.
18300         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18301
18302         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18303         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18305         All uses changed.
18306         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18307         All uses changed.
18308         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18309         to _Restrict_.
18310         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18311         the parameter matches the prototype.
18312
18313 2007-01-28  Jim Meyering  <jim@meyering.net>
18314
18315         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18316         sys/time.h here, reverting that part of the previous patch:
18317         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18318
18319 2007-01-28  Bruno Haible  <bruno@clisp.org>
18320
18321         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18322         value of $(SYS_TIME_H).
18323         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18324         remove it conditionally, too. [added by Jim Meyering]
18325         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18327         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18328         GETTIMEOFDAY_REPLACEMENT to 1.
18329
18330 2007-01-28  Bruno Haible  <bruno@clisp.org>
18331
18332         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18333         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18335         Set UNISTD_H instead of UNISTD_H2.
18336         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18337
18338 2007-01-28  Bruno Haible  <bruno@clisp.org>
18339
18340         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18341         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18342
18343 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18344
18345         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18346         (func_create_testdir): Ensure C locale for `grep' and `tr'
18347         character ranges.
18348         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18349         ACLOCAL_AMFLAGS parsing state machine.
18350
18351 2007-01-27  Bruno Haible  <bruno@clisp.org>
18352
18353         * modules/unistr/base: Update.
18354
18355 2007-01-27  Bruno Haible  <bruno@clisp.org>
18356
18357         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18358         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18359         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18360         modules/unistr/u32-mbtouc.
18361         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18362         * lib/unistr.h: Update.
18363         * lib/linebreak.c: Update.
18364         * modules/unistr/u32-mbtouc: Renamed from
18365         modules/unistr/u32-mbtouc-safe.
18366         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18367         * lib/unistr.h: Update.
18368         * lib/unistr/u32-to-u8.c: Update.
18369         * lib/unistr/u32-to-u16.c: Update.
18370
18371 2007-01-27  Bruno Haible  <bruno@clisp.org>
18372
18373         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18374         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18375         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18376         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18377         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18378         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18379         modules/unistr/u16-mbtouc.
18380         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18381         * lib/unistr.h: Update.
18382         * lib/linebreak.c: Update.
18383         * modules/linebreak: Update.
18384         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18385         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18386         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18387         * modules/unistr/u16-mbtouc: Renamed from
18388         modules/unistr/u16-mbtouc-safe.
18389         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18390         * lib/unistr.h: Update.
18391         * lib/unistr/u16-to-u8.c: Update.
18392         * modules/unistr/u16-to-u8: Update.
18393         * lib/unistr/u16-to-u32.c: Update.
18394         * modules/unistr/u16-to-u32: Update.
18395
18396 2007-01-27  Bruno Haible  <bruno@clisp.org>
18397
18398         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18399         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18400         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18401         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18402         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18403         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18404         modules/unistr/u8-mbtouc.
18405         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18406         * lib/unistr.h: Update.
18407         * lib/striconveh.c: Update.
18408         * modules/striconveh: Update.
18409         * lib/linebreak.c: Update.
18410         * modules/linebreak: Update.
18411         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18412         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18413         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18414         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18415         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18416         * lib/unistr.h: Update.
18417         * lib/striconveh.c: Update.
18418         * modules/striconveh: Update.
18419         * lib/unistr/u8-to-u16.c: Update.
18420         * modules/unistr/u8-to-u16: Update.
18421         * lib/unistr/u8-to-u32.c: Update.
18422         * modules/unistr/u8-to-u32: Update.
18423
18424 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18425
18426         Sync from Libtool.
18427         * lib/argz.c: Do not include strings.h nor memory.h, include
18428         string.h unconditionally.  Patch by Simon Josefsson.
18429
18430 2007-01-27  Bruno Haible  <bruno@clisp.org>
18431
18432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18433         from gl_HEADER_STRING_H_BODY.
18434         (gl_HEADER_STRING_H_BODY): Require it.
18435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18436         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18437         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18438         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18439         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18440         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18442         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18443         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18445         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18446         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18447         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18448         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18449         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18450
18451 2007-01-27  Bruno Haible  <bruno@clisp.org>
18452
18453         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18454         check_PROGRAMS into noinst_PROGRAMS.
18455         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18456         check_PROGRAMS in this case.
18457         (func_import): Set for_test to false.
18458         (func_create_testdir): Set for_test to true.
18459
18460 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18461             Bruno Haible  <bruno@clisp.org>
18462
18463         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18464         (Depends-on): Add string.
18465         (Includes): Use <string.h> instead of strcasestr.h.
18466         * modules/string (Makefile.am): Also substitute the value of
18467         REPLACE_STRCASESTR.
18468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18469         assume strcasestr is declared in <string.h> not <strings.h>. Also
18470         set REPLACE_STRCASESTR.
18471         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18472         REPLACE_STRCASESTR.
18473         * lib/strcasestr.h: Remove file.
18474         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18475         * lib/string_.h (strcasestr): New declaration.
18476
18477 2007-01-27  Bruno Haible  <bruno@clisp.org>
18478
18479         * lib/string_.h: Use 'extern'.
18480
18481 2007-01-27  Jim Meyering  <jim@meyering.net>
18482
18483         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18484         of set-but-not-used local, "q".
18485
18486         * lib/mempcpy.c: Include <config.h> before <string.h>.
18487         This fixes a compilation error on HP-UX, due to the system's
18488         "restrict"-using mempcpy prototype.
18489
18490 2007-01-26  Bruno Haible  <bruno@clisp.org>
18491
18492         Small optimization.
18493         * lib/javacomp.c: Include c-strstr.h.
18494          (is_envjavac_gcj): Use c_strstr instead of strstr.
18495         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18496
18497 2007-01-26  Bruno Haible  <bruno@clisp.org>
18498
18499         * MODULES.html.sh (Unicode string functions): Add the new modules.
18500
18501         * modules/uniconv/u32-strconv-to-locale: New file.
18502         * lib/uniconv/u32-strconv-to-locale.c: New file.
18503
18504         * modules/uniconv/u16-strconv-to-locale: New file.
18505         * lib/uniconv/u16-strconv-to-locale.c: New file.
18506
18507         * modules/uniconv/u8-strconv-to-locale: New file.
18508         * lib/uniconv/u8-strconv-to-locale.c: New file.
18509
18510         * modules/uniconv/u32-strconv-from-locale: New file.
18511         * lib/uniconv/u32-strconv-from-locale.c: New file.
18512
18513         * modules/uniconv/u16-strconv-from-locale: New file.
18514         * lib/uniconv/u16-strconv-from-locale.c: New file.
18515
18516         * modules/uniconv/u8-strconv-from-locale: New file.
18517         * lib/uniconv/u8-strconv-from-locale.c: New file.
18518
18519         * modules/uniconv/u32-strconv-to-enc: New file.
18520         * lib/uniconv/u32-strconv-to-enc.c: New file.
18521         * modules/uniconv/u32-strconv-to-enc-tests: New file.
18522         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18523
18524         * modules/uniconv/u16-strconv-to-enc: New file.
18525         * lib/uniconv/u16-strconv-to-enc.c: New file.
18526         * lib/uniconv/u-strconv-to-enc.h: New file.
18527         * modules/uniconv/u16-strconv-to-enc-tests: New file.
18528         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18529
18530         * modules/uniconv/u8-strconv-to-enc: New file.
18531         * lib/uniconv/u8-strconv-to-enc.c: New file.
18532         * modules/uniconv/u8-strconv-to-enc-tests: New file.
18533         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18534
18535         * modules/uniconv/u32-strconv-from-enc: New file.
18536         * lib/uniconv/u32-strconv-from-enc.c: New file.
18537         * modules/uniconv/u32-strconv-from-enc-tests: New file.
18538         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18539
18540         * modules/uniconv/u16-strconv-from-enc: New file.
18541         * lib/uniconv/u16-strconv-from-enc.c: New file.
18542         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18543         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18544
18545         * modules/uniconv/u8-strconv-from-enc: New file.
18546         * lib/uniconv/u8-strconv-from-enc.c: New file.
18547         * lib/uniconv/u-strconv-from-enc.h: New file.
18548         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18549         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18550
18551         * modules/uniconv/u32-conv-from-enc: New file.
18552         * lib/uniconv/u32-conv-from-enc.c: New file.
18553         * modules/uniconv/u32-conv-from-enc-tests: New file.
18554         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18555
18556         * modules/uniconv/u16-conv-from-enc: New file.
18557         * lib/uniconv/u16-conv-from-enc.c: New file.
18558         * lib/uniconv/u-conv-from-enc.h: New file.
18559         * modules/uniconv/u16-conv-from-enc-tests: New file.
18560         * tests/uniconv/test-u16-conv-from-enc.c: New file.
18561
18562         * modules/uniconv/u8-conv-from-enc: New file.
18563         * lib/uniconv/u8-conv-from-enc.c: New file.
18564         * modules/uniconv/u8-conv-from-enc-tests: New file.
18565         * tests/uniconv/test-u8-conv-from-enc.c: New file.
18566
18567         * modules/uniconv/base: New file.
18568         * lib/uniconv.h: New file.
18569
18570 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18571
18572         * doc/gnulib-tool.texi (Initial import): Update to match current
18573         behavior with strdup module.
18574         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18575         * lib/memmem.h: Remove; all uses removed.  This is now done
18576         by <string.h>.
18577         * lib/mempcpy.h: Likewise.
18578         * lib/memrchr.h: Likewise.
18579         * lib/stpcpy.h: Likewise.
18580         * lib/stpncpy.h: Likewise.
18581         * lib/strcase.h: Likewise.
18582         * lib/strchrnul.h: Likewise.
18583         * lib/strdup.h: Likewise.
18584         * lib/strndup.h: Likewise.
18585         * lib/strnlen.h: Likewise.
18586         * lib/strpbrk.h: Likewise.
18587         * lib/strsep.h: Likewise.
18588         * lib/strstr.h: Likewise.
18589         * lib/strtok_r.h: Likewise.
18590         * lib/string_.h: New file.
18591         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18592         Rely on <string.h> instead.
18593         * lib/canon-host.c: Likewise.
18594         * lib/chdir-long.c: Likewise.
18595         * lib/concatpath.c: Likewise.
18596         * lib/exclude.c: Likewise.
18597         * lib/fchdir.c: Likewise.
18598         * lib/getaddrinfo.c: Likewise.
18599         * lib/getcwd.c: Likewise.
18600         * lib/getsubopt.c: Likewise.
18601         * lib/glob.c: Likewise.
18602         * lib/hard-locale.c: Likewise.
18603         * lib/iconvme.c: Likewise.
18604         * lib/javacomp.c: Likewise.
18605         * lib/mempcpy.c: Likewise.
18606         * lib/memrchr.c: Likewise.
18607         * lib/regex_internal.h: Likewise.
18608         * lib/stpncpy.c: Likewise.
18609         * lib/strcasecmp.c: Likewise.
18610         * lib/strchrnul.c: Likewise.
18611         * lib/strdup.c: Likewise.
18612         * lib/striconv.c: Likewise.
18613         * lib/striconveh.c: Likewise.
18614         * lib/striconveha.c: Likewise.
18615         * lib/strncasecmp.c: Likewise.
18616         * lib/strndup.c: Likewise.
18617         * lib/strnlen.c: Likewise.
18618         * lib/strsep.c: Likewise.
18619         * lib/strstr.c: Likewise.
18620         * lib/strtok_r.c: Likewise.
18621         * lib/userspec.c: Likewise.
18622         * lib/w32spawn.h: Likewise.
18623         * lib/xstrndup.c: Likewise.
18624         * lib/mountlist.c (strstr): Remove decl.
18625         * m4/string_h.m4: New file.
18626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18627         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18629         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18630         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18631         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18632         Set REPLACE_STRCASECMP if necessary.
18633         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18634         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18635         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18637         HAVE_DECL_STRDUP if necessary.
18638         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18639         since gl_FUNC_STRNDUP does that now.
18640         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18641         Check for decl here...
18642         (gl_PREREQ_STRNLEN): ... not here.
18643         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18644         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18645         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18646         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18647         necessary.
18648         * modules/string: New file.
18649         * modules/memmem (Files): Remove special-purpose include file.
18650         (Depends-on): Add string.
18651         (Include): Include <string.h>, not the removed file.
18652         * modules/mempcpy: Likewise.
18653         * modules/memrchr: Likewise.
18654         * modules/stpcpy: Likewise.
18655         * modules/stpncpy: Likewise.
18656         * modules/strcase: Likewise.
18657         * modules/strchrnul: Likewise.
18658         * modules/strdup: Likewise.
18659         * modules/strndup: Likewise.
18660         * modules/strnlen: Likewise.
18661         * modules/strpbrk: Likewise.
18662         * modules/strsep: Likewise.
18663         * modules/strstr: Likewise.
18664         * modules/strtok_r: Likewise.
18665         * tests/test-dirname.c: Don't include "strdup.h", since
18666         <string.h> now suffices.
18667         * tests/test-memmem.c: Don't include "memmem.h", since
18668         <string.h> now suffices.
18669
18670 2007-01-25  Bruno Haible  <bruno@clisp.org>
18671
18672         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18673         *resultp is 0.
18674
18675         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18676         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18677         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18678         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18679
18680         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18681         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18682         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18683         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18684         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18685         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18686
18687 2007-01-24  Bruno Haible  <bruno@clisp.org>
18688
18689         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18691         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18692         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18693         gl_FUNC_FTS_CORE.
18694         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18695         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18696         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18697         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18698         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18699         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18700         gl_FUNC_FCHOWNAT.
18701         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18702         gl_FUNC_STRFTIME.
18703         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18704         Reported by Ralf Wildenhues.
18705
18706 2007-01-24  Bruno Haible  <bruno@clisp.org>
18707
18708         Drop AC_REQUIRE calls that are redundant with the module dependencies.
18709         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18710         gl_GETADDRINFO.
18711         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18712         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18713         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18714
18715 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18716
18717         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18718         Don't use 'exit'; just return from 'main'.
18719         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18720
18721         * lib/fnmatch_.h: Readjust white space and comments to match
18722         glibc, to avoid spurious diffs.
18723
18724 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18727         2004-12-01 change by Jakub Jelinek, since this code won't compile
18728         if !LIBC.  Problem reported by Bob Proulx.
18729
18730 2007-01-23  Bruno Haible  <bruno@clisp.org>
18731
18732         * lib/striconveh.c: Include c-strcaseeq.h.
18733         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18734         * modules/striconveh (Depends-on): Add c-strcaseeq.
18735
18736 2007-01-23  Bruno Haible  <bruno@clisp.org>
18737
18738         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18739
18740         * modules/c-strcaseeq: New file.
18741         * lib/c-strcaseeq.h: New file.
18742
18743         * modules/streq: New file.
18744         * lib/streq.h: New file.
18745
18746 2007-01-23  Bruno Haible  <bruno@clisp.org>
18747
18748         * modules/striconveha-tests: New file.
18749         * tests/test-striconveha.c: New file.
18750
18751         * lib/striconveha.h: Include <stdbool.h>.
18752         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18753         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18754         (mem_iconveha_notranslit): Renamed from mem_iconveha.
18755         (mem_iconveha): New function.
18756         (str_iconveha_notranslit): Renamed from str_iconveha.
18757         (str_iconveha): New function.
18758         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18759         c-strcase.
18760
18761 2007-01-23  Bruno Haible  <bruno@clisp.org>
18762
18763         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18764         encodings without forgiving before trying any encoding with handler.
18765         (str_iconveha): Try all encodings without forgiving before trying any
18766         encoding with handler.
18767
18768 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18769
18770         Import the following changes from libc.
18771
18772         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
18773
18774         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18775
18776         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
18777
18778         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18779         normal_bracket label.
18780
18781         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
18782
18783         [BZ #361]
18784         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18785         to normal_bracket after fetching the next character.
18786
18787 2007-01-22  Bruno Haible  <bruno@clisp.org>
18788
18789         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18790         argument.
18791         * lib/striconveh.c (iconv_carefully_1): New function.
18792         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18793         argument.
18794         (str_cd_iconveh): Update.
18795         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18796         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18797         * tests/test-striconveh.c (MAGIC): New macro.
18798         (new_offsets): New function.
18799         (main): Test call with and without offsets.
18800
18801 2007-01-22  Bruno Haible  <bruno@clisp.org>
18802
18803         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18804         * modules/sys_select (Makefile.am): Likewise.
18805         * modules/sys_socket (Makefile.am): Likewise.
18806         * modules/sys_time (Makefile.am): Likewise.
18807
18808 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18809
18810         * modules/gettimeofday (License): Change from GPL to LGPL, since
18811         gettimeofday is a library function.
18812
18813 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18814
18815         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18816
18817 2007-01-21  Bruno Haible  <bruno@clisp.org>
18818
18819         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18820
18821 2007-01-21  Bruno Haible  <bruno@clisp.org>
18822
18823         * modules/striconveha: New file.
18824         * lib/striconveha.h: New file.
18825         * lib/striconveha.c: New file.
18826         * MODULES.html.sh (Internationalization functions): Add striconveha.
18827         * lib/striconv.c (str_iconv): Optimize the case of an empty input
18828         string.
18829         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18830
18831 2007-01-21  Bruno Haible  <bruno@clisp.org>
18832
18833         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18834         * lib/striconveh.c (str_iconveh): Likewise.
18835
18836 2007-01-21  Bruno Haible  <bruno@clisp.org>
18837
18838         * lib/striconveh.h (mem_iconveh): New declaration.
18839         * lib/striconveh.c (mem_iconveh): New function.
18840         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18841
18842 2007-01-21  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18845
18846         * lib/striconveh.h (mem_cd_iconveh): Change specification.
18847         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18848         original result buffer.
18849         (str_cd_iconveh): Update.
18850         * tests/test-striconveh.c (main): Update.
18851
18852         * lib/striconv.h (mem_cd_iconv): Change specification.
18853         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18854         result buffer.
18855         (str_cd_iconv): Update.
18856         * tests/test-striconv.c (main): Update.
18857
18858 2007-01-21  Bruno Haible  <bruno@clisp.org>
18859
18860         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18861
18862 2007-01-20  Jim Meyering  <jim@meyering.net>
18863
18864         * lib/userspec.c (parse_with_separator): If a user or group string
18865         starts with "+", skip the corresponding name-to-ID look-up, since
18866         such a look-up must fail: user and group names may not include "+".
18867
18868 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18869
18870         * lib/poll.c: Include sys/time.h and time.h unconditionally,
18871         since we now assume the sys_time module.
18872         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18873         check for sys/time.h; no longer needed.
18874         * modules/poll (Depends-on): Depend on sys_time.
18875
18876 2007-01-18  Bruno Haible  <bruno@clisp.org>
18877
18878         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18879         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18880
18881         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18882         gettimeofday.
18883
18884         * tests/test-gettimeofday.c: Include <time.h>.
18885         (dummy): Remove variable.
18886
18887         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18888         gl_HEADER_SYS_TIME_H.
18889         (gl_HEADER_SYS_TIME_H): New macro.
18890
18891         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
18892         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18894         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
18895         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18896         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
18897         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
18898         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18899         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
18900         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
18901         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18902
18903         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
18904         last change; it caused a compilation error when cross-compiling to
18905         Cygwin.
18906
18907 2007-01-18  Jim Meyering  <jim@meyering.net>
18908
18909         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
18910         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
18911         than the race-prone "test -d sys || mkdir sys".
18912         (configure.ac): Use AC_PROG_MKDIR_P.
18913         * modules/sys_select: Likewise.
18914         * modules/sys_socket: Likewise.
18915         * modules/sys_time: Likewise.
18916
18917 2007-01-18  Eric Blake  <ebb9@byu.net>
18918
18919         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
18920         replace gettimeofday.
18921         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
18922         name, to avoid infinite recursion.
18923
18924 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
18925
18926         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
18927         module sys_time.
18928         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
18929         assume timespec.h defines struct timeval.
18930         * lib/settime.c: Likewise.
18931         * lib/utimens.c: Likewise.
18932         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
18933         since we now assume the gettimeofday module.
18934         * lib/tempname.c (__gen_tempname): Likewise.
18935         * lib/gettimeofday.h: Remove.
18936         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
18937         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
18938         Include <time.h>, for 'time()'.
18939         (localtime_buffer_addr): Also use this workaround if
18940         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
18941         to simplify the uses.  All uses changed.
18942         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
18943         that #undef is inside {}, and 'const' follows type name consistently.
18944         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
18945         (gettimeofday): Do not use the maximum possible value for
18946         tv->tv_usec, since that might break usages other than ls.c.
18947         Instead, we'll leave ls.c alone.  This undoes today's patch
18948         by Bruno.  Add a compile-time warning for 1s-clock resolution;
18949         we've never observed the problem but might as well keep the
18950         canary.
18951         * lib/nanosleep.c: Include timespec.h first, for interface check.
18952         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
18953         now assume the sys_time module.
18954         * lib/tempname.c: Likewise.
18955         * lib/timespec.h: Likewise.
18956         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
18957         needed.
18958         * lib/strftime.c: Likewise.
18959         * lib/timespec.h: Likewise.
18960         * lib/posixtm.c: Include posixtm.h first, for interface check.
18961         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
18962         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
18963         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18964         * lib/sys_time_.h: New file.
18965         * lib/timespec.h (struct timespec): Use long int, not long.
18966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18967         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18968         Remove obsolescent call to AC_HEADER_TIME.
18969         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18971         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18972         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
18973         Likewise.
18974         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18975         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
18976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
18977         into the sys_time module.  Check for gettimeofday just once.
18978         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
18979         for gettimeofday signature to just check the signature.  Merely
18980         compile it, since linking doesn't test signature.  Improve test for
18981         whether gettimeofday.o is actually needed.
18982         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
18983         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
18984         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
18985         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18986         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
18987         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
18988         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
18989         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
18990         than worrying about sys/time.h.
18991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18992         Don't bother worrying about TIME_WITH_SYS_TIME.
18993         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18994         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
18995         * m4/sys_time_h.m4: New file.
18996         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
18997         Don't include sys/time.h.  Return from main rather than exiting.
18998         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
18999         all uses changed.
19000         * modules/gethrxtime (Depends-on): Add sys_time.
19001         * modules/gettime (Depends-on): Likewise.
19002         * modules/gettimeofday (Depends-on): Likewise.
19003         * modules/nanosleep (Depends-on): Likewise.
19004         * modules/settime (Depends-on): Likewise.
19005         * modules/tempname (Depends-on): Likewise.
19006         * modules/utimens (Depends-on): Likewise.
19007         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19008         (Include:) Change back to <sys/time.h>.
19009         (Maintainer:) Add self.
19010         * modules/sys_time: New file.
19011         * modules/tempname (Depends-on): Add gettimeofday.
19012         * tests/test-gettimeofday.c: Include <sys/time.h>
19013         rather than gettimeofday.h.
19014
19015 2007-01-17  Bruno Haible  <bruno@clisp.org>
19016
19017         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19018         the license default to GPL.
19019         (func_create_testdir): Don't complain if a module is LGPL and its
19020         tests module depends on GPLed modules.
19021
19022 2007-01-17  Bruno Haible  <bruno@clisp.org>
19023
19024         * lib/gettimeofday.c (gettimeofday): Add code for the case
19025         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19026         maximum possible value for tv->tv_usec, rather than the minimum one.
19027
19028 2005-10-08  Martin Lambers  <marlam@marlam.de>
19029 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19030 2007-01-16  Bruno Haible  <bruno@clisp.org>
19031
19032         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19033         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19034         gl_FUNC_GETTIMEOFDAY.
19035         (Include): Add gettimeofday.h.
19036         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19037         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19038         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19039         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19040         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19041         * lib/gettimeofday.h: New file.
19042         * lib/gettimeofday.c: Include <sys/timeb.h>.
19043         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19044         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19045         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19046         fall back on time().
19047
19048         * tests/test-gettimeofday.c: New file.
19049         * modules/gettimeofday-tests: New file.
19050
19051 2007-01-16  Eric Blake  <ebb9@byu.net>
19052
19053         * modules/fnmatch (Depends-on): Depend on wchar.
19054         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19055         * m4/fnmatch.m4: Likewise.
19056         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19057         * m4/mbchar.m4: Likewise.
19058         * modules/mbswidth (Depends-on): Depend on wchar.
19059         * lib/mbswidth.c: Assume <wchar.h>.
19060         * m4/mbswidth.m4: Likewise.
19061         * modules/quotearg (Depends-on): Depend on wchar.
19062         * lib/quotearg.c: Assume <wchar.h>.
19063         * m4/quotearg.m4: Likewise.
19064         * modules/regex (Depends-on): Depend on wchar.
19065         * lib/regex_internal.h: Assume <wchar.h>.
19066         * m4/regex.m4: Likewise.
19067         * modules/stdint (Depends-on): Depend on wchar.
19068         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19069         * m4/stdint.m4: Likewise.
19070         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19071         * modules/strftime (Depends-on): Depend on wchar.
19072         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19073         * modules/strtol (Depends-on): Depend on wchar.
19074         * lib/strtol.c: Assume <wchar.h>.
19075         * modules/wcwidth (Depends-on): Depend on wchar.
19076         * lib/wcwidth.h: Assume <wchar.h>.
19077         * m4/wcwidth.m4: Likewise.
19078
19079 2007-01-16  Bruno Haible  <bruno@clisp.org>
19080
19081         * modules/csharpexec-script: New, created from...
19082         * modules/csharpexec: ... this.
19083
19084 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19085
19086         * modules/javaexec-script: New, created from...
19087         * modules/javaexec: ... this.
19088
19089 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19090
19091         * modules/poll (Dependencies): Add sys_select.
19092
19093 2007-01-15  Jim Meyering  <jim@meyering.net>
19094
19095         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19096         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19097         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19098         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19099
19100 2007-01-15  Bruno Haible  <bruno@clisp.org>
19101
19102         * modules/striconveh: New file.
19103         * lib/striconveh.h: New file.
19104         * lib/striconveh.c: New file.
19105         * MODULES.html.sh (Internationalization functions): Add striconveh.
19106
19107         * modules/striconveh-tests: New file.
19108         * tests/test-striconveh.c: New file.
19109
19110 2007-01-15  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19113         not from GNU libiconv or GNU libc.
19114
19115 2007-01-15  Bruno Haible  <bruno@clisp.org>
19116
19117         * doc/gnulib-intro.texi (Copyright): Explain the different license
19118         terms for module descriptions, autoconf macros, tests, documentation.
19119
19120 2007-01-14  Bruno Haible  <bruno@clisp.org>
19121
19122         * modules/striconv-tests: New file.
19123         * tests/test-striconv.c: New file.
19124
19125 2007-01-14  Bruno Haible  <bruno@clisp.org>
19126
19127         * modules/iconv-tests: New file.
19128         * tests/test-iconv.c: New file.
19129
19130 2007-01-14  Bruno Haible  <bruno@clisp.org>
19131
19132         * gnulib-tool (func_get_license): For test modules, use the license of
19133         the main module.
19134
19135 2007-01-14  Bruno Haible  <bruno@clisp.org>
19136
19137         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19138         if iconv is found to exist.
19139
19140 2007-01-14  Bruno Haible  <bruno@clisp.org>
19141
19142         * modules/c-ctype-tests: New file.
19143         * tests/test-c-ctype.c: New file.
19144
19145 2007-01-14  Bruno Haible  <bruno@clisp.org>
19146
19147         * modules/binary-io-tests: New file.
19148         * tests/test-binary-io.sh: New file.
19149         * tests/test-binary-io.c: New file.
19150
19151 2007-01-14  Bruno Haible  <bruno@clisp.org>
19152
19153         * modules/array-oset-tests: New file.
19154         * tests/test-array_oset.c: New file.
19155
19156 2007-01-14  Bruno Haible  <bruno@clisp.org>
19157
19158         * modules/array-list-tests: New file.
19159         * tests/test-array_list.c: New file.
19160
19161 2007-01-14  Bruno Haible  <bruno@clisp.org>
19162
19163         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19164         and make.
19165         Reported by Simon Josefsson in
19166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19167
19168 2007-01-14  Bruno Haible  <bruno@clisp.org>
19169
19170         * modules/allocsa-tests: New file.
19171         * tests/test-allocsa.c: New file.
19172
19173 2007-01-14  Bruno Haible  <bruno@clisp.org>
19174
19175         * modules/fchdir (Depends-on): Add absolute-header.
19176         * modules/unistd (Depends-on): Likewise.
19177
19178 2006-12-30  Bruno Haible  <bruno@clisp.org>
19179
19180         * modules/fchdir: New file.
19181         * modules/unistd (Files): Add lib/unistd_.h.
19182         (Makefile.am): Generate unistd.h from unistd_.h.
19183         * lib/fchdir.c: New file.
19184         * lib/dirent_.h: New file.
19185         * lib/unistd_.h: New file.
19186         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19187         * m4/fchdir.m4: New file.
19188         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19189         (gl_HEADER_UNISTD): Invoke it.
19190         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19191         function.
19192         * lib/backupfile.c (opendir, closedir): Undefine.
19193         * lib/chown.c (open, close): Undefine.
19194         * lib/clean-temp.c (open, close): Undefine.
19195         * lib/copy-file.c (open, close): Undefine.
19196         * lib/execute.c (open, close): Undefine.
19197         * lib/fsusage.c (open, close): Undefine.
19198         * lib/gc-gnulib.c (open, close): Undefine.
19199         * lib/getcwd.c (opendir, closedir): Undefine.
19200         * lib/glob.c (opendir, closedir): Undefine.
19201         * lib/javacomp.c (open, close): Undefine.
19202         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19203         * lib/openat-proc.c (open, close): Undefine.
19204         * lib/pagealign_alloc.c (open, close): Undefine.
19205         * lib/pipe.c (open, close): Undefine.
19206         * lib/progreloc.c (open, close): Undefine.
19207         * lib/savedir.c (opendir, closedir): Undefine.
19208         * lib/utime.c (open, close): Undefine.
19209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19210
19211 2007-01-10  Bruno Haible  <bruno@clisp.org>
19212
19213         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19214
19215 2007-01-12  Eric Blake  <ebb9@byu.net>
19216
19217         Provide a robust <wchar.h>.  Further simplifications are now
19218         possible in other modules, but not included here.
19219         * modules/wchar: New module.
19220         * m4/wchar.m4: New file.
19221         * lib/wchar_.h: Likewise.
19222         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19223         of the new module.
19224         * MODULES.html.sh (Extended multibyte and wide character utilities):
19225         New section.
19226
19227 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19228
19229         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19230         to a reasonable default for memory allocation.
19231         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19232         file system that reports garbage st_size values for symlinks.
19233         Problem reported by Liyang Hu.
19234
19235 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19236
19237         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19238         Emacs .#* auto-save files).
19239
19240 2007-01-11  Bruno Haible  <bruno@clisp.org>
19241
19242         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19243         directory.
19244
19245 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19246
19247         Use @...@ consistently in lib/wctype_.h.
19248         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19249         on it being set to 1 or 0.
19250         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19251         go back to AC_SUBSTing it.
19252         * modules/wctype (Makefile.am): Undo previous change.
19253
19254 2007-01-10  Eric Blake  <ebb9@byu.net>
19255
19256         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19257         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19258         * modules/wctype (Makefile.am): Likewise.
19259         Reported by Chris McGuire.
19260
19261 2007-01-10  Jim Meyering  <jim@meyering.net>
19262
19263         fts.c: a small readability/maintainability improvement
19264         * lib/fts.c (fts_read): Make this code slightly more readable and
19265         maintainable by hoisting the "sp->fts_cur = p" assignments to
19266         immediately follow the statements that set P.  Derived from
19267         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19268
19269 2007-01-10  Eric Blake  <ebb9@byu.net>
19270
19271         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19272         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19274         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19275         Reported by Chris McGuire.
19276
19277 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19278
19279         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19280         in sed script.
19281
19282 2007-01-09  Bruno Haible  <bruno@clisp.org>
19283
19284         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19285         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19286         variables.
19287         (func_module): Use them.
19288
19289 2007-01-09  Bruno Haible  <bruno@clisp.org>
19290
19291         * modules/unistr/base: New file.
19292         * lib/unistr.h: New file.
19293
19294         * modules/unistr/u8-to-u16: New file.
19295         * lib/unistr/u8-to-u16.c: New file.
19296
19297         * modules/unistr/u8-to-u32: New file.
19298         * lib/unistr/u8-to-u32.c: New file.
19299
19300         * modules/unistr/u16-to-u8: New file.
19301         * lib/unistr/u16-to-u8.c: New file.
19302
19303         * modules/unistr/u16-to-u32: New file.
19304         * lib/unistr/u16-to-u32.c: New file.
19305
19306         * modules/unistr/u32-to-u8: New file.
19307         * lib/unistr/u32-to-u8.c: New file.
19308
19309         * modules/unistr/u32-to-u16: New file.
19310         * lib/unistr/u32-to-u16.c: New file.
19311
19312         * modules/unistr/u8-check: New file.
19313         * modules/unistr/u16-check: New file.
19314         * modules/unistr/u32-check: New file.
19315         * lib/unistr/u8-check.c: New file.
19316         * lib/unistr/u16-check.c: New file.
19317         * lib/unistr/u32-check.c: New file.
19318
19319         * modules/unistr/u8-chr: New file.
19320         * modules/unistr/u16-chr: New file.
19321         * modules/unistr/u32-chr: New file.
19322         * lib/unistr/u8-chr.c: New file.
19323         * lib/unistr/u16-chr.c: New file.
19324         * lib/unistr/u32-chr.c: New file.
19325
19326         * modules/unistr/u8-cmp: New file.
19327         * modules/unistr/u16-cmp: New file.
19328         * modules/unistr/u32-cmp: New file.
19329         * lib/unistr/u8-cmp.c: New file.
19330         * lib/unistr/u16-cmp.c: New file.
19331         * lib/unistr/u32-cmp.c: New file.
19332
19333         * modules/unistr/u8-cpy: New file.
19334         * modules/unistr/u16-cpy: New file.
19335         * modules/unistr/u32-cpy: New file.
19336         * lib/unistr/u8-cpy.c: New file.
19337         * lib/unistr/u16-cpy.c: New file.
19338         * lib/unistr/u32-cpy.c: New file.
19339         * lib/unistr/u-cpy.h: New file.
19340
19341         * modules/unistr/u8-cpy-alloc: New file.
19342         * modules/unistr/u16-cpy-alloc: New file.
19343         * modules/unistr/u32-cpy-alloc: New file.
19344         * lib/unistr/u8-cpy-alloc.c: New file.
19345         * lib/unistr/u16-cpy-alloc.c: New file.
19346         * lib/unistr/u32-cpy-alloc.c: New file.
19347         * lib/unistr/u-cpy-alloc.h: New file.
19348
19349         * modules/unistr/u8-endswith: New file.
19350         * modules/unistr/u16-endswith: New file.
19351         * modules/unistr/u32-endswith: New file.
19352         * lib/unistr/u8-endswith.c: New file.
19353         * lib/unistr/u16-endswith.c: New file.
19354         * lib/unistr/u32-endswith.c: New file.
19355         * lib/unistr/u-endswith.h: New file.
19356
19357         * modules/unistr/u8-mblen: New file.
19358         * modules/unistr/u16-mblen: New file.
19359         * modules/unistr/u32-mblen: New file.
19360         * lib/unistr/u8-mblen.c: New file.
19361         * lib/unistr/u16-mblen.c: New file.
19362         * lib/unistr/u32-mblen.c: New file.
19363
19364         * modules/unistr/u8-mbtouc: New file.
19365         * modules/unistr/u16-mbtouc: New file.
19366         * modules/unistr/u32-mbtouc: New file.
19367         * lib/unistr/u8-mbtouc.c: New file.
19368         * lib/unistr/u16-mbtouc.c: New file.
19369         * lib/unistr/u32-mbtouc.c: New file.
19370
19371         * modules/unistr/u8-mbtouc-safe: New file.
19372         * modules/unistr/u16-mbtouc-safe: New file.
19373         * modules/unistr/u32-mbtouc-safe: New file.
19374         * lib/unistr/u8-mbtouc-safe.c: New file.
19375         * lib/unistr/u16-mbtouc-safe.c: New file.
19376         * lib/unistr/u32-mbtouc-safe.c: New file.
19377
19378         * modules/unistr/u8-move: New file.
19379         * modules/unistr/u16-move: New file.
19380         * modules/unistr/u32-move: New file.
19381         * lib/unistr/u8-move.c: New file.
19382         * lib/unistr/u16-move.c: New file.
19383         * lib/unistr/u32-move.c: New file.
19384         * lib/unistr/u-move.h: New file.
19385
19386         * modules/unistr/u8-next: New file.
19387         * modules/unistr/u16-next: New file.
19388         * modules/unistr/u32-next: New file.
19389         * lib/unistr/u8-next.c: New file.
19390         * lib/unistr/u16-next.c: New file.
19391         * lib/unistr/u32-next.c: New file.
19392
19393         * modules/unistr/u8-prev: New file.
19394         * modules/unistr/u16-prev: New file.
19395         * modules/unistr/u32-prev: New file.
19396         * lib/unistr/u8-prev.c: New file.
19397         * lib/unistr/u16-prev.c: New file.
19398         * lib/unistr/u32-prev.c: New file.
19399
19400         * modules/unistr/u8-set: New file.
19401         * modules/unistr/u16-set: New file.
19402         * modules/unistr/u32-set: New file.
19403         * lib/unistr/u8-set.c: New file.
19404         * lib/unistr/u16-set.c: New file.
19405         * lib/unistr/u32-set.c: New file.
19406         * lib/unistr/u-set.h: New file.
19407
19408         * modules/unistr/u8-startswith: New file.
19409         * modules/unistr/u16-startswith: New file.
19410         * modules/unistr/u32-startswith: New file.
19411         * lib/unistr/u8-startswith.c: New file.
19412         * lib/unistr/u16-startswith.c: New file.
19413         * lib/unistr/u32-startswith.c: New file.
19414         * lib/unistr/u-startswith.h: New file.
19415
19416         * modules/unistr/u8-stpcpy: New file.
19417         * modules/unistr/u16-stpcpy: New file.
19418         * modules/unistr/u32-stpcpy: New file.
19419         * lib/unistr/u8-stpcpy.c: New file.
19420         * lib/unistr/u16-stpcpy.c: New file.
19421         * lib/unistr/u32-stpcpy.c: New file.
19422         * lib/unistr/u-stpcpy.h: New file.
19423
19424         * modules/unistr/u8-stpncpy: New file.
19425         * modules/unistr/u16-stpncpy: New file.
19426         * modules/unistr/u32-stpncpy: New file.
19427         * lib/unistr/u8-stpncpy.c: New file.
19428         * lib/unistr/u16-stpncpy.c: New file.
19429         * lib/unistr/u32-stpncpy.c: New file.
19430         * lib/unistr/u-stpncpy.h: New file.
19431
19432         * modules/unistr/u8-strcat: New file.
19433         * modules/unistr/u16-strcat: New file.
19434         * modules/unistr/u32-strcat: New file.
19435         * lib/unistr/u8-strcat.c: New file.
19436         * lib/unistr/u16-strcat.c: New file.
19437         * lib/unistr/u32-strcat.c: New file.
19438         * lib/unistr/u-strcat.h: New file.
19439
19440         * modules/unistr/u8-strchr: New file.
19441         * modules/unistr/u16-strchr: New file.
19442         * modules/unistr/u32-strchr: New file.
19443         * lib/unistr/u8-strchr.c: New file.
19444         * lib/unistr/u16-strchr.c: New file.
19445         * lib/unistr/u32-strchr.c: New file.
19446
19447         * modules/unistr/u8-strcmp: New file.
19448         * modules/unistr/u16-strcmp: New file.
19449         * modules/unistr/u32-strcmp: New file.
19450         * lib/unistr/u8-strcmp.c: New file.
19451         * lib/unistr/u16-strcmp.c: New file.
19452         * lib/unistr/u32-strcmp.c: New file.
19453
19454         * modules/unistr/u8-strcpy: New file.
19455         * modules/unistr/u16-strcpy: New file.
19456         * modules/unistr/u32-strcpy: New file.
19457         * lib/unistr/u8-strcpy.c: New file.
19458         * lib/unistr/u16-strcpy.c: New file.
19459         * lib/unistr/u32-strcpy.c: New file.
19460         * lib/unistr/u-strcpy.h: New file.
19461
19462         * modules/unistr/u8-strcspn: New file.
19463         * modules/unistr/u16-strcspn: New file.
19464         * modules/unistr/u32-strcspn: New file.
19465         * lib/unistr/u8-strcspn.c: New file.
19466         * lib/unistr/u16-strcspn.c: New file.
19467         * lib/unistr/u32-strcspn.c: New file.
19468         * lib/unistr/u-strcspn.h: New file.
19469
19470         * modules/unistr/u8-strdup: New file.
19471         * modules/unistr/u16-strdup: New file.
19472         * modules/unistr/u32-strdup: New file.
19473         * lib/unistr/u8-strdup.c: New file.
19474         * lib/unistr/u16-strdup.c: New file.
19475         * lib/unistr/u32-strdup.c: New file.
19476         * lib/unistr/u-strdup.h: New file.
19477
19478         * modules/unistr/u8-strlen: New file.
19479         * modules/unistr/u16-strlen: New file.
19480         * modules/unistr/u32-strlen: New file.
19481         * lib/unistr/u8-strlen.c: New file.
19482         * lib/unistr/u16-strlen.c: New file.
19483         * lib/unistr/u32-strlen.c: New file.
19484         * lib/unistr/u-strlen.h: New file.
19485
19486         * modules/unistr/u8-strmblen: New file.
19487         * modules/unistr/u16-strmblen: New file.
19488         * modules/unistr/u32-strmblen: New file.
19489         * lib/unistr/u8-strmblen.c: New file.
19490         * lib/unistr/u16-strmblen.c: New file.
19491         * lib/unistr/u32-strmblen.c: New file.
19492
19493         * modules/unistr/u8-strmbtouc: New file.
19494         * modules/unistr/u16-strmbtouc: New file.
19495         * modules/unistr/u32-strmbtouc: New file.
19496         * lib/unistr/u8-strmbtouc.c: New file.
19497         * lib/unistr/u16-strmbtouc.c: New file.
19498         * lib/unistr/u32-strmbtouc.c: New file.
19499
19500         * modules/unistr/u8-strncat: New file.
19501         * modules/unistr/u16-strncat: New file.
19502         * modules/unistr/u32-strncat: New file.
19503         * lib/unistr/u8-strncat.c: New file.
19504         * lib/unistr/u16-strncat.c: New file.
19505         * lib/unistr/u32-strncat.c: New file.
19506         * lib/unistr/u-strncat.h: New file.
19507
19508         * modules/unistr/u8-strncmp: New file.
19509         * modules/unistr/u16-strncmp: New file.
19510         * modules/unistr/u32-strncmp: New file.
19511         * lib/unistr/u8-strncmp.c: New file.
19512         * lib/unistr/u16-strncmp.c: New file.
19513         * lib/unistr/u32-strncmp.c: New file.
19514
19515         * modules/unistr/u8-strncpy: New file.
19516         * modules/unistr/u16-strncpy: New file.
19517         * modules/unistr/u32-strncpy: New file.
19518         * lib/unistr/u8-strncpy.c: New file.
19519         * lib/unistr/u16-strncpy.c: New file.
19520         * lib/unistr/u32-strncpy.c: New file.
19521         * lib/unistr/u-strncpy.h: New file.
19522
19523         * modules/unistr/u8-strnlen: New file.
19524         * modules/unistr/u16-strnlen: New file.
19525         * modules/unistr/u32-strnlen: New file.
19526         * lib/unistr/u8-strnlen.c: New file.
19527         * lib/unistr/u16-strnlen.c: New file.
19528         * lib/unistr/u32-strnlen.c: New file.
19529         * lib/unistr/u-strnlen.h: New file.
19530
19531         * modules/unistr/u8-strpbrk: New file.
19532         * modules/unistr/u16-strpbrk: New file.
19533         * modules/unistr/u32-strpbrk: New file.
19534         * lib/unistr/u8-strpbrk.c: New file.
19535         * lib/unistr/u16-strpbrk.c: New file.
19536         * lib/unistr/u32-strpbrk.c: New file.
19537         * lib/unistr/u-strpbrk.h: New file.
19538
19539         * modules/unistr/u8-strrchr: New file.
19540         * modules/unistr/u16-strrchr: New file.
19541         * modules/unistr/u32-strrchr: New file.
19542         * lib/unistr/u8-strrchr.c: New file.
19543         * lib/unistr/u16-strrchr.c: New file.
19544         * lib/unistr/u32-strrchr.c: New file.
19545
19546         * modules/unistr/u8-strspn: New file.
19547         * modules/unistr/u16-strspn: New file.
19548         * modules/unistr/u32-strspn: New file.
19549         * lib/unistr/u8-strspn.c: New file.
19550         * lib/unistr/u16-strspn.c: New file.
19551         * lib/unistr/u32-strspn.c: New file.
19552         * lib/unistr/u-strspn.h: New file.
19553
19554         * modules/unistr/u8-strstr: New file.
19555         * modules/unistr/u16-strstr: New file.
19556         * modules/unistr/u32-strstr: New file.
19557         * lib/unistr/u8-strstr.c: New file.
19558         * lib/unistr/u16-strstr.c: New file.
19559         * lib/unistr/u32-strstr.c: New file.
19560         * lib/unistr/u-strstr.h: New file.
19561
19562         * modules/unistr/u8-strtok: New file.
19563         * modules/unistr/u16-strtok: New file.
19564         * modules/unistr/u32-strtok: New file.
19565         * lib/unistr/u8-strtok.c: New file.
19566         * lib/unistr/u16-strtok.c: New file.
19567         * lib/unistr/u32-strtok.c: New file.
19568         * lib/unistr/u-strtok.h: New file.
19569
19570         * modules/unistr/u8-uctomb: New file.
19571         * modules/unistr/u16-uctomb: New file.
19572         * modules/unistr/u32-uctomb: New file.
19573         * lib/unistr/u8-uctomb.c: New file.
19574         * lib/unistr/u16-uctomb.c: New file.
19575         * lib/unistr/u32-uctomb.c: New file.
19576
19577         * MODULES.html.sh (Unicode string functions): Add the new modules.
19578
19579 2007-01-08  Bruno Haible  <bruno@clisp.org>
19580
19581         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19582         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19583         subdirectories.
19584
19585 2007-01-08  Karl Berry  <karl@gnu.org>
19586
19587         * doc/error.texi: mention that main() fns must set program_name
19588         when progname is used.
19589
19590 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19591
19592         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19593         WCTYPE_H is empty, for the benefit of builds from non-distclean
19594         directories.  Problem reported by Eric Blake in
19595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19596
19597 2007-01-08  Bruno Haible  <bruno@clisp.org>
19598
19599         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19600         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19601         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19602         PROVIDE_CANONICALIZE_FILENAME_MODE.
19603         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19604
19605 2007-01-08  Bruno Haible  <bruno@clisp.org>
19606
19607         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19608         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19609         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19610         * lib/fts.c: Likewise.
19611         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19612
19613 2006-12-25  Bruno Haible  <bruno@clisp.org>
19614
19615         * modules/utf8-ucs4-safe: New file.
19616         * lib/utf8-ucs4-safe.h: New file.
19617         * lib/unistr/utf8-ucs4-safe.c: New file.
19618
19619         * modules/utf16-ucs4-safe: New file.
19620         * lib/utf16-ucs4-safe.h: New file.
19621         * lib/unistr/utf16-ucs4-safe.c: New file.
19622
19623         * MODULES.html.sh (Unicode string functions): Add the new modules.
19624
19625 2007-01-08  Bruno Haible  <bruno@clisp.org>
19626
19627         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19628         (Depends-on): Add unitypes.
19629         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19630         (u8_mbtouc_aux): Move out to separate file.
19631         (u8_mbtouc): Use ucs4_t, uint8_t types.
19632         * lib/unistr/utf8-ucs4.c: New file.
19633
19634         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19635         (Depends-on): Add unitypes.
19636         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19637         (u16_mbtouc_aux): Move out to separate file.
19638         (u16_mbtouc): Use ucs4_t, uint16_t types.
19639         * lib/unistr/utf16-ucs4.c: New file.
19640
19641         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19642         (Depends-on): Add unitypes.
19643         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19644         (u8_uctomb_aux): Move out to separate file.
19645         (u8_uctomb): Use ucs4_t, uint8_t types.
19646         * lib/unistr/ucs4-utf8.c: New file.
19647
19648         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19649         (Depends-on): Add unitypes.
19650         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19651         (u16_uctomb_aux): Move out to separate file.
19652         (u16_uctomb): Use ucs4_t, uint16_t types.
19653         * lib/unistr/ucs4-utf16.c: New file.
19654
19655 2006-12-25  Bruno Haible  <bruno@clisp.org>
19656
19657         * modules/unitypes: New file.
19658         * lib/unitypes.h: New file.
19659         * MODULES.html.sh (func_all_modules): New section "Unicode string
19660         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19661         this section. Add unitypes.
19662
19663 2007-01-08  Bruno Haible  <bruno@clisp.org>
19664
19665         Avoid variable names that conflict with those from libtool.
19666         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19667         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19668         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19669         library_names_spec to acl_library_names_spec, hardcode_* to
19670         acl_hardcode_*.
19671         Reported by Ralf Wildenhues.
19672
19673 2007-01-08  Bruno Haible  <bruno@clisp.org>
19674
19675         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19676         definition.
19677         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19678         definition.
19679         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19680         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19681         definition.
19682         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19683         definition.
19684         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19685         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19686         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19687         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19688         definition.
19689         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19690         definition.
19691         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19692         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19693         GC_USE_<algorithm>.
19694         * lib/gc-libgcrypt.c: Likewise.
19695         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19696         * modules/gc-arctwo (configure.ac): Likewise.
19697         * modules/gc-des (configure.ac): Likewise.
19698         * modules/gc-hmac-md5 (configure.ac): Likewise.
19699         * modules/gc-hmac-sha1 (configure.ac): Likewise.
19700         * modules/gc-md2 (configure.ac): Likewise.
19701         * modules/gc-md4 (configure.ac): Likewise.
19702         * modules/gc-md5 (configure.ac): Likewise.
19703         * modules/gc-random (configure.ac): Likewise.
19704         * modules/gc-rijndael (configure.ac): Likewise.
19705         * modules/gc-sha1 (configure.ac): Likewise.
19706
19707 2007-01-08  Bruno Haible  <bruno@clisp.org>
19708
19709         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19710         macro definition.
19711         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19712         definition.
19713         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19714         definition.
19715         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19716         * modules/fcntl-safer (configure.ac): Likewise.
19717         * modules/fopen-safer (configure.ac): Likewise.
19718         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19719         GNULIB_FWRITEERROR macro definition.
19720
19721 2007-01-08  Bruno Haible  <bruno@clisp.org>
19722
19723         * m4/gnulib-common.m4: New file.
19724         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19725         (func_get_filelist): Add m4/gnulib-common.m4.
19726
19727 2007-01-08  Bruno Haible  <bruno@clisp.org>
19728
19729         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19730         command.
19731
19732 2007-01-08  Jim Meyering  <jim@meyering.net>
19733
19734         Use a more robust test for a "can't happen" condition.
19735         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19736         narrowed the st_size value.  Presuming the "can't happen" condition
19737         is true, that narrowing could conceivably convert an invalid st_size
19738         value into a valid one.  Instead, use a change based on Matthew
19739         Woehlke's original patch.
19740
19741         Slight readability improvement: use an assert-like macro
19742         in place of literal "abort ()" uses.
19743         * lib/fts.c (fts_assert): Define.
19744         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19745         Use this macro instead of a bare 'abort'.
19746
19747 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         Don't worry about using IRIX 5.3's wctype.h broken definitions;
19750         simply work around them.
19751         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19752         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19753         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19754         declaring.
19755         Don't bother to define as macros, since the standard doesn't require it.
19756         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19757         longer worry about IRIX 5.3.
19758         (HAVE_WCTYPE_CTMP_BUG): Remove.
19759
19760 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19761
19762         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19763         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
19764         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19765         Problems reported by Georg Schwarz for IRIX 5.3.
19766
19767         * gnulib-tool (autoconf_minversion): Take the maximum version number
19768         found, not the minimum.  Problem reported by James Youngman.
19769
19770 2007-01-03  Karl Berry  <karl@gnu.org>
19771
19772         * doc/error.texi: new file, explaining interaction with progname.
19773         * doc/gnulib.texi: include it.  Update copyright.
19774
19775 2007-01-03  Simon Josefsson  <simon@josefsson.org>
19776
19777         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19778         AC_CANONICAL_HOST, to improve autobuild outputs.
19779
19780 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
19781             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19782
19783         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19784         sockets, server sockets, and other file descriptors.  Count errors
19785         to compute the return value.  Reorder the code a bit to be easier
19786         to follow.  Don't set event bits that were not requested (except
19787         POLLERR and POLLHUP).
19788
19789 2007-01-01  Bruno Haible  <bruno@clisp.org>
19790
19791         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19792
19793 2007-01-03  Jim Meyering  <jim@meyering.net>
19794
19795         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
19796
19797 2007-01-02  Bruno Haible  <bruno@clisp.org>
19798
19799         * modules/settime (Include): Require timespec.h.
19800         * modules/nanosleep (Include): Likewise.
19801
19802 2007-01-01  Bruno Haible  <bruno@clisp.org>
19803
19804         * gnulib-tool (func_emit_copyright_notice): Bump year.
19805         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19806
19807 2007-01-01  Bruno Haible  <bruno@clisp.org>
19808
19809         Improve support for OpenBSD.
19810         * build-aux/config.rpath (libname_spec): Export.
19811         (library_names_spec): New variable. Export.
19812         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19813         library_names_spec from the config.rpath output. Locate shared library
19814         through the name pattern in library_names_spec.
19815
19816 2007-01-01  Eric Blake  <ebb9@byu.net>
19817
19818         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19819
19820 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19821
19822         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19823         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
19824         assume the C locale, and avoid an "eval" that could cause trouble.
19825         Problem with SORT reported by Bob Proulx.
19826
19827         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19828         Define.  Trivial patch from Henning Nielsen Lund, originally
19829         sent to bug-grep@gnu.org today.
19830
19831 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19832
19833         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19834         struct stat.  Problem reported by Henning Nielsen Lund.
19835         * lib/acl.c: Include acl.h first, to check interface.  Don't
19836         bother to include sys/types.h and sys/stat.h again.
19837
19838 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19839
19840         Import the following change from libc; problem reported by
19841         Sven Verdoolaege.
19842
19843         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
19844
19845         [BZ #1373]
19846         * lib/argp.h: Remove __NTH for __argp_usage inline function.
19847
19848 2006-12-28  Jim Meyering  <jim@meyering.net>
19849
19850         * build-aux/announce-gen: Do not assume that the package
19851         builds any of tar.gz, tar.bz2, and .xdelta files.
19852         Suggestion from Simon Josefsson.
19853
19854 2006-12-28  Simon Josefsson  <simon@josefsson.org>
19855
19856         * modules/announce-gen: New file.
19857
19858 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19859
19860         * lib/mbchar.h: Just include <wctype.h>; the wctype module
19861         handles its gotchas now.
19862         * lib/mbswidth.c: Likewise.
19863         * lib/wcwidth.h: Likewise.
19864         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19865         and iswcntrl; the wctype module does this stuff now.
19866         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19868         * modules/mbchar (Depends-on): Add wctype.
19869         * modules/mbswidth (Depends-on): Likewise.
19870         * modules/wcwidth (Depends-on): Likewise.
19871
19872 2006-12-27  Eric Blake  <ebb9@byu.net>
19873
19874         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19875         module uses more than what <wctype.h> is required to provide.
19876
19877 2006-12-26  Eric Blake  <ebb9@byu.net>
19878
19879         * gnulib-tool (sed_extract_prog): Avoid space-tab.
19880
19881 2006-12-26  Eric Blake  <ebb9@byu.net>
19882
19883         * modules/absolute-header: New module.
19884         * modules/fcntl (Depends-on): Depend on it.
19885         * modules/inttypes (Depends-on): Likewise.
19886         * modules/stdint (Depends-on): Likewise.
19887         * modules/sys_stat (Depends-on): Likewise.
19888         * modules/wctype (Depends-on): Likewise.
19889         * MODULES.html.sh (Support for building libraries and
19890         executables): Document it.
19891
19892 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         * gnulib-tool (SED): Remove, undoing previous change.
19895         The problem was that it broke coreutils on Solaris, because
19896         "sed --posix" leaked into a makefile.
19897         (sed): New alias, if 'alias' and GNU sed.
19898
19899 2006-12-24  Jim Meyering  <jim@meyering.net>
19900
19901         Work around an fchownat bug in glibc-2.4:
19902         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
19903         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
19904         in spite of the -P option.
19905         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
19906         New macros.
19907         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
19908         * modules/openat (Files): Add lib/fchownat.c.
19909         * lib/openat.c (fchownat): Don't define here.  Move to...
19910         * lib/fchownat.c: ...this new file.
19911
19912 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19913
19914         Fix bug reported by Bruno Haible in
19915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
19916         where quotearg.c didn't compile on Mac OS X 10.2 because it
19917         lacks <wchar.h> and wint_t.
19918         * lib/wctype_.h (__wctype_wint_t): New type.
19919         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
19920         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
19921         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
19922         Arg is now of type __wctype_wint_t, not wint_t.
19923         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
19924         substitute HAVE_WINT_T.
19925         * modules/wctype (Files): Add m4/wint_t.m4.
19926         (wctype.h): Substitute HAVE_WINT_T.
19927
19928 2006-12-23  Bruno Haible  <bruno@clisp.org>
19929
19930         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
19931
19932 2006-12-23  Bruno Haible  <bruno@clisp.org>
19933
19934         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
19935         S_ISLNK.
19936         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
19937         mingw.
19938
19939 2006-12-22  Bruno Haible  <bruno@clisp.org>
19940
19941         * lib/copy-file.c: Include acl.h.
19942         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
19943         Close the file descriptors only after being done with copy_acl.
19944         * modules/copy-file (Depends-on): Add acl.
19945
19946 2006-12-22  Bruno Haible  <bruno@clisp.org>
19947
19948         * gnulib-tool (SED): New variable.
19949         Use $SED instead of sed everywhere.
19950
19951 2006-12-22  Bruno Haible  <bruno@clisp.org>
19952
19953         * modules/no-c++: New file.
19954         * m4/no-c++.m4: New file.
19955         * MODULES.html.sh (Support for building libraries and executables):
19956         Add no-c++.
19957
19958 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19959
19960         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19961         Include <limits.h>, and use its INT_MAX to rewrite the
19962         j loop so that it does not overflow 'int'.  Problem reported by
19963         Ralf Wildenhues in
19964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19965         Play it safe by shifting left by 1 rather than multiplying by 2,
19966         as GCC is less likely to optimize this away when the value
19967         is signed (when it assumes overflow leads to undefined behavior).
19968         Also, don't assume time_t uses two's complement.
19969
19970 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19971
19972         * MODULES.html.sh: New module wctype.
19973         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
19974         * lib/fnmatch.c: Don't bother to include <wchar.h> before
19975         <wctype.h>, since the new wctype module should fix this.
19976         * lib/quotearg.c: Include <wctype.h> unconditionally, since
19977         the wctype module should arrange for it.
19978         * lib/regex_internal.h: Likewise.
19979         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
19980         since the wctype module should handle this now.
19981         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
19982         * modules/fnmatch (Depends-on): Add wctype.
19983         * modules/quotearg (Depends-on): Likewise.
19984         * modules/regex (Depends-on): Likewise.
19985
19986 2006-12-19  Bruno Haible  <bruno@clisp.org>
19987
19988         * lib/strdup.h [C++]: Wrap definitions in extern "C".
19989         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
19990
19991 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19992
19993         * modules/savewd (Depends-on): Fix dependency on fcntl.
19994
19995 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19996
19997         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
19998         conforms to C99, rather than relying on the user's environment
19999         setting of STDINT_H.
20000
20001 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20002         and Eric Blake  <ebb9@byu.net>
20003
20004         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20005         This is more consistent with the other defines here.
20006         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20007         Port to z/OS.  Problem reported by Paul Gilmartin.
20008         Change local vars to use gl_ prefix rather than ac_.
20009         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20010         with other defines.
20011         * modules/double-slash-root: New module.
20012         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20013         (Depends-on): Add double-slash-root.
20014         * MODULES.html.sh (File system functions): Mention new module.
20015
20016 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20017
20018         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20019         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20020         This is for the benefit of gzip, which doesn't do i18n.
20021
20022 2006-12-12  Jim Meyering  <jim@meyering.net>
20023
20024         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20025         Reported by Andreas Schwab <schwab@suse.de>.
20026
20027 2006-12-12  Bruno Haible  <bruno@clisp.org>
20028
20029         Merge these changes.
20030         2006-09-05  Bruno Haible  <bruno@clisp.org>
20031         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20032         iconv_alloc succeeded.
20033         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20034         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20035         test for " && dest " at the end - dest is always != NULL there. Call
20036         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20037         with 2xNULL arguments, also to flush the state storage. Handle the
20038         IRIX iconv behaviour. Realloc the final result, to throw away unused
20039         memory.
20040
20041 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20042
20043         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20044         and fchmodat unconditionally, since glibc 2.4 has them.
20045         Problem reported by Arkadiusz Miskiewicz.
20046
20047 2006-12-10  Bruno Haible  <bruno@clisp.org>
20048
20049         * gnulib-tool (func_import): Show the include files only for those
20050         modules that are copied and specified.
20051         Reported by Karl Berry.
20052
20053 2006-12-08  Jim Meyering  <jim@meyering.net>
20054
20055         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20056         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20057
20058         * build-aux/announce-gen: Add two new options, both optional:
20059         --bootstrap-tools=TOOL_LIST
20060               a comma-separated list of tools, e.g.,
20061               autoconf,automake,bison,gnulib
20062         --gnulib-snapshot-date=DATE
20063               if gnulib is in the bootstrap tool list,
20064               then report this as the snapshot date.
20065               If not specified, use the current date/time.
20066               If you specify a date here, be sure it's UTC.
20067
20068 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20069
20070         * tests/test-argp-2.sh: Fix test to match actual output.
20071         (func_compare): Fix sed script to be portable.
20072
20073 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20074
20075         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20076         workaround for this case.  It is not autoconfigured now; offhand
20077         it's hard to see how to autoconfigure it.
20078
20079 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20080
20081         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20082         a directory that is about to be chowned.  Such a directory's
20083         initial file permissions should permit the owner only and this
20084         should not be changed until after the chown, since the group and
20085         other bits would be incorrect if they granted permission before
20086         the chown.
20087
20088         Fix porting problem for iswctype reported by Georg Schwarz in:
20089         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20090         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20091         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20092         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20093         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20094
20095 2006-12-03  Jim Meyering  <jim@meyering.net>
20096
20097         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20098         p->fts_statp may not yet be defined.
20099         (fts_read): Instead, set it in the caller, once p->fts_statp is
20100         sure to be defined, and corresponds to a top-level directory.
20101         This bug made du -x fail.  Here's the coreutils test case:
20102         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20103         Reported by Mike Frysinger.
20104
20105 2006-12-01  Jim Meyering  <jim@meyering.net>
20106
20107         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20108         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20109         Reported by Simon Josefsson.
20110
20111 2006-11-30  Jim Meyering  <jim@meyering.net>
20112
20113         * m4/warning.m4: Use the all-permissive copyright notice
20114         recommended by RMS (rather than LGPL).
20115         * m4/vararrays.m4: Likewise.
20116         * m4/flexmember.m4: Likewise.
20117
20118 2006-11-29  Bruno Haible  <bruno@clisp.org>
20119
20120         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20121         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20122         using +=.
20123         Reported by Simon Josefsson <simon@josefsson.org>.
20124
20125 2006-11-28  James Youngman <jay@gnu.org>
20126
20127         * README: Advise users that they might find the bug-gnulib@gnu.org
20128         and autotools-announce@gnu.org mailing lists useful.
20129
20130 2006-11-28  Bruno Haible  <bruno@clisp.org>
20131
20132         * m4/ptrdiff_max.m4: Remove file.
20133
20134 2006-11-21  Bruno Haible  <bruno@clisp.org>
20135
20136         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20137         _AC_COMPUTE_INT.
20138         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20139         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20140         _AC_COMPUTE_INT.
20141         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20142         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20143         _AC_COMPUTE_INT.
20144         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20145
20146 2006-11-28  Jim Meyering  <jim@meyering.net>
20147
20148         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20149         warning from "gcc -Wshadow" about shadowing the builtin.
20150
20151 2006-11-27  Bruno Haible  <bruno@clisp.org>
20152
20153         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20154         _AC_COMPUTE_INT.
20155         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20156
20157 2006-11-27  Bruno Haible  <bruno@clisp.org>
20158             Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20161
20162 2006-11-26  Bruno Haible  <bruno@clisp.org>
20163
20164         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20165         noinst_LTLIBRARIES.
20166
20167 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20168             Bruno Haible  <bruno@clisp.org>
20169
20170         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20171         if compiling with "gcc -ansi".
20172
20173 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20174
20175         Fix some incompatibilities with gcc -ansi -pedantic.
20176         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20177         if compiling pedantically with GCC, unless it's C99 or later.
20178         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20179         it mishandles gcc -ansi -pedantic as well.
20180         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20181         if gcc -pedantic.
20182         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20183         initializers for struct if -pedantic, unless it's C99 or later.
20184
20185 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20186
20187         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20188         Don't close an fd more than once. Identical atimes indicate
20189         success, not failure.
20190
20191 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20192
20193         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20194
20195 2006-11-23  Jim Meyering  <jim@meyering.net>
20196
20197         * build-aux/announce-gen: New file.  From coreutils.
20198
20199 2006-11-22  Jim Meyering  <jim@meyering.net>
20200
20201         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20202         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20203         (fts_read): Use a temporary to narrow the overused st_size member
20204         before using it in a switch statement.  Reported by Matthew Woehlke.
20205
20206         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20207         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20208
20209 2006-11-20  Bruno Haible  <bruno@clisp.org>
20210
20211         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20212         changequote instead of pairs of brackets.
20213         Reported by Andreas Schwab <schwab@suse.de>.
20214
20215 2006-11-21  Jim Meyering  <jim@meyering.net>
20216
20217         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20218         so as to remain compatible with older compilers.
20219         Patch from Michael Deutschmann.
20220
20221 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20222
20223         * MODULES.html.sh (File system functions): Add openat.
20224
20225         * lib/openat.h (rpl_fstatat): New macro, if
20226         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20227         (fstatat): Define to rpl_fstatat under the same conditions,
20228         unless COMPILING_FSTATAT.
20229         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20230         seems to have the bug.
20231         * lib/fstatat.c: New file.
20232         * modules/openat (Files): Add it.
20233
20234 2006-11-20  Bruno Haible  <bruno@clisp.org>
20235
20236         * Makefile: New file.
20237
20238 2006-11-20  Jim Meyering  <jim@meyering.net>
20239
20240         The beginnings of syntax-related checks for gnulib.
20241         * lib/Makefile: New file.
20242         * lib/t-idcache: New script.  Ensure that the two halves of
20243         idcache.c stay in sync.
20244
20245         * lib/idcache.c: Adjust comments in user- and group- portions to
20246         be more accurate, and to be consistent with one another.
20247
20248 2006-11-20  Jim Meyering  <jim@meyering.net>
20249
20250         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20251         continue using the flexible array member (thus, this module performs
20252         half as many malloc calls), with the addition that...
20253         (getgroup, getuser): Consistently record a non-match via an empty
20254         "name" string, and map an empty string match to a NULL return value.
20255         * modules/idcache (Depends-on): Re-add flexmember.
20256
20257         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20258         (getuidbyname, getgroup, getgidbyname): Likewise.
20259
20260         Use cleaner syntax: NULL rather than 0.
20261         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20262
20263 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20264
20265         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20266         It mishandled the case where the group was missing.
20267         Problem reported by Greg Schafer.
20268         * modules/idcache: Likewise.
20269
20270 2006-11-18  Jim Meyering  <jim@meyering.net>
20271
20272         * check-module (%exempt_header): Add exception for some
20273         conditionally-included headers.
20274
20275         * modules/i-ring (Depends-on): Add verify.
20276         (License): Change to LGPL.
20277
20278 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20279
20280         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20281         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20282         and inttostr.h.  Use snprintf rather than uinttostr, so that
20283         LGPLed code doesn't depend on GPLed.
20284
20285 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20286
20287         * modules/inline (License): Change from GPL to LGPL.
20288
20289 2006-11-17  Jim Meyering  <jim@meyering.net>
20290
20291         * modules/d-type (License): Switch to LGPL.
20292
20293 2006-11-15  Bruno Haible  <bruno@clisp.org>
20294
20295         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20296
20297 2006-11-15  Eric Blake  <ebb9@byu.net>
20298
20299         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20300         the module dependency.
20301
20302 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20303             Bruno Haible  <bruno@clisp.org>
20304
20305         * gnulib-tool (func_create_testdir): Add license consistency check.
20306
20307 2006-11-15  Eric Blake  <ebb9@byu.net>
20308
20309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20310         random "(cached)" in configure output.
20311
20312 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20313
20314         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20315         test for conforming inttypes.h is both announced and cached.
20316
20317         * MODULES.html.sh (seen_modules, seen_files): New variables.
20318         (func_module): Rewrite to use a few less gnulib-tool and sed
20319         invocations.  Avoid a couple of quadratic algorithms for ...
20320         (missed_modules, missed_files): ... these, with ...
20321         (func_append, func_tmpdir): ... these new functions, from
20322         gnulib-tool.  Analogously, install traps for cleanup.
20323
20324         * tests/test-gc.c (main): Remove unused variables.
20325         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20326
20327 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20328
20329         * modules/inttostr (License): Change to LGPL.
20330
20331 2006-11-14  Eric Blake  <ebb9@byu.net>
20332
20333         * modules/tempname (License): Change to LGPL.
20334
20335 2006-11-14  Eric Blake  <ebb9@byu.net>
20336
20337         * doc/functions.texi (Function Portability): *printf functions on
20338         Cygwin now understand all POSIX size specifiers.
20339
20340 2006-11-14  Bruno Haible  <bruno@clisp.org>
20341
20342         * modules/c-ctype (License): Change to LGPL.
20343
20344 2006-11-12  Bruno Haible  <bruno@clisp.org>
20345
20346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20347         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20348         for GNOME libraries, for which the include files are installed in
20349         subdirectories of $prefix/include.
20350
20351 2006-11-12  Bruno Haible  <bruno@clisp.org>
20352
20353         * m4/lib-link.m4: Require at least autoconf-2.54.
20354         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20355         name to underscores for the --with option.
20356
20357 2006-11-13  Bruno Haible  <bruno@clisp.org>
20358
20359         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20360         the tests directory.
20361         Reported by Ralf Wildenhues.
20362
20363 2006-11-13  Bruno Haible  <bruno@clisp.org>
20364
20365         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20366         (func_emit_initmacro_end): Undo the override here.
20367         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20368         Works around the famous automake error in coreutils.
20369
20370 2006-11-13  Eric Blake  <ebb9@byu.net>
20371
20372         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20373         element, not its node.
20374
20375 2006-11-12  Bruno Haible  <bruno@clisp.org>
20376
20377         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20378         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20379
20380 2006-11-12  Bruno Haible  <bruno@clisp.org>
20381
20382         * gnulib-tool: New option --local-symlink.
20383         (func_usage): Document it.
20384         (lsymbolic): New variable.
20385         (func_import, func_create_testdir): If --symlink was not specified,
20386         test whether --local-symlink was specified and the file comes from
20387         the local_gnulib_dir.
20388
20389 2006-11-12  Bruno Haible  <bruno@clisp.org>
20390
20391         * gnulib-tool (func_ln): New function.
20392         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20393
20394 2006-11-12  Bruno Haible  <bruno@clisp.org>
20395
20396         Finish support for source files in subdirectories.
20397         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20398         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20399         AUTOMAKE_OPTIONS.
20400         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20401
20402 2006-11-12  Bruno Haible  <bruno@clisp.org>
20403
20404         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20405         EXTRA_lib_SOURCES augmentation.
20406         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20407
20408 2006-11-12  Jim Meyering  <jim@meyering.net>
20409
20410         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20411         file descriptors.  This also averts a failure on systems with
20412         native openat support when a traversed directory lacks "x" access.
20413         * lib/fts_.h: Include "i-ring.h"
20414         (struct FTS) [fts_fd_ring]: New member.
20415         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20416         (FCHDIR): Add parentheses.
20417         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20418         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20419         When descending, rather than simply closing the previous
20420         fts_cwd_fd value, push that file descriptor onto the ring.
20421         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20422         (fts_open): Initialize the new fd_ring member.
20423         (fts_close): Clear the ring.
20424         (fts_safe_changedir): When possible, use our new fd_ring to skip
20425         the diropen and fstat and dev/ino comparison that would normally
20426         accompany a virtual `chdir ("..")'.
20427
20428         * modules/fts (Depends-on): Add i-ring.
20429         * modules/i-ring: New module.
20430         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20431         * m4/i-ring.m4: New file.
20432
20433 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20434
20435         * gnulib-tool (func_create_testdir): Fix replacement of
20436         `build-aux' in configure.ac.  Run autotools in gltests
20437         subdirectory.
20438         (func_create_testdir, func_create_megatestdir, test): There is
20439         no need for '--force' in most autotool invocations in a new
20440         tree.  Actually fail the whole test if any of the tools, or the
20441         configure or make stages fail.
20442
20443         Sync from Automake.
20444         * build-aux/gnupload: Revert last change.  Add pointer to upload
20445         instructions of the GNU Maintenance Instructions.
20446         Suggestion by Karl Berry.
20447
20448 2006-11-10  Jim Meyering  <jim@meyering.net>
20449
20450         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20451
20452 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20453
20454         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20455         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20456         (bind_textdomain_codeset) [! ENABLE_NLS]:
20457         Evaluate all the arguments.  That way, callers get compatible behavior
20458         if the arguments have side effects.  Also, it avoids some GCC
20459         diagnostics in some cases; Joel E. Denny reported problems when Bison
20460         was configured with --enable-gcc-warnigs.
20461
20462 2006-11-10  Jim Meyering  <jim@meyering.net>
20463
20464         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20465         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20466         account.
20467
20468 2006-11-10  Jim Meyering  <jim@meyering.net>
20469
20470         * modules/inline: New file/module.
20471         * modules/xalloc (Files): Remove m4/inline.m4.
20472         (Depends-on): Add inline, instead.
20473         * modules/oset: Likewise.
20474         * modules/list: Likewise.
20475
20476 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20479         Problem reported by Matthew Woehlke.
20480
20481 2006-11-09  Bruno Haible  <bruno@clisp.org>
20482
20483         * lib/tempname.c (gen_tempname): Remove variant that invokes
20484         __gen_tempname.
20485         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20486         __gen_tempname.
20487
20488 2006-11-08  Bruno Haible  <bruno@clisp.org>
20489
20490         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20491         to 'yes' instead of 'cross-compiling'.
20492
20493 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20494
20495         * lib/quotearg.h (quotearg_free): New decl.
20496         * lib/quotearg.c (quotearg_free): New function.
20497         (slot0, nslots, slotvec0, slotvec):
20498         Now file-scope so that quotearg_free can get at them.
20499
20500 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20501
20502         Sync from Automake.
20503         * build-aux/gnupload: Add missing 'gnu' to example URL.
20504         Report by Karl Berry.
20505
20506 2006-11-08  Bruno Haible  <bruno@clisp.org>
20507
20508         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20509         Suggested by Paul Eggert.
20510
20511 2006-11-08  Jim Meyering  <jim@meyering.net>
20512
20513         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20514         It's already included if !_LIBC.
20515         (fts_safe_changedir): Add a comment.
20516
20517 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20518
20519         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20520         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20521         Matthew Woehlke.
20522
20523         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20524         definitions up, to avoid colliding with change below.
20525         (static_inline) [HAVE_INLINE]: New macro.
20526         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20527         Provide extern decls when !HAVE_INLINE.  Do not define unless
20528         static_inline is defined, either by us or by xmalloc.c.  Use
20529         static_inline rather than static inline.
20530         (XCALLOC): Optimize sizeof(T) = 1 case.
20531         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20532
20533 2006-11-07  Bruno Haible  <bruno@clisp.org>
20534
20535         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20536         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20537         AC_C_INLINE.
20538         * modules/xalloc (Files): Add m4/inline.m4.
20539
20540 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20541
20542         * README: Fix typo.
20543         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20544         (Miscellanous Notes): ...from this.
20545
20546 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20547
20548         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20549         Mention that offsetof should be used instead of sizeof.
20550         From Bruno Haible.
20551
20552 2006-11-07  Bruno Haible  <bruno@clisp.org>
20553
20554         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20555
20556 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20557
20558         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20559         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20560         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20561         (gl_tree_add_before, gl_tree_add_after):
20562         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20563         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20564         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20565         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20566         (gl_linked_add_after, gl_linked_add_at): Likewise.
20567         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20568         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20569         (gl_tree_add_before, gl_tree_add_after): Likewise.
20570         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20571         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20572         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20573
20574 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20575
20576         * lib/gl_oset.h: Use C comment style, not C++ comment style.
20577
20578 2006-11-06  Bruno Haible  <bruno@clisp.org>
20579
20580         * m4/inline.m4: New file.
20581         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20582         * modules/list (Files): Add m4/inline.m4.
20583         * modules/oset (Files): Likewise.
20584
20585 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20586
20587         * lib/idcache.c: Include <stddef.h>, for offsetof.
20588         (struct userid.name): Change from char * to a flexible array member.
20589         All uses changed.
20590         * modules/idcache (Depends-on): Add flexmember.
20591
20592         * MODULES.html.sh (Core language properties): New module flexmember.
20593         * modules/flexmember, m4/flexmember.m4: New files.
20594
20595         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20596         inline functions that are identical with the old xnmalloc_inline,
20597         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20598         that we can avoid some unnecessary integer multiplications and
20599         divisions in the common case where the element size is known at
20600         compile time.
20601         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20602         needed.
20603         (xnboundedmalloc): Remove.
20604         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20605         arguments, for consistency with rest of this header.
20606         (xcharalloc): Rewrite using XNMALLOC.
20607         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20608         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20609         versions have been moved to lib/xalloc.h and renamed to be the
20610         non-*_inline versions.
20611         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20612         and xnrealloc functions, since those functions are now inline and
20613         now call us.
20614         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20615         renaming described above.
20616         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20617         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20618         captures the dependency in AC_C_INLINE.
20619
20620         New module canonicalize-lgpl, proposed by Charles Wilson in
20621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20622         with a few small changes afterwards.
20623         * MODULES.html.sh (File system functions): New module
20624         canonicalize-lgpl.
20625         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20626         and canonicalize_file_name.
20627         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20628         * modules/canonicalize-lgpl: New files.
20629
20630 2006-11-05  Bruno Haible  <bruno@clisp.org>
20631
20632         * gnulib-tool (func_import, func_create_testdir): Create directories
20633         also for files in subdirectories of lib/.
20634
20635 2006-11-05  Bruno Haible  <bruno@clisp.org>
20636
20637         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20638         ANSI C compliant.
20639
20640 2006-11-03  Bruno Haible  <bruno@clisp.org>
20641
20642         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20643         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20644         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20645         (xnboundedmalloc): New inline function.
20646         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20647         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20648         xmalloc.
20649         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20650         xmalloc.
20651         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20652         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20653         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20654         xmalloc.
20655         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20656         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20657         xmalloc.
20658         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20659         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20660         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20661         xmalloc.
20662         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20663         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20664         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20665         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20666         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20667         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20668         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20669
20670 2006-11-03  Bruno Haible  <bruno@clisp.org>
20671
20672         * lib/c-ctype.h [C++]: Define functions without name mangling.
20673         * lib/fwriteerror.h [C++]: Likewise.
20674         * lib/gcd.h [C++]: Likewise.
20675         * lib/linebreak.h [C++]: Likewise.
20676
20677 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20678
20679         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20680         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20681         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20682         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20683         Check for functions and headers just once.
20684         Check for declaration of canonicalize_file_name.
20685         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20686
20687 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20688
20689         * gnulib-tool (func_import): Fix typo in actioncmd.
20690
20691 2006-11-02  Bruno Haible  <bruno@clisp.org>
20692
20693         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20694         newline sequence in the Makefile.am snippet as a space, like "make"
20695         does.
20696         Reported by Roger Persson <perrog@gmail.com>.
20697
20698 2006-11-01  Bruno Haible  <bruno@clisp.org>
20699
20700         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20701         already declared in <string.h>.
20702         * lib/strcase.h (strncasecmp): Don't declare it if yes.
20703
20704 2006-11-01  Bruno Haible  <bruno@clisp.org>
20705
20706         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20707         * lib/strcase.h: Include <string.h>.
20708         (strcasecmp): Define to rpl_strcasecmp here.
20709
20710 2006-11-01  Bruno Haible  <bruno@clisp.org>
20711
20712         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20713
20714 2006-11-01  Eric Blake  <ebb9@byu.net>
20715
20716         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20717
20718         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20719
20720 2006-10-29  Bruno Haible  <bruno@clisp.org>
20721
20722         Make it compile in C++ mode.
20723         * lib/full-write.c (full_rw): Add a cast.
20724
20725 2006-11-01  Bruno Haible  <bruno@clisp.org>
20726
20727         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20728         be POSIX compliant.
20729         Reported by Roger Persson <perrog@gmail.com>.
20730
20731 2006-11-01  Eric Blake  <ebb9@byu.net>
20732
20733         * lib/getopt_.h: Fix comments.
20734
20735 2006-10-31  Eric Blake  <ebb9@byu.net>
20736
20737         * modules/tmpdir (Depends-on): Add sys_stat.
20738         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20739         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20740         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20741         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20742         tempname.
20743
20744 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20745
20746         Avoid some C++ diagnostics reported by Bruno Haible.
20747         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20748         xmalloc.
20749         (quotearg_alloc): Use xcharalloc rather than xmalloc.
20750         (struct slotvec): Move to top level.
20751         (quotearg_n_options): Rewrite to avoid xmalloc.
20752         * lib/xalloc.h (xcharalloc): New function.
20753         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20754         [defined __cplusplus]: Add function template that provides result
20755         type propagation.  This part of the change is from Bruno Haible.
20756
20757 2006-10-29  Bruno Haible  <bruno@clisp.org>
20758
20759         Make it compile in C++ mode.
20760         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20761         * lib/strnlen1.c (strnlen1): Cast memchr result.
20762         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20763         * lib/clean-temp.c (string_equals, string_hash): Add casts.
20764         (create_temp_dir): Rename local variable 'template'.
20765         (compile_csharp_using_sscli): Add cast.
20766         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20767         * lib/findprog.c (find_in_path): Likewise.
20768         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20769         * lib/wait-process.c (register_slave_subprocess): Likewise.
20770
20771 2006-10-22  Bruno Haible  <bruno@clisp.org>
20772
20773         * modules/tsearch: New file.
20774         * lib/tsearch.h: New file.
20775         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20776         * m4/tsearch.m4: New file.
20777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20778
20779 2006-10-29  Eric Blake  <ebb9@byu.net>
20780
20781         * lib/arcfour.c: Assume config.h.
20782         * lib/arctwo.c: Likewise.
20783         * lib/base64.c: Likewise.
20784         * lib/check-version.c: Likewise.
20785         * lib/crc.c: Likewise.
20786         * lib/des.c: Likewise.
20787         * lib/gc-gnulib.c: Likewise.
20788         * lib/gc-libgcrypt.c: Likewise.
20789         * lib/gc-pbkdf2-sha1.c: Likewise.
20790         * lib/getaddrinfo.c: Likewise.
20791         * lib/getdelim.c: Likewise.
20792         * lib/getline.c: Likewise.
20793         * lib/hmac-md5.c: Likewise.
20794         * lib/hmac-sha1.c: Likewise.
20795         * lib/iconvme.c: Likewise.
20796         * lib/md2.c: Likewise.
20797         * lib/md4.c: Likewise.
20798         * lib/memxor.c: Likewise.
20799         * lib/read-file.c: Likewise.
20800         * lib/readline.c: Likewise.
20801         * lib/rijndael-alg-fst.c: Likewise.
20802         * lib/rijndael-api-fst.c: Likewise.
20803         * lib/xgetdomainname.c: Likewise.
20804
20805 2006-10-28  Eric Blake  <ebb9@byu.net>
20806
20807         * lib/xstrndup.c: Assume config.h.
20808
20809 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20810
20811         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20812         stat-macros.h is now for our own macros, whereas stat_h is for
20813         macros in the <sys/stat.h> name space.
20814         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20815         (STAT_MACROS_H): Remove.
20816         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20817         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20818         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20819         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20820         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20821         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20822         Move these macros to ...
20823         * lib/stat_.h: here.  Don't include stat-macros.h.
20824         * lib/canonicalize.c: Don't include stat-macros.h.
20825         * lib/chown.c: Likewise.
20826         * lib/euidaccess.c: Likewise.
20827         * lib/file-type.c: Likewise.
20828         * lib/filemode.c: Likewise.
20829         * lib/glob.c: Likewise.
20830         * lib/isapipe.c: Likewise.
20831         * lib/lchown.c: Likewise.
20832         * lib/lstat.c: Likewise.
20833         * lib/mkdir-p.c: Likewise.
20834         * lib/rmdir.c: Likewise.
20835         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20837         unless mkdir isn't declared, to speed up 'configure'.
20838         Always create sys/stat.h, since it's unlikely any real sys/stat.h
20839         would define all the S_* symbols.
20840         * modules/canonicalize (Depends-on):
20841         Depend on sys_stat, not stat-macros.
20842         * modules/chown: Likewise.
20843         * modules/euidaccess: Likewise.
20844         * modules/filemode: Likewise.
20845         * modules/file-type: Likewise.
20846         * modules/glob: Likewise.
20847         * modules/isapipe: Likewise.
20848         * modules/lchown: Likewise.
20849         * modules/lstat: Likewise.
20850         * modules/mkancesdirs: Likewise.
20851         * modules/rmdir: Likewise.
20852         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20853         * modules/modechange: Likewise.
20854         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20855         (configure.ac): Remove gl_STAT_MACROS.
20856         * modules/sys_stat (Depends-on): Remove stat-macros.
20857
20858 2006-10-27  Bruno Haible  <bruno@clisp.org>
20859
20860         * m4/signed.m4: Remove file.
20861         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20862         invocation.
20863         * modules/vasnprintf (Files): Remove m4/signed.m4.
20864
20865 2006-10-27  Bruno Haible  <bruno@clisp.org>
20866
20867         Update to GNU gettext 0.16.
20868         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20869         m4/inttypes-h.m4, m4/signed.m4.
20870         * m4/gettext.m4: Update to GNU gettext 0.16.
20871         * m4/intl.m4: New file, from GNU gettext.
20872         * m4/intldir.m4: New file, from GNU gettext.
20873         * config/srclist.txt: Update
20874
20875 2006-10-27  Eric Blake  <ebb9@byu.net>
20876
20877         * MODULES.html.sh: Document tempname.
20878         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20879         dependencies.
20880         (Files): Move lib/tempname.c...
20881         * modules/tempname: ...to this new module.
20882         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20883         (gl_PREREQ_TEMPNAME): Move...
20884         * m4/tempname.m4: ...to this new file.
20885         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20886         * modules/sys_stat (Depends-on): Add stat-macros.
20887         * lib/stat_.h (includes): Pick up stat macros.
20888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20889         if stat macros are broken.
20890         * lib/tempname.c (includes): No need to include "stat-macros.h".
20891         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
20892         (direxists, __path_search) [!_LIBC]: Don't compile these in
20893         gnulib; the tmpdir module covers that.
20894         * lib/tempname.h: New file.
20895
20896 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         * COPYING: Explain how gnulib-tool converts licence headers.
20899         Almost all wording by Eric Blake.
20900
20901 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         * lib/mbchar.h (is_basic_table): Make read-only.
20904         * lib/mbchar.c (is_basic_table): Likewise.
20905         Reported by John Darrington.
20906
20907 2006-10-25  Bruno Haible  <bruno@clisp.org>
20908
20909         * lib/progname.h (set_program_name): Undefine before defining.
20910
20911 2006-10-25  Bruno Haible  <bruno@clisp.org>
20912
20913         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
20914         false for non-gcc C++ compilers.
20915         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20916
20917 2006-10-24  Bruno Haible  <bruno@clisp.org>
20918
20919         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
20920         iconv implementations like Irix iconv.
20921
20922 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20923
20924         * modules/vararrays: New file.
20925         * m4/vararrays.m4: New file, taken from diffutils.
20926         * MODULES.html.sh: New module vararrays.
20927
20928 2006-10-24  Karl Berry  <karl@gnu.org>
20929
20930         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
20931         Don't call GNU Unix.
20932
20933 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20934
20935         * users.txt: Add Libtool.
20936
20937         Sync from Libtool:
20938
20939         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
20942         to gnulib's policy of including config.h unconditionally.
20943
20944 2006-10-24  Bruno Haible  <bruno@clisp.org>
20945
20946         * modules/wcwidth (Files): Add m4/wint_t.m4.
20947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
20948         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
20949
20950 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20951
20952         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
20953         to pacify GCC with some -W flags enabled.  Problem reported by
20954         Bruno Haible.
20955
20956 2006-10-24  Jim Meyering  <jim@meyering.net>
20957
20958         * MODULES.html.sh: Remove uinttostr.  It's not a module.
20959         Reported by Karl Berry.
20960
20961 2006-10-23  Bruno Haible  <bruno@clisp.org>
20962
20963         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20964
20965 2006-10-24  Bruno Haible  <bruno@clisp.org>
20966
20967         * lib/gl_list.h: Use C comment style, not C++ comment style.
20968
20969 2006-10-23  Eric Blake  <ebb9@byu.net>
20970
20971         * lib/getaddrinfo.c (includes): Add missing include.
20972
20973 2006-10-23  Bruno Haible  <bruno@clisp.org>
20974             Paul Eggert  <eggert@cs.ucla.edu>
20975
20976         Ability to rename obstack_free.
20977         * lib/obstack.h (__obstack_free): New macro. Declare instead of
20978         obstack_free.
20979         (obstack_free): Invoke the __obstack_free macro.
20980         * lib/obstack.c (obstack_free): Use __obstack_free macro.
20981
20982 2006-10-23  Bruno Haible  <bruno@clisp.org>
20983             Paul Eggert  <eggert@cs.ucla.edu>
20984
20985         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
20986         __argc, __argv from the declaration. (They are defined as macros on
20987         mingw.)
20988
20989 2006-10-22  Bruno Haible  <bruno@clisp.org>
20990
20991         * doc/gnulib-intro.texi: New file.
20992         * doc/gnulib.texi: Include it.
20993
20994 2006-10-21  Bruno Haible  <bruno@clisp.org>
20995
20996         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
20997         "Introduction", "Miscellanous Notes", "Particular Modules".
20998
20999 2006-10-21  Bruno Haible  <bruno@clisp.org>
21000
21001         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21002         Change mostlyclean-local rule to avoid sh syntax error from bash
21003         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21004
21005 2006-10-23  Jim Meyering  <jim@meyering.net>
21006
21007         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21008         in place of snprintf.
21009
21010         * modules/inttostr (Files): Add lib/uinttostr.c.
21011         * lib/uinttostr.c (inttostr): New file/function.
21012         * lib/inttostr.h (uinttostr): Declare.
21013         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21014         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21015         Add uinttostr.
21016         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21017
21018 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21019
21020         * lib/canonicalize.c (ELOOP): Define if not already defined.
21021         Problem reported by Bruno Haible in
21022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21023
21024 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21027         Problem reported by Perry Smith and Ville Laurikari.
21028
21029         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21030         uses.
21031
21032 2006-10-19  Bruno Haible  <bruno@clisp.org>
21033
21034         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21035         for mingw.
21036
21037 2006-10-19  Bruno Haible  <bruno@clisp.org>
21038
21039         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21040         Needed for mingw.
21041
21042 2006-10-19  Bruno Haible  <bruno@clisp.org>
21043
21044         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21045
21046 2006-10-19  Bruno Haible  <bruno@clisp.org>
21047
21048         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21049         it.
21050
21051 2006-10-19  Bruno Haible  <bruno@clisp.org>
21052
21053         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21054         invocation.
21055
21056 2006-10-19  Bruno Haible  <bruno@clisp.org>
21057
21058         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21059         mountlist by default.
21060
21061 2006-10-16  Bruno Haible  <bruno@clisp.org>
21062
21063         * lib/c-strstr.c: Include c-strstr.h.
21064
21065 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21066
21067         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21068         in a slash.
21069
21070 2006-10-18  Bruno Haible  <bruno@clisp.org>
21071
21072         * lib/lock.h [C++]: Wrap definitions in extern "C".
21073
21074 2006-10-18  Bruno Haible  <bruno@clisp.org>
21075
21076         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21077         gl_LIBOBJS list.
21078
21079 2006-10-18  Bruno Haible  <bruno@clisp.org>
21080
21081         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21082
21083 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21084
21085         * lib/xstrtol.h: Include gettext.h.
21086         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21087         Problem reported by Eric Blake.
21088         * modules/xstrtol (Depends-on): Add gettext-h.
21089
21090 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21091
21092         * lib/strftime.c (advance): New macro.
21093         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21094         incomplete type, so you can't add 0 to it.  Problem and patch
21095         reported by Eelco Dolstra for dietlibc.
21096
21097 2006-10-18  Jim Meyering  <jim@meyering.net>
21098
21099         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21100         type for a local, and rename it: s/up/user_proc/.
21101
21102 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21103
21104         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21105         READ_UTMP_USER_PROCESS.
21106         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21107
21108 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21109
21110         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21111         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21112
21113 2006-10-17  Eric Blake  <ebb9@byu.net>
21114
21115         * lib/sigprocmask.c (sigprocmask): Fix typo.
21116
21117         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21118
21119         * modules/clean-temp (Makefile.am): Don't add to make output...
21120         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21121         config.h.
21122
21123 2006-10-17  Bruno Haible  <bruno@clisp.org>
21124
21125         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21126         differently if DEFAULT_TEXT_DOMAIN is set.
21127
21128 2006-10-16  Bruno Haible  <bruno@clisp.org>
21129
21130         * lib/clean-temp.c: Include fwriteerror.h.
21131
21132 2006-10-16  Bruno Haible  <bruno@clisp.org>
21133
21134         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21135
21136 2006-10-16  Bruno Haible  <bruno@clisp.org>
21137
21138         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21139         * lib/sigprocmask.h: Include <sys/types.h>.
21140         (sigset_t): Use the system's definition if present.
21141
21142 2006-10-17  Eric Blake  <ebb9@byu.net>
21143
21144         * lib/xvasprintf.c (includes): Assume config.h.
21145         * lib/xasprintf.c (includes): Likewise.
21146
21147 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21148
21149         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21150         at least as wide as intmax_t.
21151
21152 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21153
21154         (Imported from Automake.)
21155         * build-aux/gnupload: Update to version 1.1 of directive file.
21156
21157 2006-10-16  Eric Blake  <ebb9@byu.net>
21158
21159         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21160         match Automake 1.10a.
21161
21162 2006-10-14  Bruno Haible  <bruno@clisp.org>
21163
21164         * modules/sigprocmask: New file.
21165         * lib/sigprocmask.h: New file.
21166         * lib/sigprocmask.c: New file.
21167         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21168         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21169         request sigprocmask.o.
21170         (gl_PREREQ_SIGPROCMASK): New macro.
21171         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21172         (Depends-on): Add sigprocmask.
21173         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21174         gt_SIGNALBLOCKING. Test for 'raise' only once.
21175         * lib/fatal-signal.c: Include sigprocmask.h.
21176         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21177         unblock_fatal_signals): Define always.
21178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21179         sigprocmask.
21180
21181 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21182
21183         Sync from Automake.
21184         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21185         which incorrectly sets the mode of an existing destination
21186         directory.  In some cases the unpatched install-sh could do the
21187         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21188         system.  We hope this is rare in practice, but it's clearly worth
21189         fixing.  Problem reported by Alex Unleashed in
21190         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21191         Also, don't bother to check for -m bugs unless we're using -m;
21192         suggested by Stepan Kasal.
21193
21194 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21195
21196         Sync from Automake.
21197         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21198         `-c' flag, so they appear at the same position as in %FASTDEP%
21199         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21200         which ignores unknown options only after the first non-option.
21201         Bug report against M4 by Nelson H. F. Beebe.
21202
21203 2006-10-13  Jim Meyering  <jim@meyering.net>
21204
21205         Fix a bug in yesterday's change.
21206         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21207         p->fts_statp->st_dev would be used uninitialized.
21208         Ensures that we always call fts_stat on the very first entry.
21209         Miklos Szeredi reported that find -xdev stopped working.
21210
21211 2006-10-12  Bruno Haible  <bruno@clisp.org>
21212
21213         * gnulib-tool (func_get_automake_snippet): Append an automatically
21214         computed EXTRA_DIST augmentation.
21215         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21216         * modules/alloca-opt (Makefile.am): Likewise.
21217         * modules/allocsa (Makefile.am): Likewise.
21218         * modules/arcfour (Makefile.am): Likewise.
21219         * modules/arctwo (Makefile.am): Likewise.
21220         * modules/argmatch (Makefile.am): Likewise.
21221         * modules/argz (Makefile.am): Likewise.
21222         * modules/atexit (Makefile.am): Likewise.
21223         * modules/backupfile (Makefile.am): Likewise.
21224         * modules/byteswap (Makefile.am): Likewise.
21225         * modules/c-strtod (Makefile.am): Likewise.
21226         * modules/c-strtold (Makefile.am): Likewise.
21227         * modules/calloc (Makefile.am): Likewise.
21228         * modules/canon-host (Makefile.am): Likewise.
21229         * modules/canonicalize (Makefile.am): Likewise.
21230         * modules/chdir-long (Makefile.am): Likewise.
21231         * modules/chdir-safer (Makefile.am): Likewise.
21232         * modules/check-version (Makefile.am): Likewise.
21233         * modules/chown (Makefile.am): Likewise.
21234         * modules/cloexec (Makefile.am): Likewise.
21235         * modules/close-stream (Makefile.am): Likewise.
21236         * modules/closeout (Makefile.am): Likewise.
21237         * modules/crc (Makefile.am): Likewise.
21238         * modules/csharpexec (Makefile.am): Likewise.
21239         * modules/cycle-check (Makefile.am): Likewise.
21240         * modules/des (Makefile.am): Likewise.
21241         * modules/dev-ino (Makefile.am): Likewise.
21242         * modules/dirfd (Makefile.am): Likewise.
21243         * modules/dirname (Makefile.am): Likewise.
21244         * modules/dup2 (Makefile.am): Likewise.
21245         * modules/eealloc (Makefile.am): Likewise.
21246         * modules/error (Makefile.am): Likewise.
21247         * modules/euidaccess (Makefile.am): Likewise.
21248         * modules/exclude (Makefile.am): Likewise.
21249         * modules/exitfail (Makefile.am): Likewise.
21250         * modules/fcntl-safer (Makefile.am): Likewise.
21251         * modules/fcntl (Makefile.am): Likewise.
21252         * modules/file-type (Makefile.am): Likewise.
21253         * modules/fileblocks (Makefile.am): Likewise.
21254         * modules/filemode (Makefile.am): Likewise.
21255         * modules/filenamecat (Makefile.am): Likewise.
21256         * modules/fnmatch (Makefile.am): Likewise.
21257         * modules/fopen-safer (Makefile.am): Likewise.
21258         * modules/fpending (Makefile.am): Likewise.
21259         * modules/fprintftime (Makefile.am): Likewise.
21260         * modules/free (Makefile.am): Likewise.
21261         * modules/fsusage (Makefile.am): Likewise.
21262         * modules/ftruncate (Makefile.am): Likewise.
21263         * modules/fts (Makefile.am): Likewise.
21264         * modules/gc-arcfour (Makefile.am): Likewise.
21265         * modules/gc-des (Makefile.am): Likewise.
21266         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21267         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21268         * modules/gc-md4 (Makefile.am): Likewise.
21269         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21270         * modules/gc-sha1 (Makefile.am): Likewise.
21271         * modules/gc (Makefile.am): Likewise.
21272         * modules/getaddrinfo (Makefile.am): Likewise.
21273         * modules/getcwd (Makefile.am): Likewise.
21274         * modules/getdelim (Makefile.am): Likewise.
21275         * modules/getdomainname (Makefile.am): Likewise.
21276         * modules/getgroups (Makefile.am): Likewise.
21277         * modules/gethostname (Makefile.am): Likewise.
21278         * modules/gethrxtime (Makefile.am): Likewise.
21279         * modules/getline (Makefile.am): Likewise.
21280         * modules/getloadavg (Makefile.am): Likewise.
21281         * modules/getlogin_r (Makefile.am): Likewise.
21282         * modules/getndelim2 (Makefile.am): Likewise.
21283         * modules/getopt (Makefile.am): Likewise.
21284         * modules/getpagesize (Makefile.am): Likewise.
21285         * modules/getpass-gnu (Makefile.am): Likewise.
21286         * modules/getpass (Makefile.am): Likewise.
21287         * modules/getsubopt (Makefile.am): Likewise.
21288         * modules/gettime (Makefile.am): Likewise.
21289         * modules/gettimeofday (Makefile.am): Likewise.
21290         * modules/getugroups (Makefile.am): Likewise.
21291         * modules/getusershell (Makefile.am): Likewise.
21292         * modules/glob (Makefile.am): Likewise.
21293         * modules/group-member (Makefile.am): Likewise.
21294         * modules/hard-locale (Makefile.am): Likewise.
21295         * modules/hash (Makefile.am): Likewise.
21296         * modules/hmac-md5 (Makefile.am): Likewise.
21297         * modules/hmac-sha1 (Makefile.am): Likewise.
21298         * modules/human (Makefile.am): Likewise.
21299         * modules/idcache (Makefile.am): Likewise.
21300         * modules/imaxabs (Makefile.am): Likewise.
21301         * modules/imaxdiv (Makefile.am): Likewise.
21302         * modules/inet_ntop (Makefile.am): Likewise.
21303         * modules/inet_pton (Makefile.am): Likewise.
21304         * modules/intprops (Makefile.am): Likewise.
21305         * modules/inttostr (Makefile.am): Likewise.
21306         * modules/inttypes (Makefile.am): Likewise.
21307         * modules/isapipe (Makefile.am): Likewise.
21308         * modules/javaversion (Makefile.am): Likewise.
21309         * modules/lchmod (Makefile.am): Likewise.
21310         * modules/lchown (Makefile.am): Likewise.
21311         * modules/localcharset (Makefile.am): Likewise.
21312         * modules/long-options (Makefile.am): Likewise.
21313         * modules/lstat (Makefile.am): Likewise.
21314         * modules/malloc (Makefile.am): Likewise.
21315         * modules/mathl (Makefile.am): Likewise.
21316         * modules/mbchar (Makefile.am): Likewise.
21317         * modules/md2 (Makefile.am): Likewise.
21318         * modules/md4 (Makefile.am): Likewise.
21319         * modules/md5 (Makefile.am): Likewise.
21320         * modules/memcasecmp (Makefile.am): Likewise.
21321         * modules/memchr (Makefile.am): Likewise.
21322         * modules/memcmp (Makefile.am): Likewise.
21323         * modules/memcoll (Makefile.am): Likewise.
21324         * modules/memcpy (Makefile.am): Likewise.
21325         * modules/memmem (Makefile.am): Likewise.
21326         * modules/memmove (Makefile.am): Likewise.
21327         * modules/mempcpy (Makefile.am): Likewise.
21328         * modules/memrchr (Makefile.am): Likewise.
21329         * modules/memset (Makefile.am): Likewise.
21330         * modules/memxor (Makefile.am): Likewise.
21331         * modules/mkancesdirs (Makefile.am): Likewise.
21332         * modules/mkdir-p (Makefile.am): Likewise.
21333         * modules/mkdir (Makefile.am): Likewise.
21334         * modules/mkdtemp (Makefile.am): Likewise.
21335         * modules/mkstemp (Makefile.am): Likewise.
21336         * modules/mktime (Makefile.am): Likewise.
21337         * modules/modechange (Makefile.am): Likewise.
21338         * modules/mountlist (Makefile.am): Likewise.
21339         * modules/nanosleep (Makefile.am): Likewise.
21340         * modules/obstack (Makefile.am): Likewise.
21341         * modules/openat (Makefile.am): Likewise.
21342         * modules/pagealign_alloc (Makefile.am): Likewise.
21343         * modules/pathmax (Makefile.am): Likewise.
21344         * modules/physmem (Makefile.am): Likewise.
21345         * modules/poll (Makefile.am): Likewise.
21346         * modules/posixtm (Makefile.am): Likewise.
21347         * modules/posixver (Makefile.am): Likewise.
21348         * modules/putenv (Makefile.am): Likewise.
21349         * modules/quote (Makefile.am): Likewise.
21350         * modules/quotearg (Makefile.am): Likewise.
21351         * modules/raise (Makefile.am): Likewise.
21352         * modules/read-file (Makefile.am): Likewise.
21353         * modules/readline (Makefile.am): Likewise.
21354         * modules/readlink (Makefile.am): Likewise.
21355         * modules/readtokens (Makefile.am): Likewise.
21356         * modules/readutmp (Makefile.am): Likewise.
21357         * modules/realloc (Makefile.am): Likewise.
21358         * modules/regex (Makefile.am): Likewise.
21359         * modules/rename-dest-slash (Makefile.am): Likewise.
21360         * modules/rename (Makefile.am): Likewise.
21361         * modules/rijndael (Makefile.am): Likewise.
21362         * modules/rmdir (Makefile.am): Likewise.
21363         * modules/rpmatch (Makefile.am): Likewise.
21364         * modules/safe-read (Makefile.am): Likewise.
21365         * modules/safe-write (Makefile.am): Likewise.
21366         * modules/same-inode (Makefile.am): Likewise.
21367         * modules/same (Makefile.am): Likewise.
21368         * modules/save-cwd (Makefile.am): Likewise.
21369         * modules/savedir (Makefile.am): Likewise.
21370         * modules/setenv (Makefile.am): Likewise.
21371         * modules/settime (Makefile.am): Likewise.
21372         * modules/sha1 (Makefile.am): Likewise.
21373         * modules/sig2str (Makefile.am): Likewise.
21374         * modules/snprintf (Makefile.am): Likewise.
21375         * modules/stat-macros (Makefile.am): Likewise.
21376         * modules/stat-time (Makefile.am): Likewise.
21377         * modules/stdbool (Makefile.am): Likewise.
21378         * modules/stdint (Makefile.am): Likewise.
21379         * modules/stdlib-safer (Makefile.am): Likewise.
21380         * modules/stpcpy (Makefile.am): Likewise.
21381         * modules/stpncpy (Makefile.am): Likewise.
21382         * modules/strcase (Makefile.am): Likewise.
21383         * modules/strcasestr (Makefile.am): Likewise.
21384         * modules/strchrnul (Makefile.am): Likewise.
21385         * modules/strcspn (Makefile.am): Likewise.
21386         * modules/strdup (Makefile.am): Likewise.
21387         * modules/strerror (Makefile.am): Likewise.
21388         * modules/strftime (Makefile.am): Likewise.
21389         * modules/strndup (Makefile.am): Likewise.
21390         * modules/strnlen (Makefile.am): Likewise.
21391         * modules/strpbrk (Makefile.am): Likewise.
21392         * modules/strsep (Makefile.am): Likewise.
21393         * modules/strstr (Makefile.am): Likewise.
21394         * modules/strtod (Makefile.am): Likewise.
21395         * modules/strtoimax (Makefile.am): Likewise.
21396         * modules/strtok_r (Makefile.am): Likewise.
21397         * modules/strtol (Makefile.am): Likewise.
21398         * modules/strtoll (Makefile.am): Likewise.
21399         * modules/strtoul (Makefile.am): Likewise.
21400         * modules/strtoull (Makefile.am): Likewise.
21401         * modules/strtoumax (Makefile.am): Likewise.
21402         * modules/strverscmp (Makefile.am): Likewise.
21403         * modules/sys_socket (Makefile.am): Likewise.
21404         * modules/sys_stat (Makefile.am): Likewise.
21405         * modules/sysexits (Makefile.am): Likewise.
21406         * modules/time_r (Makefile.am): Likewise.
21407         * modules/timegm (Makefile.am): Likewise.
21408         * modules/timespec (Makefile.am): Likewise.
21409         * modules/tmpfile-safer (Makefile.am): Likewise.
21410         * modules/trim (Makefile.am): Likewise.
21411         * modules/unistd-safer (Makefile.am): Likewise.
21412         * modules/unlinkdir (Makefile.am): Likewise.
21413         * modules/unlocked-io (Makefile.am): Likewise.
21414         * modules/userspec (Makefile.am): Likewise.
21415         * modules/utime (Makefile.am): Likewise.
21416         * modules/utimecmp (Makefile.am): Likewise.
21417         * modules/utimens (Makefile.am): Likewise.
21418         * modules/vasnprintf (Makefile.am): Likewise.
21419         * modules/vasprintf (Makefile.am): Likewise.
21420         * modules/vsnprintf (Makefile.am): Likewise.
21421         * modules/xalloc (Makefile.am): Likewise.
21422         * modules/xgetcwd (Makefile.am): Likewise.
21423         * modules/xnanosleep (Makefile.am): Likewise.
21424         * modules/xreadlink (Makefile.am): Likewise.
21425         * modules/xstrtod (Makefile.am): Likewise.
21426         * modules/xstrtol (Makefile.am): Likewise.
21427         * modules/xstrtold (Makefile.am): Likewise.
21428         * modules/yesno (Makefile.am): Likewise.
21429         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21430
21431 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21432
21433         * modules/error (Makefile.am): Distribute files through
21434         EXTRA_DIST, not lib_SOURCES.
21435
21436 2006-10-12  Eric Blake  <ebb9@byu.net>
21437
21438         * modules/error (Makefile.am): Distribute files in /lib.
21439         * modules/obstack (Makefile.am): Likewise.
21440
21441 2006-10-12  Bruno Haible  <bruno@clisp.org>
21442
21443         * modules/acl (Makefile.am): Distribute all files in lib/ through
21444         EXTRA_DIST.
21445         * modules/arcfour (Makefile.am): Likewise.
21446         * modules/arctwo (Makefile.am): Likewise.
21447         * modules/argmatch (Makefile.am): Likewise.
21448         * modules/argz (Makefile.am): Likewise.
21449         * modules/atexit (Makefile.am): Likewise.
21450         * modules/backupfile (Makefile.am): Likewise.
21451         * modules/c-strtod (Makefile.am): Likewise.
21452         * modules/c-strtold (Makefile.am): Likewise.
21453         * modules/calloc (Makefile.am): Likewise.
21454         * modules/canon-host (Makefile.am): Likewise.
21455         * modules/canonicalize (Makefile.am): Likewise.
21456         * modules/chdir-long (Makefile.am): Likewise.
21457         * modules/chdir-safer (Makefile.am): Likewise.
21458         * modules/check-version (Makefile.am): Likewise.
21459         * modules/chown (Makefile.am): Likewise.
21460         * modules/cloexec (Makefile.am): Likewise.
21461         * modules/close-stream (Makefile.am): Likewise.
21462         * modules/closeout (Makefile.am): Likewise.
21463         * modules/crc (Makefile.am): Likewise.
21464         * modules/cycle-check (Makefile.am): Likewise.
21465         * modules/des (Makefile.am): Likewise.
21466         * modules/dirfd (Makefile.am): Likewise.
21467         * modules/dirname (Makefile.am): Likewise.
21468         * modules/dup2 (Makefile.am): Likewise.
21469         * modules/euidaccess (Makefile.am): Likewise.
21470         * modules/exclude (Makefile.am): Likewise.
21471         * modules/exitfail (Makefile.am): Likewise.
21472         * modules/fcntl-safer (Makefile.am): Likewise.
21473         * modules/file-type (Makefile.am): Likewise.
21474         * modules/fileblocks (Makefile.am): Likewise.
21475         * modules/filemode (Makefile.am): Likewise.
21476         * modules/filenamecat (Makefile.am): Likewise.
21477         * modules/fnmatch (Makefile.am): Likewise.
21478         * modules/fopen-safer (Makefile.am): Likewise.
21479         * modules/fpending (Makefile.am): Likewise.
21480         * modules/fprintftime (Makefile.am): Likewise.
21481         * modules/free (Makefile.am): Likewise.
21482         * modules/fsusage (Makefile.am): Likewise.
21483         * modules/ftruncate (Makefile.am): Likewise.
21484         * modules/fts (Makefile.am): Likewise.
21485         * modules/gc (Makefile.am): Likewise.
21486         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21487         * modules/getaddrinfo (Makefile.am): Likewise.
21488         * modules/getcwd (Makefile.am): Likewise.
21489         * modules/getdelim (Makefile.am): Likewise.
21490         * modules/getdomainname (Makefile.am): Likewise.
21491         * modules/getgroups (Makefile.am): Likewise.
21492         * modules/gethostname (Makefile.am): Likewise.
21493         * modules/gethrxtime (Makefile.am): Likewise.
21494         * modules/getline (Makefile.am): Likewise.
21495         * modules/getloadavg (Makefile.am): Likewise.
21496         * modules/getlogin_r (Makefile.am): Likewise.
21497         * modules/getopt (Makefile.am): Likewise.
21498         * modules/getpass (Makefile.am): Likewise.
21499         * modules/getpass-gnu (Makefile.am): Likewise.
21500         * modules/getsubopt (Makefile.am): Likewise.
21501         * modules/gettime (Makefile.am): Likewise.
21502         * modules/gettimeofday (Makefile.am): Likewise.
21503         * modules/getugroups (Makefile.am): Likewise.
21504         * modules/getusershell (Makefile.am): Likewise.
21505         * modules/glob (Makefile.am): Likewise.
21506         * modules/group-member (Makefile.am): Likewise.
21507         * modules/hard-locale (Makefile.am): Likewise.
21508         * modules/hash (Makefile.am): Likewise.
21509         * modules/hmac-md5 (Makefile.am): Likewise.
21510         * modules/hmac-sha1 (Makefile.am): Likewise.
21511         * modules/human (Makefile.am): Likewise.
21512         * modules/idcache (Makefile.am): Likewise.
21513         * modules/imaxabs (Makefile.am): Likewise.
21514         * modules/imaxdiv (Makefile.am): Likewise.
21515         * modules/inet_ntop (Makefile.am): Likewise.
21516         * modules/inet_pton (Makefile.am): Likewise.
21517         * modules/inttostr (Makefile.am): Likewise.
21518         * modules/isapipe (Makefile.am): Likewise.
21519         * modules/lchown (Makefile.am): Likewise.
21520         * modules/long-options (Makefile.am): Likewise.
21521         * modules/lstat (Makefile.am): Likewise.
21522         * modules/malloc (Makefile.am): Likewise.
21523         * modules/mathl (Makefile.am): Likewise.
21524         * modules/mbchar (Makefile.am): Likewise.
21525         * modules/md2 (Makefile.am): Likewise.
21526         * modules/md4 (Makefile.am): Likewise.
21527         * modules/md5 (Makefile.am): Likewise.
21528         * modules/memcasecmp (Makefile.am): Likewise.
21529         * modules/memchr (Makefile.am): Likewise.
21530         * modules/memcmp (Makefile.am): Likewise.
21531         * modules/memcoll (Makefile.am): Likewise.
21532         * modules/memcpy (Makefile.am): Likewise.
21533         * modules/memmem (Makefile.am): Likewise.
21534         * modules/memmove (Makefile.am): Likewise.
21535         * modules/mempcpy (Makefile.am): Likewise.
21536         * modules/memrchr (Makefile.am): Likewise.
21537         * modules/memset (Makefile.am): Likewise.
21538         * modules/memxor (Makefile.am): Likewise.
21539         * modules/mkancesdirs (Makefile.am): Likewise.
21540         * modules/mkdir (Makefile.am): Likewise.
21541         * modules/mkdir-p (Makefile.am): Likewise.
21542         * modules/mkdtemp (Makefile.am): Likewise.
21543         * modules/mkstemp (Makefile.am): Likewise.
21544         * modules/mktime (Makefile.am): Likewise.
21545         * modules/modechange (Makefile.am): Likewise.
21546         * modules/mountlist (Makefile.am): Likewise.
21547         * modules/nanosleep (Makefile.am): Likewise.
21548         * modules/openat (Makefile.am): Likewise.
21549         * modules/pagealign_alloc (Makefile.am): Likewise.
21550         * modules/physmem (Makefile.am): Likewise.
21551         * modules/poll (Makefile.am): Likewise.
21552         * modules/posixtm (Makefile.am): Likewise.
21553         * modules/posixver (Makefile.am): Likewise.
21554         * modules/putenv (Makefile.am): Likewise.
21555         * modules/quote (Makefile.am): Likewise.
21556         * modules/quotearg (Makefile.am): Likewise.
21557         * modules/raise (Makefile.am): Likewise.
21558         * modules/read-file (Makefile.am): Likewise.
21559         * modules/readline (Makefile.am): Likewise.
21560         * modules/readlink (Makefile.am): Likewise.
21561         * modules/readtokens (Makefile.am): Likewise.
21562         * modules/readutmp (Makefile.am): Likewise.
21563         * modules/realloc (Makefile.am): Likewise.
21564         * modules/regex (Makefile.am): Likewise.
21565         * modules/rename (Makefile.am): Likewise.
21566         * modules/rename-dest-slash (Makefile.am): Likewise.
21567         * modules/rijndael (Makefile.am): Likewise.
21568         * modules/rmdir (Makefile.am): Likewise.
21569         * modules/rpmatch (Makefile.am): Likewise.
21570         * modules/safe-read (Makefile.am): Likewise.
21571         * modules/safe-write (Makefile.am): Likewise.
21572         * modules/same (Makefile.am): Likewise.
21573         * modules/save-cwd (Makefile.am): Likewise.
21574         * modules/savedir (Makefile.am): Likewise.
21575         * modules/setenv (Makefile.am): Likewise.
21576         * modules/settime (Makefile.am): Likewise.
21577         * modules/sha1 (Makefile.am): Likewise.
21578         * modules/sig2str (Makefile.am): Likewise.
21579         * modules/snprintf (Makefile.am): Likewise.
21580         * modules/stdlib-safer (Makefile.am): Likewise.
21581         * modules/stpcpy (Makefile.am): Likewise.
21582         * modules/stpncpy (Makefile.am): Likewise.
21583         * modules/strcase (Makefile.am): Likewise.
21584         * modules/strcasestr (Makefile.am): Likewise.
21585         * modules/strchrnul (Makefile.am): Likewise.
21586         * modules/strcspn (Makefile.am): Likewise.
21587         * modules/strdup (Makefile.am): Likewise.
21588         * modules/strerror (Makefile.am): Likewise.
21589         * modules/strftime (Makefile.am): Likewise.
21590         * modules/strndup (Makefile.am): Likewise.
21591         * modules/strnlen (Makefile.am): Likewise.
21592         * modules/strpbrk (Makefile.am): Likewise.
21593         * modules/strsep (Makefile.am): Likewise.
21594         * modules/strstr (Makefile.am): Likewise.
21595         * modules/strtod (Makefile.am): Likewise.
21596         * modules/strtoimax (Makefile.am): Likewise.
21597         * modules/strtok_r (Makefile.am): Likewise.
21598         * modules/strtol (Makefile.am): Likewise.
21599         * modules/strtoll (Makefile.am): Likewise.
21600         * modules/strtoul (Makefile.am): Likewise.
21601         * modules/strtoull (Makefile.am): Likewise.
21602         * modules/strtoumax (Makefile.am): Likewise.
21603         * modules/strverscmp (Makefile.am): Likewise.
21604         * modules/time_r (Makefile.am): Likewise.
21605         * modules/timegm (Makefile.am): Likewise.
21606         * modules/tmpfile-safer (Makefile.am): Likewise.
21607         * modules/unistd-safer (Makefile.am): Likewise.
21608         * modules/unlinkdir (Makefile.am): Likewise.
21609         * modules/userspec (Makefile.am): Likewise.
21610         * modules/utime (Makefile.am): Likewise.
21611         * modules/utimecmp (Makefile.am): Likewise.
21612         * modules/utimens (Makefile.am): Likewise.
21613         * modules/vasnprintf (Makefile.am): Likewise.
21614         * modules/vasprintf (Makefile.am): Likewise.
21615         * modules/vsnprintf (Makefile.am): Likewise.
21616         * modules/xalloc (Makefile.am): Likewise.
21617         * modules/xgetcwd (Makefile.am): Likewise.
21618         * modules/xnanosleep (Makefile.am): Likewise.
21619         * modules/xreadlink (Makefile.am): Likewise.
21620         * modules/xstrtod (Makefile.am): Likewise.
21621         * modules/xstrtol (Makefile.am): Likewise.
21622         * modules/xstrtold (Makefile.am): Likewise.
21623         * modules/yesno (Makefile.am): Likewise.
21624
21625 2006-10-12  Jim Meyering  <jim@meyering.net>
21626
21627         * m4/getloadavg.m4: Revert the change below.
21628
21629         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21630         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
21631         fail with a symlink, which is what coreutils' ./bootstrap now
21632         creates by default.
21633
21634 2006-10-12  Bruno Haible  <bruno@clisp.org>
21635
21636         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21637         mingw.
21638         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21639         MSVC and mingw explicitly.
21640
21641 2006-10-11  Simon Josefsson  <jas@extundo.com>
21642             Bruno Haible  <bruno@clisp.org>
21643
21644         Add support for multiple gnulib-tool invocations in the scope of a
21645         single configure.ac file.
21646         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21647         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21648         with the same contents as the _LIBADD variable.
21649         (func_emit_initmacro_start, func_emit_initmacro_end,
21650         func_emit_initmacro_done): New functions.
21651         (func_import, func_create_testdir): Invoke them. Allow the identifiers
21652         gl_LIBOBJS and gl_LTLIBOBJS.
21653
21654 2006-10-11  Bruno Haible  <bruno@clisp.org>
21655
21656         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21657         (func_create_testdir): Don't create po/Makefile.am, don't invoke
21658         autoreconf. Instead, invoke autopoint explicitly but move back the
21659         *.m4 files from gnulib.
21660
21661 2006-10-11  Bruno Haible  <bruno@clisp.org>
21662
21663         * gnulib-tool (func_usage): Make module names after --create-testdir
21664         optional.
21665         (func_create_testdir): If no module was specified, use nearly all
21666         modules.
21667
21668 2006-10-12  Jim Meyering  <jim@meyering.net>
21669
21670         Big performance improvement for fts-based tools that use FTS_NOSTAT.
21671         Avoid spurious inode-mismatch problems on non-POSIX file systems.
21672         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21673         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21674         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21675         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21676         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21677         (fts_set_stat_required): New function.
21678         (fts_open): Defer the calls to fts_stat, if possible or requested.
21679         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21680         into fts_stat itself.
21681         (fts_read): Perform any required (deferred) fts_stat call.
21682         (fts_build): Likewise, for the directory we're about to open and read.
21683         In the readdir loop, carefully decide whether each entry will require
21684         an eventual call to fts_stat, using dirent.d_type info if available.
21685         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21686         a command line argument into this function.  Update all callers.
21687         Map a return value of FTS_DOT to FTS_D for a command line argument.
21688         * modules/fts (Depends-on): Add d-type.  Alphabetize.
21689         Thanks to Miklos Szeredi for his tenacity and for the initial
21690         bug report about "find" failing on a FUSE-based file system.
21691
21692         * lib/fts.c (fts_open): Use consistent indentation.
21693
21694 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21697         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21698         reported by Jim Meyering.  All uses of cache variables renamed
21699         to match Autoconf's.
21700         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21701         the other one.
21702
21703         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21704         Fix misspelling in diagnostic.
21705
21706 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21707
21708         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21709         defined.  Problem reported by Matthew Woehlke.
21710
21711         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21712         Add support for Tandem NonStop R series.
21713         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21714         Use new macro.
21715
21716         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21717         (has_trailing_slash): Omit size arg; all callers changed.
21718         Omit 'inline', since it doesn't help performance and we'd
21719         need to configure it.
21720         Don't count //, ///, etc. as having a trailing slash.
21721         As a side effect, this removes a C99ism reported by Matthew Woehlke.
21722         (rpl_rename_dest_slash): On failure, use rename's errno rather
21723         than (in some cases) an incorrect or junk errno.
21724         Simplify code by removing need to compute length; this does
21725         cause it to make two passes instead of one over the file name,
21726         but it's worth it.
21727
21728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21729         change, since Autoconf's version may no longer be appropriate now
21730         that we are using CVS Autoconf's version.  Add support for Tandem.
21731
21732 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21733             Bruno Haible  <bruno@clisp.org>
21734
21735         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21736         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21737         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21738         gl_AC_TYPE_LONG_LONG.
21739
21740         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21741         instead of HAVE_LONG_LONG.
21742         * lib/printf-args.c (printf_fetchargs): Likewise.
21743         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21744         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21745         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21746         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21747         gl_AC_TYPE_LONG_LONG.
21748
21749 2006-10-11  Bruno Haible  <bruno@clisp.org>
21750
21751         * m4/longlong.m4: Add comments.
21752         * m4/ulonglong.m4: Likewise.
21753
21754 2006-10-10  Bruno Haible  <bruno@clisp.org>
21755
21756         Make it possible to #define stpcpy, strdup to aliases.
21757         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21758         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21759
21760 2006-10-10  Bruno Haible  <bruno@clisp.org>
21761
21762         Make it possible to #define gcd to an alias.
21763         * lib/gcd.c: Include config.h.
21764
21765 2006-10-10  Bruno Haible  <bruno@clisp.org>
21766
21767         Make it possible to #define c_isascii to an alias.
21768         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21769         defined. Undefine the macros before defining them, to avoid gcc
21770         warnings.
21771         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21772         define NO_C_CTYPE_MACROS early.
21773
21774 2006-10-10  Bruno Haible  <bruno@clisp.org>
21775
21776         Make it possible to #define set_program_name to an alias.
21777         * lib/progname.c: Don't undefine set_program_name; instead, undefine
21778         ENABLE_RELOCATABLE early.
21779
21780 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21781
21782         Port to Tandem NSK OSS, which has 64-bit signed int but at most
21783         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
21784         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21785         More generally, don't assume that 64-bit signed int is available
21786         if unsigned int is, and vice versa.
21787         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21788         unsigned symbols, not on their signed counterparts.
21789         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21790         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21791         (UINT64_C, UINTMAX_C):
21792         Likewise.
21793         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21794         unsigned counterparts.
21795         (Have_long_long, Unsigned): New macros.
21796         (Int): Renamed from INT.
21797         (strtoimax): Use the new macros.
21798         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21799         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21800         * modules/inttypes (inttypes.h): Substitute
21801         HAVE_UNSIGNED_LONG_LONG_INT.
21802         * modules/stdint (stdint.h): Likewise.
21803         (Files): Add m4/ulonglong.m4.
21804
21805 2006-10-10  Bruno Haible  <bruno@clisp.org>
21806
21807         Fix a gcc -Wshadow warning.
21808         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21809         to 'bucket'.
21810         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21811         gl_linked_indexof_from_to): Likewise.
21812         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21813         Likewise.
21814         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21815         Likewise.
21816         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21817         Reported by Eric Blake.
21818
21819 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
21820
21821         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21822         for NetBSD.  Problem reported by Bruno Haible.
21823
21824 2006-10-09  Jim Meyering  <jim@meyering.net>
21825
21826         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21827         Patch from Bruno Haible.
21828
21829 2006-10-09  Jim Meyering  <jim@meyering.net>
21830
21831         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21832         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21833         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21834
21835 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21836
21837         Don't include <config.h> twice; this doesn't work in some cases,
21838         e.g., when config.h has "#define intmax_t long long int" and
21839         we include <config.h>, <inttypes.h>, <config.h> in that order.
21840         Problem reported by Matthew Woehlke in:
21841         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21842         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21843         * lib/fts-cycle.c: Don't include config.h.
21844         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21845         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21846         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
21847         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21848         inttypes.h.
21849         * lib/xstrtoumax.c: Likewise.
21850         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21851         __strtol and the like, so that this module is more like its siblings.
21852         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21853         Remove; no longer needed now that we assume gnulib inttypes.h.
21854
21855 2006-10-08  Bruno Haible  <bruno@clisp.org>
21856
21857         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21858         option.
21859
21860 2006-10-07  Jim Meyering  <jim@meyering.net>
21861
21862         * modules/inttypes (inttypes.h): Revert what seems to have been
21863         an inadvertent part of today's change: use "|", not "/" in the
21864         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21865
21866 2006-10-07  Bruno Haible  <bruno@clisp.org>
21867
21868         * modules/sublist: New file.
21869
21870 2006-10-07  Bruno Haible  <bruno@clisp.org>
21871
21872         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21873         * modules/argz (argz.h): Likewise.
21874         * modules/arpa_inet (arpa/inet.h): Likewise.
21875         * modules/byteswap (byteswap.h): Likewise.
21876         * modules/configmake (configmake.h): Likewise.
21877         * modules/fcntl (fcntl.h): Likewise.
21878         * modules/fnmatch (fnmatch.h): Likewise.
21879         * modules/getopt (getopt.h): Likewise.
21880         * modules/glob (glob.h): Likewise.
21881         * modules/inttypes (inttypes.h): Likewise.
21882         * modules/netinet_in (netinet/in.h): Likewise.
21883         * modules/poll (poll.h): Likewise.
21884         * modules/stdbool (stdbool.h): Likewise.
21885         * modules/stdint (stdint.h): Likewise.
21886         * modules/sys_select (sys/select.h): Likewise.
21887         * modules/sys_socket (sys/socket.h): Likewise.
21888         * modules/sys_stat (sys/stat.h): Likewise.
21889         * modules/sysexits (sysexits.h): Likewise.
21890         * modules/unistd (unistd.h): Likewise.
21891         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21892         Add a "DO NOT EDIT" comment to the generated file.
21893         (func_import): Likewise for gnulib-comp.m4.
21894
21895 2006-10-07  Bruno Haible  <bruno@clisp.org>
21896
21897         * lib/gl_sublist.h: New file.
21898         * lib/gl_sublist.c: New file.
21899
21900 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21901
21902         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
21903         name (relative to the original working directory) and the file
21904         name component (relative to the temporary working directory).  All
21905         callers changed.
21906         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
21907         * lib/mkdir-p.c (make_dir_parents): Likewise.
21908         * lib/mkdir-p.h (make_dir_parents): Likewise.
21909
21910 2006-10-06  Eric Blake  <ebb9@byu.net>
21911
21912         Define several macros for use by the clean-temp module.
21913         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
21914         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
21915         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
21916
21917         * lib/clean-temp.h (close_stream_temp): New declaration.
21918         * lib/clean-temp.c (includes): Pull in headers according to what
21919         other modules are in use.
21920         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
21921
21922 2006-10-06  Bruno Haible  <bruno@clisp.org>
21923
21924         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
21925         instead of fopen, fwriteerror.
21926
21927 2006-10-06  Bruno Haible  <bruno@clisp.org>
21928
21929         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
21930         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
21931         int.
21932         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
21933         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
21934         Return an error indicator.
21935         Suggested by Eric Blake.
21936
21937 2006-10-06  Bruno Haible  <bruno@clisp.org>
21938
21939         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
21940         Reported by Eric Blake.
21941
21942 2006-10-06  Bruno Haible  <bruno@clisp.org>
21943
21944         * modules/closeout (Description): Mention stderr too.
21945
21946 2006-10-06  Bruno Haible  <bruno@clisp.org>
21947         and Paul Eggert  <eggert@cs.ucla.edu>
21948
21949         * lib/closeout.c (close_stdout): Also close stderr.
21950         * lib/closeout.h: Update comment.
21951
21952 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
21955         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
21956         * lib/dirchownmod.c: Include lchown.h.
21957         * lib/lchown.c: Don't include files that lchown.h now includes.
21958         Don't declare chown, since lchown.h now does that.
21959         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
21960         (lchown): Define to rpl_chown if lchown is declared but
21961         does not exist.  Declare using a prototype if lchown is not
21962         declared.  Add a copyright notice.
21963         * lib/mkstemp.h: Include <unistd.h>.
21964         * lib/openat.c: Include lchown.h.
21965
21966         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21967         we now test for that separately.
21968         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21969         rather than O_NOFOLLOW, when testing whether it's possible to
21970         avoid a race condition reliably.
21971         * lib/savewd.c (savewd_chdir): Likewise.
21972
21973         Remove macros that are no longer needed now that stdint.h is
21974         reliable.
21975         * lib/fsusage.c (UINTMAX_MAX): Remove.
21976         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
21977         * lib/utimecmp.c (SIZE_MAX): Remove.
21978
21979         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
21980
21981         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
21982         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
21983         O_NOATIME works.
21984
21985 2006-10-05  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/gl_list.h (gl_sortedlist_search_from_to,
21988         gl_sortedlist_indexof_from_to): New declarations.
21989         (gl_list_implementation): New fields sortedlist_search_from_to,
21990         sortedlist_indexof_from_to.
21991         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
21992         inline functions.
21993         * lib/gl_list.c (gl_sortedlist_search_from_to,
21994         gl_sortedlist_indexof_from_to): New functions.
21995         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
21996         function.
21997         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
21998         (gl_array_sortedlist_search_from_to): New function.
21999         (gl_array_list_implementation): Update.
22000         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22001         function.
22002         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22003         (gl_carray_sortedlist_search_from_to): New function.
22004         (gl_carray_list_implementation): Update.
22005         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22006         gl_linked_sortedlist_indexof_from_to): New functions.
22007         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22008         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22009         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22010         gl_tree_sortedlist_indexof_from_to): New functions.
22011         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22012         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22013         Update.
22014         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22015         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22016         Update.
22017
22018 2006-10-05  Bruno Haible  <bruno@clisp.org>
22019
22020         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22021         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22022         (struct gl_list_implementation): Add fields search_from_to,
22023         indexof_from_to. Remove fields search, indexof.
22024         (gl_list_search): Use the search_from_to method.
22025         (gl_list_search_from, gl_list_search_from_to): New functions.
22026         (gl_list_indexof): Use the indexof_from_to method.
22027         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22028         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22029         (gl_list_search_from, gl_list_search_from_to): New functions.
22030         (gl_list_indexof): Use the indexof_from_to method.
22031         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22032         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22033         gl_array_indexof. Add start_index, end_index arguments.
22034         (gl_array_search_from_to): Renamed from gl_array_search. Add
22035         start_index, end_index arguments.
22036         (gl_array_remove, gl_array_list_implementation): Update.
22037         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22038         gl_carray_indexof. Add start_index, end_index arguments.
22039         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22040         start_index, end_index arguments.
22041         (gl_carray_remove, gl_carray_list_implementation): Update.
22042         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22043         gl_linked_search. Add start_index, end_index arguments.
22044         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22045         start_index, end_index arguments.
22046         (gl_linked_remove): Update.
22047         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22048         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22049         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22050         field to 'size_t'.
22051         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22052         gl_tree_search. Add start_index, end_index arguments.
22053         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22054         start_index, end_index arguments.
22055         (gl_tree_remove): Update.
22056         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22057         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22058         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22059         function.
22060         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22061         gl_tree_search. Add start_index, end_index arguments.
22062         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22063         start_index, end_index arguments.
22064         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22065         Update.
22066         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22067
22068 2006-10-05  Bruno Haible  <bruno@clisp.org>
22069
22070         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22071
22072         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22073         fwriteerror_temp): New declarations.
22074         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22075         (descriptors): New variable.
22076         (cleanup): First, close the descriptors.
22077         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22078         fclose_temp, fwriteerror_temp): New functions.
22079
22080 2006-10-04  Jim Meyering  <jim@meyering.net>
22081
22082         * lib/fts.c (fts_open): Tiny comment change.
22083
22084 2006-10-04  Bruno Haible  <bruno@clisp.org>
22085
22086         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22087         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22088         gl_LOCK_BODY.
22089         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22090         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22091         gl_LOCK_EARLY_BODY.
22092         (gl_LOCK): Require gl_LOCK_BODY.
22093
22094 2006-10-04  Bruno Haible  <bruno@clisp.org>
22095
22096         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22097         (gl_oset_search_atleast): New declaration.
22098         (struct gl_oset_implementation): Add field 'search_atleast'.
22099         (gl_oset_search_atleast): New inline function.
22100         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22101         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22102         (gl_array_oset_implementation): Update.
22103         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22104         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22105         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22106
22107 2006-10-04  Bruno Haible  <bruno@clisp.org>
22108
22109         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22110
22111 2006-10-03  Bruno Haible  <bruno@clisp.org>
22112
22113         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22114         from gl_avltreehash_list_implementation.
22115
22116 2006-10-03  Bruno Haible  <bruno@clisp.org>
22117
22118         * lib/gl_oset.c (gl_oset_add): Fix return type.
22119
22120 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22121
22122         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22123
22124 2006-10-02  Eric Blake  <ebb9@byu.net>
22125
22126         * modules/strnlen (Depends-on): Add extensions.
22127
22128 2006-10-02  Eric Blake  <ebb9@byu.net>
22129
22130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22131         definition in 2.60+.
22132
22133 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22134
22135         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22136         checks.
22137
22138 2006-10-02  Bruno Haible  <bruno@clisp.org>
22139
22140         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22141         to the AUTOMAKE_OPTIONS.
22142         Reported by Jim Meyering.
22143
22144 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22145
22146         Work around bug in Solaris 10 /proc file system:
22147         /proc/self/fd/NNN/.. isn't the parent directory of
22148         the directory whose file descriptor is NNN.  This needs to
22149         be worked around at run time, not compile time, since a
22150         program might be built on Solaris 8, where things work, and
22151         run on Solaris 10.
22152         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22153         to use the following interface instead:
22154         (OPENAT_BUFFER_SIZE): New macro.
22155         (openat_proc_name): New function.
22156         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22157         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22158         Likewise.
22159         * lib/openat-proc.c: New file.
22160         * modules/openat (Files): Add lib/openat-proc.c.
22161         (Depends-on): Add same-inode, stdbool.
22162         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22163
22164 2006-09-29  Bruno Haible  <bruno@clisp.org>
22165
22166         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22167         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22168         argument. Set stdout_closed before testing for ferror, not after.
22169         (fwriteerror, fwriteerror_no_ebadf): New functions.
22170
22171 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22172
22173         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22174
22175 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22176
22177         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22178         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22179
22180 2006-09-28  Jim Meyering  <jim@meyering.net>
22181
22182         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22183         Include <unistd.h>.
22184
22185 2006-09-28  Bruno Haible  <bruno@clisp.org>
22186
22187         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22188         * modules/linkedhash-list (Depends-on): Likewise.
22189         * modules/rbtreehash-list (Depends-on): Likewise.
22190
22191 2006-09-28  Bruno Haible  <bruno@clisp.org>
22192
22193         * lib/strndup.h: Simplify the redefinition of strndup.
22194         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22195         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22196
22197 2006-09-28  Bruno Haible  <bruno@clisp.org>
22198
22199         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22200         * lib/gl_linkedhash_list.c: Likewise.
22201         * lib/gl_rbtreehash_list.c: Likewise.
22202
22203 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22204
22205         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22206         getaddrinfo.
22207
22208         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22209         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22210         it causes <stdio_ext.h> to cause a compile-time error.
22211         Problem reported by Nelson H. F. Beebe.
22212         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22213         of HAVE_DECL___PENDING.
22214
22215         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22216         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22217         declaration.
22218
22219 2006-09-27  Jim Meyering  <jim@meyering.net>
22220
22221         This file could end up with a definition for a function
22222         named __strndup, rather than rpl_strndup on a system with
22223         incomplete weak_alias support.
22224         * lib/strndup.c (strndup): Rename from __strndup.
22225         Remove #defines that used to map __strndup to strndup.
22226         Don't use K&R prototypes.
22227         Remove LIBC-related code, since this file is not sync'd with glibc.
22228         * lib/strndup.h: Revamp, accordingly.
22229         * m4/strndup.m4: Modernize.
22230
22231 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22232
22233         * modules/savewd (Depends-on): Add 'raise'.
22234         * lib/savewd.c: Include <signal.h>, for 'raise'.
22235
22236 2006-09-26  Jim Meyering  <jim@meyering.net>
22237
22238         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22239         when we detect Darwin 8.7.0's acl_get_file bug.
22240         Rearrange to perform the new (below) run-test while $LIBS
22241         contains any acl-related library.  Set USE_ACL at the end.
22242         (gl_ACL_GET_FILE): New function.
22243
22244 2006-09-26  Eric Blake  <ebb9@byu.net>
22245
22246         * lib/verror.c: Include <config.h> unconditionally.
22247
22248 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22249
22250         * modules/clock-time (Maintainer): Add self.
22251         * modules/getlogin_r (Depends-on): Add extensions.
22252
22253 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22254
22255         * modules/clock-time: New module.
22256         * modules/nanosleep (Depends-on): Add clock-time.
22257         * modules/gethrxtime (Depends-on): Likewise.
22258         * modules/gettime (Depends-on): Likewise.
22259         * modules/settime (Depends-on): Likewise.
22260
22261         * modules/fts-lgpl: Depend on openat.
22262         * modules/mkancesdirs: Depend on savewd.
22263         * modules/mkdir-p: Likewise.
22264
22265 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22266
22267         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22268
22269         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22270         `gl_have_arbitrary_file_name_length_limit' to
22271         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22272         actually works between configure runs.
22273
22274 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22275             Bruno Haible  <bruno@clisp.org>
22276
22277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22278
22279 2006-09-25  Jim Meyering  <jim@meyering.net>
22280
22281         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22282         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22283
22284 2006-09-25  Eric Blake  <ebb9@byu.net>
22285
22286         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22287         exec's in 2006-09-18 patch when shuffling fds.
22288
22289 2006-09-25  Bruno Haible  <bruno@clisp.org>
22290
22291         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22292         Reported by Jim Meyering.
22293
22294 2006-09-24  Jim Meyering  <jim@meyering.net>
22295
22296         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22297         compare a pointer against a literal "0".  That caused failures with
22298         at least HP-UX's hpcc.
22299
22300 2006-09-22  Simon Josefsson  <jas@extundo.com>
22301
22302         * modules/gc-sha1:
22303         * modules/gc-md4:
22304         * modules/gc-hmac-sha1:
22305         * modules/gc-hmac-md5:
22306         * modules/gc-des:
22307         * modules/gc-arcfour: Distribute more files.
22308
22309 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22310
22311         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22312         (gl_linked_iterator_from_to): Initialize struct completely.
22313         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22314         (gl_tree_iterator_from_to): Likewise
22315         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22316         * lib/gl_array_list.c [lint] (gl_array_iterator)
22317         (gl_array_iterator_from_to): Likewise.
22318         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22319         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22320         (gl_carray_iterator_from_to): Likewise.
22321
22322         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22323         * lib/md4.c (md4_process_block): Remove unused variable.
22324         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22325         parentheses for clarity.
22326
22327 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22328
22329         * modules/bison-i18n (Depends-on): Add gettext.
22330
22331 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22332
22333         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22334         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22335         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22336         also add missing comma that caused broken test.
22337         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22338         stdlib.h, for `abort'.
22339         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22340         variables.
22341         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22342         include unistd.h if present, for `rmdir'.
22343         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22344         variables.
22345         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22346         in the process include standard headers for prototypes.
22347         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22348         gets declared on GNU/Linux.
22349         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22350         unistd.h, for `rmdir'.
22351         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22352
22353         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22354         always true.
22355         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22356
22357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22358
22359 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22360
22361         * gnulib-tool (func_version): Create output all at once.  This
22362         may help avoid triggering unnecessary SIGPIPEs, and at any
22363         rate it doesn't hurt.
22364
22365 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22366             Bruno Haible  <bruno@clisp.org>
22367
22368         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22369         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22370         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22371
22372         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22373         (gl_FUNC_VASPRINTF): Invoke it.
22374
22375 2006-09-22  Bruno Haible  <bruno@clisp.org>
22376
22377         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22378         getloadavg.c as first argument.
22379
22380 2006-09-22  Bruno Haible  <bruno@clisp.org>
22381
22382         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22383         at the beginning of the gl_INIT macro.
22384         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22385         gl_GETLOADAVG.
22386
22387 2006-09-22  Bruno Haible  <bruno@clisp.org>
22388
22389         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22390         module.
22391         Suggested by Ralf Wildenhues.
22392
22393 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22394
22395         Import this patch from libc:
22396
22397         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22398
22399         * lib/regex_internal.c (re_string_reconstruct): Handle
22400         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22401         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22402         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22403         re_string_context_at.
22404
22405         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22406         now requires it.
22407         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22408         gl_REGEX now does it for us.
22409         (gl_REGEX): Add test taken from
22410         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22411
22412         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22413         Check that large offsets work.  Modernize Autoconf usages.
22414         Prefer "yes" to mean a good thing rather than a bad.
22415         Don't put "#define mkstemp" in config.h, as this might interfere
22416         with standard system headers that "#define mkstemp mkstemp64".
22417
22418         * modules/mkstemp (Depends-on): Add extensions, so that
22419         mkstemp is visible on some platforms.
22420         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22421         (Include): Change to "mkstemp.h" from <stdlib.h>.
22422         (Files): Add mkstemp.h.
22423
22424         * lib/mkstemp.h: New file, since some standard headers
22425         #define mkstemp.
22426         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22427         Include "mkstemp.h".
22428         Make the _LIBC code resemble glibc original more,
22429         e.g., use K&R style.
22430         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22431         (mkstemp): Remove, since mkstemp.h does this for us.
22432         * lib/stdlib--.h: Include mkstemp.h.
22433
22434         Import this patch from libc:
22435
22436         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22437
22438         * lib/tempname.c (__gen_tempname): Change attempts_min
22439         into a macro.  Use preprocessor to decide how to initialize
22440         attempts [Coverity CID 67].
22441
22442 2006-09-20  Bruno Haible  <bruno@clisp.org>
22443
22444         * lib/mkdtemp.c: Import from libc.
22445         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22446                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22447                 attempts_min into a macro.  Use preprocessor to decide how to
22448                 initialize attempts [Coverity CID 67].
22449         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22450                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22451                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22452
22453 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22454
22455         * gnulib-tool (func_exit): New function, to allow to pass the
22456         exit status portably through the trap.  Use everywhere.
22457         (--help, --version): Signal a write error.
22458         (trap): catch SIGPIPE, for write errors.
22459         Exit at the end of the trap, with the correct exit status.
22460
22461 2006-09-19  Karl Berry  <karl@gnu.org>
22462
22463         * doc/gnulib.texi: note about the license texinfo files.
22464
22465 2006-09-19  Eric Blake  <ebb9@byu.net>
22466
22467         * gnulib-tool: Avoid space-tab.
22468
22469 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22470
22471         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22472         that prevented coreutils 6.1 from building.  Problem reported
22473         by Petter Reinholdtsen.
22474
22475 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22476
22477         * gnulib-tool (avoidlist): Fix typo that broke options like
22478         --avoid=lock that are used by coreutils bootstrap.
22479
22480 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22481
22482         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22483         more systematically.
22484
22485 2006-09-18  Jim Meyering  <jim@meyering.net>
22486
22487         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22488
22489 2006-09-18  Bruno Haible  <bruno@clisp.org>
22490
22491         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22492
22493 2006-09-18  Bruno Haible  <bruno@clisp.org>
22494
22495         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22496         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22497         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22498         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22499         * m4/gettext.m4: Require autoconf >= 2.52.
22500         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22501         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22502         of gl_cv_header_inttypes_h.
22503
22504 2006-09-18  Bruno Haible  <bruno@clisp.org>
22505
22506         * lib/javaversion.c: Include configmake.h.
22507
22508 2006-09-18  Bruno Haible  <bruno@clisp.org>
22509
22510         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22511         avoid that the while loops be executed in a subshell.
22512
22513 2006-09-18  Bruno Haible  <bruno@clisp.org>
22514
22515         * MODULES.html.sh (func_module): Break long lines.
22516         Suggested by Bruce Korb <bkorb@gnu.org>.
22517
22518 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22519
22520         Speed up by a factor of 1.12.
22521         * gnulib-tool (nl): New variable.
22522         (func_import): Rewrite include directive extraction to only read each
22523         directive once.
22524
22525 2006-09-17  Bruno Haible  <bruno@clisp.org>
22526
22527         * modules/javaversion (Makefile.am): Remove DEFS setting.
22528         (Depends-on): Add configmake, for PKGDATADIR definition.
22529
22530 2006-09-17  Bruno Haible  <bruno@clisp.org>
22531
22532         * gnulib-tool (func_create_testdir): Rewrite all files at once.
22533
22534 2006-09-17  Bruno Haible  <bruno@clisp.org>
22535
22536         * gnulib-tool (func_append): New function, stolen from libtool.m4.
22537         (func_modules_transitive_closure, func_modules_add_dummy,
22538         func_modules_to_filelist, func_import, func_create_testdir,
22539         func_create_megatestdir, ...): Use it wherever possible.
22540         Suggested by Ralf Wildenhues.
22541
22542 2006-09-16  Karl Berry  <karl@gnu.org>
22543
22544         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22545         to avoid sectioning errors.
22546         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22547         [ifinfo]: blank line after @center-ed titles.
22548         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22549         Spell FSF address consistently with others.
22550         (These changes approved by rms.)
22551
22552 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22553
22554         Speed up by a factor of 1.61.
22555         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22556         already checked module names again.
22557
22558 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22559
22560         Speed up by a factor of 1.13.
22561         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22562         for new_files, and the input to func_add_or_update.
22563
22564 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22565
22566         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22567         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22568
22569 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22570
22571         * modules/mkancesdirs (Depends-on): Add fcntl.
22572         * modules/savewd: New file.
22573         * MODULES.html.sh (File system functions): Add savewd.
22574
22575         * modules/configmake (Makefile.am): Add support for the
22576         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22577
22578 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22579
22580         * m4/savewd.m4: New file.
22581
22582 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22583
22584         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22585         (dirchownmod): New arg FD.  All callers changed.
22586         Use FD rather than opening the directory ourself, as opening is
22587         now the caller's responsibility.
22588         * lib/dirchownmod.h: Likewise.
22589         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22590         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22591         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22592         (test_dir): Remove.
22593         (mkancesdirs): Return length of prefix of FILE that has already
22594         been made, or -2 if there is a child doing the work.  Redo
22595         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22596         ".", and treat ".." specially since it might stray back into
22597         already-created areas.  Use a subprocess if necessary.  New arg
22598         WD; all users changed.  MAKE_DIR function should now return 1
22599         if it creates a directory that is not readable.  Return -2 if
22600         a child process is spun off.
22601         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22602         Adjust signature to match code.
22603         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22604         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22605         all users changed.
22606         * lib/savewd.c, lib/savewd.h: New files.
22607
22608 2006-09-15  Jim Meyering  <jim@meyering.net>
22609
22610         * modules/rename-dest-slash: New module.
22611         * MODULES.html.sh (posix_compat): Add it here.
22612
22613         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22614
22615 2006-09-15  Jim Meyering  <jim@meyering.net>
22616
22617         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22618         file.
22619
22620         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22621
22622 2006-09-15  Jim Meyering  <jim@meyering.net>
22623
22624         * lib/rename-dest-slash.c (has_trailing_slash): Use
22625         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22626         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22627         test before testing whether SRC is a directory.
22628         Suggestions from Bruno Haible.
22629
22630         Avoid a warning about an unused variable.
22631         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22632         into the #ifdef block where it's used.
22633
22634         * lib/rename-dest-slash.c: New file.
22635
22636 2006-09-14  Bruno Haible  <bruno@clisp.org>
22637
22638         * lib/allocsa.c: Include <config.h> unconditionally.
22639         * lib/asnprintf.c: Likewise.
22640         * lib/asprintf.c: Likewise.
22641         * lib/c-strcasecmp.c: Likewise.
22642         * lib/c-strcasestr.c: Likewise.
22643         * lib/c-strncasecmp.c: Likewise.
22644         * lib/c-strstr.c: Likewise.
22645         * lib/classpath.c: Likewise.
22646         * lib/clean-temp.c: Likewise.
22647         * lib/concatpath.c: Likewise.
22648         * lib/copy-file.c: Likewise.
22649         * lib/csharpcomp.c: Likewise.
22650         * lib/csharpexec.c: Likewise.
22651         * lib/execute.c: Likewise.
22652         * lib/fatal-signal.c: Likewise.
22653         * lib/findprog.c: Likewise.
22654         * lib/fwriteerror.c: Likewise.
22655         * lib/gl_array_list.c: Likewise.
22656         * lib/gl_array_oset.c: Likewise.
22657         * lib/gl_avltree_list.c: Likewise.
22658         * lib/gl_avltree_oset.c: Likewise.
22659         * lib/gl_avltreehash_list.c: Likewise.
22660         * lib/gl_carray_list.c: Likewise.
22661         * lib/gl_linked_list.c: Likewise.
22662         * lib/gl_linkedhash_list.c: Likewise.
22663         * lib/gl_list.c: Likewise.
22664         * lib/gl_oset.c: Likewise.
22665         * lib/gl_rbtree_list.c: Likewise.
22666         * lib/gl_rbtree_oset.c: Likewise.
22667         * lib/gl_rbtreehash_list.c: Likewise.
22668         * lib/imaxabs.c: Likewise.
22669         * lib/imaxdiv.c: Likewise.
22670         * lib/javacomp.c: Likewise.
22671         * lib/javaexec.c: Likewise.
22672         * lib/javaversion.c: Likewise.
22673         * lib/linebreak.c: Likewise.
22674         * lib/localcharset.c: Likewise.
22675         * lib/lock.c: Likewise.
22676         * lib/mbchar.c: Likewise.
22677         * lib/mbswidth.c: Likewise.
22678         * lib/mkdtemp.c: Likewise.
22679         * lib/pipe.c: Likewise.
22680         * lib/printf-args.c: Likewise.
22681         * lib/printf-parse.c: Likewise.
22682         * lib/progname.c: Likewise.
22683         * lib/progreloc.c: Likewise.
22684         * lib/readlink.c: Likewise.
22685         * lib/sh-quote.c: Likewise.
22686         * lib/stpcpy.c: Likewise.
22687         * lib/stpncpy.c: Likewise.
22688         * lib/strcasecmp.c: Likewise.
22689         * lib/strcasestr.c: Likewise.
22690         * lib/strcspn.c: Likewise.
22691         * lib/striconv.c: Likewise.
22692         * lib/strncasecmp.c: Likewise.
22693         * lib/strnlen1.c: Likewise.
22694         * lib/strstr.c: Likewise.
22695         * lib/strtok_r.c: Likewise.
22696         * lib/tls.c: Likewise.
22697         * lib/tmpdir.c: Likewise.
22698         * lib/unicodeio.c: Likewise.
22699         * lib/unsetenv.c: Likewise.
22700         * lib/vasnprintf.c: Likewise.
22701         * lib/vasprintf.c: Likewise.
22702         * lib/wait-process.c: Likewise.
22703         * lib/xallocsa.c: Likewise.
22704         * lib/xsetenv.c: Likewise.
22705         * lib/xstriconv.c: Likewise.
22706
22707 2006-09-13  Simon Josefsson  <jas@extundo.com>
22708
22709         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22710         that internally, suggested by Ralf Wildenhues
22711         <Ralf.Wildenhues@gmx.de>.
22712
22713 2006-09-13  Simon Josefsson  <jas@extundo.com>
22714
22715         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22716         @LIBOBJS@.
22717         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22718
22719 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22720
22721         * lib/_fpending.c: Include <config.h> unconditionally, since we no
22722         longer worry about uses that don't define HAVE_CONFIG_H.
22723         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22724         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22725         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22726         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22727         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22728         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22729         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22730         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22731         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22732         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22733         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22734         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22735         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22736         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22737         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22738         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22739         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22740         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22741         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22742         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22743         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22744         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22745         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22746         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22747         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22748         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22749         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22750         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22751         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22752         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22753         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22754         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22755         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22756         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22757         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22758         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22759         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22760         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22761         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22762         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22763         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22764         Likewise.
22765
22766 2006-09-13  Eric Blake  <ebb9@byu.net>
22767
22768         * lib/getopt.c: Fix typo in last commit.
22769
22770 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22771
22772         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22773         dgettext.
22774
22775 2006-09-12  Jim Meyering  <jim@meyering.net>
22776
22777         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22778         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22779         Reported by Nelson H. F. Beebe.
22780
22781 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22782
22783         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22784         program_invocation_name and program_invocation_short_name are
22785         initialized.
22786         * lib/argp-namefrob.h: Move declarations of program_invocation_name
22787         and program_invocation_short_name to argp.h, so they are visible
22788         to user programs.
22789         * lib/argp.h: Likewise
22790
22791 2006-09-10  Bruno Haible  <bruno@clisp.org>
22792
22793         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22794         m4/inttypes_h.m4, m4/uintmax_t.m4.
22795
22796 2006-09-10  Bruno Haible  <bruno@clisp.org>
22797
22798         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22799         gl_AC_TYPE_UINTMAX_T.
22800
22801 2006-09-10  Bruno Haible  <bruno@clisp.org>
22802
22803         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22804
22805 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22806
22807         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22808         convention.  Text proposed by Bruno Haible.
22809         (struct argp_option): Document the use of N_() wrappers.
22810
22811         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22812         '\v', and translate the two parts separately, instead of feeding
22813         the whole string to gettext.  This allows to exclude
22814         '\v' from the strings visible to the translator by writing doc
22815         strings as N_("..") "\v" N_("..").
22816
22817 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
22818
22819         * config/srclist.txt: Undo latest change; the bug was fixed.
22820
22821 2006-09-09  Bruno Haible  <bruno@clisp.org>
22822
22823         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22824         assignments if building a library without libtool.
22825         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22826         in func_emit_lib_Makefile_am.
22827         (func_import): When building a static library libfoo.a, arrange to
22828         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22829         (func_create_testdir): Likewise.
22830         * modules/gc (configure.ac, Makefile.am): If building statically,
22831         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22832         * modules/iconvme (configure.ac, Makefile.am): Likewise.
22833         * modules/striconv (configure.ac, Makefile.am): Likewise.
22834         Based on a suggestion by Ralf Wildenhues.
22835
22836 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22837
22838         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22839         Check for unistd.h too, since Autoconf doesn't assume POSIX.
22840         Also:
22841
22842         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22843         Add year_2050_test to catch glibc bug 2821
22844         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22845
22846         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22847         Prefer #ifdef to #if.
22848
22849         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22850         Return from 'main' instead of calling 'exit'.
22851
22852 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22853
22854         * lib/mktime.c (guess_time_tm): Fix bug where mktime
22855         returned the maximum time_t value rather than (time_t) -1.
22856         Problem originally reported by William Bardwell
22857         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22858
22859         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22860         Moved to here ...
22861         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22862         ... from here.
22863
22864 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22865
22866         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22867         2821 is fixed.
22868
22869 2006-09-08  Jim Meyering  <jim@meyering.net>
22870
22871         Don't make generated files read-only.  That would bother too many
22872         people.  However, do retain the ability to work when targets are
22873         read-only: remove the destination and temporary files before writing
22874         them (when generated via sed or echo), or by using the -f option for
22875         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
22876         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22877         * modules/byteswap, modules/configmake, modules/fcntl:
22878         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22879         * modules/localcharset, modules/netinet_in, modules/poll:
22880         * modules/stdbool, modules/stdint, modules/sys_select:
22881         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22882
22883 2006-09-08  Jim Meyering  <jim@meyering.net>
22884
22885         Avoid new build failure on FreeBSD 6.0.
22886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22887         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
22888         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22889
22890 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22891
22892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
22893
22894 2006-09-07  Jim Meyering  <jim@meyering.net>
22895
22896         Fix global typo in last change: use chmod u-w, not chmod u-x.
22897         Spotted by Paul Eggert and Bruce Korb.
22898         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22899         * modules/byteswap, modules/configmake, modules/fcntl:
22900         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22901         * modules/localcharset, modules/netinet_in, modules/poll:
22902         * modules/stdbool, modules/stdint, modules/sys_select:
22903         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22904
22905 2006-09-06  Jim Meyering  <jim@meyering.net>
22906
22907         Make generated files be read-only.
22908         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
22909         Ensure that each generated file is now read-only.
22910         * modules/argz: Likewise.
22911         * modules/arpa_inet: Likewise.
22912         * modules/byteswap: Likewise.
22913         * modules/configmake: Likewise.
22914         * modules/fcntl: Likewise.
22915         * modules/fnmatch: Likewise.
22916         * modules/getopt: Likewise.
22917         * modules/glob: Likewise.
22918         * modules/inttypes: Likewise.
22919         * modules/netinet_in: Likewise.
22920         * modules/poll: Likewise.
22921         * modules/stdbool: Likewise.
22922         * modules/stdint: Likewise.
22923         * modules/sys_select: Likewise.
22924         * modules/sys_socket: Likewise.
22925         * modules/sys_stat: Likewise.
22926         * modules/sysexits: Likewise.
22927         * modules/localcharset: Same as above, but continue using temporary
22928         file named "t-$@" (why different?) rather than the "$@-t" used
22929         everywhere else.
22930
22931         * modules/sysexits (Makefile.am): Replace literal occurrences
22932         of "sysexit.h" more readable, and more consistent, "$@".
22933
22934 2006-09-06  Bruno Haible  <bruno@clisp.org>
22935
22936         * modules/striconv: New file.
22937         * modules/xstriconv: New file.
22938         * MODULES.html.sh (Internationalization functions): Add striconv,
22939         xstriconv.
22940
22941 2006-09-06  Bruno Haible  <bruno@clisp.org>
22942
22943         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
22944         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
22945         not using libtool correctly.
22946
22947 2006-09-06  Bruno Haible  <bruno@clisp.org>
22948
22949         * lib/striconv.h: New file.
22950         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
22951         iconvstring.c.
22952         * lib/xstriconv.h: New file.
22953         * lib/xstriconv.c: New file.
22954
22955 2006-09-06  Bruno Haible  <bruno@clisp.org>
22956
22957         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22958         lib_..._LDFLAGS.
22959
22960 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22961
22962         * lib/argz_.h: Sync from Libtool.
22963
22964         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
22965                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22966
22967         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22968
22969 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22970
22971         * modules/trim: New file.
22972
22973 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22974
22975         * lib/trim.h: New file.
22976         * lib/trim.c: New file.
22977
22978 2006-09-05  Bruno Haible  <bruno@clisp.org>
22979
22980         * MODULES.html.sh (String handling): Add trim.
22981
22982 2006-09-04  Karl Berry  <karl@gnu.org>
22983
22984         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
22985         until next release.
22986
22987 2006-09-03  Bruno Haible  <bruno@clisp.org>
22988
22989         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
22990         correctly.
22991
22992 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22993
22994         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
22995         not gl_GETLOADAVG.  Omit unneeded semicolons.
22996         Problems reported by Ralf Wildenhues in
22997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22998         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
22999         at the end, which is the usual gnulib style.
23000
23001         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23002         of doing all the work ourselves.
23003         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23004         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23005
23006 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23007
23008         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23009         Problem reported by Ralf Wildenhues in
23010         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23011
23012         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23013         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23014
23015 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23016
23017         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23018         yesterday's patch by changing test -n to test -z.
23019
23020 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23021
23022         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23023         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23024         the former is now obsolescent.
23025
23026         * modules/chdir-long (Depends-on): Add fcntl.
23027
23028 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23029
23030         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23031         obsolescent, and programs should use gnulib instead.
23032         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23033         but with prefixes changed.
23034
23035 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23036
23037         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23038         or stdbool.h, because they might not exist while configuring.
23039
23040         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23041         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23042         does that for us.
23043         (O_DIRECTORY): Remove.
23044
23045 2006-08-31  Eric Blake  <ebb9@byu.net>
23046
23047         * gnulib-tool: Don't let emacs change spaces to TAB.
23048
23049 2006-08-31  Bruno Haible  <bruno@clisp.org>
23050
23051         * gnulib-tool: When calling func_import more than once, do it in a
23052         subshell.
23053         Reported by Eric Blake <ebb9@byu.net>.
23054
23055 2006-08-31  Bruno Haible  <bruno@clisp.org>
23056
23057         * gnulib-tool (nl): Remove variable.
23058         (sed_transform_lib_file): Use more robust test for config-h module.
23059         (func_import): Fix typo in 2006-08-25 patch.
23060
23061 2006-08-31  Bruno Haible  <bruno@clisp.org>
23062
23063         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23064         specified, augment Makefile.am variables instead of assigning them.
23065
23066 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23067
23068         Work around a bug in both the Linux and SunOS 64-bit kernels:
23069         nanosleep mishandles sleeps for longer than 2**31 seconds.
23070         Problem reported by Frank v Waveren in
23071         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23073         Check for nanosleep bug.
23074         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23075
23076 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23077
23078         Work around a bug in both the Linux and SunOS 64-bit kernels:
23079         nanosleep mishandles sleeps for longer than 2**31 seconds.
23080         Problem reported by Frank v Waveren in
23081         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23082         * lib/nanosleep.c (BILLION): New constant.
23083         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23084         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23085         implementation.
23086
23087 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23088
23089         * modules/nanosleep (Depends-on): Add gettime.
23090
23091 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23092         and Simon Josefsson  <jas@extundo.com>
23093         and Oskar Liljeblad  <oskar@osk.mine.nu>
23094
23095         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23096         * gnulib-tool (func_import): New license type 'unmodifiable license
23097         text'.
23098         * modules/fdl: Use it.  Longer description.
23099         * module/gpl, module/lgpl: New files.
23100
23101 2006-08-30  Jim Meyering  <jim@meyering.net>
23102
23103         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23104         shadowing the parameter.
23105
23106 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23107
23108         Sync from Libtool:
23109
23110         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23111
23112         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23113         sharing with gnulib.  Report by Eric Blake.
23114
23115 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23116
23117         * modules/isapipe: New file.
23118         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23119
23120 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23121
23122         * modules/configmake (Makefile.am): Add a comment, and omit
23123         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23124         by Bruno Haible.
23125
23126 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23127
23128         * m4/isapipe.m4: New file.
23129
23130 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         * lib/isapipe.c, lib/isapipe.h: New files.
23133
23134 2006-08-29  Jim Meyering  <jim@meyering.net>
23135
23136         * modules/configmake (Makefile.am): Make configmake.h depend on
23137         Makefile.  Otherwise, a stale configmake.h could hang around.
23138
23139 2006-08-29  Eric Blake  <ebb9@byu.net>
23140
23141         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23142         resolution of upstream bug 3044.
23143
23144 2006-08-29  Bruno Haible  <bruno@clisp.org>
23145
23146         * modules/localcharset (Depends-on): Add configmake.
23147         (Makefile.am): Remove setting of LIBDIR through DEFS.
23148
23149 2006-08-29  Bruno Haible  <bruno@clisp.org>
23150
23151         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23152         defined.
23153
23154 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23155
23156         * modules/fcntl: New file.
23157         * modules/chdir-safer (Depends-on): Add fcntl.
23158         * modules/fts: Likewise.
23159         * modules/mkdir-p: Likewise.
23160
23161         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23162         This undoes the most recent change, since we're now addressing the
23163         problem in a different way.
23164
23165         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23166         into output, since the output might be called Makefile.am even
23167         if $makefile_name is something different.
23168         (func_import): Use $makefile_am rather than
23169         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23170         empty.
23171
23172         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23173
23174 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23175
23176         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23177         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23178         recent change to stdint.m4, since we're now addressing the problem in a
23179         different way.
23180
23181 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23182
23183         * m4/fcntl_h.m4: New file.
23184
23185 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         * lib/fcntl_.h: New file.
23188         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23189         the fcntl module.
23190         * lib/dirchownmod.c: Likewise.
23191         * lib/fts.c: Likewise.
23192
23193         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23194         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23195         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23196         just before including <inttypes.h>, to avoid circular inclusion.
23197
23198 2006-08-28  Jim Meyering  <jim@meyering.net>
23199
23200         * doc/visibility.texi: Actually read and correct the grammar of the
23201         sentence affected by yesterday's change.
23202
23203 2006-08-28  Eric Blake  <ebb9@byu.net>
23204
23205         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23206         needs wrapper.
23207
23208 2006-08-28  Eric Blake  <ebb9@byu.net>
23209
23210         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23211
23212 2006-08-28  Eric Blake  <ebb9@byu.net>
23213
23214         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23215
23216 2006-08-28  Bruno Haible  <bruno@clisp.org>
23217
23218         * modules/c-strstr: New file, from GNU gettext.
23219         * MODULES.html.sh (String handling): Add c-strstr.
23220
23221 2006-08-28  Bruno Haible  <bruno@clisp.org>
23222
23223         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23224         macros.
23225         Reported by Eric Blake.
23226
23227 2006-08-28  Bruno Haible  <bruno@clisp.org>
23228
23229         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23230         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23231         * lib/vasprintf.c: Include errno.h, limits.h.
23232         (EOVERFLOW): New fallback definition.
23233         (vasprintf): Test here whether the string length is > INT_MAX.
23234         * lib/vsnprintf.c: Include errno.h, limits.h.
23235         (EOVERFLOW): New fallback definition.
23236         (vsnprintf): Fix bug when generated string was too long for the buffer.
23237         Test here whether the string length is > INT_MAX.
23238
23239 2006-08-28  Bruno Haible  <bruno@clisp.org>
23240
23241         * lib/inttypes_.h (SCNX*): Remove definitions.
23242         Reported by Eric Blake.
23243
23244 2006-08-28  Bruno Haible  <bruno@clisp.org>
23245
23246         * lib/c-strstr.h: New file, from GNU gettext.
23247         * lib/c-strstr.c: New file, from GNU gettext.
23248
23249 2006-08-28  Bruno Haible  <bruno@clisp.org>
23250
23251         * gnulib-tool: Reorder some statements.
23252
23253 2006-08-28  Bruno Haible  <bruno@clisp.org>
23254
23255         * gnulib-tool: New option --makefile-name.
23256         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23257         $makefile_name.
23258         (func_import): Write $makefile_name to the cache file, and read it from
23259         there unless explicitly specified. Use $makefile_name as file name
23260         instead of Makefile.am. Adjust the recommendations accordingly.
23261
23262 2006-08-28  Bruno Haible  <bruno@clisp.org>
23263
23264         * gnulib-tool (func_verify_module): Check against misapplying patch.
23265
23266 2006-08-28  Bruno Haible  <bruno@clisp.org>
23267
23268         * gnulib-tool (func_relativize, func_relconcat): New functions.
23269         Give an error if --local-dir is given with --update.
23270         Remove trailing slashes from $local_gnulib_dir.
23271         (func_import): Store the relativized $local_gnulib_dir in
23272         gnulib-cache.m4, and read it from there if not specified explicitly.
23273
23274 2006-08-28  Bruno Haible  <bruno@clisp.org>
23275
23276         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23277         is the current directory. Respect also $local_gnulib_dir.
23278
23279 2006-08-28  Bruno Haible  <bruno@clisp.org>
23280             Simon Josefsson  <jas@extundo.com>
23281
23282         BeOS portability.
23283         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23284
23285 2006-08-27  Jim Meyering  <jim@meyering.net>
23286
23287         * doc/visibility.texi: Remove duplicate word: "pointer".
23288
23289 2006-08-26  Bruno Haible  <bruno@clisp.org>
23290
23291         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23292         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23293         (Makefile.am): Create inttypes.h from inttypes_.h.
23294         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23295
23296         * modules/imaxabs: New file.
23297
23298         * modules/imaxdiv: New file.
23299
23300 2006-08-26  Bruno Haible  <bruno@clisp.org>
23301
23302         * m4/inttypes.m4: New file.
23303         * m4/_inttypes_h.m4: Remove file.
23304         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23305         PRI_MACROS_BROKEN.
23306         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23307
23308         * m4/imaxabs.m4: New file.
23309
23310         * m4/imaxdiv.m4: New file.
23311
23312 2006-08-26  Bruno Haible  <bruno@clisp.org>
23313
23314         * lib/inttypes_.h: New file.
23315         * lib/inttypes.h: Remove file.
23316         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23317
23318         * lib/imaxabs.c: New file.
23319
23320         * lib/imaxdiv.c: New file.
23321
23322 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23323
23324         New config-h module, so that "make" output needn't be cluttered
23325         by -DHAVE_CONFIG_H.
23326         * MODULES.html.sh (Support for building libraries and executables):
23327         Add config-h.
23328         * modules/config-h: New file.
23329         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23330         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23331         the config-h module is used.
23332
23333         New configmake module, so that "make" output needn't be cluttered
23334         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23335         * MODULES.html.sh (Support for building libraries and executables):
23336         Add configmake.
23337         * modules/configmake: New file.
23338
23339 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23340
23341         * m4/config-h.m4: New file.
23342
23343 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23344
23345         * config/srclist.txt: Add elisp-comp.
23346
23347 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23348
23349         * MODULES.html.sh (Support for building libraries and executables):
23350         Add elisp-comp.
23351         * build-aux/elisp-comp: New file.
23352         * modules/elisp-comp: New file.
23353
23354 2006-08-24  Bruno Haible  <bruno@clisp.org>
23355
23356         * gnulib-tool (func_create_testdir): Use non-default values of
23357         sourcebase and m4base.
23358
23359 2006-08-24  Bruno Haible  <bruno@clisp.org>
23360
23361         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23362         HTML structure.
23363
23364 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         * modules/openat (Depends-on): Add lchown.
23367
23368 2006-08-23  Bruno Haible  <bruno@clisp.org>
23369
23370         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23371         of gl_LOCK_EARLY instead of gl_LOCK.
23372
23373 2006-08-23  Bruno Haible  <bruno@clisp.org>
23374
23375         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23376         on OSF/1 to no.
23377         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23378
23379 2006-08-23  Bruno Haible  <bruno@clisp.org>
23380
23381         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23382         as unusable.
23383
23384         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23385         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23386         (gl_LOCK): New macro.
23387
23388 2006-08-22  Simon Josefsson  <jas@extundo.com>
23389
23390         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23391         to md5 module.
23392
23393 2006-08-22  Simon Josefsson  <jas@extundo.com>
23394
23395         * MODULES.html.sh: Add "Support for maintaining and release
23396         projects".
23397
23398         * build-aux/gnupload: New file, from coreutils.
23399
23400 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23401
23402         Avoid the need for AC_LIBSOURCES in m4 macros.
23403         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23404         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23405         * modules/check-version (EXTRA_DIST): Add check-version.h.
23406         * modules/crc (EXTRA_DIST): Add crc.h.
23407         * modules/des (EXTRA_DIST): Add des.h.
23408         * modules/gc (EXTRA_DIST): Add gc.h.
23409         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23410         * modules/getline (EXTRA_DIST): Add getline.h.
23411         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23412         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23413         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23414         * modules/md2 (EXTRA_DIST): Add md2.h.
23415         * modules/md4 (EXTRA_DIST): Add md4.h.
23416         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23417         * modules/read-file (EXTRA_DIST): Add read-file.h.
23418         * modules/readline (EXTRA_DIST): Add readline.h.
23419         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23420         rijndael-api-fst.h.
23421
23422 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23423
23424         * m4/rijndael.m4 (gl_ARCFOUR):
23425         * m4/arctwo.m4 (gl_ARCTWO):
23426         * m4/check-version.m4 (gl_CHECK_VERSION):
23427         * m4/crc.m4 (gl_CRC):
23428         * m4/des.m4 (gl_DES):
23429         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23430         * m4/gc.m4 (gl_GC):
23431         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23432         * m4/getline.m4 (gl_FUNC_GETLINE):
23433         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23434         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23435         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23436         * m4/md2.m4 (gl_MD2):
23437         * m4/md4.m4 (gl_MD4):
23438         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23439         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23440         * m4/readline.m4 (gl_FUNC_READLINE):
23441         * m4/rijndael.m4 (gl_RIJNDAEL):
23442         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23443         to get the necessary .h files and whatnot.
23444
23445 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23446
23447         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23448         gnulib rather than the other way around.
23449         * config/srclistvars.sh (COREUTILS): Remove.
23450
23451 2006-08-22  Jim Meyering  <jim@meyering.net>
23452
23453         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23454
23455         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23456
23457 2006-08-22  Eric Blake  <ebb9@byu.net>
23458
23459         * modules/regexprops-generic: New file.
23460         * MODULES.html.sh (Support for building documentation): List it.
23461
23462 2006-08-22  Eric Blake  <ebb9@byu.net>
23463
23464         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23465         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23466         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23467         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23468
23469 2006-08-22  Bruno Haible  <bruno@clisp.org>
23470
23471         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23472         and lib_LTLIBRARIES like the other lib_* variables.
23473
23474 2006-08-22  Bruno Haible  <bruno@clisp.org>
23475
23476         * build-aux/x-to-1.in: New file, from GNU gettext.
23477
23478 2006-08-22  Bruno Haible  <bruno@clisp.org>
23479
23480         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23481         <utmpx.h> exists.
23482
23483 2006-08-22  Bruno Haible  <bruno@clisp.org>
23484
23485         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23486         <utmpx.h> exists.
23487
23488 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23489
23490         BeOS portability.
23491         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23492         exist.
23493         Problem reported by Bruno Haible.
23494
23495 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23496
23497         Avoid the need for AC_LIBSOURCES in m4 macros.
23498         * modules/acl (EXTRA_DIST): Add acl.h.
23499         * modules/argmatch (Files): Add m4/argmatch.m4.
23500         (configure.ac): Add gl_ARGMATCH.
23501         (EXTRA_DIST): Renamed from lib_SOURCES, for
23502         consistency with the other modules.  Remove argmatch.c.
23503         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23504         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23505         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23506         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23507         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23508         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23509         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23510         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23511         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23512         * modules/closeout (EXTRA_DIST): Add closeout.h.
23513         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23514         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23515         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23516         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
23517         dirname.h; remove basename.c and stripslash.c.
23518         * modules/exclude (EXTRA_DIST): Add exclude.h.
23519         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23520         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23521         * modules/file-type (EXTRA_DIST): Add file-type.h.
23522         * modules/filemode (EXTRA_DIST): Add filemode.h.
23523         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23524         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23525         * modules/fpending (EXTRA_DIST): Add __fpending.h.
23526         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23527         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23528         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23529         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23530         * modules/getdate (EXTRA_DIST): Add getdate.c.
23531         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23532         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23533         * modules/getpass (EXTRA_DIST): Add getpass.h.
23534         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23535         * modules/group-member (EXTRA_DIST): Add group-member.h.
23536         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23537         * modules/hash (EXTRA_DIST): Add hash.h.
23538         * modules/human (EXTRA_DIST): Add human.h.
23539         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23540         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23541         * modules/lchown (EXTRA_DIST): Add lchown.h.
23542         * modules/long-options (EXTRA_DIST): Add long-options.h.
23543         * modules/lstat (EXTRA_DIST): Add lstat.h.
23544         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23545         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23546         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23547         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23548         * modules/memxor (EXTRA_DIST): Add memxor.h.
23549         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23550         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23551         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23552         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23553         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23554         * modules/physmem (EXTRA_DIST): Add physmem.h.
23555         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23556         * modules/posixver (EXTRA_DIST): Add posixver.h.
23557         * modules/quote (EXTRA_DIST): Add quote.h.
23558         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23559         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23560         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23561         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23562         regex_internal.h regexec.c.
23563         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23564         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23565         * modules/same (EXTRA_DIST): Add same.h.
23566         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23567         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23568         * modules/savedir (EXTRA_DIST): Add savedir.h.
23569         * modules/sha1 (EXTRA_DIST): Add sha1.h.
23570         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23571         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23572         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23573         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23574         * modules/strdup (EXTRA_DIST): Add strdup.h.
23575         * modules/strftime (EXTRA_DIST): Add strftime.h.
23576         * modules/strndup (EXTRA_DIST): Add strndup.h.
23577         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23578         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23579         * modules/time_r (EXTRA_DIST): Add time_r.h.
23580         * modules/timespec (EXTRA_DIST): Add timespec.h.
23581         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23582         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23583         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23584         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23585         * modules/userspec (EXTRA_DIST): Add userspec.h.
23586         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23587         * modules/utimens (EXTRA_DIST): Add utimens.h.
23588         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23589         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23590         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23591         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23592         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23593         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23594         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23595         * modules/yesno (EXTRA_DIST): Add yesno.h.
23596
23597 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23598
23599         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23600
23601         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23602         * m4/dev-ino.m4, same-inode.m4: Remove.
23603
23604         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23605         * m4/acl.m4 (AC_FUNC_ACL):
23606         * m4/backupfile.m4 (gl_BACKUPFILE):
23607         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23608         * m4/canon-host.m4 (gl_CANON_HOST):
23609         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23610         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23611         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23612         * m4/cloexec.m4 (gl_CLOEXEC):
23613         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23614         * m4/closeout.m4 (gl_CLOSEOUT):
23615         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23616         * m4/dirname.m4 (gl_DIRNAME):
23617         * m4/exclude.m4 (gl_EXCLUDE):
23618         * m4/exitfail.m4 (gl_EXITFAIL):
23619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23620         * m4/file-type.m4 (gl_FILE_TYPE):
23621         * m4/filemode.m4 (gl_FILEMODE):
23622         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23623         * m4/fpending.m4 (gl_FUNC_FPENDING):
23624         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23625         * m4/fts.m4 (gl_FUNC_FTS):
23626         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23627         * m4/getdate.m4 (gl_GETDATE):
23628         * m4/gethrxtime.m4 (gl_GETHRXTIME):
23629         * m4/getpagesize.m4 (gl_GETPAGESIZE):
23630         * m4/getpass.m4 (gl_FUNC_GETPASS):
23631         * m4/gettime.m4 (gl_GETTIME):
23632         * m4/getugroups.m4 (gl_GETUGROUPS):
23633         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23634         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23635         * m4/hard-locale.m4 (gl_HARD_LOCALE):
23636         * m4/hash.m4 (gl_HASH):
23637         * m4/idcache.m4 (gl_IDCACHE):
23638         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23639         * m4/lchown.m4 (gl_FUNC_LCHOWN):
23640         * m4/long-options.m4 (gl_LONG_OPTIONS):
23641         * m4/lstat.m4 (gl_FUNC_LSTAT):
23642         * m4/md5.m4 (gl_MD5):
23643         * m4/memcasecmp.m4 (gl_MEMCASECMP):
23644         * m4/memcoll.m4 (gl_MEMCOLL):
23645         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23646         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23647         * m4/memxor.m4 (gl_MEMXOR):
23648         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23649         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23650         * m4/modechange.m4 (gl_MODECHANGE):
23651         * m4/mountlist.m4 (gl_MOUNTLIST):
23652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23653         * m4/openat.m4 (gl_FUNC_OPENAT):
23654         * m4/pathmax.m4 (gl_PATHMAX):
23655         * m4/physmem.m4 (gl_PHYSMEM):
23656         * m4/posixtm.m4 (gl_POSIXTM):
23657         * m4/posixver.m4 (gl_POSIXVER):
23658         * m4/quote.m4 (gl_QUOTE):
23659         * m4/quotearg.m4 (gl_QUOTEARG):
23660         * m4/readtokens.m4 (gl_READTOKENS):
23661         * m4/readutmp.m4 (gl_READUTMP):
23662         * m4/regex.m4 (gl_REGEX):
23663         * m4/safe-read.m4 (gl_SAFE_READ):
23664         * m4/safe-write.m4 (gl_SAFE_WRITE):
23665         * m4/same.m4 (gl_SAME):
23666         * m4/save-cwd.m4 (gl_SAVE_CWD):
23667         * m4/savedir.m4 (gl_SAVEDIR):
23668         * m4/settime.m4 (gl_SETTIME):
23669         * m4/sha1.m4 (gl_SHA1):
23670         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23671         * m4/stat-macros.m4 (gl_STAT_MACROS):
23672         * m4/stat-time.m4 (gl_STAT_TIME):
23673         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23674         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23675         * m4/strdup.m4 (gl_FUNC_STRDUP):
23676         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23677         * m4/strndup.m4 (gl_FUNC_STRNDUP):
23678         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23679         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23680         * m4/time_r.m4 (gl_TIME_R):
23681         * m4/timespec.m4 (gl_TIMESPEC):
23682         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23683         * m4/unlinkdir.m4 (gl_UNLINKDIR):
23684         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23685         * m4/userspec.m4 (gl_USERSPEC):
23686         * m4/utimecmp.m4 (gl_UTIMECMP):
23687         * m4/utimens.m4 (gl_UTIMENS):
23688         * m4/xalloc.m4 (gl_XALLOC):
23689         * m4/xgetcwd.m4 (gl_XGETCWD):
23690         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23691         * m4/xreadlink.m4 (gl_XREADLINK):
23692         * m4/xstrtod.m4 (gl_XSTRTOD):
23693         * m4/yesno.m4 (gl_YESNO):
23694         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23695         to get the necessary .h files and whatnot.
23696
23697 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
23698             Bruno Haible  <bruno@clisp.org>
23699
23700         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23701         /bin/sh understanding of '!' conditional negation.
23702
23703 2006-08-21  Jim Meyering  <jim@meyering.net>
23704
23705         * modules/openat (Depends-on): Really alphabetize.
23706
23707         * modules/acl (Depends-on): Add error and quote.
23708
23709         * check-module (find_included_lib_files): Add at-func.c to the
23710         ok-to-include-more-than-once white list.
23711
23712         * modules/openat (Depends-on): Add lstat.  Alphabetize.
23713
23714 2006-08-21  Bruno Haible  <bruno@clisp.org>
23715
23716         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23717         Emit a pkgdata_DATA variable only if some snippets add contents to it.
23718         Reported by Martin Lambers <marlam@marlam.de>.
23719
23720 2006-08-21  Bruno Haible  <bruno@clisp.org>
23721
23722         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23723         specify an installation location, don't emit a noinst_LIBRARIES or
23724         noinst_LTLIBRARIES assignment.
23725
23726 2006-08-21  Bruno Haible  <bruno@clisp.org>
23727
23728         BeOS portability.
23729         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23730         BeOS has mbrtowc() but no <wctype.h>.
23731
23732 2006-08-21  Bruno Haible  <bruno@clisp.org>
23733
23734         BeOS portability.
23735         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23736         exist.
23737
23738 2006-08-21  Bruno Haible  <bruno@clisp.org>
23739
23740         BeOS portability.
23741         * lib/mbchar.h: Include <wctype.h> only if it exists.
23742
23743 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23744
23745         Remove files that are no longer needed by their respective modules.
23746         * m4/obstack.m4: Remove.
23747         * m4/strerror_r.m4: Remove.
23748         * m4/uint32_t.m4: Remove.
23749         * m4/uintptr_t.m4: Remove.
23750         * m4/ullong_max.m4: Remove.
23751         * m4/xstrtoimax.m4: Remove.
23752         * m4/xstrtoumax.m4: Remove.
23753
23754         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23755         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23756         dependencies now capture this.
23757
23758         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23759         Do not use AC_LIBSOURCES, since gnulib modules now do this.
23760         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23761         * m4/human.m4 (gl_HUMAN): Likewise.
23762         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23763         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23764
23765         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23766
23767         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23768         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23769         stdint.
23770         * m4/human.m4 (gl_HUMAN): Likewise.
23771         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23772         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23773         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23774         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23775         * m4/xstrtol (gl_XSTRTOL): Likewise.
23776
23777         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23778         AC_TYPE_LONG_LONG_INT.
23779         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23780         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23781         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23782         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23783
23784         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23785         on stdbool.
23786
23787         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23788         (gl_PREREQ_XSTRTOUL): Remove.
23789
23790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23791
23792         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23793         mode.
23794
23795 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23796
23797         Add and change modules to make it easier for coreutils to use
23798         gnulib-tool.
23799         * modules/backupfile (Files): Remove m4/d-ino.m4.
23800         (Depends-on): Add d-ino.
23801         * modules/cycle-check (Depends-on): Add stdint.
23802         (lib_SOURCES): Add cycle-check.h.
23803         * modules/d-ino: New module.
23804         * modules/d-type: New module.
23805         * modules/error (Files): Remove m4/strerror_r.m4.
23806         * modules/filemode (Files): Add m4/st_dm_mode.m4.
23807         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23808         m4/inttypes_h.m4, m4/uintmax_t.m4.
23809         (Depends-on): Add stdint.
23810         (lib_SOURCES): Add fsusage.h.
23811         * modules/getcwd (Files): Remove d-ino.m4.
23812         (Depends-on): Add d-ino.
23813         * modules/getndelim2 (Depends-on): Add stdint.
23814         * modules/glob (Files): Remove m4/d-type.m4.
23815         (Depends-on): Add d-type.
23816         * modules/host-os: New module.
23817         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
23818         m4/inttypes_h.m4, m4/uintmax_t.m4.
23819         * Depends-on: Add stdint.
23820         (lib_SOURCES): Add human.h.
23821         * modules/inttostr (Files): Remove m4/intmax_t.m4,
23822         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23823         m4/uintmax_t.m4, m4/ulonglong.m4.
23824         (Depends-on): Add stdint.
23825         (EXTRA_DIST): Add inttostr.h.
23826         * modules/lchmod: New module.
23827         * modules/link-follow: New module.
23828         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23829         (Depends-on): Add lchmod.
23830         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23831         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23832         (Depends-on): Add stdint.
23833         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23834         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23835         (Depends-on): Add stdint.
23836         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23837         * modules/perl: New module.
23838         * modules/regex (Depends-on): Add stdint.
23839         * modules/rmdir-errno: New module.
23840         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23841         m4/intmax_t.m4.
23842         (Depends-on): Add stdint.
23843         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23844         m4/uintmax_t.m4.
23845         (Depends-on): Add stdint.
23846         * modules/unlink-busy: New module.
23847         * modules/utimecmp (Depends-on): Add stdint.
23848         * modules/uptime: New module.
23849         * modules/winsz-ioctl: New module.
23850         * modules/winsz-termios: New module.
23851         * modules/xnanosleep (Depends-on): Add nanosleep.
23852         * modules/ullong_max: Remove.
23853         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23854         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23855         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23856         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23857         (Depends-on): Add inttypes.
23858         (lib_SOURCES): Add xstrtol.h.
23859         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23860         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23861         * MODULES.html.sh: Move 'assert' into the assert section.
23862         Move 'dummy' into the linking section.
23863         Remove ullong_max.
23864         Add section for compatibility checks for POSIX:2001 functions,
23865         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23866         winsz-ioctl, and winsz-termios into it.
23867         Add lchmod.
23868         Add top-level Misc section and put host-os, perl, and uptime
23869         into it.
23870
23871 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23872
23873         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23874         now assume the stdint module.  Do not include inttypes.h.
23875         * lib/fsusage.h: Likewise.
23876         * lib/getndelim2.c: Likewise.
23877         * lib/human.h: Likewise.
23878         * lib/inttostr.h: Likewise.
23879         * lib/obstack.c: Likewise.
23880         * lib/regex_internal.h: Likewise.
23881         * lib/tempname.c: Likewise.
23882         * lib/utimecmp.c: Likewise.
23883         * lib/xstrtol.h: Likewise.
23884
23885         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23886
23887         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23888         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23889         * lib/xtime.h: Likewise.
23890
23891 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23892
23893         * modules/openat (Files): Add lib/fchmodat.c.
23894         Fixes problem reported by Jay Youngman.
23895
23896 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23897
23898         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
23899         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
23900
23901 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23902             Bruno Haible  <bruno@clisp.org>
23903
23904         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
23905         and is a script that invokes bison. Tighten the code. Add comments.
23906
23907 2006-08-18  Jim Meyering  <jim@meyering.net>
23908
23909         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
23910         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
23911         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
23912         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
23913
23914 2006-08-18  Bruno Haible  <bruno@clisp.org>
23915
23916         * modules/bison-i18n: New file.
23917         * MODULES.html.sh (Internationalization functions): Add it.
23918
23919 2006-08-18  Bruno Haible  <bruno@clisp.org>
23920
23921         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
23922         sys/statvfs.h. When getmntinfo was found, check its declaration and
23923         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
23924
23925 2006-08-18  Bruno Haible  <bruno@clisp.org>
23926
23927         * m4/bison-i18n.m4: New file, from bison.
23928
23929 2006-08-18  Bruno Haible  <bruno@clisp.org>
23930
23931         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
23932         (ME_DUMMY): Treat "kernfs" as a dummy.
23933         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
23934
23935 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23936
23937         Update from coreutils.
23938
23939         2006-08-15  Jim Meyering  <jim@meyering.net>
23940
23941         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
23942
23943         2006-01-17  Jim Meyering  <jim@meyering.net>
23944
23945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
23946
23947         2006-01-11  Jim Meyering  <jim@meyering.net>
23948
23949         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
23950         Check for the lchmod function.
23951
23952 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         Update from coreutils.
23955
23956         * lib/__fpending.h: Add copyright notice.
23957         * lib/fprintftime.h: Likewise.
23958         * lib/savedir.c: Use (C) in copyright notice.
23959         * lib/savedir.h: Likewise.
23960
23961         2006-08-15  Jim Meyering  <jim@meyering.net>
23962
23963         * lib/at-func.c: New file, with the logic of all emulated at-functions.
23964         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23965         in support of the EXPECTED_ERRNO macro.
23966         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23967         definitions.  Instead, define the appropriate symbols and include
23968         "at-func.c".
23969         * lib/mkdirat.c (mkdirat): Likewise.
23970         * lib/fchmodat.c (fchmodat): Likewise.
23971         (ENOSYS): Remove definition.
23972         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
23973         it.  Don't include "unistd--.h" -- it wasn't ever used.
23974
23975         2006-01-17  Jim Meyering  <jim@meyering.net>
23976
23977         Rewrite fts.c not to change the current working directory,
23978         by using openat, fstatat, fdopendir, etc..
23979
23980         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
23981         (HAVE_OPENAT_SUPPORT): Define.
23982         [_LIBC] (fchdir): Don't undef or define; no longer used.
23983         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
23984         Now, this `function' always succeeds, and consumes its file descriptor
23985         parameter -- so callers must not close such FDs.  Update callers.
23986         (diropen_fd, opendirat, cwd_advance_fd): New functions.
23987         (diropen): Add parameter, SP.  Adjust all callers.
23988         Implement using diropen_fd, rather than open.
23989         (fts_open): Initialize new member, fts_cwd_fd.
23990         Remove fts_rft-setting code.
23991         (fts_close): Close fts_cwd_fd, if necessary.
23992         (__opendir2): Define in terms of opendir or opendirat,
23993         depending on whether the FST_NOCHDIR flag is set.
23994         (fts_build): Since fts_safe_changedir consumes its FD, and since
23995         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
23996         and close the dup'd file descriptor upon failure.
23997         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
23998         (fts_safe_changedir): Tweak semantics to reflect that this function
23999         now calls cwd_advance_fd and hence consumes its FD argument.
24000         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24001         [struct FTS] (fts_rft): Remove now-unused member.
24002         [struct FTS] (fts_cycle.state): Improve comment.
24003
24004         * lib/openat.c (openat_needs_fchdir): New function.
24005         * lib/openat.h (openat_needs_fchdir): Declare it.
24006
24007 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24008
24009         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24010         Problem and fix reported by Pádraig Brady in
24011         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24012
24013 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24014
24015         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24016
24017 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24018
24019         * lib/memcoll.c (memcoll): Optimize for the common case where the
24020         arguments are bytewise equal.
24021
24022 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24023
24024         * doc/regexprops-generic.texi: Add a copyright notice.
24025
24026 2006-08-15  Bruno Haible  <bruno@clisp.org>
24027
24028         * modules/tmpdir (License): Change to LGPL.
24029
24030 2006-08-15  Bruno Haible  <bruno@clisp.org>
24031
24032         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24033         module.
24034
24035 2006-08-14  Simon Josefsson  <jas@extundo.com>
24036
24037         * config/srclist.txt: Add gnupload.
24038
24039 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24040
24041         Change copyright notice from LGPL 2 to GPL 2, since that's the
24042         standard form used in the gnulib repository.
24043         * tests/test-lock.c: Likewise.
24044         * tests/test-stdint.c: Likewise.
24045         * tests/test-tls.c: Likewise.
24046
24047         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24048         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24049         Add copyright notice.
24050
24051         * check-module: Add copyright notice.  Output a copyright
24052         notice if "--version" is specified.
24053         * modules/COPYING: New file.
24054         * tests/test-getaddrinfo.c: Add copyright notice.
24055         * tests/test-verify.c: Likewise.
24056
24057 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         Change copyright notice from LGPL 2 to GPL 2, since that's the
24060         standard form used in the gnulib repository.
24061         * lib/lock.c: LGPL -> GPL.
24062         * lib/lock.h: Likewise.
24063         * lib/strnlen1.c: Likewise.
24064         * lib/strnlen1.h: Likewise.
24065         * lib/tls.c: Likewise.
24066         * lib/tls.h: Likewise.
24067         * lib/tmpdir.c: Likewise.
24068
24069         * lib/TODO: Remove; this belongs only in coreutils.
24070
24071 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24072
24073         Add copyright notices to long-enough files that lack them, since
24074         otherwise the files aren't clearly free.  Use the same notice that
24075         getdate.texi already uses.
24076         * doc/alloca-opt.texi: Add copyright notice.
24077         * doc/alloca.texi: Likewise.
24078         * doc/ctime.texi: Likewise.
24079         * doc/functions.texi: Likewise.
24080         * doc/gcd.texi: Likewise.
24081         * doc/gnulib-tool.texi: Likewise.
24082         * doc/inet_ntoa.texi: Likewise.
24083         * doc/visibility.texi: Likewise.
24084
24085         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24086         * doc/quote.texi: Add copyright notice.
24087
24088         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24089         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24090         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24091         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24092         is now obsolete, and give a pointer to the Sun list.
24093         Add copyright notice.
24094
24095 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24096
24097         * config/srclistvars.sh: Add copyright notice.
24098
24099 2006-08-14  Eric Blake  <ebb9@byu.net>
24100
24101         Import the following change from libc:
24102
24103         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24104
24105         Upstream bug 2997.
24106         * lib/misc/error.c: Add space between program name and message if file
24107         name is missing.
24108
24109 2006-08-12  Karl Berry  <karl@gnu.org>
24110
24111         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24112         remove, these originate in gnulib now.
24113
24114 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24115
24116         * doc/Makefile (standards.info standards.html standards.dvi):
24117         Also depend on make-stds.texi.
24118
24119 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24120
24121         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24122         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24123
24124         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24125         in wchar_t.  Problem reported by Eric Blake.
24126
24127         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24128         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24129         Also, help the compiler to keep LEN in a register.
24130
24131 2006-08-11  Eric Blake  <ebb9@byu.net>
24132
24133         * users.txt: Sort.  Add tar.
24134
24135 2006-08-11  Bruno Haible  <bruno@clisp.org>
24136
24137         * users.txt: New file.
24138
24139 2006-08-11  Bruno Haible  <bruno@clisp.org>
24140
24141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24142         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24143
24144 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24145
24146         * modules/snprintf (Depends-on): Remove minmax.
24147         (Maintainer): Add self and Bruno.
24148
24149 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24150
24151         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24152         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24153         (EOVERFLOW): Define if the system does not.
24154         Do not include "minmax.h"; it wasn't used.
24155         (snprintf): Don't assume size_t promotes to an unsigned type.
24156         Fix bug when generated string was too long for the buffer: the
24157         buffer's contents are supposed to be the initial prefix of the
24158         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24159         exceeds INT_MAX; do the check ourselves.
24160
24161         Import the following changes from libc:
24162
24163         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24164
24165         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24166         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24167         set wc to the byte which couldn't be converted.
24168         (re_string_reconstruct): Don't clear valid_raw_len before calling
24169         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24170         tip_context using re_string_context_at.
24171
24172         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24173
24174         * lib/posix/regex.h: g++ still cannot handled [restrict].
24175
24176         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24177
24178         * lib/posix/regex.h: Remove special handling for VMS.
24179
24180 2006-08-10  Jim Meyering  <jim@meyering.net>
24181
24182         * modules/same-inode: New module.
24183         * modules/dev-ino: New module.
24184         * modules/cycle-check: Depend on these modules, rather than simply
24185         including their .h files.
24186         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24187         required via m4/cycle-check.m4.
24188         * modules/same: Depend on new same-inode module, rather than
24189         including same-inode.h.
24190         * modules/chdir-safer: New file.
24191
24192         * modules/chown (Depends-on): Add stat-macros.
24193
24194 2006-08-10  Jim Meyering  <jim@meyering.net>
24195
24196         * m4/cycle-check.m4: New file.
24197         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24198         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24199
24200 2006-08-10  Eric Blake  <ebb9@byu.net>
24201
24202         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24203         in from original proposal.
24204
24205 2006-08-10  Eric Blake  <ebb9@byu.net>
24206         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24207
24208         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24209         namespace.
24210
24211 2006-08-10  Bruno Haible  <bruno@clisp.org>
24212
24213         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24214         as well.
24215
24216 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24217
24218         Sync from coreutils.
24219
24220         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24221
24222         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24223         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24224
24225 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24226
24227         * modules/restrict: Remove; no longer needed now that we assume
24228         Autoconf 2.59 or later.
24229         * MODULES.html.sh: Remove 'restrict'.
24230         * modules/argp (Depends-on): Remove 'restrict'.
24231         * modules/base64 (Depends-on): Likewise.
24232         * modules/gc (Depends-on): Likewise.
24233         * modules/getaddrinfo (Depends-on): Likewise.
24234         * modules/glob (Depends-on): Likewise.
24235         * modules/inet_ntop (Depends-on): Likewise.
24236         * modules/inet_pton (Depends-on): Likewise.
24237         * modules/memxor (Depends-on): Likewise.
24238         * modules/regex (Depends-on): Likewise.
24239         * modules/strtok_r (Depends-on): Likewise.
24240         * modules/time_r (Depends-on): Likewise.
24241
24242 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24243
24244         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24245         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24246         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24247         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24248         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24249         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24250         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24251         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24252
24253         Merge from coreutils.
24254         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24255         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24256         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24257         * m4/time_r.m4 (gl_TIME_R): Likewise.
24258
24259 2006-08-09  Karl Berry  <karl@gnu.org>
24260
24261         * config/srclist.txt: no more gettext-tools, per Bruno.
24262
24263 2006-08-08  Eric Blake  <ebb9@byu.net>
24264
24265         * modules/verror: New module.
24266         * MODULES.html.sh: Document it.
24267
24268 2006-08-08  Eric Blake  <ebb9@byu.net>
24269
24270         * lib/verror.h, lib/verror.c: New files.
24271
24272 2006-08-08  Eric Blake  <ebb9@byu.net>
24273
24274         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24275         verror_at_line output complies with GNU Coding Standards even when
24276         file is NULL.
24277
24278 2006-08-07  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24281         versions of AIX.
24282         Reported by Ralf Wildenhues.
24283
24284 2006-08-07  Bruno Haible  <bruno@clisp.org>
24285
24286         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24287         in an AC_DEFUN. Needed so that the autoconf snippets can use
24288         AC_REQUIRE.
24289
24290 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24291
24292         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24293         Initialize pkgdata_DATA.
24294         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24295         overriding it.
24296
24297 2006-08-06  Eric Blake  <ebb9@byu.net>
24298
24299         * lib/error.h: Fold in some upstream changes from glibc.
24300         * lib/error.c: Likewise.
24301
24302 2006-08-04  Bruno Haible  <bruno@clisp.org>
24303
24304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24305         Make the mostlyclean-local rule depend on mostlyclean-generic.
24306         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24307
24308 2006-07-31  Bruno Haible  <bruno@clisp.org>
24309
24310         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24311         <stdlib.h>, <string.h>.
24312
24313 2006-07-30  Bruno Haible  <bruno@clisp.org>
24314
24315         * modules/readlink (License): Change to LGPL.
24316
24317 2006-07-30  Bruno Haible  <bruno@clisp.org>
24318
24319         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24320         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24321         set PKGDATADIR to point to it.
24322
24323 2006-07-30  Bruno Haible  <bruno@clisp.org>
24324
24325         * modules/csharpexec (configure.ac): Comment out macro invocation.
24326         * modules/javaexec (configure.ac): Likewise.
24327         * modules/javacomp-script (configure.ac): Likewise.
24328
24329         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24330
24331 2006-07-30  Bruno Haible  <bruno@clisp.org>
24332
24333         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24334         linked-list.
24335
24336 2006-07-30  Bruno Haible  <bruno@clisp.org>
24337
24338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24339
24340 2006-07-30  Bruno Haible  <bruno@clisp.org>
24341
24342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24343         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24344         get removed.
24345
24346 2006-07-29  Bruno Haible  <bruno@clisp.org>
24347
24348         Make it possible for gnulib-tool to work with locally modified or
24349         augmented gnulib repositories.
24350         * gnulib-tool (func_usage): Document --local-dir option.
24351         (local_gnulib_dir): New variable.
24352         Handle --local-dir option.
24353         (func_lookup_file): New function.
24354         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24355         (func_get_description, func_get_filelist, func_get_description,
24356         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24357         func_get_automake_snippet, func_get_include_directive,
24358         func_get_license, func_get_maintainer): Use func_lookup_file.
24359         (func_import, func_create_testdir): Use func_lookup_file.
24360
24361 2006-07-29  Bruno Haible  <bruno@clisp.org>
24362
24363         * modules/setenv (Depends-on): Add unistd.
24364
24365 2006-07-29  Bruno Haible  <bruno@clisp.org>
24366
24367         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24368
24369 2006-07-29  Bruno Haible  <bruno@clisp.org>
24370
24371         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24372
24373 2006-07-29  Bruno Haible  <bruno@clisp.org>
24374
24375         * gnulib-tool (import, update): If there is no Makefile.am, look at
24376         aclocal.m4, instead of bailing out.
24377
24378 2006-07-29  Bruno Haible  <bruno@clisp.org>
24379
24380         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24381         Categorize the options by when they are useful.
24382
24383 2006-07-29  Bruno Haible  <bruno@clisp.org>
24384
24385         * gnulib-tool (func_usage): Document option --no-libtool.
24386         Handle option --no-libtool.
24387         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24388         for changed semantics of $libtool variable.
24389         (func_import): Likewise. If libtool is not used, show this through
24390         an option --no-libtool.
24391         (func_create_testdir): Update.
24392
24393 2006-07-29  Bruno Haible  <bruno@clisp.org>
24394
24395         * gnulib-tool (func_import): Extend error message about missing
24396         --doc-base.
24397
24398 2006-07-29  Bruno Haible  <bruno@clisp.org>
24399
24400         * gnulib-tool (func_import): Don't create the $docbase directory if
24401         there is no file to store there.
24402
24403 2006-07-29  Bruno Haible  <bruno@clisp.org>
24404
24405         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24406         relevant, look for configure.ac there, not in the current directory.
24407         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24408
24409 2006-07-29  Bruno Haible  <bruno@clisp.org>
24410
24411         * gnulib-tool (SORT): New variable.
24412         (func_usage): Undocument --assume-autoconf option.
24413         Remove --assume-autoconf option handling.
24414         (autoconf_minversion): Determine from the contents of configure.ac.
24415         (func_import): Remove autoconf_minversion handling.
24416         Suggested by Eric Blake.
24417
24418 2006-07-29  Bruno Haible  <bruno@clisp.org>
24419
24420         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24421
24422 2006-07-29  Bruno Haible  <bruno@clisp.org>
24423
24424         * config/srclist.txt (*setenv.[ch]): Remove rules.
24425
24426 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24427
24428         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24429
24430 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24431
24432         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24433         arpa/inet.h.
24434
24435 2006-07-28  Simon Josefsson  <jas@extundo.com>
24436
24437         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24438         * modules/inet_pton (Depends-on): Likewise.
24439
24440 2006-07-28  Simon Josefsson  <jas@extundo.com>
24441
24442         * m4/netinet_in_h.m4: New file.
24443
24444 2006-07-28  Simon Josefsson  <jas@extundo.com>
24445
24446         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24447         #include's.
24448
24449 2006-07-28  Simon Josefsson  <jas@extundo.com>
24450
24451         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24452         #include's.
24453
24454 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24455
24456         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24457         setgid on directories only if they set these bits.
24458         * lib/modechange.h: Remove obsolete comment about masks.
24459
24460 2006-07-28  Eric Blake  <ebb9@byu.net>
24461
24462         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24463         macro expansion.
24464
24465 2006-07-28  Bruno Haible  <bruno@clisp.org>
24466
24467         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24468
24469 2006-07-28  Bruno Haible  <bruno@clisp.org>
24470
24471         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24472
24473 2006-07-28  Bruno Haible  <bruno@clisp.org>
24474
24475         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24476         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24477         Define fallbacks.
24478         Avoids link error on FreeBSD 4.x.
24479         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24480
24481         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24482         encoding.
24483         * lib/mbswidth.c (iswcntrl): Likewise.
24484
24485 2006-07-27  Bruno Haible  <bruno@clisp.org>
24486
24487         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24488         test.
24489
24490 2006-07-27  Bruno Haible  <bruno@clisp.org>
24491
24492         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24493         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24494         defined.
24495
24496 2006-07-26  Eric Blake  <ebb9@byu.net>
24497
24498         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24499
24500 2006-07-26  Eric Blake  <ebb9@byu.net>
24501
24502         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24503         like mingw that lack mkstemp.
24504         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24505         avoid compilation warning on mingw.
24506
24507 2006-07-26  Bruno Haible  <bruno@clisp.org>
24508
24509         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24510         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24511         INT_FAST*_MIN, INTPTR_MIN.
24512
24513 2006-07-25  Bruno Haible  <bruno@clisp.org>
24514
24515         * modules/version-etc (Depends-on): Add stdarg.
24516
24517 2006-07-25  Bruno Haible  <bruno@clisp.org>
24518
24519         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24520         complex commands.
24521
24522 2006-07-25  Bruno Haible  <bruno@clisp.org>
24523
24524         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24525         defined in <stdarg.h> or config.h.
24526
24527 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24528
24529         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24530         (gl_STDIO_SAFER): Remove.
24531
24532 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24533
24534         * MODULES.html.sh (File stream based Input/Output):
24535         Add fopen-safer, tmpfile-safer; remove stdio-safer.
24536         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24537         * modules/fopen-safer, modules/tmpfile-safer: New files.
24538         * modules/stdio-safer: Remove.
24539
24540 2006-07-24  Bruno Haible  <bruno@clisp.org>
24541
24542         * modules/tmpdir: New file.
24543         * MODULES.html.sh (File system functions): Add it.
24544
24545 2006-07-24  Bruno Haible  <bruno@clisp.org>
24546
24547         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24548         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24549
24550 2006-07-24  Bruno Haible  <bruno@clisp.org>
24551
24552         * modules/clean-temp: New file.
24553
24554 2006-07-24  Bruno Haible  <bruno@clisp.org>
24555
24556         * m4/tmpdir.m4: New file, from GNU gettext.
24557
24558 2006-07-24  Bruno Haible  <bruno@clisp.org>
24559
24560         * lib/tmpdir.h: New file, from GNU gettext.
24561         * lib/tmpdir.c: New file, from GNU gettext.
24562
24563 2006-07-24  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/clean-temp.h: New file, from GNU gettext.
24566         * lib/clean-temp.c: New file, from GNU gettext.
24567
24568 2006-07-23  Eric Blake  <ebb9@byu.net>
24569
24570         * modules/stdio-safer (Files): Add tmpfile-safer.c.
24571         (Depends-on): Add binary-io.
24572
24573 2006-07-23  Eric Blake  <ebb9@byu.net>
24574
24575         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24576
24577 2006-07-23  Eric Blake  <ebb9@byu.net>
24578
24579         * lib/tmpfile-safer.c: New file.
24580         * lib/stdio-safer.h (fopen_safer): Add prototype.
24581         * lib/stdio--.h (tmpfile): Make safer.
24582
24583 2006-07-23  Bruno Haible  <bruno@clisp.org>
24584
24585         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24586         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24587         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24588         gl_linked_remove_at): Use it.
24589
24590 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24591         and Simon Josefsson <jas@extundo.com>
24592
24593         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24594
24595         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24596
24597 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         * modules/close-stream: New file.
24600         * modules/closeout (Description): Make it clear that it exits
24601         with a diagnostic on error.
24602         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24603         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24604
24605 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24606
24607         * m4/close-stream.m4: New file.
24608
24609 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24610
24611         * lib/close-stream.c, lib/close-stream.h: New files.
24612
24613 2006-07-22  Bruno Haible  <bruno@clisp.org>
24614
24615         Merge from GNU gettext 0.15.
24616
24617         2006-05-01  Bruno Haible  <bruno@clisp.org>
24618
24619                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24620
24621         2006-07-22  Bruno Haible  <bruno@clisp.org>
24622
24623                 * modules/javaversion: New file.
24624                 * MODULES.html.sh (Java): Add javaversion.
24625
24626         2006-03-12  Bruno Haible  <bruno@clisp.org>
24627
24628                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24629
24630         2005-12-04  Bruno Haible  <bruno@clisp.org>
24631
24632                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24633                 (untested).
24634
24635         2006-06-21  Bruno Haible  <bruno@clisp.org>
24636
24637                 Avoid warnings from recent versions of mcs.
24638                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24639                 -o, -L, -r any more. Use options documented since mcs-1.0
24640                 instead. Similarly for -g.
24641
24642         2005-12-04  Bruno Haible  <bruno@clisp.org>
24643
24644                 * build-aux/csharpcomp.sh.in: Suffix for resources is
24645                 .resources, not .resource.
24646
24647         2005-07-09  Bruno Haible  <bruno@clisp.org>
24648
24649                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24650                 add a .dll suffix.
24651                 Reported by Mark Junker <mjscod@gmx.de>.
24652
24653         2006-07-22  Bruno Haible  <bruno@clisp.org>
24654
24655                 * modules/gettext: Upgrade to gettext-0.15.
24656                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24657                 m4/visibility.m4.
24658                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24659
24660 2006-07-22  Bruno Haible  <bruno@clisp.org>
24661
24662         Merge from GNU gettext 0.15.
24663
24664         2006-03-25  Bruno Haible  <bruno@clisp.org>
24665
24666                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24667
24668         2006-07-21  Bruno Haible  <bruno@clisp.org>
24669
24670                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24671                 "1.1".
24672
24673         2006-05-09  Bruno Haible  <bruno@clisp.org>
24674
24675                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24676                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24677                 for the conftestver execution.
24678
24679         2006-05-01  Bruno Haible  <bruno@clisp.org>
24680
24681                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24682                 optional target-version argument. Verify that the compiler
24683                 groks source of the specified source-version, or add -source
24684                 option as necessary. Verify that the compiler produces
24685                 bytecode in the specified target-version, or add -target and
24686                 -source options as necessary. Make the result of the test
24687                 available as variable CONF_JAVAC. Also log error output in
24688                 config.log.
24689
24690         2006-03-11  Bruno Haible  <bruno@clisp.org>
24691
24692                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24693
24694         2006-05-09  Bruno Haible  <bruno@clisp.org>
24695
24696                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24697                 CLASSPATH_SEPARATOR to a semicolon.
24698
24699         2006-03-12  Bruno Haible  <bruno@clisp.org>
24700
24701                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24702                 available as variable CONF_JAVA, for subsequent autoconf
24703                 tests. Also log error output in config.log.
24704
24705         2006-07-19  Bruno Haible  <bruno@clisp.org>
24706
24707                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24708                 that getline works on glibc2 systems. Needed to avoid trouble
24709                 in relocatable.c.
24710                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24711
24712         2005-12-04  Bruno Haible  <bruno@clisp.org>
24713
24714                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24715                 launcher (untested).
24716
24717         2005-12-04  Bruno Haible  <bruno@clisp.org>
24718
24719                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24720
24721         2006-07-22  Bruno Haible  <bruno@clisp.org>
24722
24723                 * gettext.m4: Update from GNU gettext-0.15.
24724                 * nls.m4: Likewise.
24725                 * po.m4: Likewise.
24726                 * inttypes-pri.m4: Likewise.
24727                 * inttypes-h.m4: Renamed from inttypes.m4.
24728                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24729
24730 2006-07-22  Bruno Haible  <bruno@clisp.org>
24731
24732         Merge from GNU gettext 0.15.
24733
24734         2005-07-05  Bruno Haible  <bruno@clisp.org>
24735
24736                 * printf-args.c (printf_fetchargs): Work around broken
24737                 definition of wint_t on mingw.
24738
24739         2005-02-12  Bruno Haible  <bruno@clisp.org>
24740
24741                 * xallocsa.h: Add extern "C" for C++.
24742
24743         2006-05-17  Bruno Haible  <bruno@clisp.org>
24744
24745                 Cygwin portability.
24746                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24747
24748         2006-04-30  Bruno Haible  <bruno@clisp.org>
24749
24750                 * progreloc.c: Include <mach-o/dyld.h> if available.
24751                 (find_executable): Use _NSGetExecutablePath when possible.
24752
24753         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
24754
24755                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24756                 function.
24757
24758         2005-12-29  Bruno Haible  <bruno@clisp.org>
24759
24760                 * progreloc.c (set_program_name_and_installdir): Fix
24761                 compilation error.
24762
24763         2005-12-04  Bruno Haible  <bruno@clisp.org>
24764
24765                 Cygwin portability.
24766                 * progreloc.c: Include <windows.h> also on Cygwin.
24767                 (find_executable): Add support for Cygwin.
24768                 (set_program_name_and_installdir): Handle also platforms with
24769                 nonempty EXEEXT.
24770
24771         2006-07-11  Bruno Haible  <bruno@clisp.org>
24772
24773                 * javacomp.c: Fix a comment.
24774                 Reported by Jim Meyering.
24775
24776         2006-04-30  Bruno Haible  <bruno@clisp.org>
24777
24778                 * javacomp.h (compile_java_class): Add source_version,
24779                 target_version arguments.
24780                 * javacomp.c: Rewritten to choose only a compiler that
24781                 respects the specified source_version and target_version.
24782
24783         2006-06-27  Bruno Haible  <bruno@clisp.org>
24784
24785                 Assume correct S_ISDIR macro.
24786                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24787
24788         2006-07-22  Bruno Haible  <bruno@clisp.org>
24789
24790                 * javaversion.h: New file, from GNU gettext.
24791                 * javaversion.c: New file, from GNU gettext.
24792                 * javaversion.java: New file, from GNU gettext.
24793                 * javaversion.class: New file, from GNU gettext.
24794
24795         2006-05-17  Bruno Haible  <bruno@clisp.org>
24796
24797                 Cygwin portability.
24798                 * javaexec.c (execute_java_class): Test for jview program
24799                 also on Cygwin.
24800
24801         2006-04-09  Bruno Haible  <bruno@clisp.org>
24802
24803                 * fatal-signal.c: Don't include string.h.
24804                 (at_fatal_signal): Use a copying loop instead of memcpy.
24805
24806         2005-12-04  Bruno Haible  <bruno@clisp.org>
24807
24808                 * csharpexec.c: Add support for 'clix' launcher (untested).
24809                 (execute_csharp_using_sscli): New function.
24810                 (execute_csharp_program): Call it.
24811
24812         2006-06-21  Bruno Haible  <bruno@clisp.org>
24813
24814                 Avoid warnings from recent versions of mcs.
24815                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24816                 -o, -L, -r any more. Use options documented since mcs-1.0
24817                 instead. Similarly for -g.
24818
24819         2005-07-09  Bruno Haible  <bruno@clisp.org>
24820
24821                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24822                 add a .dll suffix.
24823                 Reported by Mark Junker <mjscod@gmx.de>.
24824
24825         2006-06-17  Bruno Haible  <bruno@clisp.org>
24826
24827                 * config.charset: Update for NetBSD 3.0.
24828
24829         2006-05-17  Bruno Haible  <bruno@clisp.org>
24830
24831                 Cygwin portability.
24832                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24833
24834         2006-05-16  Bruno Haible  <bruno@clisp.org>
24835
24836                 * localcharset.c [CYGWIN]: Include <windows.h>.
24837                 (get_charset_aliases): For Cygwin, return the same CPxxx
24838                 aliases list as under WIN32.
24839                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24840                 the environment variables. Fall back to GetACP().
24841
24842         2006-04-05  Bruno Haible  <bruno@clisp.org>
24843
24844                 * config.charset: Update Juan Manuel Guerrero's address.
24845
24846         2005-02-12  Bruno Haible  <bruno@clisp.org>
24847
24848                 * allocsa.h: Add extern "C" for C++.
24849
24850         2005-02-10  Bruno Haible  <bruno@clisp.org>
24851
24852                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24853                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24854
24855         2006-07-22  Bruno Haible  <bruno@clisp.org>
24856
24857                 * gettext.h: Update to GNU gettext-0.15.
24858
24859 2006-07-22  Bruno Haible  <bruno@clisp.org>
24860
24861         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24862         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24863         lib-prefix.m4, longdouble.m4, ssize_t.m4.
24864
24865 2006-07-21  Eric Blake  <ebb9@byu.net>
24866
24867         * modules/stdlib-safer: New file.
24868         * MODULES.html.sh (File stream based Input/Output): Add
24869         stdlib-safer.
24870
24871 2006-07-21  Eric Blake  <ebb9@byu.net>
24872
24873         * lib/stdlib-safer.h: New file from coreutils, required by
24874         stdlib--.h.
24875
24876 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
24877
24878         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24879
24880 2006-07-20  Bruno Haible  <bruno@clisp.org>
24881
24882         * gnulib-tool: Recognize new option --assume-autoconf.
24883         (autoconf_minversion): New variable.
24884         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24885
24886 2006-07-20  Bruno Haible  <bruno@clisp.org>
24887
24888         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24889
24890 2006-07-19  Derek R. Price  <derek@ximbiot.com>
24891
24892         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
24893         Reindent and repaginate.
24894
24895 2006-07-19  Derek Price  <derek@ximbiot.com>
24896
24897         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
24898         Correct grammar.
24899
24900 2006-07-17  Bruno Haible  <bruno@clisp.org>
24901
24902         * modules/list: New file.
24903         * modules/array-list: New file.
24904         * modules/carray-list, modules/carray-list-tests: New files.
24905         * modules/linked-list, modules/linked-list-tests: New files.
24906         * modules/avltree-list, modules/avltree-list-tests: New files.
24907         * modules/rbtree-list, modules/rbtree-list-tests: New files.
24908         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
24909         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
24910         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
24911         * modules/oset: New file.
24912         * modules/array-oset: New file.
24913         * modules/avltree-oset, modules/avltree-oset-tests: New files.
24914         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
24915         * tests/test-carray_list.c: New file.
24916         * tests/test-linked_list.c: New file.
24917         * tests/test-avltree_list.c: New file.
24918         * tests/test-rbtree_list.c: New file.
24919         * tests/test-linkedhash_list.c: New file.
24920         * tests/test-avltreehash_list.c: New file.
24921         * tests/test-rbtreehash_list.c: New file.
24922         * tests/test-avltree_oset.c: New file.
24923         * tests/test-rbtree_oset.c: New file.
24924         * MODULES.html.sh (Container data structures): New section.
24925
24926 2006-07-17  Bruno Haible  <bruno@clisp.org>
24927
24928         * m4/gl_list.m4: New file.
24929
24930 2006-07-17  Bruno Haible  <bruno@clisp.org>
24931
24932         * lib/gl_list.h: New file.
24933         * lib/gl_list.c: New file.
24934         * lib/gl_array_list.h: New file.
24935         * lib/gl_array_list.c: New file.
24936         * lib/gl_carray_list.h: New file.
24937         * lib/gl_carray_list.c: New file.
24938         * lib/gl_linked_list.h: New file.
24939         * lib/gl_linked_list.c: New file.
24940         * lib/gl_anylinked_list1.h: New file.
24941         * lib/gl_anylinked_list2.h: New file.
24942         * lib/gl_avltree_list.h: New file.
24943         * lib/gl_avltree_list.c: New file.
24944         * lib/gl_anyavltree_list1.h: New file.
24945         * lib/gl_anyavltree_list2.h: New file.
24946         * lib/gl_rbtree_list.h: New file.
24947         * lib/gl_rbtree_list.c: New file.
24948         * lib/gl_anyrbtree_list1.h: New file.
24949         * lib/gl_anyrbtree_list2.h: New file.
24950         * lib/gl_anytree_list1.h: New file.
24951         * lib/gl_anytree_list2.h: New file.
24952         * lib/gl_linkedhash_list.h: New file.
24953         * lib/gl_linkedhash_list.c: New file.
24954         * lib/gl_anyhash_list1.h: New file.
24955         * lib/gl_anyhash_list2.h: New file.
24956         * lib/gl_avltreehash_list.h: New file.
24957         * lib/gl_avltreehash_list.c: New file.
24958         * lib/gl_rbtreehash_list.h: New file.
24959         * lib/gl_rbtreehash_list.c: New file.
24960         * lib/gl_anytreehash_list1.h: New file.
24961         * lib/gl_anytreehash_list2.h: New file.
24962
24963         * lib/gl_oset.h: New file.
24964         * lib/gl_oset.c: New file.
24965         * lib/gl_array_oset.h: New file.
24966         * lib/gl_array_oset.c: New file.
24967         * lib/gl_avltree_oset.h: New file.
24968         * lib/gl_avltree_oset.c: New file.
24969         * lib/gl_rbtree_oset.h: New file.
24970         * lib/gl_rbtree_oset.c: New file.
24971         * lib/gl_anytree_oset.h: New file.
24972
24973 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         * m4/mkancesdirs.m4: New file.
24976         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
24977         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
24978         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
24979         it.
24980
24981 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
24984         * lib/mkancesdirs.h: New files.
24985         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
24986         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
24987         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
24988         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
24989         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
24990         callers changed.  Revamp internals significantly, by not
24991         attempting to create directories that are temporarily more
24992         permissive than the final results.  Do not attempt to use
24993         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
24994         This removes some race conditions, fixes some bugs, and simplifies
24995         things.  Use new dirchownmod function to do owner and mode changes.
24996         * lib/mkdir-p.h: Likewise.
24997         * lib/modechange.c (octal_to_mode): New function.
24998         (struct mode_change): New member mentioned.
24999         (make_node_op_equals): New arg mentioned.  All callers changed.
25000         (mode_compile): Keep track of which mode bits the user has explicitly
25001         mentioned.
25002         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25003         New arg PMODE_BITS, to keep track of which mode bits the user
25004         mentioned; it treats S_ISUID and S_ISGID speciall.
25005         All callers changed.
25006         * lib/modechange.h: Likewise.
25007
25008 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25009
25010         * MODULES.html.sh: Add mkancestors.
25011         * modules/mkancesdirs: New module.
25012         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25013         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25014         The chdir-safer and afs files are now orphans; I'll remove them
25015         unless someone speaks up.
25016         Add lib/dirchownmod.c, lib/dirchownmod.h.
25017         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25018         Add lchown, mkancesdirs.
25019         (Maintainer): Add self.
25020
25021 2006-07-15  Karl Berry  <karl@gnu.org>
25022
25023         * gnulib-tool: help message wording/arrangement.
25024
25025 2006-07-14  Simon Josefsson  <jas@extundo.com>
25026
25027         * doc/gnulib.texi (Libtool and Windows): New section.
25028
25029 2006-07-12  Simon Josefsson  <jas@extundo.com>
25030
25031         * modules/gendocs (License): Fix license, approved by Karl.
25032
25033 2006-07-12  Eric Blake  <ebb9@byu.net>
25034
25035         * MODULES.html.sh: Add gendocs.
25036
25037 2006-07-11  Eric Blake  <ebb9@byu.net>
25038
25039         * modules/fdl: New module, to install doc/fdl.texi.
25040         * MODULES.html.sh: Add new section for documentation modules.
25041         * gnulib-tool: Avoid space-tab.
25042         (--doc-base): New option, to manage files from doc.
25043
25044 2006-07-11  Eric Blake  <ebb9@byu.net>
25045
25046         * m4/absolute-header.m4: Fix comments to match recent change.
25047
25048 2006-07-11  Eric Blake  <ebb9@byu.net>
25049
25050         * gnulib-tool: List --doc-base before --tests-base.
25051
25052 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25053
25054         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25055
25056 2006-07-11  Bruno Haible  <bruno@clisp.org>
25057
25058         * README: Mention where to put documentation.
25059
25060 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25061
25062         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25063
25064 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25065
25066         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25067         to stdint.m4.
25068
25069 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25070
25071         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25072         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25073         "no/such/file/stdint.h" when there is no such file, so that
25074         the resulting C code can be parsed by dodgy compilers.
25075         Problems reported by Bob Proulx.
25076
25077 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25078
25079         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25080         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25081         macros into the GNU _D_EXACT_NAMLEN.
25082         * lib/savedir.c:  Likewise.
25083         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25084
25085 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25086         and Paul Eggert  <eggert@cs.ucla.edu>
25087
25088         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25089         * m4/savedir.m4:
25090         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25091         macros into the GNU _D_EXACT_NAMLEN.
25092
25093 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25094
25095         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25096         around the absolute name, to work around a problem with the HP-UX
25097         11.23 native C compiler, reported by Bob Proulx.
25098
25099 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25100
25101         * doc/maintain.texi, make-stds.texi: Sync from
25102         <http://savannah.gnu.org/projects/gnustandards>.
25103
25104 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25105
25106         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25107
25108 2006-07-09  Jim Meyering  <jim@meyering.net>
25109
25110         * m4/glob.m4: Remove a doubled word in a comment.
25111
25112 2006-07-09  Jim Meyering  <jim@meyering.net>
25113
25114         * lib/argp-pv.c: Remove a doubled word in a comment.
25115         * lib/check-version.c (check_version): Likewise.
25116         * lib/javacomp.c (compile_java_class): Likewise.
25117
25118 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25121         for the benefit of people using Autoconf 2.60.  If you want to
25122         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25123         (or m4/onceonly.m4, if pre-2.57) manually.
25124
25125 2006-07-08  Jim Meyering  <jim@meyering.net>
25126
25127         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25128         comment.
25129         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25130         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25131         comment.
25132
25133 2006-07-08  Jim Meyering  <jim@meyering.net>
25134
25135         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25136
25137 2006-07-07  Simon Josefsson  <jas@extundo.com>
25138
25139         * tests/test-crc.c: Change expected crc value, the test vector
25140         were probably computed using the old broken crc.c?
25141
25142 2006-07-06  Simon Josefsson  <jas@extundo.com>
25143
25144         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25145         now the canonical place for the M4 file).
25146
25147         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25148         from the sys_socket dependency now.
25149
25150         * modules/inet_pton (Files): Ditto.
25151
25152         * modules/inet_ntop (Files): Ditto.
25153
25154 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25155
25156         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25157         not gl_PREREQ_GETUSERSHELL.
25158
25159 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25160
25161         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25162         with only one argument, for Autoconf 2.60.
25163         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25164         expand to nothing, so add a shell command to avoid syntax error.
25165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25166
25167 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25168
25169         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25170
25171 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25174         no longer needed.  Check for isblank decl.
25175         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25176         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25177         of existence.
25178
25179 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         * lib/getloadavg.c: Use __VMS, not VMS.
25182         * lib/getopt.c: Likewise.
25183         * lib/getpagesize.h: Likewise.
25184         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25185         and probably does not work.
25186
25187 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25188
25189         * lib/.cppi-disable: Add wcwidth.
25190         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25191         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25192         (ISGRAPH): Remove.  All uses changed to isgraph.
25193         (FOLD) [!defined _LIBC]: Remove special case.
25194         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25195         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25196         HAVE_ISBLANK.
25197         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25198         case.
25199
25200 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25201
25202         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25203         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25204         brackets.  Other minor changes to suppress some compiler
25205         warnings.
25206
25207 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25208         and Paul Eggert  <eggert@cs.ucla.edu>
25209
25210         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25211         of invoking obsolescent AC_HEADER_DIRENT macro.
25212         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25213         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25214         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25215         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25216         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25217         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25218         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25219         * m4/readdir.m4: Remove; no longer needed.
25220
25221 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25222         and Paul Eggert  <eggert@cs.ucla.edu>
25223
25224         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25225         Don't worry about this obsolete case any more.
25226         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25227         directories.
25228         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25229         worry about this obsolete case any more.
25230         * lib/fts.c: Likewise.
25231         * lib/getcwd.c: Likewise.
25232         * lib/glob.h: Likewise.
25233         * lib/savedir.c: Likewise.
25234
25235 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25236
25237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25238         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25239         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25240         needed.
25241         All uses removed.
25242         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25243         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25244         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25245         needed.
25246         * m4/getdate.m4 (gl_GETDATE): Likewise.
25247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25248         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25249         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25250         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25251         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25253         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25254         needed.
25255
25256 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25257
25258         * lib/memcasecmp.c: Include <limits.h>.
25259         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25260         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25261         Don't assume isdigit succeeds only on '0' through '9'.
25262
25263 2006-07-05  Eric Blake  <ebb9@byu.net>
25264
25265         * modules/getaddrinfo (Depends-on): Add snprintf.
25266
25267 2006-07-05  Eric Blake  <ebb9@byu.net>
25268
25269         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25270         to avoid 'header present but could not be compiled' on cygwin.
25271
25272 2006-07-05  Eric Blake  <ebb9@byu.net>
25273
25274         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25275         missing from netdb.h.
25276         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25277
25278 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25279
25280         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25281         no longer needed.
25282         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25283         * m4/getdate.m4 (gl_GETDATE): Likewise.
25284         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25285         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25286         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25287         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25288         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25289
25290 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25291
25292         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25293         All uses of is_space replaced by isspace.
25294         * lib/exit.h: Don't talk about STDC_HEADERS.
25295         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25296         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25297         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25298         replaced by isprint etc.
25299         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25300         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25301         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25302         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25303         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25304         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25305
25306 2006-07-05  Bruno Haible  <bruno@clisp.org>
25307
25308         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25309         the function exists, before testing against AIX.
25310         Reported by Martin Lambers <marlam@marlam.de>.
25311
25312 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25313
25314         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25315         From Mark D. Baushke.
25316
25317 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25318
25319         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25320         to the absolute name, not just one, to bypass Sun C 5.8's
25321         "warning: #include of /usr/include/... may be non-portable".
25322
25323 2006-07-04  Eric Blake  <ebb9@byu.net>
25324
25325         * modules/dirname-tests: New test module.
25326         * tests/test-dirname.c: New file, replacing dirname.c
25327         TEST_DIRNAME section that was recently deleted.
25328
25329 2006-07-04  Bruno Haible  <bruno@clisp.org>
25330
25331         Assume ANSI C header files and <ctype.h> functions.
25332         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25333         (mbsnwidth): Use isprint, iscntrl instead.
25334
25335 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25336
25337         Merge from coreutils.
25338         * MODULES.html.sh: Add xstrtold.
25339         * modules/xstrtold: New file.
25340         * modules/cycle-check (Files): Add lib/same-inode.h.
25341         * modules/dirname (Files): Add m4/double-slash-root.m4.
25342         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25343         * modules/mkdir-p (Files): Add lib/same-inode.h.
25344         * modules/same (Files): Add lib/same-inode.h.
25345
25346 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25349         This is to keep the terminology clean; POSIX talks about
25350         "absolute pathnames", not "full pathnames", but the GNU
25351         Coding Standards say to use "path" for something else;
25352         so use "absolute" to keep both sides happy.
25353         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25354         Set gl_absolute_header, not gl_full_header_path.
25355         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25356         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25357         All uses changed.
25358
25359         Merge from coreutils.
25360
25361         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25362
25363         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25364         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25365         want to require the building of c-strtod.o.
25366         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25367         needs -lm directly.
25368         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25369
25370         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25371
25372         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25373         --as-needed option if available.  Problem reported by Albert Chin in
25374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25375         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25376         cc merely issues a bunch of annoying warnings for --as-needed
25377         (this problem was reported by Bob Proulx).  Also, try linking with
25378         -lm to detect a bug in binutils 2.16 (this problem was reported
25379         by Ralf Wildenhues).
25380
25381         2006-06-18  Jim Meyering  <jim@meyering.net>
25382
25383         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25384         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25385         macro.
25386         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25387         also check for glibc-2.4's abort-inducing bug.
25388
25389         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25390         Low-probability clean-up should be to use rmdir to get rid of
25391         the just-created directory, not unlink.
25392
25393         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25394         configure fail, and request a bug report to inform us about it.
25395         Add a comment that, barring reports to the contrary, in 2007 we'll
25396         assume ftruncate is universally available.
25397
25398         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25399
25400         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25401
25402         2006-03-12  Jim Meyering  <jim@meyering.net>
25403
25404         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25405         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25406         * m4/same.m4 (gl_SAME): Likewise.
25407         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25408
25409         2006-03-11  Eric Blake  <ebb9@byu.net>
25410
25411         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25412         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25413         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25414         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25415
25416 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25417
25418         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25419         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25420         reported by Mark D. Baushke, one in
25421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25422
25423         Merge from coreutils.
25424
25425         * lib/.cppi-disable: Add stdint_.h.
25426         * lib/.cvsignore: Add stdint.h.
25427
25428         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25429
25430         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25431         both double and long double versions.
25432         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25433         * lib/xstrtold.c: New file.
25434         * lib/xstrtod.h (xstrtold): New decl.
25435
25436         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25437
25438         * lib/filemode.c (setst): Remove.
25439         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25440         (arguably) clearer, and the generated code is a bit smaller on my
25441         Debian GNU/Linux stable x86 host.
25442
25443         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25444
25445         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25446         Assume that filemode.h includes sys/types.h and sys/stat.h.
25447         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25448         (ftypelet): Reorder to put common cases first, for efficiency.
25449         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25450         to do 'M'.
25451         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25452         of 10, for compatibility with FreeBSD.  All callers changed.
25453         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25454         types that can't be deduced solely from st_mode.  First arg is now a
25455         const pointer.
25456         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25457         (strmode): Renamed from mode_string.
25458         (filemodestring): New decl.
25459         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25460         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25461         needed.
25462         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25463
25464         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25465
25466         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25467         fsusage.h now does that.  Include fsusage.h first, to test interface.
25468         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25469         at most one method (the old code could have generated decls that
25470         didn't conform to C89, not that this was ever exercised).
25471         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25472
25473         2006-03-19  Jim Meyering  <jim@meyering.net>
25474
25475         Work even in a chroot where d_ino values for entries in "/"
25476         don't match the stat.st_ino values for the same names.
25477         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25478         number, iterate through all entries again, using lstat instead.
25479         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25480         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25481
25482         * lib/getcwd.c (__getcwd): Clarify a comment.
25483         Use memcpy in place of a call to strcpy.
25484
25485         2006-03-12  Jim Meyering  <jim@meyering.net>
25486
25487         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25488         matches that of the current directory (which we're about to chdir ".."
25489         out of), then save the dev-ino of the parent, instead.
25490
25491         * lib/same-inode.h (SAME_INODE): New file/macro.
25492         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25493         Include "same-inode.h", instead.
25494         * lib/same.c: Likewise.
25495         * lib/cycle-check.h: Include "same-inode.h".
25496         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25497         * lib/cycle-check.c (SAME_INODE): Remove definition.
25498         * lib/root-dev-ino.h: Include "same-inode.h".
25499
25500         2006-03-11  Eric Blake  <ebb9@byu.net>
25501
25502         * lib/same.c (same_name): s/base_name/last_component/
25503         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25504         * lib/filenamecat.c (file_name_concat): Likewise.
25505
25506         2006-03-11  Eric Blake  <ebb9@byu.net>,
25507                     Paul Eggert  <eggert@cs.ucla.edu>
25508
25509         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25510         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25511         drive prefix.
25512         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25513         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25514         (last_component): New method.
25515         * lib/dirname.c (dir_len): Determine when drive letters need a
25516         subsequent slash.  Preserve // when it is special.
25517         (dir_name): Don't append dot when drive letter is absolute.
25518         [TEST_DIRNAME]: Move into a full-blown gnulib test.
25519         * lib/basename.c (base_name): New semantics - malloc the result.
25520         Preserve // when it is special.  Preserve relative files that look
25521         like drive letters.
25522         (base_len): Preserve // when it is special.
25523         (last_component): New method, similar to old base_name semantics.
25524         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25525         base_name.  Strip redundant slashes from ///.
25526
25527 2006-07-03  Jim Meyering  <jim@meyering.net>
25528
25529         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25530         macro is used before the first cycle_check call.
25531
25532 2006-07-03  Eric Blake  <ebb9@byu.net>
25533
25534         * modules/dirname (Depends-on): Add xstrndup.
25535
25536 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25539         test cases, so that config.log is a bit easier to follow.
25540
25541 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25542
25543         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25544         both are 64 bits, since this seems to be the tradition, and this
25545         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25546         we ever run into a host that prefers long long to long in this
25547         case, we'll need another configure-time test.  Problem reported by
25548         Jim Meyering.
25549
25550 2006-07-02  Eric Blake  <ebb9@byu.net>
25551
25552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25553
25554 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25555
25556         * modules/inttypes (Depends-on): No longer depends on stdint.
25557         * modules/stdint (Description): Say more about assumptions.
25558         Say that the fast types might differ.  Say macros are used.
25559         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
25560         (Makefile.am): Revise list of substituted symbols to match
25561         new stdint.m4.
25562         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25563         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25564         * tests/test-stdint.c (verify_same_types)
25565         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25566         the code conforms to C99/C89.
25567         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25568         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25569
25570 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25571
25572         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25573         but fix a bug, by requiring at least 64 bits.
25574         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25575         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25576         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
25577         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25578
25579         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25580         changes.  Make 2.59 a prerequisite.  Check and substitute for
25581         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25582         inttypes.h.  Do not use special include files; just use the
25583         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25584         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25585         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25586         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25587         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25588         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25589         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25590         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25591         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25592         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25593         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25594         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25595         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25596         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25597         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25598         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25599         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25600         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25601         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25602         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25603         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25604         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25605         not check for things that C99 does not require, e.g., int8_t.  If
25606         a test isn't needed unless <stdint.h> isn't working, and is
25607         unlikely to be needed for any other reason, then don't do it
25608         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25609         size_t, since we assume C89 freestanding at least.  Do not check
25610         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25611         the right thing even if the types are not defined.  Instead use:
25612         (gl_STDINT_TYPE_PROPERTIES): New macro.
25613         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25614         testing whether <sys/types.h> clashes, as Autoconf does this for
25615         us now.  All uses removed.
25616         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25617         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25618         (gl_CHECK_TYPE_SAME):
25619         Remove; no longer needed.
25620         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25621         exists, since we'll return 0 anyway in that case.
25622         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25623
25624 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25627         possible collision with system files.
25628         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25629         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25630         WCHAR_MIN and WCHAR_MAX in this case.
25631         (<stddef.h>): Do not include; no longer needed.
25632         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25633         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25634         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25635         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25636         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25637         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25638         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25639         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25640         !defined(__c99))]: Include in this case too, since it's harmless
25641         now.
25642         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25643         dangerous to do so.
25644         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25645         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25646         (_STDINT_MIN, _STDINT_MAX): New macros.
25647         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25648         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25649         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25650         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25651         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25652         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25653         macros, not typedefs; this simplifies things quite a bit.
25654         Use long int for all types narrower than int64_t.
25655         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25656         Define in terms of long long int or int64_t or long int,
25657         not int64_t or int32_t.  This saves some compile-time testing.
25658         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25659         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25660         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25661         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25662         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25663         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25664         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25665         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25666         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25667         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25668         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25669         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25670         undef any previous version and define our own version, for
25671         simplicity and consistency with the new macros for types.
25672         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25673         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25674         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25675         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
25676         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25677         @WINT_T_SUFFIX@ to keep things simple here.
25678         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25679         Simplify by assuming typical 8/16/32/64 host, since we're
25680         already doing that elsewhere anyway.
25681         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25682         and assume long long int is 64 bits if available.  This
25683         speeds up 'configure'.
25684
25685 2006-07-01  Eric Blake  <ebb9@byu.net>
25686
25687         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25688         Reported by Andreas Buening.
25689
25690 2006-07-01  Eric Blake  <ebb9@byu.net>
25691
25692         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25693
25694 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25695
25696         * lib/getaddrinfo.c: fixed typo
25697
25698 2006-06-29  Jim Meyering  <jim@meyering.net>
25699
25700         * modules/strftime (Maintainer): Add my name, since with the
25701         FPRINTFTIME changes strftime.c has forked from glibc.
25702
25703 2006-06-29  Eric Blake  <ebb9@byu.net>
25704
25705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25706
25707 2006-06-29  Eric Blake  <ebb9@byu.net>
25708
25709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25710
25711 2006-06-29  Eric Blake  <ebb9@byu.net>
25712
25713         * lib/stat_.h: New file.
25714
25715 2006-06-29  Eric Blake  <ebb9@byu.net>
25716
25717         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25718         unused static function.
25719
25720 2006-06-29  Eric Blake  <ebb9@byu.net>
25721
25722         * doc/functions.texi (Function Portability): Document missing lstat
25723         on mingw.
25724
25725 2006-06-29  Eric Blake  <ebb9@byu.net>
25726
25727         * MODULES.html.sh: Add sys_stat.
25728         * modules/sys_stat: New module.
25729         * modules/mkstemp (Depends-on): Add sys_stat.
25730
25731 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25732
25733         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25734
25735 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25736
25737         * m4/c-bs-a.m4: Removed.
25738
25739 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25740
25741         * lib/strftime.c: Assume strftime() exists.
25742
25743 2006-06-29  Derek Price  <derek@ximbiot.com>
25744
25745         * modules/c-bs-a: Removed - \a is C89.
25746         * MODULES.html.sh: Remove c-bs-a.
25747
25748 2006-06-29  Bruno Haible  <bruno@clisp.org>
25749
25750         * modules/wcwidth (License): Change to LGPL.
25751
25752 2006-06-28  Simon Josefsson  <jas@extundo.com>
25753
25754         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
25755         on _WIN32.
25756
25757         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25758         getnameinfo.
25759
25760 2006-06-28  Simon Josefsson  <jas@extundo.com>
25761
25762         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25763
25764 2006-06-28  Simon Josefsson  <jas@extundo.com>
25765
25766         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25767         functions there.  It will succeed on Windows XP, but on Windows
25768         2000 and (presumably) earlier, it will fail, and use the internal
25769         re-implementation.
25770         (use_win32_p): New function.
25771         (getaddrinfo): Use strtoul on servname, to support numeric ports.
25772         Support AI_NUMERICSERV to disable getservbyname.
25773         (getnameinfo): New function, only supports
25774         NI_NUMERICHOST|NI_NUMERICSERV for now.
25775
25776         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25777         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
25778         getnameinfo.
25779
25780 2006-06-28  Eric Blake  <ebb9@byu.net>
25781
25782         * modules/wcwidth: New file.
25783         * modules/mbchar (Depends-on): Add wcwidth.
25784         * modules/mbswidth (Depends-on): Add wcwidth.
25785         * MODULES.html.sh: Add wcwidth.
25786
25787 2006-06-28  Eric Blake  <ebb9@byu.net>
25788
25789         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25791
25792 2006-06-28  Eric Blake  <ebb9@byu.net>
25793
25794         * lib/xvasprintf.h: Fix comments.
25795
25796 2006-06-28  Eric Blake  <ebb9@byu.net>
25797
25798         * lib/mbchar.h (wcwidth): Include wcwidth.h.
25799         * lib/mbswidth.c (wcwidth): Move from here...
25800         * lib/wcwidth.h: ...to this new file.
25801
25802 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25803
25804         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25805
25806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25807         it's obsolete.
25808         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25809
25810 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25811
25812         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
25813         Autoconf 2.60 says this stuff was obsolete.
25814
25815 2006-06-28  Bruno Haible  <bruno@clisp.org>
25816
25817         * modules/wcwidth (Files): Add m4/wchar_t.m4.
25818
25819 2006-06-28  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25822         gt_TYPE_WCHAR_T.
25823
25824 2006-06-28  Bruno Haible  <bruno@clisp.org>
25825
25826         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25827         declaration for wcwidth.
25828         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25829
25830 2006-06-28  Bruno Haible  <bruno@clisp.org>
25831
25832         * lib/mkdtemp.c [MINGW]: Include <io.h>.
25833         (mkdir): Define using _mkdir.
25834
25835 2006-06-28  Bruno Haible  <bruno@clisp.org>
25836
25837         * lib/getaddrinfo.h: Fix POSIX URL.
25838         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25839         _WIN32.
25840         (use_win32_p): Make static.
25841         (getaddrinfo): Reject service name if it is empty or does not consist
25842         solely of decimal digits, or if its value is > 65535.
25843         (getnameinfo): Remove useless casts.
25844
25845 2006-06-27  Simon Josefsson  <jas@extundo.com>
25846
25847         * modules/sys_select: New file, suggested by Bruno Haible, Paul
25848         Eggert and Martin Lambers.
25849
25850 2006-06-27  Simon Josefsson  <jas@extundo.com>
25851
25852         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25853         Eggert and Martin Lambers.
25854
25855 2006-06-27  Bruno Haible  <bruno@clisp.org>
25856
25857         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25858         result to 0, not to empty.
25859         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25860
25861 2006-06-27  Bruno Haible  <bruno@clisp.org>
25862
25863         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25864
25865 2006-06-26  Simon Josefsson  <jas@extundo.com>
25866
25867         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25868         present.
25869
25870 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
25871
25872         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25873         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
25874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25875
25876 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
25877
25878         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25879
25880 2006-06-26  Bruno Haible  <bruno@clisp.org>
25881
25882         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25883
25884 2006-06-26  Bruno Haible  <bruno@clisp.org>
25885
25886         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25887
25888 2006-06-26  Bruno Haible  <bruno@clisp.org>
25889
25890         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
25891         SGI C compiler in pre-C99 mode.
25892         Suggested by Mark D. Baushke and Larry Jones.
25893
25894 2006-06-26  Bruno Haible  <bruno@clisp.org>
25895
25896         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
25897         WCHAR_MAX.
25898         Reported by Mark D. Baushke and Larry Jones.
25899
25900 2006-06-26  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
25903         in pre-C99 mode.
25904         Suggested by Mark D. Baushke and Larry Jones.
25905
25906 2006-06-23  Simon Josefsson  <jas@extundo.com>
25907             Bruno Haible  <bruno@clisp.org>
25908
25909         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
25910         Emit mostlyclean-local rule.
25911         (func_emit_tests_Makefile_am): Likewise.
25912         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
25913
25914 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
25915
25916         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
25917
25918 2006-06-23  Bruno Haible  <bruno@clisp.org>
25919
25920         * tests/test-stdint.c: Update to match ISO C 99 Technical
25921         Corrigendum 1.
25922
25923 2006-06-23  Bruno Haible  <bruno@clisp.org>
25924
25925         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
25926
25927 2006-06-23  Bruno Haible  <bruno@clisp.org>
25928
25929         * lib/stdint_.h: Treat IRIX like OpenBSD.
25930
25931 2006-06-23  Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
25934         ISO C 99 Technical Corrigendum 1.
25935
25936 2006-06-22  Simon Josefsson  <jas@extundo.com>
25937
25938         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
25939         MinGW.
25940
25941 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25942
25943         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
25944         needed.  Some compiler complained about some of them.  Problem reported
25945         by Larry Jones in
25946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
25947
25948 2006-06-21  Simon Josefsson  <jas@extundo.com>
25949
25950         * tests/test-getaddrinfo.c: New file.
25951
25952         * modules/getaddrinfo-tests: New file.
25953
25954         * MODULES.html.sh: Add inet_pton.
25955
25956         * modules/inet_pton: New file.
25957
25958 2006-06-21  Simon Josefsson  <jas@extundo.com>
25959
25960         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
25961         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
25962         of using the (limited) gnulib implementation on Windows XP.
25963
25964         * m4/inet_pton.m4: New file.
25965
25966 2006-06-21  Simon Josefsson  <jas@extundo.com>
25967
25968         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
25969         variable.
25970
25971         * lib/socket_.h: Don't define WINVER.
25972
25973         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
25974         slightly modified to work in gnulib.
25975
25976 2006-06-21  Simon Josefsson  <jas@extundo.com>
25977
25978         * doc/gnulib.texi (Windows sockets): Add.
25979
25980 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
25981
25982         * lib/read-file.c (fread_file): Start with buffer allocation of
25983         0 bytes rather than 1 byte; this simplifies the code.
25984         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
25985         code to free buffer and save/restore errno.
25986         (internal_read_file): Remove unused local.
25987
25988 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25989
25990         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
25991         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
25992         Problem reported by Denis Excoffier in
25993         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
25994
25995 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25996
25997         * modules/sys_socket, modules/socklen: Include sys/types since
25998         FreeBSD 4.x's sys/socket.h needs it.
25999
26000 2006-06-19  Simon Josefsson  <jas@extundo.com>
26001
26002         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26003
26004 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26005
26006         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26007
26008 2006-06-19  Bruno Haible  <bruno@clisp.org>
26009
26010         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26011         and FULL_PATH_INTTYPES_H in angle brackets.
26012         Reported by Mark D. Baushke <mdb@gnu.org>.
26013
26014 2006-06-17  Eric Blake  <ebb9@byu.net>
26015
26016         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26017         errno.
26018
26019 2006-06-17  Bruno Haible  <bruno@clisp.org>
26020
26021         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26022         <sys/inttypes.h>.
26023
26024 2006-06-17  Bruno Haible  <bruno@clisp.org>
26025
26026         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26027         whether errno is declared. Assume <errno.h> declares errno.
26028
26029 2006-06-17  Bruno Haible  <bruno@clisp.org>
26030
26031         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26032
26033 2006-06-17  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26036         problem on Solaris 2.5.1.
26037
26038 2006-06-16  Eric Blake  <ebb9@byu.net>
26039
26040         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26041         * lib/unicodeio.c [!defined errno]: Likewise.
26042         * lib/strtol.c [!defined errno]: Likewise.
26043         * lib/strtod.c [!defined errno]: Likewise.
26044
26045 2006-06-15  Eric Blake  <ebb9@byu.net>
26046
26047         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26048
26049 2006-06-15  Eric Blake  <ebb9@byu.net>
26050
26051         * config/srclist.txt (ssize_t.m4): Lose sync.
26052
26053 2006-06-15  Bruno Haible  <bruno@clisp.org>
26054
26055         * modules/stdint (Files): Include m4/full-header-path.m4,
26056         m4/size_max.m4, m4/wchar_t.m4.
26057         (Makefile.am): Many more substitutions.
26058         * modules/stdint-tests: New file.
26059         * tests/test-stdint.c: New file.
26060
26061 2006-06-15  Bruno Haible  <bruno@clisp.org>
26062
26063         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26064         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26065         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26066         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26067         gl_CHECK_TYPE_SAME): New macros.
26068
26069 2006-06-15  Bruno Haible  <bruno@clisp.org>
26070
26071         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26072
26073 2006-06-15  Bruno Haible  <bruno@clisp.org>
26074
26075         * lib/stdint_.h: Rewritten to be fully auto-configured.
26076         Fixes bug on HP-UX/IA64.
26077
26078 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26079
26080         * lib/getdate.y (__attribute__): Don't define if already defined.
26081         Problem reported by Larry Jones.
26082         * lib/utimens.c (__attribute__): Likewise.
26083
26084 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26085
26086         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26087         reported by Andreas Schwab.
26088
26089 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26090             Bruno Haible  <bruno@clisp.org>
26091
26092         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26093         check for the declaration of strnlen and a run test that exposes the
26094         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26095         rpl_strndup.
26096
26097 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26098             Bruno Haible  <bruno@clisp.org>
26099
26100         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26101
26102 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26103
26104         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26105         compile test, for Tru64 4.0D.
26106
26107 2006-05-28  Karl Berry  <karl@gnu.org>
26108
26109         * config/srclist.txt (printf-args.c): lose sync.
26110
26111 2006-05-26  Martin Lambers  <marlam@marlam.de>
26112
26113         * lib/getpass.c: Updates the test for the native W32 API, and adds
26114         missing includes, thus fixing compilation warnings.
26115
26116 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26117
26118         * lib/exclude.c (exclude_fnmatch): New function.
26119         (excluded_file_name): Call exclude_fnmatch.
26120         * lib/exclude.h (excluded_file_name): New prototype
26121
26122 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26123
26124         * lib/tempname.c (small_open, large_open): New macros.
26125         (__open, __open64) [!_LIBC]: Remove.
26126         (__gen_tempname): Use small_open and large_open instead of __open
26127         and __open64.  This fixes a portability bug on HP-UX 11.11i
26128         reported by Simon Wing-Tang in
26129         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26130
26131 2006-05-24  Bruno Haible  <bruno@clisp.org>
26132
26133         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26134         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26135         Reported by Thorsten Maerz <torte@netztorte.de> via
26136         Aaron Stone <aaron@serendipity.cx>.
26137
26138 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26141         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26142         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26143         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26144         not really conditional on the cache.
26145         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26146
26147 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26148
26149         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26150         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26151         (my_usleep): Don't mishandle maximum value.
26152
26153 2006-05-19  Jim Meyering  <jim@meyering.net>
26154
26155         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26156
26157 2006-05-17  Bruno Haible  <bruno@clisp.org>
26158
26159         Cygwin portability.
26160         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26161
26162 2006-05-17  Bruno Haible  <bruno@clisp.org>
26163
26164         * lib/stdint_.h: Fix recognition of Cygwin.
26165
26166 2006-05-15  Bruno Haible  <bruno@clisp.org>
26167
26168         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26169         on libtool patch by Ralf Wildenhues.
26170
26171 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26172
26173         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26174         test for C99 conformance; (bool) 0.5 is an integer constant
26175         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26176         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26177
26178 2006-05-11  Simon Josefsson  <jas@extundo.com>
26179
26180         * m4/xvasprintf.m4: Fix obvious typo.
26181
26182 2006-05-11  Jim Meyering  <jim@meyering.net>
26183
26184         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26185         James Lemley.
26186
26187 2006-05-10  Simon Josefsson  <jas@extundo.com>
26188
26189         * lib/md4.c: Typo fix, update copyright years.
26190         (K1, K2): Don't use L because it turn computations into 64-bit on
26191         64-bit platforms.
26192
26193 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26194
26195         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26196         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26197         unwanted sign propagation, e.g., on hosts with 64-bit int.
26198         There still are some problems with reeelly weird theoretical hosts
26199         (e.g., 33-bit int) but it's not worth worrying about now.
26200         * lib/sha1.c (rol): Likewise.
26201         (K1, K2, K3, K4): Remove unnecessary L suffix.
26202
26203 2006-05-10  Bruno Haible  <bruno@clisp.org>
26204
26205         * lib/des.c: Cast to avoid warnings.
26206
26207 2006-05-09  Bruno Haible  <bruno@clisp.org>
26208
26209         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26210         (Depends-on): Depend also on xsize, stdarg.
26211         (configure.ac): Add gl_XVASPRINTF.
26212
26213 2006-05-09  Bruno Haible  <bruno@clisp.org>
26214
26215         * m4/xvasprintf.m4: New file.
26216
26217 2006-05-09  Bruno Haible  <bruno@clisp.org>
26218
26219         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26220         (EOVERFLOW): Define fallback value.
26221         (xstrcat): New function.
26222         (xvasprintf): Recognize the special case of a string concatenation.
26223
26224 2006-05-08  Eric Blake  <ebb9@byu.net>
26225
26226         * gnulib-tool (func_version): Base copyright year on CVS date.
26227         (func_emit_copyright_notice): New function.
26228         (func_emit_lib_Makefile_am): Use it.
26229         (func_emit_tests_Makefile_am): Likewise.
26230         (func_import): Likewise.
26231
26232 2006-05-08  Bruno Haible  <bruno@clisp.org>
26233
26234         * modules/stdarg: New file.
26235         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26236
26237 2006-05-08  Bruno Haible  <bruno@clisp.org>
26238
26239         * m4/stdarg.m4: New file, from GNU gettext.
26240
26241 2006-05-08  Bruno Haible  <bruno@clisp.org>
26242
26243         * config/srclist.txt (build-aux/config.rpath): different from latest
26244         release.
26245
26246 2006-05-08  Bruno Haible  <bruno@clisp.org>
26247
26248         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26249
26250 2006-05-05  Jim Meyering  <jim@meyering.net>
26251
26252         * m4/warning.m4: New file, derived from bison's file by the same name.
26253
26254 2006-05-03  Bruno Haible  <bruno@clisp.org>
26255
26256         * lib/stdint_.h: Shorter URL.
26257         * lib/inttypes.h: Likewise.
26258
26259 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26260
26261         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26262
26263 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26264
26265         * lib/verify.h: Document the internals better.  Most of this change
26266         was written by Bruno Haible.
26267
26268 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26269
26270         * doc/verify.texi: New file, partly based on a proposal by
26271         Bruno Haible.
26272
26273 2006-05-02  Bruno Haible  <bruno@clisp.org>
26274
26275         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26276         test from here...
26277         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26278
26279 2006-04-29  Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26282         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26283
26284 2006-04-29  Bruno Haible  <bruno@clisp.org>
26285
26286         * gnulib-tool: Make --update option actually work.
26287
26288 2006-04-29  Bruno Haible  <bruno@clisp.org>
26289
26290         * doc/gcd.texi: New file.
26291         * doc/gnulib.texi: Include it.
26292
26293 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26294
26295         * lib/getdate.y (get_date): When adding relative date, start with the
26296         initial time, not with the result of the first mktime call.
26297
26298 2006-04-25  Bruno Haible  <bruno@clisp.org>
26299
26300         * gnulib-tool (func_import): Output the include directives in three
26301         blocks, sorted separately.
26302         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26303
26304 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26305
26306         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26307         to define main with arguments, for C++.  Reported by Eric Blake.
26308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26309         Prefer 'int main ()' to 'int main (void)', for C++.
26310         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26312         for 'main', for C99 and C++.
26313
26314 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26315
26316         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26317         Don't assume that exit status -1 is valid.
26318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26319         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26320         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26321         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26322         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26323         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26324         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26325         functions can be used without declaring them, or that you can
26326         exit with status -1.
26327         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26328
26329 2006-04-24  Karl Berry  <karl@gnu.org>
26330
26331         * config/srclist.txt (longdouble.m4): sync lost.
26332
26333 2006-04-24  Eric Blake  <ebb9@byu.net>
26334
26335         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26336
26337 2006-04-24  Bruno Haible  <bruno@clisp.org>
26338
26339         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26340         poll() implementation in AIX.
26341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26342
26343 2006-04-24  Bruno Haible  <bruno@clisp.org>
26344
26345         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26346         assigned exactly once.
26347
26348 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26349             Bruno Haible  <bruno@clisp.org>
26350
26351         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26352         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26353         for AM_CPPFLAGS.
26354
26355 2006-04-23  Bruno Haible  <bruno@clisp.org>
26356
26357         * modules/copy-file: Depend on unistd.
26358         * modules/execute: Likewise.
26359         * modules/fatal-signal: Likewise.
26360         * modules/findprog: Likewise.
26361         * modules/mkdtemp : Likewise.
26362         * modules/pipe: Likewise.
26363         * modules/wait-process: Likewise.
26364
26365 2006-04-23  Bruno Haible  <bruno@clisp.org>
26366
26367         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26368         condition was already detected.
26369         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26370
26371 2006-04-23  Bruno Haible  <bruno@clisp.org>
26372
26373         * lib/copy-file.c: Include <unistd.h> unconditionally.
26374         * lib/execute.c: Likewise.
26375         * lib/fatal-signal.c: Likewise.
26376         * lib/findprog.c: Likewise.
26377         * lib/mkdtemp.c: Likewise.
26378         * lib/pipe.h: Likewise.
26379         * lib/pipe.c: Likewise.
26380         * lib/wait-process.h: Likewise.
26381
26382 2006-04-23  Bruno Haible  <bruno@clisp.org>
26383
26384         * gnulib-tool (func_usage): Fix --import description. Document
26385         --update.
26386         (func_import): Create temporary file in a temporary directory, if
26387         --dry-run is specified. Silence errors from 'grep' when there are no
26388         m4 files in $m4dir.
26389         (func_create_testdir): Silence errors from 'grep' when there are no
26390         m4 files in $m4dir.
26391         Reported by Karl Berry <karl@freefriends.org>.
26392
26393 2006-04-20  Bruno Haible  <bruno@clisp.org>
26394
26395         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26396         one argument, so that the code will be portable to Autoconf 2.60.
26397         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26398         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26399         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26400
26401 2006-04-19  Derek Price  <derek@ximbiot.com>
26402             Eric Blake  <ebb9@byu.net>
26403
26404         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26405         rather than "/full/path.h".  Update comment to match.  Shorten &
26406         generalize m4_translit call via AS_TR_CPP.
26407
26408 2006-04-19  Derek Price  <derek@ximbiot.com>
26409             Eric Blake  <ebb9@byu.net>
26410
26411         * lib/inttypes.h: Correct grammar in comment.
26412
26413 2006-04-18  Derek Price  <derek@ximbiot.com>
26414             Paul Eggert  <eggert@cs.ucla.edu>
26415
26416         * modules/inttypes: New file.
26417         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26418
26419 2006-04-18  Derek Price  <derek@ximbiot.com>
26420             Paul Eggert  <eggert@cs.ucla.edu>
26421
26422         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26423         New files.
26424
26425 2006-04-18  Derek Price  <derek@ximbiot.com>
26426             Paul Eggert  <eggert@cs.ucla.edu>
26427
26428         * lib/inttypes.h: New file.
26429         * lib/strtoimax.c: Assume <inttypes.h>.
26430
26431 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26432
26433         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26434         isn't mounted.  Problem reported by Kir Kolyshkin.
26435
26436 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26437
26438         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26439         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26440         Derek R. Price.
26441         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26442         implementation.
26443
26444 2006-04-12  Eric Blake  <ebb9@byu.net>
26445
26446         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26447         is now done automatically by the corresponding Autoconf macro.
26448
26449 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26450
26451         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26452         time_r.h.
26453
26454 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26455
26456         Merge regex changes from libc, removing some of our
26457         POSIX-conformance changes that were rejected and redoing them in a
26458         less-intrusive way.
26459
26460         * lib/regcomp.c (re_compile_internal, init_dfa):
26461         Length arg is now size_t, not Idx.  All uses changed.
26462         (peek_token): Forward decl now says internal_function.
26463         (__re_error_msgid, __re_error_msgid_idx):
26464         Now static rather than extern with attribute_hidden.
26465         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26466         For some reason libc prefers K&R style defns for external functions.
26467         (regerror) [!defined _LIBC]: Likewise.
26468         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26469         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26470         (build_range_exp, build_collating_symbol):
26471         Use K&R-style defn.
26472         (re_compile_fastmap): Use '\0' to memset, not 0.
26473         (utf8_sb_map): Make the calculations more obvious.
26474         (init_dfa, parse_bracket_exp, build_charclass_op):
26475         Call calloc and cast result, as glibc does.
26476         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26477         (build_range_exp, build_collating_symbol):
26478         Now internal functions.
26479
26480         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26481
26482         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26483         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26484         Don't depend on VMS; depend on __VMS instead, for POSIX
26485         namespace cleanness.
26486         (regoff_t): Define to ssize_t, not long int.
26487
26488         Remove the REG_ macros named below.  Instead, make the old names
26489         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26490         __USE_GNU_REGEX.
26491         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26492         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26493         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26494         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26495         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26496         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26497         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26498         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26499         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26500         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26501         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26502         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26503         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26504         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26505         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26506         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26507         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26508         (REG_NREGS):
26509         Remove.  All uses replaced by the old RE_* names.
26510         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26511         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26512         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26513         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26514         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26515         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26516         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26517         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26518         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26519         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26520         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26521         Don't bother having these macros be independent of each others'
26522         values, since they no longer exist in the POSIX name space.
26523
26524         Rename the following member names back to their old names,
26525         unless !__USE_GNU_REGEX.  All uses changed back.
26526         (buffer): Renamed from re_buffer.
26527         (allocated): Renamed from re_allocated.
26528         (used): Renamed from re_used.
26529         (syntax): Renamed from re_syntax.
26530         (fastmap): Renamed from re_fastmap.
26531         (translate): Renamed from re_translate.
26532         (can_be_null): Renamed from re_can_be_null.
26533         (regs_allocated): Renamed from re_regs_allocated.
26534         (fastmap_accurate): Renamed from re_fastmap_accurate.
26535         (no_sub): Renamed from re_no_sub.
26536         (not_bol): Renamed from re_not_bol.
26537         (not_eol): Renamed from re_not_eol.
26538         (newline_anchor): Renamed from re_newline_anchor.
26539         (num_regs): Renamed from rm_num_regs.
26540         (start): Renamed from rm_start.
26541         (end): Renamed from rm_end.
26542
26543         (free_state): Move up a bit.
26544
26545         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26546         #define to be empty.
26547         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26548         when that is what is intended.
26549         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26550         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26551         (MAX): New macro.
26552         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26553         All uses changed back to re_malloc, etc.  It's now the caller's
26554         responsibility to check for overflow; all callers changed.
26555         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26556         (re_x2nrealloc): Remove.
26557         (free_state): Remove decl.
26558
26559         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26560         (re_set_registers, re_exec):
26561         Use K&R-style defn.
26562
26563         2006-01-31  Roland McGrath  <roland@redhat.com>
26564
26565         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26566         Reported by Mike Frysinger <vapier@gentoo.org>.
26567
26568         2006-01-15  Andreas Jaeger  <aj@suse.de>
26569
26570         [BZ #1950]
26571         * lib/regex_internal.c (re_string_reconstruct): Adjust for
26572         build_wcs_upper_buffer change.
26573         (build_wcs_upper_buffer): Change return type.
26574
26575         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
26576
26577         * lib/regex_internal.h: Include <stdint.h> if available.
26578
26579         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26580
26581         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26582
26583         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26584
26585         * lib/regcomp.c: Adjust for changed secondary hash function.
26586
26587         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26588
26589         * lib/regex.h: Pretty printing.
26590         Clean up namespace a bit.
26591
26592         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26593
26594         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26595         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26596
26597         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26598                     Ulrich Drepper  <drepper@redhat.com>
26599
26600         [BZ #1302]
26601         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26602         changed.
26603         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26604
26605         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26606
26607         [BZ #281]
26608         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26609         * lib/regcomp.c: Remove unnecessary uses of
26610         unsigned RE_TRANSLATE_TYPE.
26611         * lib/regex_internal.h: Likewise.
26612         * lib/regex_internal.c: Likewise.
26613         * lib/regexec.c: Likewise.
26614         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26615
26616         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26617
26618         * lib/regexec.c (find_recover_state): Remove unnecessary
26619         initialization.
26620         (transit_state_bkref): Make DFA a const pointer.
26621         (get_subexp): Likewise.
26622         (check_arrival): Likewise.
26623         (update_cur_sifted_state): Likewise.
26624         (re_search_internal): Likewise.
26625         (prune_impossible_nodes): Likewise.
26626         (acquire_init_state_context): Likewise.
26627         (proceed_next_node): Likewise.
26628         (set_regs): Likewise.
26629         (free_fail_stack_return): Likewise.
26630         (check_arrival_expand_ecl): Mark DFA parameter as const.
26631         (check_arrival_expand_ecl_sub): Likewise.
26632         (check_subexp_limits): Likewise.
26633         (sub_epsilon_src_nodes):  Likewise.
26634         (add_epsilon_src_nodes):  Likewise.
26635         (merge_state_array): Likewise.
26636         (update_regs): Likewise.
26637         (build_trtable): Likewise.
26638         (sift_states_backward): Mark MCTX parameter as const.
26639         (build_sifted_states): Likewise.
26640         (update_cur_sifted_state): Likewise.
26641         (sift_states_mkref): Likewise.
26642         (check_arrival_expand_ecl): Mark eclosure as const.
26643         (check_dst_limits_calc_pos_1): Likewise.
26644         * lib/regex_internal.h (re_match_context_t): Make dfa a const
26645         pointer.
26646
26647         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
26648
26649         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26650         (transit_state_sb): Likewise.
26651         (transit_state_mb): Likewise.
26652         (sift_states_iter_mb): Likewise.
26653         (check_arrival_add_next_nodes): Likewise.
26654         (check_node_accept_bytes): Change first parameter to pointer-to-const.
26655         [_LIBC] (re_search_2_stub): Use mempcpy.
26656
26657         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26658         mbrtowc for very simple UTF-8 case.
26659
26660         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26661         a pointer-to-const.
26662         (re_acquire_state_context): Likewise.
26663         * lib/regex_internal.h: Adjust prototypes.
26664
26665         * lib/regex.c: Prevent using C++ compilers.
26666
26667         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26668         (re_acquire_state_context): Likewise.
26669
26670 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26671
26672         * modules/regex (Depends-on): Add ssize_t.
26673
26674 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26675
26676         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26677         translation table.
26678
26679 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26680
26681         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26682
26683 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
26684             Bruno Haible  <bruno@clisp.org>
26685
26686         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26687         <sys/types.h> and <inttypes.h>.
26688
26689 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26690
26691         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26692         `__error_t_defined', so argp.h will not typedef the former.
26693
26694 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26697         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
26698         glibc names.  Even if glibc is changed to conform to POSIX, the
26699         traditional names will be available anyway, since regex depends on
26700         the extensions module.  Also, fix a longstanding typo in the
26701         implementation of Spencer ERE test #75 from grep 2.3.  Problems
26702         reported by Emanuele Giaquinta.  Also, change sense of cached
26703         variable, so that the message makes sense.
26704
26705 2006-03-24  Simon Josefsson  <jas@extundo.com>
26706
26707         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26708         including some doc fixes.
26709         (base64_encode_alloc): Fix +1 bug on allocation failures.
26710
26711 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26712
26713         * lib/base64.c (base64_encode): Do not read past end of array with
26714         unsanitized input on systems with CHAR_BIT > 8.
26715
26716 2006-03-24  Eric Blake  <ebb9@byu.net>
26717
26718         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26719
26720 2006-03-22  Karl Berry  <karl@gnu.org>
26721
26722         * config/srclist.txt (*setenv.[ch]): get from coreutils.
26723         * config/srclistvars.sh (COREUTILS): new var.
26724
26725 2006-03-17  Jim Meyering  <jim@meyering.net>
26726
26727         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26728         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26729
26730 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26731
26732         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26733         no longer needs it.  Instead, check that regoff_t is as least
26734         as wide as ptrdiff_t.
26735
26736         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26737         so that our regex.h stays compatible with the installed regex.
26738         This is helpful for installers who configure --without-included-regex.
26739         Problem reported by Emanuele Giaquinta.
26740
26741 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26742
26743         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26744         Typedef to long int, not to off_, as POSIX will likely change
26745         in that direction.
26746
26747 2006-03-15  Eric Blake  <ebb9@byu.net>
26748
26749         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26750
26751 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26752
26753         * lib/argp-help.c (validate_uparams): Fix typo
26754         * lib/argp-parse.c (argp_default_options): Consistently begin help
26755         messages with a lowercase letter.
26756
26757 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
26758
26759         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
26760         overrun buffers and shouldn't be used (much as gets shouldn't be
26761         used).
26762         * lib/time_r.c (asctime_r, ctime_r): Likewise.
26763
26764 2006-03-08  Simon Josefsson  <jas@extundo.com>
26765
26766         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26767         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26768
26769 2006-03-08  Simon Josefsson  <jas@extundo.com>
26770
26771         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26772         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26773
26774 2006-03-08  Simon Josefsson  <jas@extundo.com>
26775
26776         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26777         signal that configure disabled the device.
26778
26779 2006-03-08  Simon Josefsson  <jas@extundo.com>
26780
26781         * build-aux/maint.mk: Fix refresh-po, to handle no translated
26782         languages.
26783
26784 2006-03-07  Simon Josefsson  <jas@extundo.com>
26785
26786         * modules/getopt (Depends-on): Add unistd.
26787
26788         * modules/unistd: New file.
26789
26790 2006-03-07  Simon Josefsson  <jas@extundo.com>
26791
26792         * modules/gc-random: New file.
26793
26794 2006-03-07  Simon Josefsson  <jas@extundo.com>
26795
26796         * m4/unistd_h.m4: New file.
26797
26798 2006-03-07  Simon Josefsson  <jas@extundo.com>
26799
26800         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26801         test to be side-effect free by storing the result in the cache
26802         variable gl_cv_lib_readline, and moving the assignment of
26803         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26804         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26805
26806 2006-03-07  Simon Josefsson  <jas@extundo.com>
26807
26808         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
26809         error on missing devices (the functions will return an error).
26810
26811         * m4/gc.m4: Move random stuff to gc-random.m4
26812
26813 2006-03-07  Simon Josefsson  <jas@extundo.com>
26814
26815         * lib/unistd_.h: New file.
26816
26817 2006-03-07  Simon Josefsson  <jas@extundo.com>
26818
26819         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26820
26821 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26822
26823         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26824         Problem reported by Juan Manuel Guerrero.
26825
26826 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26829         the unistd module.
26830         * lib/getlogin_r.c: Likewise.
26831         * lib/getlogin_r.h: Likewise.
26832         * lib/glob.c: Likewise.
26833         * lib/pagealign_alloc.c: Likewise.
26834         * lib/unistd_.h: Remove; no longer needed.
26835
26836 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26837
26838         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26839         Add unistd.
26840         * modules/c-stack (Depends-on): Add unistd.
26841         * modules/getlogin_r: Likewise.
26842         * modules/glob: Likewise.
26843         * modules/pagealign_alloc: Likewise.
26844         * modules/unistd (Files): Remove lib/unistd_.h.
26845         (EXTRA_DIST): Remove.
26846         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26847         need unistd_.h.
26848         (MOSTLYCLEANFILES): Remove unistd.h-t.
26849
26850 2006-03-03  Simon Josefsson  <jas@extundo.com>
26851
26852         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26853
26854 2006-03-03  Simon Josefsson  <jas@extundo.com>
26855
26856         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26857         libidn and bison.
26858
26859 2006-03-03  Simon Josefsson  <jas@extundo.com>
26860
26861         * build-aux/maint.mk: Add indent target.
26862
26863 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
26864
26865         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26866         our replacement poll.h in any case, to avoid a differing
26867         declaration from a system header.  Seen on AIX.
26868
26869 2006-03-01  Simon Josefsson  <jas@extundo.com>
26870
26871         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26872         <kasal@ucw.cz>.
26873
26874 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26875
26876         * modules/gettime (Depends-on): Add extensions module.
26877         * modules/nanosleep (Depends-on): Likewise.
26878         * modules/settime (Depends-on): Likewise.
26879
26880 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26881
26882         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26883         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26884         pedantically.
26885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26886         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26887
26888         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26889         not "==".  Reported by Ralf Wildenhues.
26890
26891 2006-03-01  Karl Berry  <karl@gnu.org>
26892
26893         * doc/Copyright/request-*: new files, synced from gnuorg.
26894
26895 2006-03-01  Karl Berry  <karl@gnu.org>
26896
26897         * config/srclist.txt (Copyright/*): new entries.
26898
26899 2006-02-28  Simon Josefsson  <jas@extundo.com>
26900
26901         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
26902
26903 2006-02-27  Simon Josefsson  <jas@extundo.com>
26904
26905         * lib/base64.h: Indent #define's.  From Jim Meyering
26906         <jim@meyering.net>.
26907
26908 2006-02-27  Jim Meyering  <jim@meyering.net>
26909
26910         Revert the change of 2006-02-24, so these files can continue
26911         to be sync'd from gettext.
26912         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
26913         of `config.h'.
26914
26915 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26916
26917         * modules/intprops: New file.
26918         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
26919         Add intprops.
26920         * modules/getloadavg (Files): Remove lib/intprops.h.
26921         (Depends-on): Add intprops.
26922         * modules/human: Likewise.
26923         * modules/inttostr: Likewise.
26924         * modules/openat: Likewise.
26925         * modules/sig2str: Likewise.
26926         * modules/userspec: Likewise.
26927         * modules/utimecmp: Likewise.
26928         * modules/xnanosleep: Likewise.
26929         * modules/xstrtol: Likewise.
26930
26931 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
26932
26933         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
26934         * modules/lock-tests (TESTS): Use $(EXEEXT).
26935         * modules/tls-tests: Likewise.
26936         * modules/argp-tests: Likewise.
26937         (check_PROGRAMS): New var, replacing...
26938         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
26939
26940 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26941
26942         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
26943         `config.h'.
26944
26945 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26946
26947         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
26948
26949 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26950
26951         Sync from coreutils.
26952         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
26953         gl_CHDIR_SAFER.
26954
26955 2006-02-22  Jim Meyering  <jim@meyering.net>
26956
26957         Sync from coreutils.
26958         * m4/chdir-safer.m4: New file.
26959
26960 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26961
26962         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
26963         AT_FDCWD exceeds INT_MAX.
26964         * lib/openat.h (AT_FDCWD): Likewise.
26965
26966 2006-02-17  Eric Blake  <address@hidden>
26967
26968         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
26969
26970 2006-02-16  Simon Josefsson  <jas@extundo.com>
26971
26972         * modules/getaddrinfo (Depends-on): Add sys_socket.
26973
26974 2006-02-15  Simon Josefsson  <jas@extundo.com>
26975
26976         * build-aux/maint.mk: Add dsyntax-check rule.
26977
26978 2006-02-15  Eric Blake  <ebb9@byu.net>
26979
26980         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
26981         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
26982         'present but cannot compile' warnings on cygwin.
26983         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
26984         use ws2tcpip.h if sys/socket.h works.
26985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
26986         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
26987
26988 2006-02-14  Simon Josefsson  <jas@extundo.com>
26989
26990         * modules/maintainer-makefile (Files): Rename.
26991
26992         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
26993         and (the local) Makefile.cfg to maint-cfg.mk.
26994
26995         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
26996         to the latter.
26997
26998         * modules/maintainer-makefile: New module.
26999
27000         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27001         severaly stripped to make it possible to build it up from scratch
27002         with reliable tests.
27003
27004         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27005         fixes to permit overriding the default actions when configure and
27006         makefile are not available.
27007
27008 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27009
27010         Sync from coreutils.
27011         * modules/lstat (Depends-on): Don't depend on xalloc.
27012         (License): Change from GPL to LGPL, since this is now simply a
27013         replacement for a libc function.
27014
27015 2006-02-14  Jim Meyering  <jim@meyering.net>
27016
27017         Sync from coreutils.
27018
27019         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27020         failure on deficient systems, and simplify gnulib lgpl dependencies.
27021         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27022         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27023
27024         * lib/xalloc-die.c: Remove unused definition of N_.
27025
27026 2006-02-14  Jim Meyering  <jim@meyering.net>
27027
27028         Sync from coreutils.
27029         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27030         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27031         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27032         double-quote uses of that variable, to accommodate the rare case in
27033         which getmntent is available in none of the libraries checked.  This
27034         happens at least on FreeBSD 5.0.
27035
27036 2006-02-13  Simon Josefsson  <jas@extundo.com>
27037
27038         * gnulib-tool (Usage): Fix --import, from
27039         karl@freefriends.org (Karl Berry).
27040
27041 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27042
27043         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27044
27045 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27046
27047         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27048         "autoupdate" on 2005-12-12.
27049
27050 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27051
27052         * modules/closeout (Depends-on): Remove atexit.
27053
27054 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27055
27056         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27057         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27058
27059 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27060
27061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27062         __EXTENSIONS__ if this causes compilation to fail.  Problem
27063         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27064         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27065
27066 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27067
27068         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27069         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27071         All uses changed.
27072
27073 2006-01-26  Simon Josefsson  <jas@extundo.com>
27074
27075         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27076         prototype is visible on mingw32.
27077
27078         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27079         for mingw32.
27080
27081         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27082         mingw32).
27083
27084 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27085
27086         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27087         attempt to open for write; this always fails, at least on POSIX
27088         hosts.  This reinstates the 2006-01-09 change, which was
27089         inadvertently removed.
27090
27091 2006-01-26  Bruno Haible  <bruno@clisp.org>
27092
27093         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27094         Reported by Paul Eggert.
27095
27096 2006-01-26  Bruno Haible  <bruno@clisp.org>
27097             Paul Eggert  <eggert@cs.ucla.edu>
27098
27099         * lib/stdbool_.h (_Bool)
27100         [(! (defined __cplusplus || defined __BEOS__)
27101           && !defined __GNUC__
27102           && !(defined __HP_cc || defined __xlc__
27103                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27104                || defined __sgi))]:
27105         #define to signed char in these cases too; this simplifies
27106         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27107         etc., separately) and makes it more conservative.
27108
27109 2006-01-25  Simon Josefsson  <jas@extundo.com>
27110
27111         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27112         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27113         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27114
27115 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27116
27117         * lib/argp-namefrob.h: Bugfix. Remove stray #
27118
27119 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27120
27121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27122         so that we test the test.
27123         Check for yet another HP-UX cc bug involving *bool |= bool.
27124
27125 2006-01-25  Karl Berry  <karl@gnu.org>
27126
27127         * config/srclist.txt (vasnprintf.c): sync lost.
27128
27129 2006-01-25  Jim Meyering  <jim@meyering.net>
27130
27131         Sync from the stable (b5) branch of coreutils:
27132
27133         * lib/fts.c (fts_children): Don't let close() clobber errno from
27134         failed fchdir().
27135
27136         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27137         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27138         a dangling symlink.  That can also happen at least for ELOOP.
27139         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27140         FYI, this bug predates the inclusion of fts.c in coreutils.
27141
27142         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27143         in their own block, so pre-c99 compilers don't object.
27144
27145         Avoid the double-free (first in fts_read, second in fts_close) that
27146         would occur when an `active' directory is made inaccessible (e.g.,
27147         via chmod a-x) during a traversal.
27148         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27149         before returning.  Reproduce this failure by
27150         mkdir -p a/b; cd a; chmod a-x . b
27151         Reported by Stavros Passas.
27152
27153 2006-01-25  Jim Meyering  <jim@meyering.net>
27154
27155         * lib/fileblocks.c: Remove more useless parentheses.
27156         * lib/readutmp.h: Likewise.
27157
27158 2006-01-25  Bruno Haible  <bruno@clisp.org>
27159
27160         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27161         warnings.
27162         Reported by Paul Eggert.
27163
27164 2006-01-25  Bruno Haible  <bruno@clisp.org>
27165
27166         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27167         rid of a trap command. For Solaris sh.
27168         Reported by Mark D. Baushke <mdb@gnu.org>.
27169
27170 2006-01-24  Simon Josefsson  <jas@extundo.com>
27171
27172         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27173         Bruno.
27174
27175 2006-01-24  Karl Berry  <karl@gnu.org>
27176
27177         * config/srclist.txt (argp-namefrob.h): sync lost.
27178
27179 2006-01-24  Jim Meyering  <jim@meyering.net>
27180
27181         * modules/openat (Files): Add lib/intprops.h.
27182         From Mark D. Baushke.
27183
27184 2006-01-24  Jim Meyering  <jim@meyering.net>
27185
27186         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27187         Reported by Mark D. Baushke.
27188
27189 2006-01-24  Jim Meyering  <jim@meyering.net>
27190
27191         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27192
27193 2006-01-24  Bruno Haible  <bruno@clisp.org>
27194
27195         * modules/strnlen (Maintainer): Change from glibc to all.
27196
27197 2006-01-24  Bruno Haible  <bruno@clisp.org>
27198
27199         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27200         Patch by Paul Eggert.
27201
27202 2006-01-24  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27205         already has it.
27206         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
27207         2005-11-26.
27208
27209         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27210         'signed char' to avoid problems with the built-in _Bool type.
27211         Reported by Paul Eggert on 2005-11-26.
27212
27213 2006-01-24  Bruno Haible  <bruno@clisp.org>
27214
27215         * gnulib-tool (func_import): Avoid constructing complicated sed
27216         expressions inside backquote.
27217         Report and solution by Mark D. Baushke <mdb@gnu.org>.
27218
27219 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
27220
27221         These changes imported from libc.
27222         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27223         test and two separate function calls.
27224         * lib/strndup.c (__strndup): Add libc_hidden_def.
27225
27226 2006-01-23  Simon Josefsson  <jas@extundo.com>
27227
27228         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27229         Remove the test_*_SOURCES variable: automake infers it by default.
27230         * modules/tls-tests: Likewise.
27231
27232 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27233
27234         Work around porting bugs reported by Dieter in
27235         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27236         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27237         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27238         Include "getopt.h" first, to check interface.
27239         (getenv): Declare only if defined HAVE_DECL_GETENV &&
27240         !HAVE_DECL_GETENV.
27241         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27242         (__strndup): Revert to K&R-style function dfns, the glibc style.
27243         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27244         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27245         Include strnlen.h first, to get prototype properly.
27246         (strnlen): Renamed from __strnlen.
27247         Remove weak alias.
27248
27249 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27250
27251         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27252
27253 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27254
27255         * config/srclist.txt: Adjust to reflect glibc reorganization.
27256         This affects only comments.
27257
27258 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27259
27260          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27261          Reported by Bruce Korb <bkorb@gnu.org>.
27262
27263 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27264
27265         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27266         to pacify gcc -Wswitch-default.
27267
27268 2006-01-22  Bruno Haible  <bruno@clisp.org>
27269
27270         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27271         temporary buffer for sprintf, take into account the precision also
27272         for 'd', 'i', 'u', 'o', 'x', 'X'.
27273
27274 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27275
27276         * modules/argp-tests: New module
27277         * tests/test-argp.c: New file
27278         * tests/test-argp-2.sh: New file
27279
27280 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27281
27282         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27283         (__argp_base_name): Removed
27284         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27285         typo.
27286         (__argp_base_name): Provide macro definition or extern declaration
27287         depending on the configuration
27288
27289 2006-01-20  Simon Josefsson  <jas@extundo.com>
27290
27291         * modules/inet_ntop (Depends-on): Depend on sys_socket.
27292
27293 2006-01-20  Simon Josefsson  <jas@extundo.com>
27294
27295         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27296
27297 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27298
27299         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27300         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27301         Suggested by Bruno Haible.
27302
27303 2006-01-20  Karl Berry  <karl@gnu.org>
27304
27305         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27306         until changes propagate, I guess.
27307
27308 2006-01-19  Simon Josefsson  <jas@extundo.com>
27309
27310         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27311
27312 2006-01-19  Simon Josefsson  <jas@extundo.com>
27313
27314         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27315
27316 2006-01-19  Simon Josefsson  <jas@extundo.com>
27317
27318         * gnulib-tool: Set check_PROGRAMS.
27319
27320         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27321         modules/des-tests, modules/gc-arcfour-tests,
27322         modules/gc-arctwo-tests, modules/gc-des-tests,
27323         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27324         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27325         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27326         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27327         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27328         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27329         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27330         test_*_SOURCES.
27331
27332 2006-01-18  Simon Josefsson  <jas@extundo.com>
27333
27334         * modules/socklen (Depends-on): Depend on sys_socket.
27335
27336 2006-01-18  Simon Josefsson  <jas@extundo.com>
27337
27338         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27339         modules/des-tests, modules/gc-arcfour-tests,
27340         modules/gc-arctwo-tests, modules/gc-des-tests,
27341         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27342         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27343         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27344         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27345         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27346         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
27347         $(EXEEXT) to automake TESTS variable, for mingw32.
27348
27349 2006-01-17  Simon Josefsson  <jas@extundo.com>
27350
27351         * modules/socklen (Include): Need sys/socket.h.
27352
27353 2006-01-17  Bruno Haible  <bruno@clisp.org>
27354
27355         * modules/ssize_t (Include): Add <sys/types.h>.
27356
27357 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27358
27359         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
27360         it's not portable and it doesn't work with cross-compiles.
27361         Problem reported by Bruno Haible.  Fix missing-$ typo in
27362         'test "gl_cv_ignore_unused_libraries" ...' that prevented
27363         -zignore from being used with Sun's C compiler.
27364
27365 2006-01-12  Simon Josefsson  <jas@extundo.com>
27366
27367         * lib/base64.c: Fix warning, reported by Bruno Haible
27368         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
27369
27370 2006-01-12  Bruno Haible  <bruno@clisp.org>
27371
27372         * modules/ldd: New file.
27373         * build-aux/ldd.sh.in: New file.
27374         * MODULES.html.sh (Support for building libraries and executables): Add
27375         ldd.
27376
27377 2006-01-12  Bruno Haible  <bruno@clisp.org>
27378
27379         * m4/ldd.m4: New file.
27380
27381 2006-01-12  Bruno Haible  <bruno@clisp.org>
27382
27383         * gnulib-tool (func_import, func_create_testdir): Don't go into an
27384         endless loop while replacing $auxdir with build-aux.
27385
27386 2006-01-11  Simon Josefsson  <jas@extundo.com>
27387
27388         * lib/stdint_.h (SIZE_MAX): Add missing (.
27389
27390 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
27391
27392         Sync from coreutils.
27393         * lib/md5.c: Fix commentary typos.
27394         (alignof, UNALIGNED_P): No need for a GCC-specific version.
27395         * lib/md5.h (__attribute__): Remove; unused.
27396         * lib/sha1.c: Fix commentary to match md5 better.
27397         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
27398         so that we don't need to worry about alignment.  All uses changed.
27399         This merges the 2005-10-28 md5 change into sha1.
27400
27401 2006-01-11  Jim Meyering  <jim@meyering.net>
27402
27403         Sync from coreutils.
27404         * lib/md5.c (OP): Fix spacing.
27405
27406 2006-01-11  Bruno Haible  <bruno@clisp.org>
27407
27408         Ensure automatic ordering between gl_LOCK and gl_ARGP.
27409         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
27410         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
27411
27412 2006-01-11  Bruno Haible  <bruno@clisp.org>
27413
27414         Ensure automatic ordering between gl_LOCK and gl_ARGP.
27415         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
27416         the "early" section as well.
27417
27418 2006-01-11  Bruno Haible  <bruno@clisp.org>
27419
27420         Avoid "ar: no archive members specified" error on MacOS X.
27421         * gnulib-tool (func_modules_add_dummy): New function.
27422         (func_import, func_create_testdir): Invoke it.
27423
27424 2006-01-11  Bruno Haible  <bruno@clisp.org>
27425
27426         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
27427         with $auxdir in AC_CONFIG_FILES statements.
27428
27429 2006-01-11  Bruno Haible  <bruno@clisp.org>
27430
27431         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27432         Initialize also noinst_HEADERS to empty.
27433
27434 2006-01-11  Bruno Haible  <bruno@clisp.org>
27435
27436         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
27437         variables.
27438         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
27439         autoreconf.
27440
27441 2006-01-11  Bruno Haible  <bruno@clisp.org>
27442
27443         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
27444         overridable by the user.
27445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27446
27447 2006-01-10  Simon Josefsson  <jas@extundo.com>
27448
27449         * modules/sys_socket: New file.
27450
27451 2006-01-10  Simon Josefsson  <jas@extundo.com>
27452
27453         * m4/sys_socket_h.m4: New file.
27454
27455 2006-01-10  Simon Josefsson  <jas@extundo.com>
27456
27457         * lib/socket_.h: New file.
27458
27459 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27460
27461         * modules/readutmp (Maintainer): Add myself.
27462
27463 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27464
27465         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
27466         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
27467         People who are still concerned with buggy memcmp implementations
27468         can invoke gl_FUNC_MEMCMP themselves.
27469
27470 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27471
27472         * lib/regex_internal.h (BITSET_WORD_BITS):
27473         Work around a bug in 64-bit PGC (before version 6.1-2), where the
27474         preprocessor mishandles large unsigned values as if they were signed.
27475         Problem reported by Claudio Fontana in
27476         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
27477
27478 2006-01-10  Jim Meyering  <jim@meyering.net>
27479
27480         Avoid the double-free (first in fts_read, second in fts_close) that
27481         would occur when an `active' directory is made inaccessible (e.g.,
27482         via chmod a-x) during a traversal.
27483         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27484         before returning.  Reproduce this failure by
27485         mkdir -p a/b; cd a; chmod a-x . b
27486         Reported by Stavros Passas.
27487
27488         Sync from coreutils.
27489         * lib/sha1.c: Tweak grammar in a comment.
27490
27491 2006-01-10  Jim Meyering  <jim@meyering.net>
27492
27493         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
27494         Patch by Joerg Sonnenberger.
27495
27496 2006-01-10  Bruno Haible  <bruno@clisp.org>
27497
27498         * modules/readutmp: Depend on module free.
27499         * modules/strtok_r: Depend on module restrict.
27500
27501 2006-01-10  Bruno Haible  <bruno@clisp.org>
27502
27503         * modules/gettext (configure.ac): Add an invocation of
27504         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
27505
27506 2006-01-10  Bruno Haible  <bruno@clisp.org>
27507
27508         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
27509         Reported by Werner Lemberg <wl@gnu.org>.
27510
27511 2006-01-10  Bruno Haible  <bruno@clisp.org>
27512
27513         * lib/localcharset.c: Update from GNU gettext.
27514
27515 2006-01-10  Bruno Haible  <bruno@clisp.org>
27516
27517         * lib/argp.h (__const): Remove macro. Use const instead.
27518         * lib/argp-fmtstream.h (__const): Likewise.
27519         * lib/glob_.h (__const): Remove macro.
27520         * lib/glob-libc.h: Use const instead of __const.
27521
27522 2006-01-10  Bruno Haible  <bruno@clisp.org>
27523
27524         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
27525         variable.
27526         Needed to avoid an automake error regarding the 'gettext' module.
27527
27528 2006-01-09  Simon Josefsson  <jas@extundo.com>
27529
27530         * modules/inet_ntop (Depends-on): Add restrict.
27531
27532 2006-01-09  Simon Josefsson  <jas@extundo.com>
27533
27534         * modules/gc-rijndael-tests (License): Put under LGPL.
27535
27536         * modules/gc-des-tests (License): Likewise.
27537
27538         * modules/gc-arcfour-tests (License): Likewise.
27539
27540         * modules/gc-arctwo-tests (License): Likewise.
27541
27542         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27543
27544         * modules/gc-hmac-sha1-tests (Files): Likewise.
27545
27546         * modules/gc-hmac-md5-tests (License): Likewise.
27547
27548         * modules/gc-sha1-tests (License): Likewise.
27549
27550         * modules/gc-md5-tests (License): Likewise.
27551
27552         * modules/gc-md4-tests (License): Likewise.
27553
27554         * modules/gc-md2-tests (License): Likewise.
27555
27556         * modules/gc-tests (License): Likewise.
27557
27558         * modules/des-tests (License): Likewise.
27559
27560         * modules/md4-tests (License): Likewise.
27561
27562         * modules/md2-tests (License): Likewise.
27563
27564 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27565
27566         Sync from coreutils:
27567
27568         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27569         * modules/lib-ignore: New file.
27570         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27571         chdir-safer.m4, lchmod.m4.
27572         * modules/openat: Add mkdirat.c, openat-priv.h.
27573
27574 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27575
27576         Sync from coreutils.
27577         * m4/lib-ignore.m4: New file.
27578         * m4/lchmod.m4: New file.
27579
27580 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27581
27582         Sync from coreutils.
27583         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27584         for write access: POSIX says that must fail.
27585         * lib/fts.c (diropen): Likewise.
27586         * lib/save-cwd.c (save_cwd): Likewise.
27587         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27588         well, for minor improvements on hosts that lack O_DIRECTORY.
27589         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27590         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27591         Fall back on chown if open failed with EACCES.
27592
27593         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27594         Report an error at compile-time if only a 1-second nominal clock
27595         resolution is found.
27596
27597         * lib/lchmod.h: New file.
27598         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27599         (make_dir_parents): Use lchown rather than chown, and
27600         lchmod rather than chmod.
27601
27602         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27603         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
27604         "proc" reported by n0dalus.
27605
27606         * lib/mountlist.c: Include <limits.h>.
27607         (dev_from_mount_options)
27608         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27609         New function.  It no longer assumes "dev=" has the System V meaning
27610         on Linux (since it doesn't).  It also parses "dev=" more carefully.
27611         (read_file_system_list)
27612         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27613         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27614         dev= in that case.
27615
27616         * lib/posixtm.h (PDS_PRE_2000): New macro.
27617         * lib/posixtm.c (year): Arg is now syntax_bits rather than
27618         allow_century.  All usages changed.  Reject dates outside the range
27619         1969-1999 if PDS_PRE_2000 is used.
27620
27621 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27622
27623         Sync from coreutils.
27624         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27625         (Time of day items): Mention the possibility of leap seconds.
27626         Problem reported by Dr. David Alan Gilbert.
27627
27628 2006-01-09  Jim Meyering  <jim@meyering.net>
27629
27630         Sync from coreutils.
27631
27632         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27633
27634         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27635
27636         * lib/modechange.c (mode_compile): Reject an invalid mode string
27637         that starts with an octal digit.  From Andreas Gruenbacher.
27638
27639         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27640         and dup to open_safer and dup_safer, respectively.
27641         (openat_permissive): Fix typo in comment.
27642
27643         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27644         "gettext.h"; either no longer needed or are guaranteed by openat.h.
27645         (_): Remove; no longer needed.
27646         (openat): Renamed from rpl_openat; no need for rpl_openat
27647         since openat.h renames openat for us.
27648         Replace most of the body with a call to openat_permissive,
27649         to avoid duplicate code.
27650         Port to (probably hypothetical) environments were mode_t is
27651         wider than int.
27652         (openat_permissive): Require mode arg, so that we can check
27653         types better.  Put it just after flags.  Change cwd failure
27654         indicator from pointer-to-bool to pointer-to-errno-value.
27655         All callers changed.
27656         Invoke openat_save_fail and/or openat_restore_fail if
27657         cwd_errno is null, so that openat can call us.
27658         (openat_permissive, fdopendir, fstatat, unlinkat):
27659         Simplify errno handling to avoid some duplicate code,
27660         as it's OK to set errno on success.
27661         * lib/openat.h: Revamp code so that function macros depend on
27662         __OPENAT_PREFIX only, not also on AT_FDCWD.
27663         (openat_ro): Remove.  Caller changed to use openat_permissive.
27664         (openat_permissive): Now a macro, if not a function.
27665         (openat_restore_fail, openat_save_fail): Now always functions,
27666         since mkdirat needs them even if __OPENAT_PREFIX is defined.
27667
27668         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27669         and openat.c.
27670         * lib/mkdirat.c: Include openat-priv.h.
27671         Remove definitions of macros defined therein.
27672         * lib/openat.c: Likewise.
27673
27674         * lib/mkdirat.c (mkdirat): New file and function.
27675         * lib/openat.h (mkdirat): Declare.
27676
27677         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27678
27679         * lib/openat.h (openat_permissive): Declare.
27680         (openat_ro): Define.
27681
27682         * lib/openat.c (EXPECTED_ERRNO): New macro.
27683         (openat_permissive): New function -- used in remove.c rewrite.
27684         (all functions): Set errno just before returning, only if there
27685         was an actual failure.
27686         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27687
27688         Emulate openat-family functions using Linux's procfs, if possible.
27689         Idea and some code based on Ulrich Drepper's glibc changes.
27690
27691         * lib/openat.c: (BUILD_PROC_NAME): New macro.
27692         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27693         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27694         before falling back on save_cwd and restore_cwd.
27695         (fdopendir, fstatat, unlinkat): Likewise.
27696
27697         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27698         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27699
27700         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27701         as second argument to va_arg.  Otherwise, some versions of gcc
27702         warn that `if this code is reached, the program will abort'.
27703
27704 2006-01-09  Jim Meyering  <jim@meyering.net>
27705
27706         Sync from coreutils.
27707         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27708         Require openat-priv.h.
27709
27710 2006-01-09  Bruno Haible  <bruno@clisp.org>
27711
27712         * modules/strnlen (Include): Use strnlen.h.
27713
27714 2006-01-09  Bruno Haible  <bruno@clisp.org>
27715
27716         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27717
27718 2006-01-09  Bruno Haible  <bruno@clisp.org>
27719
27720         * lib/sysexit_.h (EX_OK): New macro.
27721         Suggested by Martin Lambers <marlam@marlam.de>.
27722
27723 2006-01-09  Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27726         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27727
27728 2006-01-09  Bruno Haible  <bruno@clisp.org>
27729
27730         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27731         numbers.
27732
27733 2006-01-09  Bruno Haible  <bruno@clisp.org>
27734
27735         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27736         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27737         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27738         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27739
27740 2006-01-09  Bruno Haible  <bruno@clisp.org>
27741
27742         * build-aux/javacomp.sh.in: New file, moved from lib/.
27743         * modules/javacomp-script (Files): Update.
27744         (configure.ac): Add AC_CONFIG_FILES invocation.
27745         (EXTRA_DIST): Remove variable.
27746
27747         * build-aux/javaexec.sh.in: New file, moved from lib/.
27748         * modules/javaexec (Files): Update.
27749         (configure.ac): Add AC_CONFIG_FILES invocation.
27750         (EXTRA_DIST): Remove javaexec.sh.in.
27751
27752         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27753         * modules/csharpcomp-script (Files): Update.
27754         (configure.ac): Add AC_CONFIG_FILES invocation.
27755         (EXTRA_DIST): Remove variable.
27756
27757         * build-aux/csharpexec.sh.in: New file, moved from lib/.
27758         * modules/csharpexec (Files): Update.
27759         (configure.ac): Add AC_CONFIG_FILES invocation.
27760         (EXTRA_DIST): Remove csharpexec.sh.in.
27761
27762 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27763
27764         Sync from coreutils.
27765
27766         Add POSIX ACL support
27767         * lib/acl.h (copy_acl, set_acl): Add declarations.
27768         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27769         systems other than Linux.
27770         (chmod_or_fchmod): New function: use fchmod when possible,
27771         and chmod otherwise.
27772         (file_has_acl): Add a POSIX ACL implementation, with a
27773         Linux-specific subcase.
27774         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27775         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
27776         acls are unsupported.
27777         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27778         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
27779         are unsupported.
27780
27781 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27782
27783         Sync from coreutils.
27784         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27785
27786 2006-01-07  Bruno Haible  <bruno@clisp.org>
27787
27788         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27789         gl_EARLY.
27790
27791 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27792
27793         * lib/strftime.c (tzname): Don't declare if it is already #defined.
27794         Problem reported for Mingw by Mark Junker.
27795
27796 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27797
27798         * README: Gnulib normally doesn't generate a tarball.
27799
27800 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27801
27802         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27803         long int, not int, for nanosecond counts, so that people who are
27804         used to POSIX struct timespec won't be surprised.  Reported by Jim
27805         Meyering.
27806
27807 2005-12-28  Bruno Haible  <bruno@clisp.org>
27808
27809         * build-aux/config.rpath: Update from GNU gettext.
27810
27811 2005-12-16  Jim Meyering  <jim@meyering.net>
27812
27813         * modules/fprintftime: New module.
27814         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27815
27816 2005-12-16  Jim Meyering  <jim@meyering.net>
27817
27818         * m4/fprintftime.m4: New file.
27819
27820 2005-12-16  Jim Meyering  <jim@meyering.net>
27821
27822         * lib/fprintftime.c, lib/fprintftime.h: New files.
27823
27824 2005-12-15  Simon Josefsson  <jas@extundo.com>
27825
27826         * modules/socklen (configure.ac): Fix M4 macro name, to align with
27827         new m4/socklen.m4.
27828
27829 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27830
27831         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27832         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27833
27834 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27835
27836         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27837         * lib/argp-help.c (fill_in_uparams): Check if the constructed
27838         struct uparams is valid. Fall back to the default values if it is
27839         not.
27840
27841 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27842
27843         * modules/argp (Files): Add argp-pin.c
27844         (Depends-on): dirname
27845         (lib_SOURCES): Add argp-pin.c
27846
27847 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27848
27849         * m4/argp.m4:  Check if program_invocation_name and
27850         program_invocation_short_name are declared and define appropriate
27851         macros if they are not.
27852
27853 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27854
27855         * lib/argp-help.c (__argp_base_name): New function
27856         (__argp_short_program_name): Rewrite using __argp_base_name
27857         * lib/argp-namefrob.h: Define program_invocation_name and
27858         program_invocation_short_name if requested
27859         (__argp_base_name): Add prototype
27860         * lib/argp-parse.c (argp_def): Use gettext wrappers
27861         (argp_default_parser): Use __argp_base_name
27862         * lib/argp-pin.c: New file. Defines program_invocation_name and
27863         program_invocation_short_name on systems that lack them.
27864
27865 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27866
27867         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27868         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27869         porting problem reported by Georg Schwarz in
27870         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27871
27872 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27873
27874         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27875         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27876         porting problem reported by Georg Schwarz in
27877         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27878
27879 2005-12-05  Bruno Haible  <bruno@clisp.org>
27880
27881         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27882         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27883         Reported by Mark Junker <mjscod@gmx.de>.
27884
27885 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27886
27887         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27888         Use implementation from Albert Chin, with some
27889         comments/corrections by Stepan Kasal and myself.
27890
27891 2005-12-02  Bruno Haible  <bruno@clisp.org>
27892
27893         * gnulib-tool (func_import): Accept GPLed build tool modules when
27894         --lgpl is given.
27895         * modules/csharpcomp-script: New file.
27896         * modules/csharpcomp: Depend on it.
27897         * modules/javacomp-script: New file.
27898         * modules/javacomp: Depend on it.
27899         Suggested by Simon Josefsson.
27900
27901 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
27904         statement, to work around an HP-UX 10.20 compiler bug reported by
27905         Peter O'Gorman.
27906
27907 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27908
27909         * modules/savedir (Depends-on): Add openat.
27910
27911 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
27914         (uintmax_t) [defined uintmax_t]: Do not declare.
27915         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
27916         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
27917         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
27918         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
27919         sake of portability to weird hosts that C allows (though we don't
27920         know of any practical examples).
27921
27922         * lib/savedir.h (fdsavedir): New decl.
27923         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
27924         contains most of the former guts of savedir.
27925         (savedir): Use savedirstream.
27926         Include "openat.h".
27927
27928 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27929
27930         * modules/obstack (Files): Add m4/ulonglong.m4.
27931         Problem reported by Davide Angelocola.
27932
27933 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27934
27935         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
27936         coreutils no longer futzes with rounding modes.
27937
27938 2005-11-14  Jim Meyering  <jim@meyering.net>
27939
27940         * lib/mkstemp-safer.c: Include <config.h>, required for possible
27941         replacement of mkstemp.
27942
27943 2005-11-10  Simon Josefsson  <jas@extundo.com>
27944
27945         * lib/readline.c: Remove EOL.
27946
27947 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27948
27949         * modules/gethrxtime (Depends-on): Add gettime.
27950
27951 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27952
27953         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
27954         or gettimeofday; no longer needed.
27955
27956 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27957
27958         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
27959         time business.
27960         (gethrxtime) [! (HAVE_NANOUPTIME
27961         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
27962         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
27963         our own approximation.
27964
27965 2005-11-08  Eric Blake  <ebb9@byu.net>
27966
27967         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27968
27969 2005-11-08  Eric Blake  <ebb9@byu.net>
27970
27971         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27972
27973 2005-11-04  Bruno Haible  <bruno@clisp.org>
27974
27975         * gnulib-tool: Implement --update mode.
27976
27977 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27978
27979         Fix porting problem reported by Theodoros V. Kalamatianos.
27980         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
27981         Don't assume that futimes failing means we must fail.
27982
27983 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27984
27985         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
27986         variables to suggest the intended function of the PATH_MAX check.
27987
27988 2005-10-30  Kean Johnston  <jkj@sco.com>
27989
27990         Trivial changes to support SCO systems.
27991         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
27992         as PATH_MAX.
27993         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
27994         where __ptr is null when no I/O is pending.
27995
27996 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27997
27998         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
27999         leave errno alone.  Problem reported by Dmitry V. Levin.
28000
28001 2005-10-28  Simon Josefsson  <jas@extundo.com>
28002
28003         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28004         Test more.
28005
28006         * tests/test-gc-md2.c, tests/test-md2.c: New files.
28007
28008         * modules/md2, modules/md2-tests: New files.
28009
28010 2005-10-28  Simon Josefsson  <jas@extundo.com>
28011
28012         * m4/inet_ntop.m4: More tests.
28013
28014         * m4/gc-md2.m4, md2.m4: New file.
28015
28016 2005-10-28  Simon Josefsson  <jas@extundo.com>
28017
28018         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28019         "restrict" keywords, as per POSIX.  Protect the function
28020         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28021         Don't use K&R prototypes.  Check the sprintf return values.
28022         Re-define EAFNOSUPPORT if not present.  Indent.
28023
28024         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28025         suggested by Bruno Haible <bruno@clisp.org>.
28026
28027         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28028
28029         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
28030
28031         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28032         libgcrypt).
28033
28034         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
28035
28036         * lib/md2.h, lib/md2.c: New files.
28037
28038 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28039
28040         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28041         errno alone.  Problem reported by Frederic Jolliton.
28042
28043 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
28044
28045         * modules/verify (License): Change from GPL to LGPL.  This is a
28046         tiny module and there are apparently near-equivalents that are
28047         under the BSD license.
28048
28049 2005-10-24  Simon Josefsson  <jas@extundo.com>
28050
28051         * modules/sha1: Relicense to LGPL.
28052
28053 2005-10-24  Simon Josefsson  <jas@extundo.com>
28054
28055         * lib/md4.h: Shrink buffer size, now that we changed the type.
28056
28057 2005-10-23  Simon Josefsson  <jas@extundo.com>
28058
28059         * gnulib-tool (func_import): Fix --tests-base.
28060
28061 2005-10-22  Simon Josefsson  <jas@extundo.com>
28062
28063         * modules/arcfour (Depends-on): Need stdint.
28064
28065 2005-10-22  Simon Josefsson  <jas@extundo.com>
28066
28067         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28068         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
28069
28070 2005-10-22  Simon Josefsson  <jas@extundo.com>
28071
28072         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28073         suggested by Bruno Haible <bruno@clisp.org>.
28074
28075 2005-10-22  Simon Josefsson  <jas@extundo.com>
28076
28077         * lib/crc.h: Include stddef.h, for size_t.
28078
28079 2005-10-22  Simon Josefsson  <jas@extundo.com>
28080
28081         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28082         arcfour_context struct (simplify test vector testing in GNU
28083         Shishi).
28084
28085 2005-10-21  Simon Josefsson  <jas@extundo.com>
28086
28087         * modules/des, modules/des-tests: New files.
28088
28089         * modules/gc-des, modules/gc-des-tests: New files.
28090
28091         * tests/test-des.c, tests/test-gc-des.c: New file.
28092
28093 2005-10-21  Simon Josefsson  <jas@extundo.com>
28094
28095         * modules/arctwo, modules/arctwo-tests: New files.
28096
28097         * tests/test-arctwo.c: New file.
28098
28099         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28100
28101         * tests/test-gc-arctwo.c: New file.
28102
28103 2005-10-21  Simon Josefsson  <jas@extundo.com>
28104
28105         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28106         Bruno Haible <bruno@clisp.org>.
28107
28108         * m4/gc-des.m4: New file.
28109
28110 2005-10-21  Simon Josefsson  <jas@extundo.com>
28111
28112         * m4/arctwo.m4: New file.
28113
28114         * m4/gc-arctwo.m4: New file.
28115
28116 2005-10-21  Simon Josefsson  <jas@extundo.com>
28117
28118         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28119         block.
28120
28121 2005-10-21  Simon Josefsson  <jas@extundo.com>
28122
28123         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28124         <bruno@clisp.org>.
28125
28126         * lib/hmac-sha1.c (hmac_sha1): Likewise.
28127
28128         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28129         Bruno Haible <bruno@clisp.org>.
28130
28131         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28132         <bruno@clisp.org>.
28133
28134 2005-10-21  Simon Josefsson  <jas@extundo.com>
28135
28136         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28137
28138 2005-10-21  Simon Josefsson  <jas@extundo.com>
28139
28140         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28141
28142 2005-10-21  Simon Josefsson  <jas@extundo.com>
28143
28144         * lib/des.h, lib/des.c: New files.
28145
28146         * lib/gc-gnulib.c: Support DES.c
28147
28148 2005-10-21  Simon Josefsson  <jas@extundo.com>
28149
28150         * lib/arctwo.h, lib/arctwo.c: New files.
28151
28152         * lib/gc-gnulib.c: Support ARCTWO.
28153
28154 2005-10-21  Simon Josefsson  <jas@extundo.com>
28155
28156         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28157         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28158
28159 2005-10-21  Simon Josefsson  <jas@extundo.com>
28160
28161         * gnulib-tool (func_import, func_create_testdir): Define automake
28162         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28163         Makefile.am snippet),
28164         suggested by Bruno Haible <bruno@clisp.org>.
28165
28166         * modules/gc (Makefile.am): Use it.
28167
28168 2005-10-21  Bruno Haible  <bruno@clisp.org>
28169
28170         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28171         patch.
28172
28173 2005-10-19  Simon Josefsson  <jas@extundo.com>
28174
28175         * tests/test-gc-rijndael.c: New file.
28176
28177         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28178
28179 2005-10-19  Simon Josefsson  <jas@extundo.com>
28180
28181         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28182         interface too.
28183
28184 2005-10-19  Simon Josefsson  <jas@extundo.com>
28185
28186         * tests/test-gc-arcfour.c: New file.
28187
28188         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28189
28190 2005-10-19  Simon Josefsson  <jas@extundo.com>
28191
28192         * modules/gc-md4, modules/gc-md4-tests: New file.
28193
28194         * tests/test-gc-md4.c: New file.
28195
28196 2005-10-19  Simon Josefsson  <jas@extundo.com>
28197
28198         * m4/gc-md4.m4: New file.
28199
28200 2005-10-19  Simon Josefsson  <jas@extundo.com>
28201
28202         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28203         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28204         <kasal@ucw.cz>.
28205
28206 2005-10-19  Simon Josefsson  <jas@extundo.com>
28207
28208         * m4/gc-arcfour.m4: New file.
28209
28210         * m4/gc-rijndael.m4: New file.
28211
28212 2005-10-19  Simon Josefsson  <jas@extundo.com>
28213
28214         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28215
28216 2005-10-19  Simon Josefsson  <jas@extundo.com>
28217
28218         * lib/gc-gnulib.c: Support ARCFOUR.
28219
28220 2005-10-19  Simon Josefsson  <jas@extundo.com>
28221
28222         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28223         support.
28224
28225         * lib/gc.h: Add ECB enum type.
28226
28227         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28228
28229 2005-10-18  Simon Josefsson  <jas@extundo.com>
28230
28231         * tests/test-md5.c: New file.
28232
28233         * modules/md5-tests: New file.
28234
28235 2005-10-18  Simon Josefsson  <jas@extundo.com>
28236
28237         * tests/test-md4.c: New file.
28238
28239         * modules/md4, modules/md4-tests: New files.
28240
28241 2005-10-18  Simon Josefsson  <jas@extundo.com>
28242
28243         * m4/md4.m4: New file.
28244
28245 2005-10-18  Simon Josefsson  <jas@extundo.com>
28246
28247         * lib/md4.h, lib/md4.c: New files, based on md5.?.
28248
28249 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
28250
28251         * gnulib-tool (func_create_testdir): Omit the second check whether
28252         BUILT_SOURCES in nonempty.
28253
28254 2005-10-17  Simon Josefsson  <jas@extundo.com>
28255
28256         * tests/test-rijndael.c: New file.
28257
28258 2005-10-17  Simon Josefsson  <jas@extundo.com>
28259
28260         * modules/sha1: Depend on stdint instead of md5.
28261
28262         * modules/md5: Depend on stdint, remove uint32_t.
28263
28264 2005-10-17  Simon Josefsson  <jas@extundo.com>
28265
28266         * modules/gc-sha1-tests: New file.
28267
28268         * tests/test-gc-sha1.c: New file.
28269
28270 2005-10-17  Simon Josefsson  <jas@extundo.com>
28271
28272         * m4/md5.m4: Remove call to uint32_t.m4.
28273
28274 2005-10-17  Simon Josefsson  <jas@extundo.com>
28275
28276         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28277
28278         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28279         md5.h.
28280
28281         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
28282
28283         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
28284
28285 2005-10-17  Simon Josefsson  <jas@extundo.com>
28286
28287         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28288
28289 2005-10-17  Simon Josefsson  <jas@extundo.com>
28290
28291         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28292
28293 2005-10-17  Simon Josefsson  <jas@extundo.com>
28294
28295         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28296
28297         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28298
28299 2005-10-17  Bruno Haible  <bruno@clisp.org>
28300
28301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28302         that it can also be used in a test.
28303
28304 2005-10-16  Bruno Haible  <bruno@clisp.org>
28305
28306         * gnulib-tool (func_emit_tests_Makefile_am): Also define
28307         TESTS_ENVIRONMENT, so that individual tests can augment it.
28308
28309         * gnulib-tool (func_create_testdir): Use an intermediate target for
28310         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28311         macros, like $(ALLOCA_H), which cannot be passed through the command
28312         line.
28313
28314 2005-10-15  Simon Josefsson  <jas@extundo.com>
28315
28316         * modules/rijndael-tests: New file.
28317
28318         * modules/rijndael: New file.
28319
28320 2005-10-15  Simon Josefsson  <jas@extundo.com>
28321
28322         * m4/rijndael.m4: New file.
28323
28324 2005-10-15  Simon Josefsson  <jas@extundo.com>
28325
28326         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28327
28328         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28329
28330 2005-10-14  Simon Josefsson  <jas@extundo.com>
28331
28332         * tests/test-arcfour.c: New file.
28333
28334         * modules/arcfour, modules/arcfour-tests: New files.
28335
28336 2005-10-14  Simon Josefsson  <jas@extundo.com>
28337
28338         * m4/arcfour.m4: New file.
28339
28340 2005-10-14  Simon Josefsson  <jas@extundo.com>
28341
28342         * lib/arcfour.h, lib/arcfour.c: New files.
28343
28344 2005-10-14  Roland McGrath  <roland@redhat.com>
28345
28346         Import from libc.  [BZ #1331]
28347         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
28348         macro argument.
28349         Reported by Matej Vela <vela@debian.org>.
28350
28351 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28352
28353         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
28354         include <wchar.h>; no longer needed.
28355
28356 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28357
28358         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
28359
28360 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
28361         and  Ulrich Drepper  <drepper@redhat.com>
28362
28363         Import from libc.
28364         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
28365         instead of inline stream orientation test and two separate
28366         function calls.  Pay no attention to USE_IN_LIBIO.
28367
28368 2005-10-13  Simon Josefsson  <jas@extundo.com>
28369
28370         * modules/gc-hmac-md5-tests: New file.
28371
28372         * tests/test-gc-hmac-sha1.c: New file.
28373
28374         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
28375
28376         * modules/gc-hmac-md5-tests: New file.
28377
28378         * tests/test-gc-md5.c: New file.
28379
28380         * modules/gc-md5-tests: New file.
28381
28382 2005-10-13  Simon Josefsson  <jas@extundo.com>
28383
28384         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
28385         Move memory allocation outside of loop.
28386
28387 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28388
28389         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
28390         intermediate directory is in a read-only file system.  Problem
28391         reported by Eric Blake.
28392
28393 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
28394
28395         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
28396
28397 2005-10-12  Simon Josefsson  <jas@extundo.com>
28398
28399         * tests/test-hmac-sha1.c: New file.
28400
28401         * modules/hmac-sha1-tests: New file.
28402
28403         * modules/hmac-sha1: New file.
28404
28405 2005-10-12  Simon Josefsson  <jas@extundo.com>
28406
28407         * modules/gc-sha1: New file.
28408
28409 2005-10-12  Simon Josefsson  <jas@extundo.com>
28410
28411         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
28412
28413         * tests/test-gc-pbkdf2-sha1.c: New file.
28414
28415 2005-10-12  Simon Josefsson  <jas@extundo.com>
28416
28417         * modules/gc-md5, modules/gc-hmac-md5: New files.
28418
28419         * modules/gc (Files): Remove md5, memxor and hmac files.
28420
28421 2005-10-12  Simon Josefsson  <jas@extundo.com>
28422
28423         * m4/gc-pbkdf2-sha1.m4: New file.
28424
28425         * m4/gc-hmac-sha1.m4: New file.
28426
28427         * m4/gc-sha1: New file.
28428
28429         * m4/hmac-sha1.m4: New file.
28430
28431 2005-10-12  Simon Josefsson  <jas@extundo.com>
28432
28433         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
28434
28435         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
28436
28437 2005-10-12  Simon Josefsson  <jas@extundo.com>
28438
28439         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
28440         suggested by Bruno Haible <bruno@clisp.org>.
28441
28442 2005-10-12  Simon Josefsson  <jas@extundo.com>
28443
28444         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
28445
28446 2005-10-12  Simon Josefsson  <jas@extundo.com>
28447
28448         * lib/gc-pbkdf2-sha1.c: New file.
28449
28450         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
28451
28452 2005-10-12  Simon Josefsson  <jas@extundo.com>
28453
28454         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
28455
28456         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
28457
28458 2005-10-12  Simon Josefsson  <jas@extundo.com>
28459
28460         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
28461         GC_USE_HMAC_MD5, respectively.
28462
28463         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
28464         (gc_md5): Fix typo.
28465
28466         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
28467
28468         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
28469
28470         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
28471
28472 2005-10-12  Bruno Haible  <bruno@clisp.org>
28473
28474         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
28475         Reported by Stepan Kasal <kasal@ucw.cz>.
28476
28477 2005-10-11  Simon Josefsson  <jas@extundo.com>
28478
28479         * tests/test-crc.c: New file.
28480
28481         * modules/crc, modules/crc-tests: New files.
28482
28483 2005-10-11  Simon Josefsson  <jas@extundo.com>
28484
28485         * m4/crc.m4: New file.
28486
28487 2005-10-11  Simon Josefsson  <jas@extundo.com>
28488
28489         * lib/gc.h: Add gc_hash and gc_hash_buffer.
28490
28491         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
28492
28493         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
28494
28495 2005-10-11  Simon Josefsson  <jas@extundo.com>
28496
28497         * lib/crc.h, lib/crc.c: New files.
28498
28499         * lib/gc.h (gc_hash_buffer): Add doc.
28500
28501 2005-10-11  Bruno Haible  <bruno@clisp.org>
28502
28503         * modules/c-strcasestr: New file.
28504         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
28505
28506 2005-10-11  Bruno Haible  <bruno@clisp.org>
28507
28508         * modules/c-strcase: New file.
28509         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
28510
28511 2005-10-11  Bruno Haible  <bruno@clisp.org>
28512
28513         * lib/strcasecmp.c: Include limits.h.
28514         (strcasecmp): Avoid integer overflow on exotic platforms.
28515         * lib/strncasecmp.c: Include limits.h.
28516         (strncasecmp): Avoid integer overflow on exotic platforms.
28517         Reported by Paul Eggert.
28518
28519 2005-10-11  Bruno Haible  <bruno@clisp.org>
28520
28521         * lib/c-strcasestr.h: New file, from GNU gettext.
28522         * lib/c-strcasestr.c: New file, from GNU gettext.
28523
28524 2005-10-11  Bruno Haible  <bruno@clisp.org>
28525
28526         * lib/c-strcase.h: New file, from GNU gettext.
28527         * lib/c-strcasecmp.c: New file, from GNU gettext.
28528         * lib/c-strncasecmp.c: New file, from GNU gettext.
28529
28530 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28531
28532         * modules/mempcpy (License): GPL -> LGPL.
28533         * modules/strchrnul (License): Likewise.
28534         * modules/sysexits (License): Likewise.
28535
28536 2005-10-08  Simon Josefsson  <jas@extundo.com>
28537
28538         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
28539
28540 2005-10-07  Simon Josefsson  <jas@extundo.com>
28541
28542         * m4/memxor.m4: Remove gl_C_RESTRICT call.
28543
28544 2005-10-06  Simon Josefsson  <jas@extundo.com>
28545
28546         * tests/test-hmac-md5.c: New file.
28547
28548         * modules/hmac-md5-tests: New file.
28549
28550         * modules/hmac-md5: New file.
28551
28552 2005-10-06  Simon Josefsson  <jas@extundo.com>
28553
28554         * m4/hmac-md5.m4: New file.
28555
28556         * m4/memxor.m4: Require gl_C_RESTRICT.
28557
28558 2005-10-06  Simon Josefsson  <jas@extundo.com>
28559
28560         * lib/memxor.c (memxor): Avoid casts and warnings.
28561
28562 2005-10-06  Simon Josefsson  <jas@extundo.com>
28563
28564         * lib/hmac-md5.c: New file.
28565
28566         * lib/hmac.h: New file.
28567
28568 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28569
28570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28571         promotes to int, not unsigned int, to catch the AIX 5.3
28572         compiler bug.
28573
28574 2005-10-05  Simon Josefsson  <jas@extundo.com>
28575
28576         * modules/memxor: New file.
28577
28578         * modules/iconv (Files): Move config.rpath to havelib, it is used
28579         there.
28580
28581         * modules/havelib (Files): Add config.rpath.
28582
28583 2005-10-05  Simon Josefsson  <jas@extundo.com>
28584
28585         * m4/memxor.m4: New file.
28586
28587 2005-10-05  Simon Josefsson  <jas@extundo.com>
28588
28589         * lib/memxor.c (memxor): Fix compiler error.
28590
28591         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28592         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28593
28594         * lib/memxor.h, lib/memxor.c: New files.
28595
28596         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28597         we assume all systems have it, suggested by Jim Meyering
28598         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
28599         any systems lack sys/socket.h; mingw32 is known to lack it, but we
28600         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
28601         same reasons.
28602
28603 2005-10-05  Simon Josefsson  <jas@extundo.com>
28604
28605         * config/srclist.txt: Add glibc bug 1423 for md5.h.
28606
28607 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28608
28609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28610         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28611         needed, since the source code now assumes these .h files.
28612
28613 2005-10-05  Derek Price  <derek@ximbiot.com>
28614
28615         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28616
28617 2005-10-05  Bruno Haible  <bruno@clisp.org>
28618
28619         * modules/stdint (License): Change to LGPL.
28620
28621 2005-10-04  Simon Josefsson  <jas@extundo.com>
28622
28623         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28624         D. Baushke" <mdb@gnu.org>.
28625
28626 2005-10-04  Bruno Haible  <bruno@clisp.org>
28627
28628         * lib/verify.h (verify_true): Provide alternative definition for C++.
28629
28630 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28631
28632         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
28633         (SSIZE_MAX): New macro, if not already defined.
28634         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28635         than 2 GiB.
28636
28637 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         Sync from coreutils.
28640         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28641         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28642         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
28643         ULLONG_MAX doesn't work with 2.7.2.1.
28644
28645 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28646
28647         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28648         From Ben Pfaff.
28649
28650         * modules/exclude (Depends-on): Depend on verify.
28651         * modules/strtoimax (Depends-on): Likewise.
28652         * modules/utimecmp (Depends-on): Likewise.
28653
28654 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28655
28656         * lib/exclude.c: Include verify.h.
28657         (verify): Remove.  All callers changed to use verify.h's version.
28658         * lib/strtoimax.c: Likewise.
28659         * lib/utimecmp.c: Likewis.e
28660
28661         Sync from coreutils.
28662         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28663         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28664         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28665         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
28666         bother returning ENOSYS if settimeofday or stime fails; just let
28667         them return whatever errno they want to return.
28668         * lib/utimens.c: Include unistd.h, for dup2.
28669         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28670         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28671
28672 2005-10-02  Jim Meyering  <jim@meyering.net>
28673
28674         Sync from coreutils.
28675         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28676         from glibc-2.2.5 that fails for read-only files.
28677
28678 2005-10-02  Jim Meyering  <jim@meyering.net>
28679
28680         Sync from coreutils.
28681         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28682         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28683         `#if HAVE_CONFIG_H'.
28684         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28685         Remove AT_FDCWD test.
28686         Do not consume the fd unless successful.
28687         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28688         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28689         block, so that we don't even try to compile it if settimeofday is
28690         available.  This works around a compilation failure on OSF1 V5.1,
28691         due to stime requiring a `long int*' while tv_sec is `int'.
28692
28693 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
28694
28695         Sync from coreutils.
28696         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28697         against `yes', rather than just testing for nonempty.
28698
28699 2005-10-01  Simon Josefsson  <jas@extundo.com>
28700
28701         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28702         and Darwin.
28703
28704         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28705         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
28706         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
28707         freeaddrinfo and gai_strerror are declared by the POSIX headers.
28708         Check if struct addrinfo is declared.
28709
28710 2005-10-01  Simon Josefsson  <jas@extundo.com>
28711
28712         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28713         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
28714         AI_* and EAI_* definitions.  Protect function declarations.
28715
28716 2005-10-01  Jim Meyering  <jim@meyering.net>
28717
28718         Sync from coreutils.
28719
28720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28721         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
28722         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28724         in the inet and nsl libraries.  Required on Solaris 5.7.
28725
28726 2005-10-01  Jim Meyering  <jim@meyering.net>
28727
28728         Sync from coreutils.
28729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28730         in the inet and nsl libraries.  Required on Solaris 5.7.
28731
28732 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
28733
28734         * lib/getdelim.c (getdelim): Remove unused variables.
28735
28736 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28737
28738         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28739         so that the code works even with ancient cpp.  Portability problem
28740         with GCC 2.7.2.1 reported by Thomas M.Ott.
28741
28742 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28743
28744         * modules/regex (Depends-on): Add strcase.
28745
28746         * modules/gethostname (Licence): Change from GPL to LGPL, since
28747         gethostname.c is a trivial implementation of a standard library
28748         function.
28749         * modules/poll (License): Change from GPL to LGPL, since it's
28750         derived from LGPL code.
28751
28752 2005-09-27  Jim Meyering  <jim@meyering.net>
28753
28754         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28755         HAVE_CONFIG_H.
28756
28757         * lib/intprops.h (signed_type_or_expr__): Define.
28758         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28759         for unsigned types.
28760
28761 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28762
28763         * lib/verify.h (verify_expr): Remove, replacing with:
28764         (verify_true): New macro that returns true instead of void.
28765         (verify_type__): Remove.
28766         (verify): Use verify_true rather than verify_type__.
28767
28768 2005-09-26  Bruno Haible  <bruno@clisp.org>
28769
28770         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28771         is necessary.
28772         (lib_SOURCES): Remove mbchar.c.
28773         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28774         (Files): Add m4/mbrtowc.m4.
28775         * modules/mbiter: Likewise.
28776         * modules/mbuiter: Likewise.
28777
28778 2005-09-26  Bruno Haible  <bruno@clisp.org>
28779
28780         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28781         compile mbchar.c if they are not both present.
28782         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28783         * m4/mbiter.m4 (gl_MBITER): Likewise.
28784         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28785         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28786         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28787
28788 2005-09-25  Jim Meyering  <jim@meyering.net>
28789
28790         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28791         also uses socklen_t.
28792
28793 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28794
28795         * lib/utimens.c (ENOSYS): Define if not already defined.
28796         (futimens): Support having a null PATH if the file descriptor
28797         is nonnegative.
28798
28799         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28800         Remove.
28801         (__attribute): Define to empty unless GCC 3.1 or later.
28802         This works around a core dump on OpenBSD 3.4, which has GCC
28803         2.95.3, which dumps core when given __attribute__(()).  It also
28804         simplifies other tests, since we really don't want to bother with
28805         worrying about which ancient version of GCC supported what.
28806         Original problem reported by Yoann Vandoorselaere, with part of
28807         the fix suggested by Derek Price.
28808
28809 2005-09-24  Jim Meyering  <jim@meyering.net>
28810
28811         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28812         so we can once again use a positive bitfield width of 1 -- now we
28813         don't have to explain why we were using a bitfield width of 2.
28814
28815 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28816
28817         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28818         and similarly for the other external symbols.  Problem reported
28819         by James Gallager.
28820
28821         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28822         bug reported by Jim Meyering.
28823
28824         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28825         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28826         not needed, since socklen is a prerequisite module.
28827
28828 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28831         Problem reported by Eric Blake.
28832         (getaddrinfo): Initialize se so that it's not garbage.
28833         Redo internal storage allocation so that it doesn't make unportable
28834         assumptions about alignment.
28835         Fix a memory leak.
28836
28837         * lib/utimens.c (futimens): Use futimesat if available.
28838         Prefer it to futimes since it doesn't have the futimes bug.
28839
28840         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28841         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28842         Instead, declare a function that returns a pointer to an array,
28843         and use verify_type__ to declare the size of the array.
28844         Problem and germ of a solution reported by Bruno Haible.
28845         (verify_type__): Use 2, not 1, for bitfield size, to avoid
28846         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
28847
28848 2005-09-23  Jim Meyering  <jim@meyering.net>
28849
28850         Sync from coreutils.
28851         Correct build failure (socklen_t not defined) on at least
28852         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28854
28855 2005-09-23  Jim Meyering  <jim@meyering.net>
28856
28857         * modules/getaddrinfo (Depends-on): Add socklen.
28858
28859 2005-09-23  Bruno Haible  <bruno@clisp.org>
28860
28861         * tests/test-verify.c: New file.
28862
28863 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28864
28865         Sync from coreutils.
28866
28867         * modules/argmatch (Depends-on): Add verify.
28868         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28869         unistd-safer.
28870         * modules/save-cwd (Depends-on): Likewise.
28871
28872         * modules/openat (Files): Add lib/openat-die.c.
28873         (Depends-on): Remove error, exitfail.
28874         Add dirname.
28875
28876         * modules/verify: New file.
28877         * MODULES.html.sh (Diagnostics <assert.h>): New section,
28878         with "verify" module.
28879
28880 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28881
28882         Sync from coreutils.
28883
28884         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28885         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28886         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28887         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28888         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28889         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
28890         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
28891         Don't bother checking for string.h, stdlib.h, unistd.h.
28892         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
28893         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
28894         module's job.
28895         * m4/jm-macros.m4 (gl_MACROS): Likewise.
28896         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
28897
28898         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
28899         (gl_GETDATE): Use it.
28900
28901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
28902
28903 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28904
28905         Sync from coreutils.
28906
28907         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
28908         stat-time.h.
28909         * lib/argmatch.h: Include verify.h
28910         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
28911         (ARGMATCH_ASSERT): Remove; unused.
28912         * lib/canonicalize.c: Assume STDC_HEADERS.
28913         * lib/exclude.c: Include "strcase.h".
28914         * lib/regex_internal.h [!defined _LIBC]: Likewise.
28915         * lib/getusershell.c: Include stdio--.h rather than stdio.h
28916         and stdio-safer.h.
28917         (getusershell): Call fopen, not fopen_safer.
28918         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
28919         Do not include unistd-safer.h.
28920         (save_cwd): Don't call fd_safer; no longer needed
28921         now that we include fcntl--.h.
28922
28923         * lib/getdate.y (relative_time): New type.
28924         (RELATIVE_TIME_0): New constant.
28925         (parser_control): Use relative_time instead of doing it ourselves.
28926         (%union): Add new relative_time rel member.
28927         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
28928         Now typeless.
28929         (relunit, relunit_snumber): Now of type rel.
28930         (zone, rel, relunit, get_date): Adjust to above changes.
28931
28932         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
28933         Do not include unistd-safer.h.
28934         (getloadavg): Don't call fd_safer; no longer needed
28935         now that we include fcntl--.h.
28936
28937         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
28938         (make_dir_parents): Treat ENOSYS like EEXIST.
28939
28940         Improve quality of diagnostics on restore_cwd failure.
28941         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
28942         (make_dir_parents): Last arg is now int * (for errno), not bool *.
28943         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
28944         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
28945         each time through the loop.  Do not diagnose restore_cwd failure;
28946         that is the caller's job (and perhaps the caller does not care).
28947
28948         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
28949         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
28950         If the file already exists but is not a directory, don't bother
28951         to try to make its parents.
28952         Close potential file descriptor leak if we can't chdir("/") (!).
28953         Don't always return true if chdir($PWD) fails; return true only
28954         if the requested action was done successfully (except for the
28955         chdir($PWD)).
28956         Don't log final directory unless we actually made it.
28957         Refactor to avoid duplicate code to fix up permissions.
28958         Don't attempt to fix up parent permissions if chdir($PWD) fails.
28959
28960         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
28961         to make it a bit faster and (I hope) clearer.
28962         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
28963         Fix bug in formats like %2N.
28964
28965         * lib/verify.h: New file.
28966
28967 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28968
28969         Sync from coreutils.
28970         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
28971
28972 2005-09-22  Jim Meyering  <jim@meyering.net>
28973
28974         Sync from coreutils.
28975
28976         * m4/lstat.m4 (gl_FUNC_LSTAT):
28977         Use AC_LIBSOURCES to require lstat.c and lstat.h.
28978         Remove obsolete comment.
28979         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
28980         * m4/xstrtod.m4: Likewise.
28981
28982         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
28983
28984 2005-09-22  Jim Meyering  <jim@meyering.net>
28985
28986         Sync from coreutils.
28987
28988         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
28989
28990         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
28991         the .tm_year member, since otherwise gcc-4.0 would now warn about
28992         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
28993
28994         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
28995         order to avoid an unsuppressible warning from gcc on 64-bit systems.
28996
28997         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
28998         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
28999         when run in a time zone for which daylight savings time is in effect
29000         for the starting date.
29001
29002         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29003         stop us from restricting permissions of just-created absolute-named
29004         directories.
29005         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29006         to restore initial working directory.
29007         * lib/mkdir-p.c (make_dir_parents): New parameter:
29008         different_working_dir, to tell caller if/when we change the working
29009         directory and are unable to return to the initial one.
29010         * lib/mkdir-p.h (make_dir_parents): Update prototype.
29011         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29012         `return false'.  This fixes a bug introduced on 2004-07-30.
29013
29014         * lib/openat.c (fdopendir): Be sure to close the supplied
29015         file descriptor before returning.  This makes our replacement
29016         implementation a little closer to Solaris's, where fdopendir
29017         ties the file descriptor to the returned DIR* pointer.
29018         * lib/openat.c (unlinkat): New function.
29019         * lib/openat.h (unlinkat): Add prototype.
29020         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29021         (openat_restore_fail): Rename from openat_restore_die.
29022         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29023
29024         Provide an alternative to exiting immediately upon save_cwd or
29025         restore_cwd failure.  Now, an application can arrange e.g.,
29026         to perform a longjump in that case.
29027         * lib/openat.c: Include dirname.h.
29028         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29029         (rpl_openat, fdopendir, fstatat): Call openat_save_die
29030         and openat_restore_die rather than calling error directly.
29031         Don't include "error.h" or "exitfail.h"; they're no longer needed.
29032
29033         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29034         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29035         define.
29036
29037         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29038         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29039                             int utc, int nanoseconds);
29040         Background:
29041         date should not have to allocate a megabyte of virtual memory to
29042         handle a format argument like +%1048575T.  When implemented with
29043         strftime, it must allocate such a buffer, use strftime to fill it
29044         in, print it, then free it.
29045         With fprintftime, it simply prints everything and exits.
29046         With no need for memory allocation, that's one fewer way to fail.
29047         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29048         optional field width, not before, so we accept %9:z, not %:9z.
29049         (my_strftime): Be sure to use L_('x') for literals.
29050
29051         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29052         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29053         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29054         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29055         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29056         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29057         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29058         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29059         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29060         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29061         * lib/xgethostname.c, lib/xreadlink.c:
29062         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29063
29064         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29065         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29066         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29067         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29068         and don't include <sys/file.h>).
29069
29070 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
29071
29072         Sync from coreutils.
29073
29074         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29075         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29076         [!LDAV_DONE]: Avoid unused variable warning.
29077
29078 2005-09-21  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/unicodeio.h (unicode_to_mb): New declaration.
29081
29082 2005-09-20  Derek Price  <derek@ximbiot.com>
29083
29084         * lib/getaddrinfo.c: Don't include <netdb.h> included from
29085         getaddrinfo.h.
29086
29087 2005-09-20  Bruno Haible  <bruno@clisp.org>
29088
29089         * gnulib-tool: Remove trailing slashes from the values specified for
29090         --source-base, --m4-base, --tests-base, --aux-dir.
29091         Suggested by Simon Josefsson <jas@extundo.com>.
29092
29093 2005-09-20  Bruno Haible  <bruno@clisp.org>
29094
29095         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29096         func_modules_to_filelist, func_import, func_create_testdir): Make all
29097         sorting results locale-independent, so that gnulib-cache.m4 doesn't
29098         change when gnulib-tool is invoked in a different locale.
29099
29100 2005-09-19  Simon Josefsson  <jas@extundo.com>
29101
29102         * m4/socklen.m4: Fix typo.
29103
29104 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29105
29106         Use a consistent style for including <config.h>.
29107         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29108         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29109         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29110         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29111         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29112         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29113         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29114         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29115         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29116         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29117         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29118         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29119         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29120         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29121         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29122         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29123         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29124         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29125         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29126         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29127         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29128         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29129         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29130         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29131         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29132         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29133         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29134         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29135         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29136         lib/xstrtoumax.c, lib/yesno.c:
29137         Standardize inclusion of config.h.
29138         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29139         lib/inttostr.h:  Removed inclusion of config.h from header files.
29140         * lib/inttostr.c:  Adjusted in-tree users.
29141         * lib/timespec.h: Remove superfluous warning to include config.h.
29142         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29143         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29144         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29145         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29146         config.h with HAVE_CONFIG_H.
29147
29148 2005-09-19  Jim Meyering  <jim@meyering.net>
29149
29150         * modules/pathmax (License): Change to LGPL.
29151
29152 2005-09-19  Derek Price  <derek@ximbiot.com>
29153
29154         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29155
29156 2005-09-19  Bruno Haible  <bruno@clisp.org>
29157
29158         * gnulib-tool (import): Provide default for --tests-base.
29159
29160 2005-09-19  Bruno Haible  <bruno@clisp.org>
29161
29162         * doc/quote.texi: New file, extracted from gnulib.texi.
29163         * doc/ctime.texi: New file, extracted from gnulib.texi.
29164         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29165         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29166         * doc/gnulib.texi: Include them.
29167
29168 2005-09-18  Bruno Haible  <bruno@clisp.org>
29169
29170         Portability fix.
29171         * gnulib-tool (func_readlink): New function.
29172         (func_ln_if_changed): Use it.
29173
29174 2005-09-18  Bruno Haible  <bruno@clisp.org>
29175
29176         * gnulib-tool: Support --with-tests also with --import.
29177         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29178         (func_import): Use variables $testsbase and $inctests. Emit a
29179         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29180         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29181         SUBDIRS += $testsdir.
29182         (func_create_testdir): Update.
29183
29184 2005-09-18  Bruno Haible  <bruno@clisp.org>
29185
29186         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29187         instead of $dry_run.
29188         (func_cp_if_changed, func_mv_if_changed): Remove functions.
29189         (func_ln_if_changed): Don't handle dry-run here.
29190         (func_import): In dry-run mode, detect more precisely which actions
29191         would be performed, and don't use "...ing" verbs.
29192
29193 2005-09-18  Bruno Haible  <bruno@clisp.org>
29194
29195         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29196         (func_import): Use join on two temporary files instead of three nested
29197         loops, in order to determine which files are new or old.
29198
29199 2005-09-18  Bruno Haible  <bruno@clisp.org>
29200
29201         * gnulib-tool (func_import): Comment out code that spits out the
29202         new files with --dry-run.
29203
29204 2005-09-18  Bruno Haible  <bruno@clisp.org>
29205
29206         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29207
29208 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29209
29210         * lib/stat-time.h: New file.
29211         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29212         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
29213         in a different way.
29214         (timespec_cmp): New function.
29215         * lib/utimecmp.c: Include stat-time.h.
29216         (SYSCALL_RESOLUTION): Depend on whether various struct stat
29217         members exist, not on the obsolescent ST_MTIM_NSEC.
29218         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29219
29220 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29221
29222         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29223
29224 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29225
29226         * MODULES.html.sh (File system functions): Add stat-time.
29227         * modules/stat-time: New file.
29228         * modules/timespec (Files): Remove m4/st_mtim.m4; this
29229         is now done in a different way, by the stat-time module.
29230         * modules/utimecmp (Depends-on): Add stat-time.
29231
29232 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29233
29234         * m4/st_mtim.m4: Remove.  Superseded by...
29235         * m4/stat-time.m4: New file.
29236         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29237         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29238
29239 2005-09-15  Derek Price  <derek@ximbiot.com>
29240
29241         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29242
29243 2005-09-15  Derek Price  <derek@ximbiot.com>
29244
29245         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29246         * lib/regex_internal.c: Ditto, using this...
29247         (__GNUC_PREREQ): ...new macro.
29248         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29249         using...
29250         (__GNUC_PREREQ): ...this new macro.
29251
29252         * lib/strstr.h: Include string.h. Define strstr as a macro here.
29253
29254 2005-09-15  Derek Price  <derek@ximbiot.com>
29255             Paul Eggert  <eggert@cs.ucla.edu>
29256
29257         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29258         changes, consolidating in...
29259         * lib/regex_internal.h: ...this file.
29260
29261 2005-09-13  Jim Meyering  <jim@meyering.net>
29262
29263         * lib/canon-host.c: Filter through gnu indent and reword comments
29264         slightly.
29265         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29266
29267 2005-09-13  Derek Price  <derek@ximbiot.com>
29268
29269         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29270         failure.
29271         Reported by Jim Meyering  <jim@meyering.net>.
29272
29273 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29274
29275         * lib/base64.c: Typo.
29276         (base64_encode): Put b64str in initialized data section.
29277
29278 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         Merge glibc and coreutils changes into gnulib, plus a few
29281         extra fixes.
29282         * lib/md5.c: Use #error rather than a string.
29283         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
29284         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29285         (__attribute__): Define to empty for non recent-GCC.
29286         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29287         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29288         Renamed from their non-__ counterparts, with new macros replacing
29289         them if not _LIBC.  Add __THROW attribute.
29290         (rol): Remove.
29291         (struct md5_ctx): Align buffer if using GCC.
29292         * lib/sha1.h (struct sha1_ctx): Likewise.
29293         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
29294         The old name was backwards.
29295         (NOTSWAP): Remove; not used.
29296         (rol): New macro, moved here from md5.h.
29297         (sha1_process_block): Remove a FIXME that doesn't make sense.
29298
29299 2005-09-12  Derek Price  <derek@ximbiot.com>
29300
29301         Return usable errors from canon-host.
29302         * lib/canon-host.h: New file.
29303         * lib/canon-host.c (canon_host): Wrap...
29304         (canon_host_r): ...this new function, which now relies exclusively on
29305         getaddrinfo.
29306         (ch_strerror): New function.
29307         (last_cherror): New global.
29308         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29309         interface.
29310         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
29311         void *.
29312         (freeaddrinfo): Free ai->ai_canonname when set.
29313
29314 2005-09-12  Derek Price  <derek@ximbiot.com>
29315
29316         Make canon-host require getaddrinfo.
29317         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29318         AC_LIBSOURCE canon-host.h.  Call...
29319         (gl_PREREQ_CANON_HOST): ...this new function, which requires
29320         gl_GETADDRINFO.
29321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29322
29323 2005-09-12  Derek Price  <derek@ximbiot.com>
29324
29325         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
29326         LGPL.
29327         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
29328
29329 2005-09-12  Derek Price  <derek@ximbiot.com>
29330
29331         * lib/gai_strerror.c: Include config.h when available.  Include
29332         getaddrinfo.h before other headers to test interface.
29333         Reported by Larry Jones <lawrence.jones@ugs.com>.
29334
29335 2005-09-12  Derek Price  <derek@ximbiot.com>
29336             Paul Eggert  <eggert@cs.ucla.edu>
29337
29338         * modules/glob (Files): Add glob-libc.h.
29339
29340 2005-09-12  Derek Price  <derek@ximbiot.com>
29341             Paul Eggert  <eggert@cs.ucla.edu>
29342
29343         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29344         glob_.h, glob-libc.h.
29345         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
29346
29347 2005-09-12  Derek Price  <derek@ximbiot.com>
29348             Paul Eggert  <eggert@cs.ucla.edu>
29349
29350         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
29351         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
29352         protecting things that should be done only in gnulib contexts.
29353         * lib/glob_.h: New file, containing only the glob things needed for
29354         gnulib.
29355         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
29356         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
29357         (glob, globfree, glob_pattern_p): Now defined simply in terms of
29358         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
29359         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
29360         and to respect the namespace rules better.
29361
29362 2005-09-08  Simon Josefsson  <jas@extundo.com>
29363
29364         * modules/socklen: New file.
29365
29366 2005-09-08  Simon Josefsson  <jas@extundo.com>
29367
29368         * m4/socklen.m4: New file.
29369
29370 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29371
29372         * modules/utimens (Files): Add m4/utimbuf.m4, since
29373         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
29374         Reported by Sergey Poznyakoff.
29375
29376 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29377
29378         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
29379         definitions, since that's the preferred style in glibc.
29380         Fix a minor spacing issue, and update copyright notice to match
29381         glibc's.
29382
29383 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29384
29385         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
29386
29387 2005-09-06  Simon Josefsson  <jas@extundo.com>
29388
29389         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
29390         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
29391
29392 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29393
29394         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
29395         warning.
29396
29397 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29398
29399         * config/srclist.txt: Add glibc bug 1302.
29400
29401 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
29402
29403         Change bitset word type from unsigned int to unsigned long int,
29404         as this has better performance on typical 64-bit hosts.
29405         Port bitset code to hosts with unusual word sizes.
29406         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
29407         (build_collating_symbol):
29408         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
29409         argument is a bitset.  This is merely a style issue, but it makes
29410         it clearer that an entire array is expected.
29411         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
29412         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
29413         Port to the case where bitset_word is not the same as unsigned int.
29414         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29415         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
29416         Likewise.
29417         * lib/regexec.c (check_dst_limits_calc_pos_1,
29418         check_subexp_matching_top):
29419         (build_trtable, group_nodes_into_DFAstates):
29420         Likewise.
29421         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
29422         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
29423         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
29424         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
29425         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
29426         * lib/regcomp.c (optimize_subexps, lower_subexp):
29427         Work even if bitset_word has holes in its bitwise representation.
29428         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
29429         * lib/regexec.c (check_dst_limits_calc_pos_1,
29430         check_subexp_matching_top):
29431         Likewise.
29432         * lib/regex_internal.c (re_string_reconstruct):
29433         Don't assume UCHAR_MAX == 255.
29434         * lib/regex_internal.h (bitset_set_all): Likewise.
29435         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
29436         All uses changed.
29437         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
29438         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
29439         All uses changed.
29440         (BITSET_WORD_MAX): New macro.
29441         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
29442         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
29443         (bitset_empty, bitset_copy):
29444         Prefer sizeof (bitset) to multiplying it out ourselves.
29445         (bitset_not_merge): Remove; unused.
29446         (bitset_contain): Return bool, not unsigned int with one bit on.
29447         All callers changed.
29448         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
29449         alignment than re_node_set; do this by defining a new internal
29450         type struct dests_alloc and using it to allocate memory.
29451
29452 2005-09-05  Bruno Haible  <bruno@clisp.org>
29453
29454         * gnulib-tool (func_import): Fix comparison in handling of symbolic
29455         links.
29456
29457 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
29458
29459         * modules/size_max (Makefile.am): Add size_max.h
29460
29461 2005-09-04  Derek Price  <derek@ximbiot.com>
29462
29463         * gnulib-tool (func_import): Fix reversed $symbolic logic.
29464
29465 2005-09-03  Simon Josefsson  <jas@extundo.com>
29466
29467         * gnulib-tool: Fix typo.
29468
29469 2005-09-03  Simon Josefsson  <jas@extundo.com>
29470
29471         * config/srclist.txt: Add glibc bug 1293.
29472
29473 2005-09-03  Derek Price  <derek@ximbiot.com>
29474
29475         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
29476         From Larry Jones <lawrence.jones@ugs.com>.
29477
29478 2005-09-02  Simon Josefsson  <jas@extundo.com>
29479
29480         * modules/socklen: New file.
29481
29482 2005-09-02  Simon Josefsson  <jas@extundo.com>
29483
29484         * modules/havelib: New module.
29485
29486         * modules/gettext, modules/iconv, modules/lock, modules/readline:
29487         Use havelib.
29488
29489 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29490
29491         Check for arithmetic overflow when calculating sizes, to prevent
29492         some buffer-overflow issues.  These patches are conservative, in the
29493         sense that when I couldn't determine whether an overflow was possible,
29494         I inserted a run-time check.
29495         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
29496         macros.
29497         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
29498         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
29499         (re_xnrealloc, re_x2nrealloc): New inline functions.
29500         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
29501         parse_bracket_exp):
29502         (build_equiv_class, build_charclass): Check for arithmetic overflow
29503         in size expression calculations.
29504         * lib/regex_internal.c (re_string_realloc_buffers):
29505         (build_wcs_upper_buffer, re_node_set_add_intersect):
29506         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
29507         (re_dfa_add_node, register_state): Likewise.
29508         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
29509         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
29510         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
29511         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
29512
29513 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29514
29515         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29516         m4/ulonglong.m4.  Problem reported by Martin Lambers.
29517
29518 2005-09-02  Bruno Haible  <bruno@clisp.org>
29519
29520         Support for lib vs. lib64 distinction on biarch platforms.
29521         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
29522         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
29523         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
29524
29525 2005-09-02  Bruno Haible  <bruno@clisp.org>
29526
29527         * gnulib-tool (import): In the other first-use case, provide defaults
29528         as well.
29529
29530 2005-09-02  Bruno Haible  <bruno@clisp.org>
29531
29532         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
29533         patches not yet found in the latest gettext release.
29534
29535 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29536
29537         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
29538         to avoid a collision with bits/local_lim.h in glibc.
29539         All uses changed.  Problem reported by Dmitry V. Levin in
29540         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
29541
29542         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29543         bugs in int versus size_t comparisons.
29544         (re_string_context_at): Fix bug where the code assumed that
29545         Idx is signed.
29546
29547         Use bool where appropriate.
29548         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29549         All callers changed.
29550         (calc_eclosure_iter): Likewise, for ROOT arg.
29551         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29552         (build_charclass_op): Likewise, for NON_MATCH arg.
29553         * lib/regex_internal.c (re_string_allocate, re_string_construct):
29554         (re_string_construct_common): Likewise, for ICASE arg.
29555         * lib/regexec.c (re_search_2_stub, re_search_stub):
29556         Likewise, for RET_LEN arg.
29557         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29558         (set_regs): Likewise, for FL_BACKTRACK arg.
29559         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29560         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29561         (calc_eclosure_iter, parse_bracket_exp):
29562         Use bool for internal variables that are booleans.
29563         * lib/regexec.c (re_search_internal, check_matching,
29564         proceed_next_node):
29565         (set_regs, build_sifted_states, sift_states_bkref):
29566         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29567         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29568         (find_collation_sequence_value):
29569         Likewise.
29570         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29571         (re_node_set_compare):
29572         Return bool, not int. All callers changed.
29573         * lib/regexec.c (check_halt_node_context, check_dst_limits):
29574         (build_trtable, check_node_accept): Likewise.
29575         * lib/regex_internal.h: Include stdbool.h.
29576
29577         Fix bugs uncovered when converting to bool.
29578         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29579         failure instead of charging ahead blindly.
29580         * lib/regex_internal.c (register_state): Likewise.
29581         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29582         for freeing internal storage.
29583         (group_nodes_into_DFA_states): Use unsigned int, not int, for
29584         bitset pieces used as boolean, to avoid undefined behavior
29585         on hosts that do int overflow checking.
29586
29587 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29588
29589         * config/srclist.txt: Add glibc bugs 1285-1287.
29590
29591 2005-09-01  Jim Meyering  <jim@meyering.net>
29592
29593         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29594         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29595         Require gl_STAT_MACROS, too.
29596
29597 2005-09-01  Bruno Haible  <bruno@clisp.org>
29598
29599         * gnulib-tool (import): In the first-use case, provide defaults.
29600
29601 2005-09-01  Bruno Haible  <bruno@clisp.org>
29602
29603         * gnulib-tool (func_import): Remove the .tmp files.
29604
29605 2005-09-01  Bruno Haible  <bruno@clisp.org>
29606
29607         * gnulib-tool (func_import): Fix handling of symbolic links.
29608
29609 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29610
29611         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29612         old glibc regex code mishandles strings longer than 2**31 bytes.
29613         This patch fixes this when the regex code is used in gnulib
29614         (i.e., outside glibc).
29615
29616         This patch should not affect the use of the regex code inside
29617         glibc.  No doubt this problem also needs to be handled for glibc
29618         as well, but the result will be an incompatible change to the
29619         glibc ABI, and the old ABI will have to be supported too.  That
29620         can be the the subject for another patch.
29621
29622         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29623         governing whether the rest of this patch is active.  By default,
29624         the macro is disabled and the patch has no effect.
29625         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29626         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29627         (struct re_pattern_buffer, re_search, re_search_2, re_match):
29628         (re_match_2, re_set_registers): Use the new types.
29629         * lib/regex_internal.h (Idx, re_hashval_t): New types.
29630         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29631         New macros.
29632         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29633         (re_string_context_at, bin_tree_t, re_dfastate_t):
29634         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29635         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29636         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29637         (re_string_char_size_at, re_string_wchar_at):
29638         (re_string_elem_size_at):
29639         Use the new types and macros to port to 64-bit hosts.
29640         Use unsigned types for internal values, so that the code
29641         mostly works even for arrays larger than SSIZE_MAX.
29642         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29643         (search_duplicated_node, calc_eclosure_iter, fetch_number):
29644         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29645         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29646         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29647         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29648         (calc_inveclosure, parse_dup_op, build_range_exp):
29649         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29650         (fetch_number, create_token_tree, mark_opt_subexp):
29651         Likewise.
29652         * lib/regex_internal.c (re_string_construct_common,
29653         create_ci_newstate):
29654         (create_cd_newstate, re_string_allocate, re_string_construct):
29655         (re_string_realloc_buffers, build_wcs_upper_buffer):
29656         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29657         (re_string_reconstruct, re_string_peek_byte_case):
29658         (re_string_fetch_byte_case, re_string_context_at):
29659         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29660         (re_node_set_init_copy, re_node_set_add_intersect):
29661         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29662         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29663         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29664         (re_acquire_state, re_acquire_state_context, register_state):
29665         Likewise.
29666         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29667         search_cur_bkref_entry):
29668         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29669         (re_search_internal, re_search_2_stub, re_search_stub)
29670         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29671         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29672         (update_cur_sifted_state, check_dst_limits):
29673         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29674         (check_subexp_limits, sift_states_bkref, merge_state_array):
29675         (check_subexp_matching_top, get_subexp, get_subexp_sub):
29676         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29677         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29678         (expand_bkref_cache, check_node_accept_bytes):
29679         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29680         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29681         (acquire_init_state_context, check_halt_node_context):
29682         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29683         (sift_states_backward, clean_state_log_if_needed):
29684         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29685         (find_recover_state, transit_state_sb, transit_state_mb):
29686         (transit_state_bkref, build_trtable, match_ctx_clean):
29687         Likewise.
29688         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29689         to work around an assumption that REG_MISSING is negative.
29690
29691         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29692         (seek_collating_symbol_entry) [defined _LIBC]:
29693         (lookup_collation_sequence_value) [defined _LIBC]:
29694         (build_range_exp, build_collating_symbol) [defined _LIBC]:
29695         Use prototypes rather than old-style function definitions.
29696         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29697         (transit_state_sb) [0]:
29698         (find_collation_sequence_value) [defined _LIBC]: Likewise.
29699
29700         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29701         rm_eo.
29702
29703         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29704         (optimize_subexps, lower_subexp):
29705         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29706         since the signed shift might overflow.  Use 1u<<31 instead.
29707         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29708         Likewise.
29709         * lib/regexec.c (check_dst_limits_calc_pos_1,
29710         check_subexp_matching_top): Likewise.
29711
29712         * lib/regcomp.c (optimize_subexps, lower_subexp):
29713         Use CHAR_BIT rather than 8, for clarity.
29714         * lib/regexec.c (check_dst_limits_calc_pos_1):
29715         (check_subexp_matching_top): Likewise.
29716         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29717         have to worry about portability issues when shifting it left.
29718         Remove no-longer-needed test for table_size > 0.
29719         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29720         in a word, as the resulting behavior is undefined.
29721         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29722         in one case, a <= should have been an <, and in another case the
29723         whole test was missing.
29724         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
29725         the standard name CHAR_BIT.
29726         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29727         this is not true on one's complement and signed-magnitude hosts.
29728
29729         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29730         next_last_offset.
29731         (struct re_dfa_t): Remove unused member states_alloc.
29732         * lib/regcomp.c (init_dfa): Don't initialize unused members.
29733
29734 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29735
29736         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29737         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
29738         and large-file glibc and in 32-bit large-file Solaris.
29739
29740 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29741
29742         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29743         lengths fit in regoff_t; this isn't true if regoff_t is the same
29744         width as size_t.
29745         * lib/regex.c (re_search_internal): 5th arg is LAST_START
29746         (= START + RANGE) instead of RANGE.  This avoids overflow
29747         problems when regoff_t is the same width as size_t.
29748         All callers changed.
29749         (re_search_2_stub): Check for overflow when adding the
29750         sizes of the two strings.
29751         (re_search_stub): Check for overflow when adding START
29752         to RANGE; if it occurs, substitute the extreme value.
29753
29754 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29755
29756         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29757
29758 2005-08-31  Jim Meyering  <jim@meyering.net>
29759
29760         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29761         a pointer-to-const.
29762         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29763         (register_state): Likewise.
29764         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29765         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29766         (group_nodes_into_DFAstates): Likewise.
29767
29768 2005-08-31  Jim Meyering  <jim@meyering.net>
29769
29770         * check-module: Add a FIXME comment.
29771
29772 2005-08-31  Eric Blake  <ebb9@byu.net>
29773
29774         * modules/unistd-safer (Files): Add unistd--.h.
29775         * modules/stdio-safer (Files): Add stdio--.h.
29776
29777 2005-08-31  Derek Price  <derek@ximbiot.com>
29778
29779         * lib/getdelim.c (getdelim): Return EOF on EOF.
29780         Reported by Larry Jones <lawrence.jones@ugs.com>.
29781
29782 2005-08-31  Bruno Haible  <bruno@clisp.org>
29783
29784         Avoid unnecessary diffs in the generated lib/Makefile.am.
29785         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29786         the generated files.
29787         (func_import): Don't set cmd.
29788
29789 2005-08-31  Bruno Haible  <bruno@clisp.org>
29790
29791         * lib/strstr.c: Include <stddef.h>, for NULL.
29792         * lib/strcasestr.c: Likewise.
29793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29794
29795 2005-08-31  Bruno Haible  <bruno@clisp.org>
29796
29797         * gnulib-tool: New option --macro-prefix.
29798         (func_import): Use macro_prefix.
29799         (import): Handle option --macro-prefix.
29800
29801 2005-08-31  Bruno Haible  <bruno@clisp.org>
29802
29803         * gnulib-tool (import): Rename most ac_* variables to cached_*.
29804         Also use new variables cached_lgpl, cached_libtool.
29805
29806 2005-08-31  Bruno Haible  <bruno@clisp.org>
29807
29808         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29809         always instantiating them.
29810
29811 2005-08-31  Bruno Haible  <bruno@clisp.org>
29812
29813         * gnulib-tool (func_import): Read the previous cached settings
29814         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29815         earlier added by gnulib but are now dropped. Warn when a gnulib file
29816         overwrites a non-gnulib file.
29817
29818 2005-08-31  Bruno Haible  <bruno@clisp.org>
29819
29820         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29821         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29822         projects that don't keep autogenerated files in CVS. Put into
29823         actioncmd only the specified modules, not the transitive closure.
29824
29825 2005-08-31  Bruno Haible  <bruno@clisp.org>
29826
29827         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29828         Create directories that shall be filled.
29829         (import): Don't look for gl_* macros in configure.ac. Recurse across
29830         all directories containing a gnulib-cache.m4 files, if meaningful.
29831
29832 2005-08-31  Bruno Haible  <bruno@clisp.org>
29833
29834         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29835         (import): Set seen_libtool when we see gl_LIBTOOL.
29836
29837 2005-08-31  Bruno Haible  <bruno@clisp.org>
29838
29839         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29840         declaration macro definitions from generated gnulib.m4.
29841
29842 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
29843
29844         * lib/iconvme.h: Add prototype for iconv_alloc.
29845
29846 2005-08-29  Simon Josefsson  <jas@extundo.com>
29847
29848         * lib/iconvme.c: Fix errno.
29849
29850 2005-08-29  Bruno Haible  <bruno@clisp.org>
29851
29852         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29853         that it works when the directory contains spaces.
29854
29855 2005-08-29  Bruno Haible  <bruno@clisp.org>
29856
29857         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29858
29859 2005-08-29  Bruno Haible  <bruno@clisp.org>
29860
29861         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29862         Emit more advice.
29863
29864 2005-08-29  Bruno Haible  <bruno@clisp.org>
29865         and Stepan Kasal  <kasal@ucw.cz>
29866
29867         * check-module: If more parameters are given, check each of them
29868         separately; add more exceptions, as noted by Jim Meyering.
29869         (check_module): New procedure.
29870         (%exempt_header): Now contains all exceptions.
29871
29872 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
29873
29874         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29875
29876 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29877
29878         * lib/iconvme.c: Split iconv_string into iconv_alloc.
29879
29880 2005-08-28  Bruno Haible  <bruno@clisp.org>
29881
29882         * m4/gnulib-tool.m4: New file.
29883
29884 2005-08-27  Jim Meyering  <jim@meyering.net>
29885
29886         * modules/unistd-safer (Files): Add pipe-safer.c.
29887         * modules/fcntl-safer (Files): Add creat-safer.c.
29888
29889 2005-08-27  Jim Meyering  <jim@meyering.net>
29890
29891         * m4/stdlib-safer.m4: New file.  From coreutils.
29892         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
29893         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
29894         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
29895         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
29896         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
29897
29898 2005-08-27  Jim Meyering  <jim@meyering.net>
29899
29900         * lib/fopen-safer.c: Merge minor changes from coreutils.
29901         * lib/dup-safer.c: Likewise.
29902         * lib/fd-safer.c: Likewise.
29903
29904         Merge from coreutils.
29905         * lib/stdio--.h: New file.
29906         * lib/stdlib--.h: New file.
29907         * lib/mkstemp-safer.c: New file.
29908
29909         GNU tar needs these.
29910         * lib/pipe-safer.c: New file.
29911         * lib/creat-safer.c: New file.
29912         * lib/fcntl--.h (creat): Define to creat_safer.
29913         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
29914         * lib/unistd--.h (pipe): Define to pipe_safer.
29915         * lib/unistd-safer.h: Declare pipe_safer.
29916
29917 2005-08-26  Simon Josefsson  <jas@extundo.com>
29918
29919         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
29920         Haible <bruno@clisp.org>.
29921
29922 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
29923
29924         * lib/regex_internal.h: Remove all references to
29925         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
29926         or better.
29927         (bitset_not, bitset_merge, bitset_not_merge):
29928         (bitset_mask, re_string_allocate, re_string_construct):
29929         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
29930         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
29931         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
29932         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
29933         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29934         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29935         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
29936         (re_acquire_state_context):
29937         Remove unnecessary forward decls.
29938         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
29939         Put __attribute at function definition,
29940         now that the function decl has been removed.
29941         * lib/regex_internal.c (re_string_peek_byte_case):
29942         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
29943         Likewise.
29944
29945 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
29946
29947         * m4/regex.m4: Add AC_PREREQ(2.50).
29948         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
29949
29950 2005-08-25  Simon Josefsson  <jas@extundo.com>
29951
29952         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
29953         __fsetlocking.
29954
29955 2005-08-25  Simon Josefsson  <jas@extundo.com>
29956
29957         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
29958         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
29959         GLIBC specific code.
29960
29961 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29962
29963         Make regex safe for g++.  This fixes one real bug (an "err"
29964         that should have been "*err").  g++ problem reported by
29965         Sam Steingold.
29966         * lib/regex_internal.h (re_calloc): New macro, consistent with
29967         re_malloc etc.  All callers of calloc changed to use re_calloc.
29968         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29969         not int.  All callers changed.
29970         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
29971         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
29972         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
29973         (find_recover_state): Change "err" to "*err"; this fixes what
29974         appears to be a real bug.
29975         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
29976         versus int.
29977
29978 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29979
29980         * modules/regex (Depends-on): Add malloc, since the code
29981         assumes that !malloc(0) means failure.
29982
29983 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29984
29985         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
29986
29987         alloca modernization/simplification for regex.
29988         * lib/regex.c: Remove portability cruft for alloca.  This no longer
29989         needs to be at the start of the file, and can be moved into
29990         regex_internal.h and simplified.
29991         * lib/regex_internal.h: Include <alloca.h>.
29992         (__libc_use_alloca) [!defined _LIBC]: New macro.
29993         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
29994         now works outside glibc.
29995
29996 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29997
29998         * config/srclist.txt: Add glibc bugs 1241, 1245.
29999
30000 2005-08-25  Jim Meyering  <jim@meyering.net>
30001
30002         * lib/open-safer.c: Include <config.h>.
30003         Otherwise, we'd lose LARGEFILE support in any file using
30004         e.g. "fcntl--.h"
30005
30006 2005-08-25  Bruno Haible  <bruno@clisp.org>
30007
30008         * m4/minmax.m4: Require autoconf 2.52.
30009         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30010         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30011         alternatives of translit over the alphabet.
30012         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30013
30014 2005-08-24  Simon Josefsson  <jas@extundo.com>
30015
30016         * tests/test-getpass.c: New file.
30017
30018 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30019
30020         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30021         for GNU regex features.
30022
30023 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30024
30025         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30026         * lib/regex.h (regerror): Likewise.
30027
30028         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30029         requires this.  (The code never needed it.)
30030
30031         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30032         All uses of recently-renamed identifiers changed to use the new,
30033         POSIX-compliant names.  The code will build and run just fine
30034         without these changes, but it's better to eat our own dog food
30035         and use the standard-conforming names.
30036
30037         * lib/regex.h: Fix a multitude of POSIX name space violations.
30038         These changes have an effect only for programs that define
30039         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30040         do not change anything for programs compiled in the normal way.
30041         Also, there is no effect on the ABI.
30042
30043         (_REGEX_SOURCE): New macro.
30044         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30045         defined and _GNU_SOURCE is not; this fixes a name space violation.
30046
30047         Rename the following macros to obey POSIX requirements.
30048         The old names are still visible as macros if _REGEX_SOURCE is defined.
30049         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30050         RE_BACKSLASH_ESCAPE_IN_LISTS.
30051         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30052         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30053         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30054         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30055         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30056         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30057         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30058         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30059         (REG_INTERVALS): renamed from RE_INTERVALS.
30060         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30061         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30062         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30063         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30064         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30065         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30066         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30067         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30068         RE_UNMATCHED_RIGHT_PAREN_ORD.
30069         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30070         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30071         (REG_DEBUG): renamed from RE_DEBUG.
30072         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30073         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
30074         unusual, since we can't clash with the POSIX REG_ICASE.
30075         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30076         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30077         (REG_NO_SUB): renamed from RE_NO_SUB.
30078         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30079         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30080         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30081         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30082         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30083         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30084         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30085         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30086         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30087         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30088         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30089         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30090         RE_SYNTAX_POSIX_MINIMAL_BASIC.
30091         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30092         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30093         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30094         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
30095         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30096         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30097         (REG_FIXED): Renamed from REGS_FIXED.
30098         (REG_NREGS): Renamed from RE_NREGS.
30099
30100         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30101         of other REG_* macros, since POSIX says the user is allowed to
30102         #undef these macros selectively.
30103
30104         (reg_errcode_t): Update comment stating what other tables need
30105         to be consistent.
30106
30107         Rename the following enum values to obey POSIX requirements.
30108         The old names are still visible as macros.
30109         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
30110         is not defined, since GNU is supposed to be a superset of POSIX as
30111         much as possible, and since we want reg_errcode_t to be a signed
30112         type for implementation consistency.
30113         (_REG_NOERROR): Renamed from REG_NOERROR.
30114         (_REG_NOMATCH): Renamed from REG_NOMATCH.
30115         (_REG_BADPAT): Renamed from REG_BADPAT.
30116         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30117         (_REG_ECTYPE): Renamed from REG_ECTYPE.
30118         (_REG_EESCAPE): Renamed from REG_EESCAPE.
30119         (_REG_ESUBREG): Renamed from REG_ESUBREG.
30120         (_REG_EBRACK): Renamed from REG_EBRACK.
30121         (_REG_EPAREN): Renamed from REG_EPAREN.
30122         (_REG_EBRACE): Renamed from REG_EBRACE.
30123         (_REG_BADBR): Renamed from REG_BADBR.
30124         (_REG_ERANGE): Renamed from REG_ERANGE.
30125         (_REG_ESPACE): Renamed from REG_ESPACE.
30126         (_REG_BADRPT): Renamed from REG_BADRPT.
30127         (_REG_EEND): Renamed from REG_EEND.
30128         (_REG_ESIZE): Renamed from REG_ESIZE.
30129         (_REG_ERPAREN): Renamed from REG_ERPAREN.
30130         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30131         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30132         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30133         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30134
30135         (_REG_RE_NAME, _REG_RM_NAME): New macros.
30136         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
30137         changed.  But support the old name if the new one is not defined
30138         and if _REGEX_SOURCE.
30139
30140         Change the following member names in struct re_pattern_buffer.
30141         The old names are still supported if !_REGEX_SOURCE.
30142         The new names are always supported, regardless of _REGEX_SOURCE.
30143         (re_buffer): Renamed from buffer.
30144         (re_allocated): Renamed from allocated.
30145         (re_used): Renamed from used.
30146         (re_syntax): Renamed from syntax.
30147         (re_fastmap): Renamed from fastmap.
30148         (re_translate): Renamed from translate.
30149         (re_can_be_null): Renamed from can_be_null.
30150         (re_regs_allocated): Renamed from regs_allocated.
30151         (re_fastmap_accurate): Renamed from fastmap_accurate.
30152         (re_no_sub): Renamed from no_sub.
30153         (re_not_bol): Renamed from not_bol.
30154         (re_not_eol): Renamed from not_eol.
30155         (re_newline_anchor): Renamed from newline_anchor.
30156
30157         Change the following member names in struct re_registers.
30158         The old names are still supported if !_REGEX_SOURCE.
30159         The new names are always supported, regardless of _REGEX_SOURCE.
30160         (rm_num_regs): Renamed from num_regs.
30161         (rm_start): Renamed from start.
30162         (rm_end): Renamed from end.
30163
30164         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30165         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30166         Prepend __ to parameter names.
30167
30168         Undo yesterday's changes.
30169
30170 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30171
30172         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30173         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
30174         lib/regex.c.
30175
30176 2005-08-24  Jim Meyering  <jim@meyering.net>
30177
30178         Sync from coreutils.
30179         * m4/fcntl-safer.m4: New file.
30180
30181         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30182         and object files for this module.
30183
30184 2005-08-24  Jim Meyering  <jim@meyering.net>
30185
30186         Sync from coreutils.
30187         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30188
30189 2005-08-24  Jim Meyering  <jim@meyering.net>
30190
30191         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30192         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30193
30194 2005-08-24  Jim Meyering  <jim@meyering.net>
30195
30196         * modules/fcntl-safer: New module.
30197         * modules/fts (Depends-on): Add fcntl-safer.
30198         * MODULES.html.sh (File descriptor based Input/Output):
30199         Add fcntl-safer.
30200
30201 2005-08-24  Bruno Haible  <bruno@clisp.org>
30202
30203         Support for unit test modules.
30204         * modules/README: Mention tests modules.
30205         * modules/TEMPLATE-TESTS: New file.
30206         * gnulib-tool: New options --extract-tests-module, --with-tests and
30207         --tests-base (unused for the moment).
30208         (testsbase, inctests): New variables.
30209         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30210         (func_verify_module): Exclude TEMPLATE-TESTS.
30211         (func_verify_nontests_module, func_verify_tests_module): New functions.
30212         (func_get_dependencies): Add implicit dependency for tests modules.
30213         (func_get_tests_module): New function.
30214         (func_modules_transitive_closure): When --with-tests was specified,
30215         include the unit tests as well, unless explicitly avoided.
30216         (func_emit_lib_Makefile_am): Ignore the tests modules here.
30217         (func_emit_tests_Makefile_am): New function.
30218         (func_create_testdir): When --with-tests was specified, emit a
30219         tests/ directory.
30220         * MODULES.html.sh (Future developments): Update.
30221
30222 2005-08-24  Bruno Haible  <bruno@clisp.org>
30223
30224         * modules/tls-tests: New file.
30225         * tests/test-tls.c: New file, from GNU gettext.
30226
30227 2005-08-24  Bruno Haible  <bruno@clisp.org>
30228
30229         * modules/lock-tests: New file.
30230         * tests/test-lock.c: New file, from GNU gettext.
30231
30232 2005-08-24  Bruno Haible  <bruno@clisp.org>
30233
30234         * lib/lock.h: Add multiple inclusion guard.
30235         * lib/tls.h: Add multiple inclusion guard.
30236
30237 2005-08-24  Bruno Haible  <bruno@clisp.org>
30238
30239         * gnulib-tool: Add support for the --aux-dir option to
30240         --create-testdir, --create-megatestdir, --test, --megatest.
30241         (func_create_testdir, func_create_megatestdir): Optionally emit a
30242         AC_CONFIG_AUX_DIR directive.
30243         (create-testdir, create-megatestdir, test, megatest): Provide a
30244         default value for $auxdir.
30245
30246 2005-08-24  Bruno Haible  <bruno@clisp.org>
30247
30248         * gnulib-tool (import): Use compound statement instead of subshell
30249         where possible.
30250
30251 2005-08-24  Bruno Haible  <bruno@clisp.org>
30252
30253         * gnulib-tool (import): Change --aux-dir default to "build-aux".
30254
30255 2005-08-24  Bruno Haible  <bruno@clisp.org>
30256
30257         * gnulib-tool (func_version): Update.
30258
30259 2005-08-24  Bruno Haible  <bruno@clisp.org>
30260
30261         * gnulib-tool (func_import, func_create_testdir,
30262         func_create_megatestdir): Quote all autoconf macro arguments.
30263
30264 2005-08-24  Bruno Haible  <bruno@clisp.org>
30265
30266         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30267         option --force, because --force causes the aclocal.m4 of each
30268         subdirectory to be newer than the corresponding config.h.in.
30269
30270 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30271
30272         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30273         All contents moved to gl_REGEX.
30274         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30275         assume that it does.
30276
30277 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30278
30279         * lib/regex.h (REG_NOSYS)
30280         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30281         Define, since POSIX requires it as of 2001.
30282         (_REG_ENOSYS)
30283         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30284         New private symbol, used to keep the enum signed in all cases.
30285         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30286         Youngman in
30287         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30288
30289         * lib/regex_internal.c (re_string_skip_chars, register_state):
30290         (calc_state_hash):
30291         Remove forward decls; no longer needed now that we use prototypes.
30292         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30293         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30294         (clean_state_log_if_needed): Likewise.
30295
30296 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30297
30298         * config/srclist.txt: Add glibc bugs 1231-1233.
30299
30300 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30301
30302         Fix problems reported by Sam Steingold in
30303         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30304         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30305         assumed that reg_errcode_t is a signed type, which is not
30306         necessarily true if _XOPEN_SOURCE is not defined.
30307         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30308         since some compilers warn about it otherwise.
30309
30310 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30311
30312         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30313         (init_word_char, create_initial_state, duplicate_node_closure):
30314         (fetch_token, peek_token_bracket, build_range_exp):
30315         (build_collating_symbol): Remove forward decls; no longer needed
30316         now that we use prototypes.
30317
30318         * lib/regcomp.c:
30319         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30320         (re_compile_fastmap_iter, regcomp, regerror, regfree):
30321         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30322         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30323         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30324         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30325         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30326         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30327         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30328         (build_range_exp, build_collating_symbol, parse_bracket_exp):
30329         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30330         (build_charclass, build_charclass_op, fetch_number, create_tree):
30331         (create_token_tree, mark_opt_subexp, duplicate_tree):
30332         Use prototypes rather than old-style definitions.
30333
30334         * lib/regex_internal.c:
30335         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30336         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30337         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30338         (re_string_reconstruct, re_string_peek_byte_case):
30339         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30340         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30341         (re_node_set_init_copy, re_node_set_add_intersect):
30342         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30343         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30344         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30345         (re_acquire_state, re_acquire_state_context, register_state):
30346         (create_ci_newstate, create_cd_newstate, free_state):
30347         Likewise.
30348         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
30349         re_search_2):
30350         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
30351         (re_search_internal, prune_impossible_nodes):
30352         (acquire_init_state_context, check_matching, static):
30353         (check_halt_node_context, check_halt_state_context, proceed_next_node):
30354         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
30355         (update_regs, sift_states_backward, build_sifted_states):
30356         (clean_state_log_if_needed, merge_state_array):
30357         (update_cur_sifted_state, add_epsilon_src_nodes):
30358         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
30359         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
30360         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
30361         (find_recover_state, check_subexp_matching_top, transit_state_mb):
30362         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
30363         (check_arrival, check_arrival_add_next_nodes):
30364         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30365         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30366         (check_node_accept_bytes, check_node_accept, extend_buffers):
30367         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
30368         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
30369         (sift_ctx_init):
30370         Likewise.
30371
30372         * lib/regex_internal.h:
30373         (re_string_allocate, re_string_construct, re_string_reconstruct):
30374         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
30375         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
30376         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
30377         (re_string_context_at, re_string_peek_byte_case):
30378         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
30379         is defined, since we now use prototypes always.
30380
30381         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
30382         C89 or better.  All uses removed.
30383
30384 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30385
30386         * config/srclist.txt: Add glibc bugs 1220-1227.
30387
30388 2005-08-20  Jim Meyering  <jim@meyering.net>
30389
30390         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
30391         of unused local, dfa.
30392
30393 2005-08-20  Bruno Haible  <bruno@clisp.org>
30394
30395         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
30396
30397 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30398
30399         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
30400         (re_node_set_insert_last, re_dfa_add_node):
30401         Rename local variables to avoid GCC shadowing warnings.
30402
30403 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30404
30405         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
30406         [defined lint]: Suppress bogus uninitialized-variable warnings.
30407
30408         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
30409         and let the caller return REG_ESPACE if out of space.  This
30410         removes an uninitialied-variable warning with GCC 4.0.1, and also
30411         avoids taking the address of a local variable.  All callers
30412         changed.
30413
30414 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30415
30416         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
30417         $LIBCSRC/posix/regexec.c.
30418         Add glibc bug 1217 for regcomp.c.
30419
30420 2005-08-19  Jim Meyering  <jim@meyering.net>
30421
30422         * lib/regexec.c (proceed_next_node): Redo local variables to
30423         avoid GCC shadowing warnings.
30424
30425 2005-08-18  Bruno Haible  <bruno@clisp.org>
30426
30427         * lib/strstr.c (strstr): Fix return value in multibyte case.
30428         * lib/strcasestr.c (strcasestr): Likewise.
30429
30430 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30431
30432         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
30433
30434 2005-08-17  Jim Meyering  <jim@meyering.net>
30435
30436         Make the %s format (seconds since the epoch) work for a negative
30437         number and when used with a zero-padded field width, e.g. %015s.
30438
30439         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
30440         label so that it precedes the code to set `digits'.  Otherwise,
30441         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
30442         print `00-22'.  Now, it prints `-0022', as it should.
30443
30444 2005-08-17  Bruno Haible  <bruno@clisp.org>
30445
30446         * modules/strstr (Files): Add m4/mbrtowc.m4.
30447         (Depends-on): Add mbuiter.
30448
30449 2005-08-17  Bruno Haible  <bruno@clisp.org>
30450
30451         * modules/strcasestr: New file.
30452         * MODULES.html.sh (String handling, based on ANSI C 89): Add
30453         strcasestr.
30454
30455 2005-08-17  Bruno Haible  <bruno@clisp.org>
30456
30457         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
30458
30459 2005-08-17  Bruno Haible  <bruno@clisp.org>
30460
30461         * modules/mbuiter: New file.
30462         * MODULES.html.sh (Extended multibyte and wide character utilities):
30463         Add mbuiter.
30464
30465 2005-08-17  Bruno Haible  <bruno@clisp.org>
30466
30467         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
30468         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
30469
30470 2005-08-17  Bruno Haible  <bruno@clisp.org>
30471
30472         * m4/strcasestr.m4: New file.
30473
30474 2005-08-17  Bruno Haible  <bruno@clisp.org>
30475
30476         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
30477         * lib/strstr.c: Completely rewritten, with multibyte locale support.
30478
30479 2005-08-17  Bruno Haible  <bruno@clisp.org>
30480
30481         * lib/strcasestr.h: New file.
30482         * lib/strcasestr.c: New file.
30483
30484 2005-08-17  Bruno Haible  <bruno@clisp.org>
30485
30486         * lib/strcasecmp.c: Use mbuiter.h.
30487
30488 2005-08-17  Bruno Haible  <bruno@clisp.org>
30489
30490         * lib/mbuiter.h: New file.
30491
30492 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30493
30494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
30495         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
30496         and gl_GETOPT are both invoked via different paths (as happens
30497         with GNU tar CVS because it uses both argp and getopt), the former
30498         wins.
30499
30500 2005-08-16  Bruno Haible  <bruno@clisp.org>
30501
30502         * modules/tls: New file.
30503         * MODULES.html.sh (Multithreading): Add tls.
30504
30505 2005-08-16  Bruno Haible  <bruno@clisp.org>
30506
30507         * modules/strnlen1: New file.
30508         * MODULES.html.sh (String handling): Add strnlen1.
30509
30510 2005-08-16  Bruno Haible  <bruno@clisp.org>
30511
30512         * modules/strcase (Files): Add m4/mbrtowc.m4.
30513         (Depends-on): Add strnlen1, mbchar.
30514
30515 2005-08-16  Bruno Haible  <bruno@clisp.org>
30516
30517         * modules/mbiter: New file.
30518         * MODULES.html.sh (Extended multibyte and wide character utilities):
30519         Add mbiter.
30520
30521 2005-08-16  Bruno Haible  <bruno@clisp.org>
30522
30523         * modules/mbfile: New file.
30524         * MODULES.html.sh (Extended multibyte and wide character utilities):
30525         Add mbfile.
30526
30527 2005-08-16  Bruno Haible  <bruno@clisp.org>
30528
30529         * modules/mbchar: New file.
30530         * MODULES.html.sh (Extended multibyte and wide character utilities):
30531         New section.
30532
30533 2005-08-16  Bruno Haible  <bruno@clisp.org>
30534
30535         * m4/tls.m4: New file, from GNU gettext.
30536
30537 2005-08-16  Bruno Haible  <bruno@clisp.org>
30538
30539         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
30540         always.
30541         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30542
30543 2005-08-16  Bruno Haible  <bruno@clisp.org>
30544
30545         * m4/mbiter.m4: New file.
30546
30547 2005-08-16  Bruno Haible  <bruno@clisp.org>
30548
30549         * m4/mbfile.m4: New file.
30550
30551 2005-08-16  Bruno Haible  <bruno@clisp.org>
30552
30553         * m4/mbchar.m4: New file.
30554
30555 2005-08-16  Bruno Haible  <bruno@clisp.org>
30556
30557         * lib/tls.h: New file, from GNU gettext.
30558         * lib/tls.c: New file, from GNU gettext.
30559
30560 2005-08-16  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/strnlen1.h: New file.
30563         * lib/strnlen1.c: New file.
30564
30565 2005-08-16  Bruno Haible  <bruno@clisp.org>
30566
30567         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30568         (mbi_init): Update.
30569         (mbi_avail, mbi_advance): Let the iteration end before the terminating
30570         NUL byte, not after it.
30571
30572 2005-08-16  Bruno Haible  <bruno@clisp.org>
30573
30574         * lib/strcase.h (strcasecmp): Add note in comments.
30575         * lib/strncasecmp.c: Use code from strcasecmp.c.
30576         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30577         (strcasecmp): Work correctly in multibyte locales.
30578
30579 2005-08-16  Bruno Haible  <bruno@clisp.org>
30580
30581         * lib/mbiter.h: New file.
30582
30583 2005-08-16  Bruno Haible  <bruno@clisp.org>
30584
30585         * lib/mbfile.h: New file.
30586
30587 2005-08-16  Bruno Haible  <bruno@clisp.org>
30588
30589         * lib/mbchar.h: New file.
30590         * lib/mbchar.c: New file.
30591
30592 2005-08-16  Bruno Haible  <bruno@clisp.org>
30593
30594         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30595         the valid ones. Makes the comparison operations transitive:
30596         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30597         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30598
30599 2005-08-15  Simon Josefsson  <jas@extundo.com>
30600
30601         * modules/ssize_t (License): Change to 'unlimited'.
30602
30603         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30604
30605 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30606
30607         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30608         Add comments for each pending glibc patch.
30609
30610 2005-08-15  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/regex.h (__restrict_arr): Don't define to __restrict if
30613         __cplusplus is defined.
30614
30615 2005-08-14  Jim Meyering  <jim@meyering.net>
30616
30617         Sync from coreutils.
30618
30619         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30620         Use the hash-table-based cycle-detection code not just when
30621         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30622         Reported by James Youngman in
30623         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30624         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30625         FTS_TIGHT_CYCLE_CHECK.
30626         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30627         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30628         once again.
30629         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30630         * lib/fts.c (fd_safer): Remove decl.
30631         Include fcntl--.h rather than unistd-safer.h
30632         (fts_safe_changedir): Don't call fd_safer; no longer needed
30633         now that we include fcntl--.h.
30634
30635 2005-08-12  Simon Josefsson  <jas@extundo.com>
30636
30637         * modules/getndelim2: Use ssize_t module.
30638         * modules/getnline: Likewise.
30639         * modules/safe-read: Likewise.
30640         * modules/xreadlink: Likewise.
30641
30642         * modules/ssize_t: New file.
30643
30644 2005-08-12  Simon Josefsson  <jas@extundo.com>
30645
30646         * m4/readline.m4: Look for termcap, curses or ncurses if required.
30647
30648 2005-08-12  Simon Josefsson  <jas@extundo.com>
30649
30650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30651         ssize_t.
30652
30653 2005-08-12  Simon Josefsson  <jas@extundo.com>
30654
30655         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30656         readline, getdelim and check_version.
30657         (Support for systems lacking ISO C 99: Sizes of integer types):
30658         Add size_max.
30659
30660 2005-08-12  Bruno Haible  <bruno@clisp.org>
30661
30662         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30663
30664 2005-08-11  Simon Josefsson  <jas@extundo.com>
30665
30666         * modules/readline: New file.
30667
30668         * modules/strnlen (Files): Add strnlen.h.
30669
30670 2005-08-11  Simon Josefsson  <jas@extundo.com>
30671
30672         * m4/readline.m4: New file.
30673
30674 2005-08-11  Simon Josefsson  <jas@extundo.com>
30675
30676         * lib/readline.h, readline.c: New file.
30677
30678 2005-08-11  Simon Josefsson  <jas@extundo.com>
30679
30680         * doc/gnulib.texi (Initial import, Finishing touches): Mention
30681         gl_AVOID.
30682
30683 2005-08-11  Bruno Haible  <bruno@clisp.org>
30684
30685         * lib/strnlen.h (strnlen): Change parameter name to match comment.
30686
30687 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
30688
30689         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30690
30691 2005-08-10  Simon Josefsson  <jas@extundo.com>
30692
30693         * tests/test-iconvme.c: New file.
30694
30695 2005-08-10  Simon Josefsson  <jas@extundo.com>
30696
30697         * m4/strnlen.m4: New file.
30698
30699         * m4/strndup.m4: Don't check for strnlen declaration, done in
30700         strnlen.m4.
30701
30702 2005-08-10  Simon Josefsson  <jas@extundo.com>
30703
30704         * lib/strndup.c: Use strnlen.h.
30705
30706         * lib/strnlen.h: New file.
30707
30708 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30709
30710         * README: Typos.
30711
30712 2005-08-02  Simon Josefsson  <jas@extundo.com>
30713
30714         * modules/readline: New file.
30715
30716 2005-08-02  Simon Josefsson  <jas@extundo.com>
30717
30718         * modules/getdelim: New file.
30719
30720         * modules/getline: Rewrite, don't use getndelim2.
30721
30722 2005-08-02  Simon Josefsson  <jas@extundo.com>
30723
30724         * m4/getline.m4: Separate out getdelim stuff into separate module.
30725
30726         * m4/getdelim.m4: New file.
30727
30728 2005-08-02  Simon Josefsson  <jas@extundo.com>
30729
30730         * lib/getline.h, getline.c: Rewrite.
30731
30732         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30733
30734 2005-07-31  Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/lock.h (gl_lock_initializer): New macro.
30737         (gl_lock_define_initialized): Use it.
30738         (gl_rwlock_initializer): New macro.
30739         (gl_rwlock_define_initialized): Use it.
30740         (gl_recursive_lock_initializer): New macro.
30741         (gl_recursive_lock_define_initialized): Use it.
30742
30743 2005-07-30  Karl Berry  <karl@gnu.org>
30744
30745         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30746         Report from Ben Pfaff, regarding getopt.
30747
30748 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
30749
30750         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30751         normal way.
30752         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30753         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
30754         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30755         (gl_GETOPT): Use the new macros.  Most of the implementation
30756         is moved to the new macros.  This is for programs like Emacs
30757         that don't want all the functionality of gl_GETOPT.
30758
30759 2005-07-26  Bruno Haible  <bruno@clisp.org>
30760
30761         * m4/lock.m4: Update from GNU gettext.
30762
30763 2005-07-26  Bruno Haible  <bruno@clisp.org>
30764
30765         * lib/lock.h: Update from GNU gettext.
30766         * lib/lock.c: Update from GNU gettext.
30767
30768 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30769
30770         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30771         obsolescent AC_TRY_RUN.  Include the default includes files, for
30772         'exit'.
30773
30774 2005-07-24  Bruno Haible  <bruno@clisp.org>
30775
30776         * modules/visibility: New file.
30777         * MODULES.html.sh (Misc): Add visibility.
30778
30779 2005-07-24  Bruno Haible  <bruno@clisp.org>
30780
30781         * m4/visibility.m4: New file.
30782
30783 2005-07-24  Bruno Haible  <bruno@clisp.org>
30784
30785         * doc/visibility.texi: New file.
30786
30787 2005-07-22  Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30790         $(ALLOCA_H), redundant through BUILT_SOURCES.
30791         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30792         redundant through BUILT_SOURCES.
30793         * modules/byteswap (Makefile.am): Remove explicit dependency on
30794         $(BYTESWAP_H), redundant through BUILT_SOURCES.
30795         * modules/fnmatch (Makefile.am): Remove explicit dependency on
30796         $(FNMATCH_H), redundant through BUILT_SOURCES.
30797         * modules/getopt (Makefile.am): Remove explicit dependency on
30798         $(GETOPT_H), redundant through BUILT_SOURCES.
30799         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30800         redundant through BUILT_SOURCES.
30801         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30802         redundant through BUILT_SOURCES.
30803         * modules/stdbool (Makefile.am): Remove explicit dependency on
30804         $(STDBOOL_H), redundant through BUILT_SOURCES.
30805         * modules/stdint (Makefile.am): Remove explicit dependency on
30806         $(STDINT_H), redundant through BUILT_SOURCES.
30807         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30808         Remove explicit dependency on $(SYSEXITS_H).
30809         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30810
30811 2005-07-18  Simon Josefsson  <jas@extundo.com>
30812
30813         * lib/check-version.c (check_version): Accept identical versions too.
30814
30815 2005-07-18  Bruno Haible  <bruno@clisp.org>
30816
30817         * modules/lock: New file.
30818         * MODULES.html.sh (Multithreading): New section.
30819
30820 2005-07-18  Bruno Haible  <bruno@clisp.org>
30821
30822         * m4/lock.m4: New file, from GNU gettext.
30823
30824 2005-07-18  Bruno Haible  <bruno@clisp.org>
30825
30826         * lib/lock.h: New file, from GNU gettext.
30827         * lib/lock.c: New file, from GNU gettext.
30828
30829 2005-07-18  Bruno Haible  <bruno@clisp.org>
30830
30831         * lib/lock.h (gl_once_t): New type.
30832         (gl_once_define, gl_once): New macros.
30833         * lib/lock.c (fresh_once): New variable.
30834         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30835         functions.
30836
30837 2005-07-16  Simon Josefsson  <jas@extundo.com>
30838
30839         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30840         workaround, suggested by Bruno.
30841
30842 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30843
30844         * modules/xalloc (Depends-on): Add xalloc-die.
30845         * modules/xvasprintf (Depends-on): Add xalloc-die.
30846
30847 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30848
30849         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30850         with a minor change.
30851
30852 2005-07-15  Bruno Haible  <bruno@clisp.org>
30853
30854         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30855         When using lib/poll.c, define poll as rpl_poll.
30856
30857 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
30858
30859         * modules/argp (Depends-on): Remove unlocked-io.
30860
30861 2005-07-14  Derek Price  <derek@ximbiot.com>
30862
30863         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
30864         for glob symlink bug.
30865
30866 2005-07-14  Bruno Haible  <bruno@clisp.org>
30867
30868         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30869         Instead, test for *_unlocked function declarations directly.
30870
30871 2005-07-11  Simon Josefsson  <jas@extundo.com>
30872
30873         * modules/size_max: New file.
30874
30875         * modules/xsize: Depend on size_max module for size_max.m4.
30876
30877 2005-07-11  Simon Josefsson  <jas@extundo.com>
30878
30879         * lib/size_max.h: New file.
30880
30881 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30882
30883         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30884         copyright symbol and the year.
30885         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30886         (version_etc_va): Use parameterized copyright notice.
30887         Reword to conform to the current GNU coding standards.
30888
30889 2005-07-11  Karl Berry  <karl@gnu.org>
30890
30891         * doc/gnulib.texi (Quoting): new node.
30892         (Initial import): more info, from Patrice.
30893
30894 2005-07-11  Bruno Haible  <bruno@clisp.org>
30895
30896         * gnulib-tool (func_usage): Document option --avoid.
30897         (Command line options): Handle --avoid.
30898         (func_acceptable): New function.
30899         (func_modules_transitive_closure): Use it.
30900
30901 2005-07-11  Bruno Haible  <bruno@clisp.org>
30902
30903         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
30904         Reported by Jim Meyering.
30905
30906 2005-07-10  Bruno Haible  <bruno@clisp.org>
30907
30908         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
30909         Needed when size_t is smaller than 'unsigned int'.
30910         Reported by Paul Eggert.
30911
30912 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30913
30914         * modules/argp (Depends-on): Add unlocked-io
30915
30916 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30917
30918         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
30919         block of defines.
30920
30921 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30922
30923         * config/srclist.txt: Comment out regcomp.c, since we have a porting
30924         fix now.
30925
30926 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
30927         and Paul Eggert  <eggert@cs.ucla.edu>
30928
30929         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
30930         in wint_t, not wchar_t.  Remove now-unnecessary cast.
30931
30932 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30933
30934         * modules/regex (Files): Add lib/regex_internal.c,
30935         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
30936         (Depends-on): Add extensions.
30937         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
30938
30939 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30940
30941         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
30942         pathconf.
30943         * m4/same.m4 (gl_SAME): Likewise.
30944         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
30945
30946         * m4/regex.m4: Adjust to new libc regex implementation.
30947         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
30948         all the .c and .h parts of (the new) regex.
30949         Quote the m4 stuff better.
30950         Check for RE_ICASE bug of old gnulib.
30951         Check for REG_STARTEND of recent libc.
30952         Rename local variables from jm_* to gl_*.
30953         Quote operand of "test -f".
30954         Say "recent enough" version of libc, not "version 2".
30955         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
30956         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
30957         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
30958         Remove check for btowc, isascii.
30959         Require AM_LANGINFO_CODESET.
30960
30961 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30962
30963         * lib/regex.c, regex.h: Sync from libc.
30964         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30965         * lib/regexec.c:
30966         New files, synced from libc, except that regex_internal.h
30967         currently has a small porting fix.
30968
30969 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
30972         regex_internal.c, regexec.c.
30973         Add regex_internal.h too, but as a comment, since the libc version
30974         is currently broken in gnulib mode.
30975
30976 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30977
30978         Support programs like Emacs that use gnulib but not gettext.
30979         * MODULES.html.sh (Internationalization functions): Add gettext-h.
30980         * modules/gettext-h: New file.
30981         * modules/gettext (Files): Remove lib/gettext.h.
30982         (Depends-on): Add gettext-h.
30983         (Makefile.am): Remove lib_SOURCES.
30984         * modules/argmatch, modules/c-stack, modules/closeout:
30985         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
30986         * modules/execute, modules/file-type, modules/getaddrinfo:
30987         * modules/getopt, modules/human, modules/javacomp:
30988         * modules/javaexec, modules/mkdir-p, modules/obstack:
30989         * modules/openat, modules/pagealign_alloc, modules/pipe:
30990         * modules/quotearg, modules/regex, modules/rpmatch:
30991         * modules/unicodeio, modules/userspec, modules/version-etc:
30992         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
30993         * modules/xsetenv:
30994         Depend on gettext-h, not gettext.
30995
30996 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30997
30998         * gnulib-tool (func_import): Add support for 'public domain' license.
30999         * modules/alloca, modules/atexit, modules/memmove:
31000         Now public domain, not GPL.
31001         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31002         * modules/realloc, modules/strerror, modules/strtod:
31003         Now LGPL, not GPL.
31004
31005 2005-07-05  Bruno Haible  <bruno@clisp.org>
31006
31007         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31008         autoconf CVS. Needed for mingw.
31009
31010 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31011
31012         Remove the dependency of the strftime module on the tzset module.
31013         * modules/strftime (Depends-on): Remove dependency on tzset.
31014
31015 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31016
31017         Remove the dependency of the strftime module on the tzset module.
31018         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31019         gl_FUNC_TZSET_CLOBBER.
31020
31021 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31022
31023         Remove the dependency of the strftime module on the tzset module.
31024         * lib/strftime.c (my_strftime)
31025         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31026         Copy the input structure, to work around some of the bug with
31027         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
31028         Solaris releases, you should also use the tzset module, but we won't
31029         require it as a dependency any more since we don't want LGPLed code
31030         to depend on GPLed code.
31031
31032 2005-07-02  Jim Meyering  <jim@meyering.net>
31033
31034         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31035         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31036         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31037         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31038
31039 2005-07-02  Jim Meyering  <jim@meyering.net>
31040
31041         * lib/backupfile.c (backup_args): Change a `0' to NULL.
31042
31043 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31044
31045         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31046         declares only 'struct timespec;' (!).
31047
31048 2005-07-01  Jim Meyering  <jim@meyering.net>
31049
31050         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31051         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31052         * lib/save-cwd.c, tempname.c:
31053         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31054         and don't include <sys/file.h>).
31055
31056 2005-06-29  Jim Meyering  <jim@meyering.net>
31057
31058         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31059         type name.  Use the variable name instead.
31060         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31061         Likewise.
31062
31063 2005-06-28  Simon Josefsson  <jas@extundo.com>
31064
31065         * modules/check-version (Files): Add check-version.m4.
31066
31067 2005-06-28  Simon Josefsson  <jas@extundo.com>
31068
31069         * m4/check-version.m4: New file, suggested by Jim Meyering
31070         <jim@meyering.net>.
31071
31072 2005-06-28  Simon Josefsson  <jas@extundo.com>
31073
31074         * lib/check-version.h, lib/check-version.c: New files.
31075
31076 2005-06-28  Simon Josefsson  <jas@extundo.com>
31077
31078         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
31079         collision with global variable.  Better indentation.  Don't
31080         increment buffer pointer beyond buffer end.  Based on comments
31081         from Paul Eggert <eggert@cs.ucla.edu>.
31082
31083         * lib/base64.h: Indent.
31084
31085 2005-06-28  Simon Josefsson  <jas@extundo.com>
31086
31087         * doc/gnulib.texi (Library version handling): New section.
31088
31089 2005-06-28  Jim Meyering  <jim@meyering.net>
31090
31091         * check-module (find_included_lib_files): Hard-code another
31092         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31093         but modules/fts-lgpl (correctly) does not list those files.
31094
31095         * modules/canonicalize (Files): Add lib/pathmax.h.
31096
31097 2005-06-25  Simon Josefsson  <jas@extundo.com>
31098
31099         * modules/check-version: New file.
31100
31101 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
31102
31103         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31104         initializer of struct addrinfo, as an indication that we don't
31105         care how many members the structure has.
31106
31107 2005-06-24  Derek Price  <derek@ximbiot.com>
31108         and Bruno Haible  <bruno@clisp.org>
31109
31110         Remove stat module & update lstat.
31111         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31112         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31113         * m4/stat.m4: Remove this file.
31114
31115 2005-06-24  Derek Price  <derek@ximbiot.com>
31116         and Bruno Haible  <bruno@clisp.org>
31117
31118         Remove stat module & update lstat.
31119         * lib/stat.c: Remove this file...
31120         (slash_aware_lstat): ...moving this content and its support...
31121         * lib/lstat.c (rpl_lstat): ...into here.
31122         * lib/lstat.h: New file.
31123
31124 2005-06-24  Derek Price  <derek@ximbiot.com>
31125         and Bruno Haible  <bruno@clisp.org>
31126
31127         Remove stat module & update lstat.
31128         * config/srclist.txt (libc sources): Remove stat.
31129
31130 2005-06-24  Derek Price  <derek@ximbiot.com>
31131         and Bruno Haible  <bruno@clisp.org>
31132
31133         Remove stat module & update lstat.
31134         * MODULES.html.sh (stat): Remove.
31135         * MODULES.html: Regenerated.
31136         * modules/lstat (Description): Correct function name.
31137         (Files): Add "lstat.h".
31138         (Depends-on): Remove stat, add xalloc, stat-macros.
31139         * modules/stat: Remove this file.
31140         (Include): Add "lstat.h", remove <sys/stat.h>.
31141
31142 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31143
31144         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
31145         (ranged_convert): Don't save conversion in a temporary struct.
31146         This causes a warning with GCC 4.0.0, and anyway in the typical
31147         case it's not worth the extra 100 bytes or so of code.
31148         (ranged_convert, __mktime_internal): When calling a function via a
31149         pointer P, use P () rather than (*P) (), as we now assume C89 or
31150         better.
31151
31152 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31153
31154         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31155         "who -r" failed to give output.  Problem reported by Tim Waugh.
31156
31157         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31158         (xcalloc): Use it to avoid needless tests.
31159         Problem reported by Jim Meyering.
31160
31161 2005-06-20  Derek Price  <derek@ximbiot.com>
31162
31163         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31164         unnecessary for Autoconfs > 2.59c.
31165
31166 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31167
31168         * lib/argp.h (__option_is_short): Check upper limit of
31169         __key. Isprint() requires its argument to have the value
31170         of an unsigned char or EOF.
31171
31172 2005-06-16  Jim Meyering  <jim@meyering.net>
31173
31174         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31175         when either N or S is zero.
31176
31177 2005-06-16  Derek Price  <derek@ximbiot.com>
31178
31179         * m4/bison.m4: Declare YACC & YFLAGS precious.
31180
31181 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
31182
31183         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31184         multibyte string or pattern, fall back on unibyte matching.
31185         Problem reported by James Youngman.
31186
31187 2005-06-08  Bruno Haible  <bruno@clisp.org>
31188
31189         * modules/csharpcomp: New file.
31190         * MODULES.html.sh (C#): Add csharpcomp.
31191
31192 2005-06-08  Bruno Haible  <bruno@clisp.org>
31193
31194         * m4/csharpcomp.m4: New file, from GNU gettext.
31195
31196 2005-06-08  Bruno Haible  <bruno@clisp.org>
31197
31198         * lib/csharpcomp.h: New file, from GNU gettext.
31199         * lib/csharpcomp.c: New file, from GNU gettext.
31200         * lib/csharpcomp.sh.in: New file, from GNU gettext.
31201
31202 2005-06-08  Bruno Haible  <bruno@clisp.org>
31203
31204         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31205         warning on mingw.
31206
31207 2005-06-07  Derek Price  <derek@ximbiot.com>
31208
31209         Sync from CVS.
31210         * lib/glob_.h: Indent nested #ifdef.
31211
31212 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31213
31214         Sync from coreutils.
31215         Use "file name" when talking about file names, instead of "filename"
31216         or "path", as per the GNU coding standards.
31217         * lib/mkdir-p.c: Renamed from makepath.c.
31218         (make_dir_parents): Renamed from make_path.  All callers changed.
31219         * lib/mkdir-p.h: Likewise.  All includers changed.
31220         * lib/filenamecat.c: Renamed from path-concat.c.
31221         (file_name_concat): Renamed from path_concat.  All callers changed.
31222         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31223         * lib/filenamecat.h: Likewise.  All includers changed.
31224         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31225         in comments or local variable names.
31226         * lib/basename.c: Likewise.
31227         * lib/canonicalize.c, canonicalize.h: Likewise.
31228         * lib/dirname.c, dirname.h: Likewise.
31229         * lib/euidaccess.c: Likewise.
31230         * lib/exclude.c: Likewise
31231         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31232         * lib/fsusage.c, fsuage.h: Likewise.
31233         * lib/fts.c, fts_.h: Likewise.
31234         * lib/getcwd.c: Likewise.
31235         * lib/getloadavg.c: Likewise.
31236         * lib/mkstemp.c: Likewise.
31237         * lib/mountlist.c, mountlist.h: Likewise.
31238         * lib/openat.c, openat.h: Likewise.
31239         * lib/readlink-stub.c: Likewise.
31240         * lib/readutmp.c, readutmp.h: Likewise.
31241         * lib/rename.c: Likewise.
31242         * lib/rmdir.c: Likewise.
31243         * lib/same.c: Likewise.
31244         * lib/savedir.c: Likewise.
31245         * lib/stripslash.c: Likewise.
31246         * lib/tempname.c: Likewise.
31247         * lib/xreadlink.c: Likewise.
31248         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31249         All uses changed.
31250         * lib/exclude.h: Likewise.
31251
31252         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31253         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31254         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31255         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31256         * lib/pathmax.h: Include <limits.h> unconditionally, since other
31257         files have been getting away with it for years (MORE/BSD 4.3
31258         is extinct now).
31259         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31260         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31261
31262         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31263         Define to 256, not 255, as per modern POSIX.
31264
31265 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31266
31267         Sync from coreutils.
31268         Use "file name" when talking about file names, instead of "filename"
31269         or "path", as per the GNU coding standards.
31270         * MODULES.html.sh: mkdir-p renamed from makepath.
31271         filenamecat renamed from path-concat.
31272         * modules/filenamecat: Renamed from modules/path-concat.
31273         (Files): filenamecat.h and filenamecat.c renamed from
31274         path-concat.h and path-concat.c.
31275         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31276         (Include): filenamecat.h, not path-concat.h.
31277         * modules/mkdir-p: Renamed from modules/makepath.
31278         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31279         makepath.c.
31280         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31281         (Include): mkdir-p.h, not makepath.h.
31282
31283 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31284
31285         Sync from coreutils.
31286         * m4/mkdir-p.m4: Renamed from makepath.m4.
31287         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
31288         Rename files from makepath.c to mkdir-p.c, and from
31289         makepath.h to mkdir-p.h.
31290         * m4/filenamecat.m4: Renamed from path-concat.m4.
31291         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
31292         Rename files from path-concat.c to filenamecat.c,
31293         and from path-concat.h to filenamecat.h.
31294         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31295         "file name" in local variables or comments.
31296         * m4/rename.m4: Likewise.
31297
31298 2005-06-01  Bruno Haible  <bruno@clisp.org>
31299
31300         * modules/csharpexec: New file.
31301         * MODULES.html.sh (C#): New section.
31302
31303 2005-06-01  Bruno Haible  <bruno@clisp.org>
31304
31305         * m4/csharp.m4: New file, from GNU gettext.
31306         * m4/csharpexec.m4: New file, from GNU gettext.
31307
31308 2005-06-01  Bruno Haible  <bruno@clisp.org>
31309
31310         * lib/csharpexec.h: New file, from GNU gettext.
31311         * lib/csharpexec.c: New file, from GNU gettext.
31312         * lib/csharpexec.sh.in: New file, from GNU gettext.
31313
31314 2005-05-31  Derek Price  <derek@ximbiot.com>
31315             Paul Eggert  <eggert@cs.ucla.edu>
31316
31317         Sync from cvs.
31318         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31319
31320 2005-05-31  Derek Price  <derek@ximbiot.com>
31321             Paul Eggert  <eggert@cs.ucla.edu>
31322
31323         Sync from cvs.
31324         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31325
31326 2005-05-29  Derek Price  <derek@ximbiot.com>
31327
31328         * config/srclist.txt (glob_.h, glob.c): Add these files.
31329
31330 2005-05-29  Derek Price  <derek@ximbiot.com>
31331
31332         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31333         * modules/glob: New file.
31334         * modules/getlogin_r: Add link to POSIX spec in description.
31335
31336 2005-05-29  Derek Price  <derek@ximbiot.com>
31337             Paul Eggert  <eggert@cs.ucla.edu>
31338
31339         * m4/glob.m4: New file.
31340
31341 2005-05-29  Derek Price  <derek@ximbiot.com>
31342             Paul Eggert  <eggert@cs.ucla.edu>
31343
31344         * lib/glob_.h, lib/glob.c: New files.
31345
31346 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31347
31348         * modules/fts (Files): Remove m4/inttypes-pri.m4.
31349         * modules/fts-lgpl (Depends-on): Remove gettext.
31350
31351 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31352
31353         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
31354         and don't require gt_INTTYPES_PRI.
31355
31356 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31357
31358         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
31359
31360         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
31361         the configuration hassle isn't worth it.
31362         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
31363         (LONGEST_MODIFIER, PRIuMAX): Remove.
31364
31365 2005-05-27  Bruno Haible  <bruno@clisp.org>
31366
31367         * lib/getlogin_r.h: Remove second include of <stddef.h>.
31368
31369 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
31370
31371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
31372         _POSIX_PTHREAD_SEMANTICS for Solaris.
31373
31374 2005-05-25  Derek Price  <derek@ximbiot.com>
31375
31376         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
31377
31378 2005-05-25  Derek Price  <derek@ximbiot.com>
31379             Paul Eggert  <eggert@cs.ucla.edu>
31380
31381         * modules/getlogin_r, m4/getlogin_r.m4: New files.
31382         * lib/getlogin_r.c, getlogin_r.h: New files.
31383
31384 2005-05-25  Bruno Haible  <bruno@clisp.org>
31385             Derek Price  <derek@ximbiot.com>
31386
31387         * lib/getlogin_r.h: Simplify API documentation.
31388
31389 2005-05-23  Derek Price  <derek@ximbiot.com>
31390
31391         * modules/minmax (Files): Add m4/minmax.m4.
31392         (configure.ac): Add gl_MINMAX.
31393
31394 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31395
31396         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
31397         so that unistd-safer.h (GPL'ed code) need not be included.
31398
31399 2005-05-22  Bruno Haible  <bruno@clisp.org>
31400
31401         * m4/minmax.m4: New file.
31402         Based on a patch by Derek Price <derek@ximbiot.com>.
31403
31404 2005-05-22  Bruno Haible  <bruno@clisp.org>
31405
31406         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
31407         (INT64_MIN): Fix definition.
31408         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31409
31410         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
31411         NEED_SIGNED_INT_TYPES.
31412
31413         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
31414         HAVE_SYSTEM_INTTYPES.
31415
31416 2005-05-22  Bruno Haible  <bruno@clisp.org>
31417
31418         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
31419         Also include <sys/param.h> if it defines MIN, MAX.
31420         Based on a patch by Derek Price <derek@ximbiot.com>.
31421
31422 2005-05-21  Jim Meyering  <jim@meyering.net>
31423
31424         * modules/fts (Files): Add m4/inttypes-pri.m4.
31425         (Depends-on): Add lstat and remove gettext.  Alphabetize.
31426
31427 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31428
31429         New fts module.
31430         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
31431         (setup_dir, free_dir): New functions.
31432         (enter_dir, leave_dir): Define trivial
31433         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
31434         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
31435         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
31436         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
31437         Move to fts-cycle.c.
31438         (fts_open): Use setup_dir.
31439         (fts_close): Use free_dir.
31440         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
31441         This adds a label and some gotos, but the alternatives were messier.
31442         Check for memory allocation failure when entering a dir.
31443         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
31444         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
31445         (FTS): New member fts_cycle, that is a union that contains the
31446         old active_dir_ht and cycle_state.  All uses changed to mention
31447         fts_cycle.ht and fts_cycle.state.
31448         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
31449         fts.c, with the following changes:
31450         (setup_dir, free_dir): New functions.
31451         (enter_dir): Now returns bool.  Return true if successful, false
31452         if memory exhausted.  All callers changed.
31453         Do not bother partly cleaning up on
31454         memory allocation failure; that is free_dir's job.
31455         However, free ad if hash_insert fails, to avoid memory leak.
31456         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
31457         fts->fts_options to see which union member to use.
31458
31459 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31460
31461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
31462         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
31463
31464 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31465
31466         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
31467
31468 2005-05-20  Jim Meyering  <jim@meyering.net>
31469
31470         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
31471         Now a macro, to pacify GCC.
31472
31473 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
31474
31475         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
31476         of -1.
31477
31478 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
31479
31480         * lib/chown.c (rpl_chown): Return -1 on failure.
31481
31482 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31483
31484         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
31485         Don't check for stddef.h.
31486         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
31487         don't use its results.
31488         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
31489         since we include them unconditionally.  Don't require
31490         AM_STDBOOL_H, since stdbool is a prerequisite.
31491         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
31492         since we assume C89 or better.
31493         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
31494         as we don't use their results.
31495         Don't check for fchdir, memmove, memset, strrchr, as we use
31496         them unconditionally.
31497         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
31498         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
31499
31500 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31501
31502         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
31503         Include <stddef.h> unconditionally, since we assume C89 now.
31504         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
31505         * lib/fts.c: Include fts_.h first, to check interface.
31506         Do not include intprops.h; no longer needed.
31507         Include cycle-check.h and hash.h, since fts_.h no longer does.
31508         Remove unnecessary casts of closedir to void.
31509         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
31510         decide whether to decrement nlinks.
31511         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
31512         (FTS): Use struct hash_table * instead of Hash_table, so that
31513         we no longer need to include hash.h here.
31514
31515 2005-05-18  Jim Meyering  <jim@meyering.net>
31516
31517         * modules/dirfd (License): Change to LGPL.  Most of the code
31518         is already in the public domain.
31519
31520 2005-05-18  Jim Meyering  <jim@meyering.net>
31521
31522         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
31523         Reported by Yoann Vandoorselaere.
31524
31525 2005-05-17  Jim Meyering  <jim@meyering.net>
31526
31527         * m4/fts.m4: New file, from coreutils.
31528
31529 2005-05-17  Jim Meyering  <jim@meyering.net>
31530
31531         * lib/fts.c, lib/fts_.h: New files, from coreutils.
31532
31533 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31534
31535         Sync from coreutils.
31536         * m4/unlinkdir.m4: New file.
31537
31538 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31539
31540         Sync from coreutils.
31541         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31542         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31543         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31544         White space changes only.
31545         * lib/makepath.c (make_path): Port to hosts where leading "//" is
31546         special.
31547         * lib/yesno.c: Include getline.h, not ctype.h.
31548         (yesno): Don't remove leading white space; POSIX doesn't allow it.
31549         Use getline to remove arbitrary restriction on response length.
31550
31551 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31552
31553         * config/srclist-update: Spell out "Street" in FSF postal
31554         mail address; this is the style the FSF seems to prefer.
31555
31556         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31557         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31558         this updates FSF postal mail address.
31559
31560         Sync from coreutils.
31561         * modules/unlinkdir: New file.
31562         * modules/yesno (Depends-on): Add getline.
31563         * MODULES.html.sh (File system functions): Add unlinkdir.
31564
31565 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31566
31567         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31568         lib/strsep.h:
31569         Change the initial comment to refer to GPL, not LGPL.
31570         gnulib-tool will change it to LGPL as needed.
31571
31572         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31573         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31574         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31575         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31576         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31577         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31578         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31579         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31580         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31581         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31582         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31583         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31584         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31585         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31586         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31587         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31588         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31589         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31590         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31591         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31592         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31593         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31594         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31595         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31596         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31597         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31598         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31599         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31600         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31601         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31602         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31603         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31604         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31605         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31606         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31607         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31608         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31609         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31610         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31611         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31612         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31613         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31614         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31615         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31616         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31617         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31618         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31619         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31620         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31621         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31622         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31623         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31624         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31625         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31626         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31627         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31628         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31629         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31630         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31631         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31632         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31633         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31634         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31635         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31636         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31637         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31638         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31639         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31640         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31641         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31642         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31643         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31644         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31645         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31646         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31647         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31648         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31649         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31650         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31651         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31652         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31653         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31654         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31655         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31656         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31657         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31658         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31659         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31660         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31661         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31662         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31663         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31664         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31665         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31666         lib/yesno.c, lib/yesno.h:
31667         Update FSF postal mail address.
31668
31669 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31670
31671         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31672         tests/test-memmem.c, tests/test-stpncpy.c:
31673         Update FSF postal mail address.
31674
31675 2005-05-13  Bruno Haible  <bruno@clisp.org>
31676
31677         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31678         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31679         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31680         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31681         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31682         Add support for 64-bit integers in the MSVC compiler.
31683
31684 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31685
31686         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31687
31688 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
31689
31690         * gnulib-tool (func_import): Sort and uniquify recommended includes.
31691
31692 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         * doc/getdate.texi (General date syntax): Don't say that date
31695         date --iso-8601=ns generates acceptable dates; it doesn't yet.
31696         Problem reported by Nic Ferrier.
31697
31698 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31699
31700         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31701         specified in ai_socktype. Fix invalid ai_protocol
31702         check. ai_protocol is usually set to 0 or depending on
31703         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
31704         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
31705         ai_socktype / ai_protocol in the returned addrinfo structure.
31706
31707 2005-05-10  Simon Josefsson  <jas@extundo.com>
31708
31709         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31710         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31711
31712 2005-05-10  Karl Berry  <karl@gnu.org>
31713
31714         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31715         (from http://www.gnu.org/licenses).
31716         * doc/COPYING.LIB: also rename to COPYING.LESSER.
31717         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31718         fdl.texi suffices.
31719
31720 2005-05-10  Karl Berry  <karl@gnu.org>
31721
31722         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31723         (COPYING.DOC): remove.
31724
31725         * config/srclist-update: new FSF address.
31726
31727 2005-05-10  Derek Price  <derek@ximbiot.com>
31728
31729         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31730         possible.
31731
31732 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31733             Bruno Haible  <bruno@clisp.org>
31734
31735         * modules/inet_ntop: New file.
31736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31737         inet_ntop.
31738
31739 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31740             Bruno Haible  <bruno@clisp.org>
31741
31742         * m4/inet_ntop.m4: New file.
31743
31744 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31745             Bruno Haible  <bruno@clisp.org>
31746
31747         * lib/inet_ntop.h: New file.
31748         * lib/inet_ntop.c: New file, from glibc with modifications.
31749
31750 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
31751
31752         * modules/time_r (License): Change to LGPL.
31753         * modules/extensions (License): Change to LGPL.  Actually,
31754         the license is more permissive than that, but currently gnulib-tool
31755         doesn't know how to handle more-permissive licenses.
31756
31757         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31758         Problem reported by Dave Love.
31759
31760 2005-05-08  Jim Meyering  <jim@meyering.net>
31761
31762         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31763         blank.
31764
31765 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31766
31767         * modules/argmatch (Depends-on): Add stdbool.
31768         * modules/backupfile (Depends-on): Likewise.
31769         * modules/chdir-long (Depends-on): Likewise.
31770         * modules/closeout (Depends-on): Likewise.
31771         * modules/cycle-check (Depends-on): Likewise.
31772         * modules/dirname (Depends-on): Likewise.
31773         * modules/fnmatch (Depends-on): Likewise.
31774         * modules/fsusage (Depends-on): Likewise.
31775         * modules/fwriteerror (Depends-on): Likewise.
31776         * modules/getcwd (Depends-on): Likewise.
31777         * modules/getloadavg (Depends-on): Likewise.
31778         * modules/hard-locale (Depends-on): Likewise.
31779         * modules/makepath (Depends-on): Likewise.
31780         * modules/mountlist (Depends-on): Likewise.
31781         * modules/nanosleep (Depends-on): Likewise.
31782         * modules/posixtm (Depends-on): Likewise.
31783         * modules/quotearg (Depends-on): Likewise.
31784         * modules/readtokens (Depends-on): Likewise.
31785         * modules/readtokens0 (Depends-on): Likewise.
31786         * modules/readutmp (Depends-on): Likewise.
31787         * modules/save-cwd (Depends-on): Likewise.
31788         * modules/strftime (Depends-on): Likewise.
31789         * modules/userspec (Depends-on): Likewise.
31790         * modules/utimecmp (Depends-on): Likewise.
31791         * modules/xgetcwd (Depends-on): Likewise.
31792         * modules/xnanosleep (Depends-on): Likewise.
31793         * modules/xstrtod (Depends-on): Likewise.
31794         * modules/yesno (Depends-on): Likewise.
31795
31796 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31797
31798         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31799         needless checks.
31800
31801 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31802
31803         Merge from coreutils.  Among other things,
31804         add bulletproofing for cases where stdin, stdout, or stderr are closed.
31805         * lib/fd-safer.c: New file.
31806         * lib/fcntl-safer.h, open-safer.c: Remove.
31807         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31808         * lib/dup-safer.c: Include unistd-safer.h first.
31809         Don't include errno.h.
31810         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31811         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31812         * lib/file-type.c: Rely on file-type.h change.
31813         * lib/getloadavg.c: Include unistd-safer.h.
31814         (getloadavg): Use safer open.
31815         * lib/getusershell.c: Include "stdio-safer.h".
31816         (getusershell): Use safer fopen.
31817         * lib/long-options.c (long_options): Use NULL rather than 0.
31818         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31819         'free'.
31820         * lib/modechange.c: Likewise.
31821         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31822         (MODE_DONE): New constant.
31823         (struct mode_change): Remove 'next' member.
31824         (make_node_op_equals): New function; like the old one of the
31825         same name, except it allocates an array.
31826         (mode_compile, mode_create_from_ref): Use it.
31827         (mode_compile): Allocate result as an array, not a linked list.
31828         Parse octal string ourself, so that we catch mistakes like "+0".
31829         (mode_adjust): Arg is an array, not a linked list.
31830         * lib/modechange.c: Include stat-macros.h, xalloc.h.
31831         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31832         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31833         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31834         Remove.  This is now stat-macros.h's job.
31835         (talloc): Remove.  All callers replaced by xalloc, so that
31836         our invokers don't have to worry about reporting memory failures.
31837         (make_node_op_equals): Remove.
31838         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31839         New constants.
31840         (struct mode_change): Moved here from modechange.h.
31841         (mode_append_entry): Remove.
31842         (mode_compile): Remove MASKED_OPS arg, since it encouraged
31843         apps to have incorrect behavior.  Use simpler algorithm for head
31844         and tail.  Don't futz with umask; that's now the job of mode_adjust.
31845         Detect more invalid usages rather than having somewhat-random behavior.
31846         Don't insert an "a=" action, as that leads to incorrect behavior.
31847         (mode_compile, mode_create_from_ref): Return NULL on error instead
31848         of an enum, since now there's only one way to have an error.  All
31849         callers changed.
31850         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31851         at the correct time.  Simplify calculation of "+u" and its ilk.
31852         Don't mishandle "+X".
31853         (mode_free): Remove "register" and localize decls.
31854         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31855         (struct mode_change): Move to modechange.c; callers don't
31856         need to see this stuff.
31857         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31858         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31859         (mode_change, mode_adjust): Reflect the new signatures noted above.
31860         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31861         that might redefine system include files.
31862         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31863         (my_usleep): Use NULL rather than (void *) 0.
31864         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31865         Use siginterrupt to specify that system calls should be interrupted.
31866         (rpl_nanosleep): Move initialization of suspended closer to call of
31867         my_usleep.
31868         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
31869         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
31870         (desirable_utmp_entry): New function.
31871         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31872         using x2nrealloc, to simplify logic.
31873         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31874         size calculation.  Do not assume utmp file is a regular file.
31875         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31876         (READ_UTMP_CHECK_PIDS): New constant.
31877         * lib/save-cwd.c: Include unistd-safer.h.
31878         (save_cwd): Use fd_safer.
31879         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31880         [!_LIBC] Include "stat-macros.h" instead.
31881         * lib/unistd-safer.h (fd_safer): New decl.
31882
31883 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31884
31885         * modules/getloadavg (Depends-on): Add unistd-safer.
31886         * modules/getusershell (Depends-on): Add stdio-safer.
31887         * modules/lstat (Depends-on): Remove xalloc.
31888         * modules/mkstemp (Depends-on): Add stat-macros.
31889         * modules/modechange (Depends-on): Remove xstrtol.
31890         Add stat-macros, xalloc.
31891         * modules/save-cwd (Depends-on): Add unistd-safer.
31892         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
31893         * modules/unistd-safer (Files): Add lib/fd-safer.c
31894         (Makefile.am): Remove lib_SOURCES.
31895
31896         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
31897         Remove fcntl-safer; unistd-safer supersedes it.
31898
31899 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31900
31901         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
31902         AC_HEADER_STAT.
31903         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
31904         (gl_PREREQ_CHOWN): Remove.
31905         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
31906         it.  Don't require AC_HEADER_STAT.
31907         (gl_PREREQ_LSTAT): Remove.
31908         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
31909         Don't require AC_HEADER_STAT.
31910         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
31911         (gl_PREREQ_RMDIR): Remove.
31912         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
31913         mention stat-macros.h or AC_HEADER_STAT, since we'll make
31914         the stat-macros module a prerequisite.
31915         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
31916         * m4/filemode.m4 (gl_FILEMODE): Likewise.
31917         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
31918         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
31919         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
31920         variable names.
31921         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
31922         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
31923         variable prefixes.
31924         * m4/fcntl-safer.m4: Remove.
31925         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
31926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
31927         Invoke gl_PREREQ_FD_SAFER.
31928         (gl_PREREQ_FD_SAFER): New macro.
31929         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
31930         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
31931         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
31932         Remove duplicate call to AC_LIBOBJ(readutmp).
31933         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
31934
31935         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
31936         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
31937
31938 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31939
31940         * MODULES.html.sh (Misc): Add byteswap.
31941
31942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31943
31944         * modules/getcwd (Depends-on): Add extensions.
31945         * modules/openat (Depends-on): Likewise.
31946
31947 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31948
31949         * modules/byteswap: New file.
31950
31951 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31952
31953         * m4/byteswap.m4: New file.
31954
31955 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31956
31957         * lib/byteswap_.h: New file.
31958
31959 2005-04-25  Karl Berry  <karl@gnu.org>
31960
31961         * m4/gettext.m4: Update from GNU gettext 0.14.4.
31962
31963 2005-04-25  Albert Chin  <china@thewrittenword.com>
31964
31965         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31966         Toolkit C bug.
31967
31968 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
31969
31970         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
31971         (func_ln_if_changed) Remove forcibly for no error message
31972         in case file does not exist.
31973
31974 2005-04-19  Simon Josefsson  <jas@extundo.com>
31975
31976         * gnulib-tool (Options): Make --symlink mean --symbolic.
31977
31978 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
31979
31980         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
31981
31982 2005-04-16  Simon Josefsson  <jas@extundo.com>
31983
31984         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
31985
31986 2005-04-15  Simon Josefsson  <jas@extundo.com>
31987
31988         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
31989
31990 2005-04-15  Simon Josefsson  <jas@extundo.com>
31991
31992         * gnulib-tool: Rename --symlink to --symbolic.
31993
31994 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
31995
31996         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
31997         symbolic links to files instead of copying/moving.  Add --aux-dir,
31998         specifying directory relative --dir where auxiliary build tools
31999         are placed.
32000
32001 2005-04-14  Bruno Haible  <bruno@clisp.org>
32002
32003         * modules/allocsa (License): Change to LGPL.
32004         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32005
32006 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32007
32008         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32009         that "UTC +1 second" continues to work.  Problem reported
32010         by Dmitry V. Levin.
32011         (relunit_snumber): New rule.
32012         (relunit): Use it.
32013
32014 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32015
32016         * lib/getdate.y (universal_time_zone_table): New constant.
32017         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32018         universal_time_zone_table.
32019         (lookup_zone): Prefer universal_time_zone_table to
32020         local_time_zone_table, so that "GMT" time stamps are allowed in
32021         London during the summer.  Problem reported by Ian Abbott.
32022
32023 2005-04-12  Jim Meyering  <jim@meyering.net>
32024
32025         * lib/human.c (humblock): Set *options even when returning due to
32026         xstrtoumax conversion failure.  Thanks to a used-uninitialized
32027         warning from gcc-4.
32028
32029 2005-04-09  Jim Meyering  <jim@meyering.net>
32030
32031         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32032         -Wuninitialized: initialize tm0.tm_year.
32033
32034 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32035
32036         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32037         count, since there's no maximum.  All uses changed.
32038         Add member dsts_seen.
32039         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32040         not being INT_MAX.
32041         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32042         Use pc_rels_seen to decide whther a date is absolute.
32043
32044         * lib/getdate.y (number): Don't overwrite year.
32045         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32046         check.
32047
32048 2005-04-02  Simon Josefsson  <jas@extundo.com>
32049
32050         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32051         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32052
32053 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
32054
32055         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32056         where no absolute path name can be longer than PATH_MAX.
32057
32058 2005-03-27  Jim Meyering  <jim@meyering.net>
32059
32060         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32061
32062 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
32063
32064         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32065         "one's complement" -> "ones' complement" in comment, as per Knuth.
32066         "value of type" -> "type or expression" in comment.
32067         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32068
32069 2005-03-26  Jim Meyering  <jim@meyering.net>
32070
32071         Comment nits.
32072         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32073         Correct typos: s/or/of/.
32074
32075 2005-03-26  Jim Meyering  <jim@meyering.net>
32076
32077         * modules/check-include-files: Move to ../ and rename to...
32078         * check-module: ...this.
32079
32080 2005-03-25  Jim Meyering  <jim@meyering.net>
32081
32082         * modules/xvasprintf (Files): Add xalloc.h.
32083
32084 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32085
32086         * modules/gettext (Files): config/config.rpath ->
32087         build-aux/config.rpath
32088         * modules/iconv (Files): Likewise.
32089         Problem reported by Oskar Liljeblad.
32090
32091 2005-03-23  Jim Meyering  <jim@meyering.net>
32092
32093         * modules/check-include-files: New script to check for
32094         missing dependencies, multiple includes, etc.
32095
32096         * modules/c-strtold (Depends-on): Add xalloc.
32097         * modules/c-strtod (Depends-on): Add xalloc.
32098         * modules/hash (Depends-on): Add xalloc.
32099         (Files): Remove lib/xalloc.h.
32100
32101         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32102         * modules/userspec (Files): Add lib/inttostr.h.
32103
32104 2005-03-23  Jim Meyering  <jim@meyering.net>
32105
32106         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32107
32108 2005-03-22  Jim Meyering  <jim@meyering.net>
32109
32110         * modules/stat-macros: New module.
32111         * modules/canonicalize, modules/euidaccess, modules/file-type,
32112         * modules/filemode, modules/lchown, modules/makepath,
32113         * modules/rmdir, modules/stat: Depend on new stat-macros module
32114         rather than listing lib/stat-macros.h manually.
32115         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32116
32117 2005-03-22  Jim Meyering  <jim@meyering.net>
32118
32119         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32120
32121 2005-03-22  Bruno Haible  <bruno@clisp.org>
32122
32123         * config/srclist.txt: Replace target directory 'config' with
32124         'build-aux'.
32125         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32126         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32127         ../build-aux/.
32128
32129 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32130
32131         * modules/chdir-long (Depends-on): Add mempcpy.
32132
32133         * modules/acl, modules/backupfile, modules/c-strtod,
32134         modules/c-strtold, modules/canon-host, modules/canonicalize,
32135         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32136         modules/exclude, modules/exitfail, modules/file-type,
32137         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32138         modules/getdate, modules/getline, modules/getpagesize,
32139         modules/getpass, modules/getugroups, modules/group-member,
32140         modules/hard-locale, modules/hash, modules/human, modules/idcache,
32141         modules/inttostr, modules/long-options, modules/makepath,
32142         modules/md5, modules/memcasecmp, modules/memcoll,
32143         modules/modechange, modules/mountlist, modules/path-concat,
32144         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32145         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32146         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32147         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32148         modules/strftime, modules/strndup, modules/strverscmp,
32149         modules/timespec, modules/unlocked-io, modules/userspec,
32150         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32151         modules/yesno:
32152         Remove lib_SOURCES line from Makefile.am section, as this is now
32153         done automatically by the corresponding Autoconf macro.
32154
32155 2005-03-21  Jim Meyering  <jim@meyering.net>
32156
32157         Changes imported from coreutils.
32158
32159         * lib/cycle-check.c: Don't include xalloc.h.
32160
32161         * lib/path-concat.c: Don't include assert.h.
32162         (path_concat): Remove assertion that would have triggered
32163         for ABASE starting with more than one slash.
32164         Reported by Andreas Schwab.
32165
32166         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32167         properly when ABASE is an absolute file name.
32168         Correct the description of this function.
32169         Include <assert.h>.
32170         Add an assertion and a test driver.
32171         This fixes a bug introduced on 2004-07-02.
32172         Andreas Schwab reported the resulting failure of cp --parents:
32173         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32174
32175 2005-03-21  Jim Meyering  <jim@meyering.net>
32176
32177         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32179
32180 2005-03-21  Jim Meyering  <jim@meyering.net>
32181         and  Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32184         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32185         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32186         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32187         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32188         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32189         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32190         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32191         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32192         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32193         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32194         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32195         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32196         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32197         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32198         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32199         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32200         for these modules.
32201
32202 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
32203
32204         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32205         (which shouldn't happen), generate nothing instead of returning 0
32206         immediately, so that nstrftime (NULL, ...) doesn't return 0.
32207
32208 2005-03-16  Bruno Haible  <bruno@clisp.org>
32209
32210         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32211         HAVE_LONGLONG_64BIT.
32212
32213 2005-03-16  Bruno Haible  <bruno@clisp.org>
32214
32215         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32216         HAVE_LONGLONG_64BIT.
32217
32218 2005-03-16  Bruno Haible  <bruno@clisp.org>
32219
32220         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32221         HAVE_LONGLONG_64BIT.
32222
32223 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32224
32225         * lib/strftime.c (my_strftime): Prepend space to format so that we can
32226         reliably distinguish strftime failure from empty output on POSIX
32227         hosts.
32228
32229 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32230
32231         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32232         (iconv_string): Don't guess a size-zero buffer, as that might cause
32233         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
32234         result would be 'too large', where 'too large' is (heuristically)
32235         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32236         overflow concerns.  This will prevent some unwanted malloc failures
32237         when the inputs are very large.
32238
32239 2005-03-15  Karl Berry  <karl@gnu.org>
32240
32241         * config/srclist.txt (config.rpath): from gettext.
32242         * config/config.rpath: update.
32243
32244 2005-03-15  Bruno Haible  <bruno@clisp.org>
32245
32246         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32247         to 'negate'.
32248
32249         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32250         variable.
32251
32252         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32253         results.
32254
32255 2005-03-14  Simon Josefsson  <jas@extundo.com>
32256
32257         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32258         <fx@gnu.org>.
32259
32260 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
32261
32262         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32263         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32264         intprops.h.
32265         * lib/strtol.c: Likewise.
32266
32267 2005-03-14  Jim Meyering  <jim@meyering.net>
32268
32269         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32270         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32271         to be nonzero so that we (and caller) can detect the difference
32272         between a valid zero-length expansion and an error return, even
32273         when the underlying strftime fails before writing anything into
32274         that location.
32275
32276 2005-03-14  Bruno Haible  <bruno@clisp.org>
32277
32278         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32279         Update from GNU gettext 0.14.3.
32280
32281 2005-03-10  Jim Meyering  <jim@meyering.net>
32282
32283         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32284
32285 2005-03-10  Jim Meyering  <jim@meyering.net>
32286
32287         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32288         so that this module works on systems without fchdir.
32289
32290 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
32291
32292         Factor int-properties macros into a single file, except for
32293         glibc-related files.
32294         * lib/intprops.h: New file.
32295         * lib/getloadavg.c: Include it instead of limits.h.
32296         (INT_STRLEN_BOUND): Remove.
32297         * lib/human.c: Include intprops.h.
32298         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32299         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32300         302/1000.
32301         * lib/inttostr.h: Include intprops.h instead of limits.h.
32302         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32303         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32304         for consistency with intprops.h.
32305         (time_t_is_integer, twos_complement_arithmetic): Use them.
32306         * lib/sig2str.h: Include <signal.h>, intprops.h.
32307         (INT_STRLEN_BOUND): Remove.
32308         * lib/strftime.c (TYPE_SIGNED): Remove.
32309         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32310         * lib/strtol.c: Adjust comments to match intprops.h.
32311         * lib/userspec.c: Include intprops.h.
32312         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32313         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32314         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32315         instead of rolling our own expressions.
32316         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32317
32318         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
32319         instead of int.
32320         (my_strftime): Do not mishandle years close to INT_MAX, by doing
32321         the right thing even if adding 1900 would overflow.  Similarly
32322         for tm_mon + 1 and tm_yday + 1.
32323         Make %Y always equivalent to %C%y, and similarly for %G and %g.
32324         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32325         (DO_SIGNED_NUMBER): New macro.
32326         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32327
32328 2005-03-07  Bruno Haible  <bruno@clisp.org>
32329
32330         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32331
32332 2005-03-07  Bruno Haible  <bruno@clisp.org>
32333
32334         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32335
32336 2005-03-04  Derek R. Price  <derek@ximbiot.com>
32337
32338         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32339         (func_import): Only replace files via --import when they have actually
32340         changed.
32341
32342 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32343
32344         * m4/mmap-anon.m4: New file.
32345         * m4/pagealign_alloc.m4: New file.
32346
32347 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32348             Bruno Haible  <bruno@clisp.org>
32349
32350         * modules/pagealign_alloc: New file.
32351         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
32352
32353 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32354             Bruno Haible  <bruno@clisp.org>
32355
32356         * lib/pagealign_alloc.h: New file.
32357         * lib/pagealign_alloc.c: New file.
32358
32359 2005-03-03  Bruno Haible  <bruno@clisp.org>
32360
32361         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
32362         Use an all-permissive copyright notice, recommended by RMS.
32363
32364 2005-03-02  Bruno Haible  <bruno@clisp.org>
32365
32366         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
32367         of AIX, the replacement has to be done only after <string.h> is
32368         included, therefore not in config.h. stpncpy.h does the replacement,
32369         and stpncpy.c uses it.
32370
32371 2005-03-02  Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
32374         stpncpy.c uses it.
32375
32376 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32377
32378         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
32379         The workaround isn't strictly needed for POSIX conformance, and
32380         it's too much of a pain to configure and maintain.  We'll ask
32381         people to fix their kernels instead.
32382         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
32383         (NANOSLEEP_BUG_WORKAROUND): Remove.
32384         (xnanosleep): Remove the workaround.
32385
32386 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32387
32388         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
32389         Reported by Derek Price.
32390         (Include): Add "timespec.h".
32391
32392         * modules/xnanosleep (Depends-on): Remove gethrxtime.
32393
32394 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32395
32396         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
32397         to detect nanosleep bug.
32398
32399 2005-03-01  Bruno Haible  <bruno@clisp.org>
32400
32401         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
32402
32403 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32404
32405         * modules/gethrxtime: New file.
32406         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
32407         (Depends-on): Add gethrxtime.
32408         (configure.ac): Add gl_XNANOSLEEP.
32409         (Makefile.am): Remove lib_SOURCES line.
32410
32411 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32412
32413         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
32414         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
32415
32416 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32417
32418         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
32419         * lib/timespec.h (gettime): Return void, since it always
32420         succeeds now.  All uses changed.
32421         * lib/gettime.c (gettime) Likewise.
32422         [HAVE_NANOTIME]: Prefer nanotime.
32423         Assume gettimeofday succeeds, as POSIX requires.
32424         Assime time () succeeds, since other code already does.
32425         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
32426         (timespec_subtract): Remove.
32427         (NANOSLEEP_BUG_WORKAROUND): New constant.
32428         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
32429         things considerably.  Use it only on GNU/Linux hosts, since the
32430         workaround shouldn't be needed elsewhere.
32431
32432 2005-02-24  Bruno Haible  <bruno@clisp.org>
32433
32434         * modules/gettext (Files): Add m4/glibc2.m4.
32435
32436 2005-02-24  Bruno Haible  <bruno@clisp.org>
32437
32438         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
32439         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
32440         * m4/progtest.m4:
32441         Update from GNU gettext 0.14.2.
32442         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
32443
32444 2005-02-24  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/localcharset.c: Update from GNU gettext 0.14.2.
32447         * lib/config.charset: Update from GNU gettext 0.14.2.
32448
32449 2005-02-24  Bruno Haible  <bruno@clisp.org>
32450
32451         * lib/gettext.h: Update from GNU gettext 0.14.2.
32452
32453 2005-02-23  Simon Josefsson  <jas@extundo.com>
32454
32455         * m4/iconvme.m4: New file.
32456
32457 2005-02-23  Jim Meyering  <jim@meyering.net>
32458
32459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
32460         change.
32461         Thanks to Bruno Haible for catching it.
32462
32463 2005-02-22  Simon Josefsson  <jas@extundo.com>
32464
32465         * modules/iconvme: New file.
32466
32467         * MODULES.html.sh: Add iconvme.
32468
32469 2005-02-22  Simon Josefsson  <jas@extundo.com>
32470
32471         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
32472
32473 2005-02-22  Simon Josefsson  <jas@extundo.com>
32474
32475         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
32476
32477 2005-02-22  Jim Meyering  <jim@meyering.net>
32478
32479         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
32480         s/ifndef/ifdef/.
32481
32482 2005-02-20  Neil Conway  <neilc@samurai.com>
32483
32484         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
32485         returned by OSX/Darwin if the specified buffer is not large
32486         enough for the hostname.
32487
32488 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32489
32490         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
32491         pass it to _help, otherwise the latter coredumps trying to
32492         dereference state.root_argp.
32493
32494 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32495
32496         * modules/chdir-long (Depends-on): Add memrchr.
32497         * modules/memrchr (Files): Add lib/memrchr.h.
32498         (Include): "memrchr.h".
32499
32500 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32501
32502         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
32503
32504 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32505
32506         * lib/memrchr.h: New file.
32507         * lib/chdir-long.c: Include it.
32508         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
32509         Don't bother including stddef.h.
32510
32511 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
32512
32513         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
32514         inclusion.
32515         Include <sys/types.h>, for dev_t.
32516         (ME_DUMMY, ME_REMOTE): Move from here....
32517         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
32518         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
32519         Dmitry V. Levin.
32520         Include mountlist.h first, to test the interface.
32521
32522 2005-01-29  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/progname.c (program_name): Initialize.
32525         Needed when linking statically on MacOS X.
32526
32527 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32528
32529         Sync from coreutils.
32530         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
32531         (Depends-on): Add c-strtod.
32532         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
32533
32534 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32535
32536         Sync from coreutils.
32537         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
32538
32539         Remove files that are specific to coreutils.
32540         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
32541
32542 2005-01-28  Bruno Haible  <bruno@clisp.org>
32543
32544         * modules/javacomp: New file.
32545         * MODULES.html.sh (Java): Add javacomp.
32546
32547 2005-01-28  Bruno Haible  <bruno@clisp.org>
32548
32549         * m4/javacomp.m4: New file, from GNU gettext.
32550
32551 2005-01-28  Bruno Haible  <bruno@clisp.org>
32552
32553         * lib/javacomp.sh.in: New file, from GNU gettext.
32554         * lib/javacomp.h: New file, from GNU gettext.
32555         * lib/javacomp.c: New file, from GNU gettext.
32556
32557 2005-01-26  Simon Josefsson  <jas@extundo.com>
32558
32559         * lib/gai_strerror.c: Use GPL in header.
32560
32561 2005-01-26  Bruno Haible  <bruno@clisp.org>
32562
32563         * modules/javaexec: New file.
32564         * MODULES.html.sh (Java): Add javaexec.
32565
32566 2005-01-26  Bruno Haible  <bruno@clisp.org>
32567
32568         * m4/javaexec.m4: New file, from GNU gettext.
32569
32570 2005-01-26  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/javaexec.sh.in: New file, from GNU gettext.
32573         * lib/javaexec.h: New file, from GNU gettext.
32574         * lib/javaexec.c: New file, from GNU gettext.
32575
32576 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32577
32578         * modules/lchown (Depends-on): Remove lchown.h
32579
32580 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32581
32582         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32583         must be defined if the header file was not found, in order
32584         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32585
32586 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32587
32588         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32589         initializers for struct pentry_state.
32590         (__argp_error): Check return value of __asprintf
32591         (__argp_failure): Translate error message
32592
32593         * lib/argp-parse.c: Removed braces around the expansion of N_()
32594
32595 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32596
32597         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32598         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32599         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32600         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32601         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32602         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32603         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32604         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32605         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32606         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32607         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32608         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32609         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32610         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32611         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32612         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32613         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32614         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32615         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32616         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32617         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32618         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32619         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32620         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32621         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32622         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32623         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32624         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32625         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32626         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32627         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32628         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32629         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32630         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32631         xstrtol.m4, xstrtoumax.m4, yesno.m4:
32632         Use an all-permissive copyright notice, recommended by RMS.
32633
32634 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32635
32636         * modules/chdir-long (Depends-on): Remove mempcpy.
32637
32638 2005-01-21  Jim Meyering  <jim@meyering.net>
32639
32640         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32641         same value as for Solaris 9.
32642
32643         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32644         component length.  This included changing the parameter to be
32645         of type `char *' rather than `char const *'.
32646         * lib/chdir-long.h (chdir_long): Update prototype.
32647
32648         * lib/openat.c (fdopendir, fstatat): New functions.
32649         * lib/openat.h: Include headers required for use of DIR and struct
32650         stat.
32651         [AT_SYMLINK_NOFOLLOW]: Define.
32652         (fdopendir, fstatat): Add prototypes.
32653
32654 2005-01-21  Bruno Haible  <bruno@clisp.org>
32655
32656         * modules/classpath: New file.
32657         * MODULES.html.sh (Java): Add classpath.
32658
32659 2005-01-21  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/classpath.h: New file, from GNU gettext.
32662         * lib/classpath.c: New file, from GNU gettext.
32663
32664 2005-01-20  Simon Josefsson  <jas@extundo.com>
32665
32666         * modules/version-etc-fsf: New file.
32667
32668 2005-01-20  Simon Josefsson  <jas@extundo.com>
32669
32670         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32671         * lib/version-etc.c: Remove version_etc_copyright.
32672         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32673         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32674
32675 2005-01-20  Simon Josefsson  <jas@extundo.com>
32676
32677         * lib/base64.h (isbase64): Add.
32678
32679         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32680         using a unsigned prototype, don't inline.
32681         (base64_decode): Use it.
32682
32683 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32686         it.
32687
32688 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32689
32690         * lib/save-cwd.c (save_cwd): Remove code to support the case
32691         where fchdir is missing or flaky.
32692
32693 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32694
32695         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32696
32697 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
32698
32699         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32700         AC_LIBSOURCES now does this.
32701         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32702         with new ullong_max module.
32703
32704 2005-01-19  Bruno Haible  <bruno@clisp.org>
32705
32706         * modules/sh-quote: New file.
32707         * MODULES.html.sh (Executing programs): Add sh-quote.
32708
32709 2005-01-19  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/sh-quote.h: New file, from GNU gettext.
32712         * lib/sh-quote.c: New file, from GNU gettext.
32713
32714 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32715
32716         Merge from coreutils.
32717         * m4/ullong_max.m4: New file.
32718         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32719         (gl_MACROS): Assume localeconv exists.
32720
32721 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32722
32723         Merge changes from coreutils, as described below in several
32724         changelogs dated today.
32725
32726         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32727         (O_DIRECTORY): Remove; not needed here, since "." must be
32728         a directory.  All uses removed.
32729         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
32730         universal on Suns, and we also need to test for IRIX.
32731         Revamp code to use 'if' rather than '#if'.
32732         Avoid unnecessary comparison of cwd->desc to 0.
32733
32734         * lib/utimens.c (futimens): Robustify the previous patch, by checking
32735         for known valid error numbers rather than observed invalid ones.
32736
32737 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32738
32739         * modules/ullong_max: New file.
32740
32741         * modules/chdir-long, modules/openat: New files.
32742         * modules/save-cwd (Depends-on): Depend on chdir-long.
32743         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32744
32745 2005-01-18  Jim Meyering  <jim@meyering.net>
32746
32747         Merge from coreutils.
32748         * m4/chdir-long.m4, m4/openat.m4: New files.
32749         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32750         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
32751         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32752         is sane and DOES follow symlinks.  Besides, testing 20 different
32753         systems found no broken chown implementations.
32754         Prompted by a change in rsync's copy of this macro.
32755         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32756
32757         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32758
32759         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32760         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32761         NULL-means-set-to-current-time semantics.
32762         Remove temporary file immediately, rather than waiting
32763         for configure's at-exit trap code to do it.
32764
32765 2005-01-18  Jim Meyering  <jim@meyering.net>
32766
32767         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32768
32769         * lib/utimens.c (futimens): Account for the fact that futimes
32770         can also fail with errno == ENOSYS or errno == ENOENT.
32771         Patch from Dmitry V. Levin.
32772
32773         Change the name of the robust chdir function from chdir to chdir_long.
32774         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32775         (restore_cwd): Use chdir_long, not chdir.
32776         * lib/chdir-long.c: Renamed from chdir.c.
32777         * lib/chdir-long.h: Renamed from chdir.h.
32778         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32779         Hurd.
32780
32781 2005-01-18  Bruno Haible  <bruno@clisp.org>
32782
32783         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32784         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32785         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32786         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32787         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32788         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32789         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32790         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32791         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32792         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32793         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32794         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32795         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32796         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32797         Use an all-permissive copyright notice, recommended by RMS.
32798
32799 2005-01-18  Bob Proulx  <bob@proulx.com>
32800
32801         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32802         simplify offsetof() macro construct to avoid compile failure with
32803         native HP-UX 11.0 ANSI C compiler.
32804
32805 2005-01-17  Bruno Haible  <bruno@clisp.org>
32806
32807         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32808         redundant because stpncpy.m4 takes care of it.
32809
32810 2005-01-17  Bruno Haible  <bruno@clisp.org>
32811
32812         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32813
32814 2005-01-17  Bruno Haible  <bruno@clisp.org>
32815
32816         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32817         used.
32818
32819 2005-01-17  Bruno Haible  <bruno@clisp.org>
32820
32821         * lib/fwriteerror.h (fwriteerror): Change specification to include
32822         fclose.
32823         * lib/fwriteerror.c: Include <stdbool.h>.
32824         (fwriteerror): At the end, close the file stream. Record whether
32825         stdout was already closed.
32826
32827 2005-01-17  Bruno Haible  <bruno@clisp.org>
32828
32829         * lib/execute.c (environ): Declare if needed.
32830         * lib/pipe.c (environ): Likewise.
32831         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32832
32833 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32834
32835         * modules/argp: Depend on vsnprintf
32836
32837 2005-01-10  Jim Meyering  <jim@meyering.net>
32838
32839         * modules/closeout (Depends-on): Add atexit.
32840
32841 2005-01-06  Bruno Haible  <bruno@clisp.org>
32842
32843         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32844
32845 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32846
32847         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32848         definitions to be after all include files, to avoid collisions.
32849         Problem reported by Bob Proulx.
32850
32851 2005-01-04  Jim Meyering  <jim@meyering.net>
32852
32853         Changes imported from coreutils.
32854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32855         as the mkstemp template, use a temporary directory and an
32856         8.3-friendly template to avoid trouble on systems like DJGPP.
32857         Reported by Juan M. Guerrero via Stepan Kasal.
32858         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32859         close. Remove the temporary directory right away, rather than waiting
32860         for configure's at-exit trap code to do it.
32861         Suggestion from Stepan Kasal.
32862
32863 2005-01-01  Simon Josefsson  <jas@extundo.com>
32864
32865         * gnulib-tool: Print #include directives when --import'ing.
32866
32867 2004-12-28  Simon Josefsson  <jas@extundo.com>
32868
32869         * tests/test-base64.c: Include required header files.  Remove
32870         unused variables.
32871
32872 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32873
32874         * modules/error (Depends-on): Remove gettext.
32875
32876 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32877
32878         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32879         not needed.  This removes a dependency on the gettext module.
32880         [defined _LIBC]: Do not include <libintl.h>; not needed.
32881
32882 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32883
32884         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32885         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32886
32887 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32888
32889         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
32890         HAVE_DECL_STRTOLD.
32891
32892 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32893
32894         * modules/getdate (Depends-on): Remove alloca-opt.
32895
32896 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32897
32898         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
32899
32900 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32901
32902         * lib/argp-parse.c: Include <stddef.h>.
32903         (alignof, alignto): New macros.
32904         (parser_init): Don't assume that void * is aligned sufficiently
32905         for struct option.
32906
32907         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
32908         need to extend the stack.
32909         (YYINITDEPTH): New macro, so that the initial stack isn't overly
32910         large.
32911
32912 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32913
32914         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
32915
32916 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32917
32918         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
32919         (2004-10-24) change.  Apparently this was a false alarm.
32920
32921         * modules/getdate: Depend on alloca-opt, not alloca.
32922
32923 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32924
32925         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
32926         Remove now-obsolete comment about AIX.
32927         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
32928         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
32929         (YYMAXDEPTH): New macro.
32930
32931 2004-12-18  Simon Josefsson  <jas@extundo.com>
32932
32933         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
32934
32935 2004-12-18  Bruno Haible  <bruno@clisp.org>
32936
32937         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
32938
32939 2004-12-18  Bruno Haible  <bruno@clisp.org>
32940
32941         * lib/fatal-signal.c (fatal_signals): Make non-const.
32942         (init_fatal_signals): New function.
32943         (uninstall_handlers, install_handlers): Ignore signals that were set to
32944         SIG_IGN.
32945         (at_fatal_signal): Call init_fatal_signals.
32946         (init_fatal_signal_set): Likewise. Ignore signals that were set to
32947         SIG_IGN.
32948         Reported by Paul Eggert.
32949
32950 2004-12-18  Bruno Haible  <bruno@clisp.org>
32951
32952         * doc/alloca.texi: New file.
32953         * doc/alloca-opt.texi: New file.
32954
32955 2004-12-17  Jim Meyering  <jim@meyering.net>
32956
32957         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
32958         Otherwise, install-sh could exit with improper exit status when
32959         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
32960
32961 2004-12-16  Simon Josefsson  <jas@extundo.com>
32962
32963         * tests/test-base64.c: Add license.
32964
32965 2004-12-15  Stepan Kasal  <address@hidden>
32966
32967         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32968
32969 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32970
32971         * modules/getcwd (Files): Add m4/d-ino.m4.
32972         Suggested by Mark D. Baushke.
32973
32974 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32975
32976         * lib/getdate.y (textint): New member "negative".
32977         (time_zone_hhmm): New function.
32978         Expect 14 shift-reduce conflicts, not 13.
32979         (o_colon_minutes): New rule.
32980         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
32981         (yylex): Set the "negative" member of signed numbers.
32982
32983 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32984
32985         * doc/getdate.texi (Time of day items, Time zone items):
32986         Describe new formats +00:00, UTC+00:00.
32987
32988 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32989
32990         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
32991         spurious "-l"s.  Problem reported by Stepan Kasal.
32992
32993 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
32994
32995         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
32996         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
32997
32998 2004-12-04  Simon Josefsson  <jas@extundo.com>
32999
33000         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33001         Vandoorselaere <yoann@prelude-ids.org>.
33002
33003 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33004
33005         Changes imported from coreutils.
33006         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33007         exist.
33008         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33009
33010 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33011
33012         Changes imported from coreutils.
33013         * lib/hard-locale.c: Assume <locale.h> exists.
33014         Include "strdup.h".
33015         (GLIBC_VERSION): New macro.
33016         (hard_locale): Assume setlocale exists.
33017         Rewrite to avoid #ifdef.
33018         Use strdup rather than malloc + strcpy.
33019         * lib/human.c: Assume <locale.h> exists.
33020         (human_readable): Assume localeconv exists.
33021
33022 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33023
33024         * modules/hard-locale (Depends-on): Add strdup.
33025
33026 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
33027
33028         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33029         convert T2, not T.  (Imported from libc.)
33030
33031 2004-11-30  Simon Josefsson  <jas@extundo.com>
33032
33033         * modules/restrict (License): Change to LGPL.
33034
33035 2004-11-30  Simon Josefsson  <jas@extundo.com>
33036
33037         * m4/restrict.m4: Add copyright and copying conditions.
33038
33039 2004-11-30  Simon Josefsson  <jas@extundo.com>
33040
33041         * m4/base64.m4: New file.
33042
33043 2004-11-30  Simon Josefsson  <jas@extundo.com>
33044
33045         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33046         base64.
33047
33048         * tests/test-base64.c: New file.
33049
33050         * modules/base64: New file.
33051
33052 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
33053
33054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33055         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33056
33057         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33058
33059 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
33060
33061         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33062         (__getcwd.c): Don't restore errno; glibc doesn't.
33063         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33064         first, falling back to our code only if its results look suspicious.
33065         Ensure that the resulting buffer is only as large as necessary.
33066
33067         * lib/readutmp.c: Include readutmp.h first.
33068         Include <errno.h>, since readutmp.h no longer does that.
33069         * lib/readutmp.h: Don't include <errno.h>,
33070         <sys/param.h>, <time.h>; not needed to establish interface.
33071         (errno): Remove decl.
33072         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33073         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33074         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33075
33076 2004-11-28  Simon Josefsson  <jas@extundo.com>
33077
33078         * lib/base64.h, base64.c: New file.
33079
33080 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33081
33082         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33083
33084 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
33085
33086         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33087         (Depends-on): Remove pathmax, same.  Add mempcpy.
33088         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33089         (Makefile.am): Append getcwd.h to lib_SOURCES.
33090         (Include): Add getcwd.h.
33091         (Maintainer): Change from Jim Meyering to "all, glibc",
33092         since getdate now uses intended-for-glibc code.
33093         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33094         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
33095
33096 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33097
33098         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33099         HP's ANSI C compiler.
33100         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33101         Declaring int functions causes warnings on some modern systems and
33102         shouldn't be needed to compile on ancient ones.
33103         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33104         defined.
33105
33106         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33107         with the following changes.
33108         (__set_errno): Parenthesize properly.
33109         Include <stdbool.h>.
33110         (MIN, MAX, MATCHING_INO): New macros.
33111         (__getcwd): Define with prototype, not K&R form.
33112         Use heuristics to allocate default buffer on stack if possible.
33113         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33114         behavior, and to avoid the PATH_MAX limit when computing
33115         ../../../../...
33116         Use MATCHING_INO to compare inode number to file.
33117         Check for arithmetic overflow in size calculations.
33118         Fix bug in reallocation of dot array that caused getcwd to fail
33119         on directories nested deeper than 75.
33120         Be more careful about saving errno on error.
33121         Do not use realloc; use only free+malloc, as this is a bit
33122         more flexible and avoids a needless copy operation.
33123         Do not inspect st_dev and st_ino for symbolic links; POSIX
33124         doesn't specify the latter.
33125         Check for closedir errors.
33126         Avoid needless casts.
33127         Use "#ifdef weak_alias" around weak_alias, to be like other
33128         glibc code.
33129         The following changes to getcwd.c have effect only when used in
33130         gnulib; they have no effect inside glibc proper.
33131         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33132         as alloca isn't used.
33133         (alloca, __alloca): Likewise.
33134         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33135         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33136         unconditionally, as gnulib assumes C89 or better.
33137         Do not include <sys/param.h>.
33138         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33139         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33140         better.
33141         (NULL) [!defined NULL]: Remove; we assume C89 or better.
33142         Include <dirent.h> in a way that is compatible with modern Autoconf.
33143         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33144         New macros, if not already defined.
33145         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33146         Use "_LIBC", not "defined _LIBC", for consistency.
33147         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33148         a mempcpy module.
33149         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33150         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
33151         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33152         credit only to Jim Meyering and adjust the copyright dates.
33153         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33154         <stdlib.h>, <unistd.h>, "pathmax.h".
33155         Instead, include "xgetcwd.h" (first) and "getcwd.h".
33156         (INITIAL_BUFFER_SIZE): Remove.
33157         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33158
33159 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33160
33161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33162         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
33163         Use the _ONCE methods, for efficiency.
33164         Check for fcntl.h.  In test program, include <errno.h>
33165         and <fcntl.h> if available.  Remove old K&R cruft from
33166         test program.  Check for common errors in GNU/Linux,
33167         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
33168         don't do AC_LIBOBJ, as that's getcwd.m4's job.
33169         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33170         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
33171         name accordingly.
33172         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
33173         accommodate new getcwd.c.
33174         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33175         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33176         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33177         that's all we need now.
33178
33179 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33180
33181         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33182         argp-parse.c depends on getopt internals, that means we should
33183         always use our getopt, to be on the safe side.
33184         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33185         order not to spoil the result of an eventual previous invocation
33186         of gl_GETOPT_SUBSTITUTE.
33187
33188 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33189
33190         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33191         redefinition warnings. To avoid them, include the defines
33192         in `#if !defined __need_getopt ... #endif'. The only place
33193         where __getopt_argv_const is used is in definitions
33194         of getopt_long and getopt_long_only below, which are as well
33195         protected by `#ifndef __need_getopt'.
33196         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33197         __need_getopt after including <stdio.h> and <unistd.h> These
33198         headers might have defined it.
33199
33200 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
33201
33202         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33203
33204 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
33205
33206         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33207         (futimens): New function, which uses futimes if available.
33208         (futimens, utimens): Support timespec==NULL, with same semantics
33209         as utime and utimens.
33210         * lib/utimens.h (futimens): New decl.
33211
33212 2004-11-23  Jim Meyering  <jim@meyering.net>
33213
33214         * lib/getopt_.h: Remove trailing blanks.
33215
33216 2004-11-23  Jim Meyering  <jim@meyering.net>
33217
33218         * lib/__fpending.c: Add comment.
33219
33220 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
33221
33222         * modules/canonicalize (Depends-on): Add xreadlink.
33223         Problem reported by James Youngman.
33224
33225 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
33226
33227         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33228         New macros.
33229         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33230         optopt): Use them instead of invoking ## directly; otherwise, the
33231         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33232
33233 2004-11-19  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/strtok_r.c: Move comments from here...
33236         * lib/strtok_r.h: ... to here.
33237
33238 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33239
33240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33241         implementations that mishandle size_t overflow.
33242
33243 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33244
33245         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33246         might fail.  Problem reported by Yoann Vandoorselaere.
33247         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33248         implementations that mishandle size_t overflow.
33249
33250 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33251
33252         * modules/canon-host (Depends-on): Add strdup.
33253
33254 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33255
33256         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33257
33258 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33259
33260         * lib/canon-host.c: Include "strdup.h".
33261         (canon_host): Use getaddrinfo if available, so that IPv6 works.
33262         Use strdup instead of malloc/strcpy to duplicate strings.
33263
33264         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33265         (human_space_before_unit): New constant.
33266         * lib/human.c (human_readable): Support it.
33267
33268         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33269         (xgetcwd): Set errno correctly when failing.
33270         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33271         the failure is actually due to a PATH_MAX problem.
33272
33273         Further getopt changes to make it more likely that glibc will
33274         buy the changes back.
33275         * lib/getopt.c (POSIXLY_CORRECT): New constant.
33276         (getopt): Use it, so to preserve glibc semantic
33277         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33278         when compiling for libc.
33279         * lib/getopt_.h (__getopt_argv_const): Bring it back.
33280         (getopt_long, getopt_long_only): Use it.
33281
33282         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33283         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
33284         (getopt): Argv is now char * const *, as per standard.
33285         (_getopt_internal_r, _getopt_internal): Argv is now char **,
33286         not char *__getopt_argv_const *.
33287         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33288         _getopt_long_only_r): Likewise.
33289         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33290         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33291         _getopt_long_r, _getopt_long_only_r): Likewise.
33292         * lib/getopt_.h (__getopt_argv_const): Remove.
33293         (getopt): Argv is now char * const *, as per standard.
33294
33295         * lib/getdate.y (tORDINAL): New token.
33296         (day, relunit): Allow it for relative times.
33297         (relative_time_table): Use tORDINAL for ordinals.
33298
33299 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33300
33301         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33302         Document that "second" isn't allowed as an ordinal number.
33303
33304 2004-11-16  Jim Meyering  <jim@meyering.net>
33305
33306         * modules/closeout (Depends-on): Add fpending.
33307
33308 2004-11-15  Jim Meyering  <jim@meyering.net>
33309
33310         * lib/closeout.c: Include "__fpending.h" once again.
33311         Include <stdbool.h>.
33312         (close_stdout): Don't fail just because stdout was closed initially,
33313         since some programs don't write to stdout in the normal course of
33314         operation (other than --version and --help), and we don't want this
33315         function to make e.g. `touch file >&-' fail.
33316         But do fail if it was closed and someone has tried to write to it.
33317         E.g., `printf foo >&-' must fail.
33318
33319 2004-11-13  Jim Meyering  <jim@meyering.net>
33320
33321         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33322
33323 2004-11-12  Simon Josefsson  <jas@extundo.com>
33324
33325         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33326         small doc fix is still pending.
33327
33328 2004-11-11  Simon Josefsson  <jas@extundo.com>
33329
33330         * modules/strtok_r: New file.
33331
33332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33333         strtok_r.
33334
33335 2004-11-11  Simon Josefsson  <jas@extundo.com>
33336
33337         * m4/strtok_r.m4: New file.
33338
33339         * m4/getopt.m4: Replace opterr.
33340
33341 2004-11-11  Simon Josefsson  <jas@extundo.com>
33342
33343         * lib/strtok_r.h, strtok_r.c: New file.
33344
33345 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
33346
33347         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
33348         of replacing opterr, getopt, etc.  This should handle the
33349         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
33350
33351 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
33352
33353         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
33354         we can stop lying to compilers about the constness of argv when we
33355         are compiled outside glibc.
33356         (getopt, getopt_long, getopt_long_only): Use it.
33357         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33358         _getopt_internal, getopt): Likewise.
33359         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33360         _getopt_long_only_r): Likewise.
33361         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33362         _getopt_long_r, _getopt_long_only_r): Likewise.
33363
33364         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
33365         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
33366         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
33367         the other external symbols.
33368         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
33369         declaration, since the above renaming now works around collisions.
33370
33371 2004-11-11  Jim Meyering  <jim@meyering.net>
33372
33373         * lib/linebreak.c: Remove trailing blanks.
33374         * lib/alloca_.h: Likewise.
33375         * lib/acosl.c: Likewise.
33376         * lib/euidaccess.c: Likewise.
33377         * lib/allocsa.h: Likewise.
33378
33379 2004-11-10  Simon Josefsson  <jas@extundo.com>
33380
33381         * m4/getaddrinfo.m4: New file.
33382
33383 2004-11-10  Simon Josefsson  <jas@extundo.com>
33384
33385         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
33386
33387 2004-11-10  Simon Josefsson  <jas@extundo.com>
33388
33389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33390         getaddrinfo.
33391
33392         * modules/getaddrinfo: New file.
33393
33394 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33395
33396         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
33397
33398 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33399
33400         * lib/mktime.c (SHR): New macro, which is a portable
33401         substitute for >> that should work even on Crays.
33402         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
33403         Problem reported by Mark D. Baushke in
33404         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
33405         * lib/getdate.y (SHR): Likewise.
33406         (tm_diff): Use it.
33407         * lib/strftime.c (SHR): Likewise.
33408         (tm_diff): Use it.
33409         * lib/quotearg.c (struct quoting_options): Use unsigned int for
33410         quote_these_too, so that right shifts are well defined.  All uses
33411         changed.
33412
33413 2004-11-10  Jim Meyering  <jim@meyering.net>
33414
33415         Ensure that no close failure goes unreported.
33416         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
33417         return early when it seems there's nothing to flush.
33418         Don't include __fpending.h.
33419
33420 2004-11-10  Jim Meyering  <jim@meyering.net>
33421
33422         * modules/closeout (Depends-on): Remove fpending.
33423
33424 2004-11-10  Jim Meyering  <jim@meyering.net>
33425
33426         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
33427
33428 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33429
33430         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
33431         gl_FUNC_STRFTIME.
33432         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
33433         and AC_REQUIRE when possible, to avoid duplicate checks.
33434         Check for <wchar.h>.
33435
33436 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33437
33438         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
33439
33440 2004-11-09  Bruno Haible  <bruno@clisp.org>
33441
33442         * m4/sockpfaf.m4: New file.
33443
33444 2004-11-05  Bruno Haible  <bruno@clisp.org>
33445
33446         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
33447         Reported by Mark D. Baushke <mdb@cvshome.org>.
33448
33449 2004-11-04  Bruno Haible  <bruno@clisp.org>
33450
33451         2004-09-11  Bruno Haible  <bruno@clisp.org>
33452                 * allocsa.valgrind: New file.
33453         2004-02-06  Bruno Haible  <bruno@clisp.org>
33454                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
33455                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
33456                 Reported by Christopher Seip <chris.seip@hp.com>.
33457
33458 2004-11-04  Bruno Haible  <bruno@clisp.org>
33459
33460         * modules/allocsa (Files): Add lib/allocsa.valgrind.
33461         (Makefile.am): Distribute it.
33462
33463 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33464
33465         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
33466         with errno == ERANGE if the buffer is too small.
33467         Problem reported by Mark D. Baushke.
33468
33469 2004-11-03  Albert Chin  <china@thewrittenword.com>
33470             Paul Eggert  <eggert@cs.ucla.edu>
33471
33472         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
33473         equivalent, substitute $ac_type for equivalent type rather than
33474         blindly using uint32_t *always* which won't work if uint32_t is not
33475         available.  Define _UINT32_T to work around typedef of uint32_t if
33476         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
33477         2.5.1.
33478
33479 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33480
33481         * m4/jm-macros.m4: Sync from coreutils.
33482         (gl_MACROS): Check for mbrlen, for pathchk.
33483         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
33484
33485 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33486
33487         * lib/xreadlink.c (MAXSIZE): New macro.
33488         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
33489         size does not exceed MAXSIZE.  Avoid cast.
33490         As suggested by Mark D. Baushke in
33491         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
33492         if readlink fails with buffer size just under MAXSIZE, try again
33493         with MAXSIZE.
33494
33495 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33496
33497         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
33498
33499 2004-11-02  Derek R. Price  <derek@ximbiot.com>
33500         and  Paul Eggert  <eggert@cs.ucla.edu>
33501
33502         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
33503         (get_date): Overparenthesize to avoid GCC warning.
33504
33505 2004-11-02  Bruno Haible  <bruno@clisp.org>
33506
33507         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
33508         returns void.
33509
33510 2004-11-02  Bruno Haible  <bruno@clisp.org>
33511
33512         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
33513         function returns void.
33514
33515 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33516
33517         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
33518         fflush_unlocked, flockfile, funlockfile, funlockfile,
33519         fputs_unlocked, putc_unlocked.
33520
33521 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33522
33523         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33524         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
33525         already declared.
33526
33527 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         * modules/getdate (Files): Add doc/getdate.texi.
33530         (Depends-on): Add setenv, xalloc.
33531
33532 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33533
33534         * lib/getdate.y: Add support for TZ="foo" within a date string.
33535         Fix some bugs near time_t boundaries.  Reject dates with
33536         out-of-range components, e.g., "Sept 31".
33537         Include <stdlib.h>, "setenv.h", "xalloc.h".
33538         (ISDIGIT_LOCALE): Remove; unused.
33539         Note that the TZ and time functions used here are not reentrant.
33540         (mktime_ok, get_tz): New functions.
33541         (TZBUFSIZE): New constant.
33542         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
33543         This requires that we sometimes generate our own TZ="XXX..." setting.
33544
33545 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33546
33547         * doc/getdate.texi: New file, from coreutils with modifications for
33548         the new TZ parsing.
33549
33550 2004-10-27  Derek R. Price  <derek@ximbiot.com>
33551
33552         * lib/mktime.c (not_equal_tm): Remove redundant check.
33553
33554 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33555
33556         * modules/regex (lib_SOURCES): Add regex.c.
33557         Reported by James Youngman in
33558         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33559
33560 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33561
33562         * lib/getdate.y: Use Bison 1.875 features, and some minor
33563         code cleanups.  This change does not affect semantics.
33564         Don't include <stdlib.h>; no longer needed.
33565         Don't include unlocked-io.h; only the "#if TEST" code uses
33566         stdio, and performance isn't crucial there.
33567         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33568         Bison 1.875 features as described below.
33569         All uses of "PC." replaced by "pc->".
33570         (YYSTYPE): Add a forward declaration.
33571         (yylex, yyerror): Use full prototypes in forward decls.
33572         Use "%pure-parser" rather than obsolescent "%pure_parser".
33573         Use %parse-param and %lex-param instead of obsolescent
33574         YYPARSE_PARAM and YYLEX_PARAM.
33575         (meridian_table, month_and_day_table, time_units_table,
33576         relative_time_table, time_zone_table, military_table,
33577         lookup_zone, lookup_word, get_date):
33578         Use NULL instead of 0 where appropriate.
33579         (to_hour): Avoid abort (), to avoid a dependency on
33580         stdlib.h.
33581         (yyerror, yylex): Now accepts parser_control * arg.
33582         (main) [TEST]: Use '\0' rather than 0 for char.
33583
33584 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33585
33586         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33587
33588 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33589
33590         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33591         It's now the caller's responsibility to handle the case where
33592         !HAVE_GETPAGESIZE && !defined getpagesize.
33593
33594         * lib/mktime.c (leapyear): Arg is long int, not int.
33595
33596 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
33597
33598         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33599
33600 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33601
33602         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33603         missing.  Problem reported by James Youngman.
33604
33605 2004-10-16  Simon Josefsson  <jas@extundo.com>
33606
33607         * gnulib-tool: Fix comments.  Fix parse problem.
33608         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33609
33610 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33611
33612         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33613         implementation of getopt_long.  Problem reported by Alexander Taler in:
33614         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33615
33616 2004-10-15  Bruno Haible  <bruno@clisp.org>
33617
33618         * gnulib-tool: Untabify. Initialize supplied_libname.
33619         (func_usage): More homogenous output.
33620         (func_modules_transitive_closure, func_modules_to_filelist,
33621         func_emit_lib_Makefile_am): New functions.
33622         (func_import): New function, extracted from big case statement. Use
33623         func_get_license, func_modules_transitive_closure,
33624         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33625         opt_lgpl. Don't use test -a, as it's not portable.
33626         (func_create_testdir): Use func_modules_transitive_closure,
33627         func_modules_to_filelist, func_emit_lib_Makefile_am.
33628
33629 2004-10-15  Bruno Haible  <bruno@clisp.org>
33630
33631         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33632
33633 2004-10-15  Bruno Haible  <bruno@clisp.org>
33634
33635         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33636         the portions belonging to each module.
33637         Suggested by Derek Robert Price <derek@ximbiot.com>.
33638
33639 2004-10-12  Simon Josefsson  <jas@extundo.com>
33640
33641         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33642         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33643         to real functions.
33644
33645 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33646
33647         * modules/vsnprintf: New file.
33648
33649 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33650
33651         * m4/vsnprintf.m4: New file.
33652
33653 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33654
33655         * lib/vsnprintf.h: New file.
33656         * lib/vsnprintf.c: New file.
33657
33658 2004-10-11  Bruno Haible  <bruno@clisp.org>
33659
33660         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33661         vsnprintf.
33662
33663 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33664
33665         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33666
33667 2004-10-07  Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33670         fits into the provided buffer.
33671
33672 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33673
33674         * lib/diacrit.c, diacrit.h: Add GPL notice.
33675
33676         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33677         notice.
33678         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33679         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33680         This avoids a potential constant-folding bug.
33681
33682 2004-10-05  Bruno Haible  <bruno@clisp.org>
33683
33684         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33685         for the declaration of strsep.
33686
33687 2004-10-05  Bruno Haible  <bruno@clisp.org>
33688
33689         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33690
33691 2004-10-04  Simon Josefsson  <jas@extundo.com>
33692
33693         * modules/memmem: New file.
33694         * tests/test-memmem.c: New file.
33695         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33696
33697 2004-10-04  Simon Josefsson  <jas@extundo.com>
33698
33699         * m4/memmem.m4: New file.
33700
33701 2004-10-04  Simon Josefsson  <jas@extundo.com>
33702
33703         * lib/memmem.h: New file.
33704         * lib/memmem.c: New file, taken from glibc.
33705
33706 2004-10-04  Simon Josefsson  <jas@extundo.com>
33707
33708         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33709         '#ifdef USE_UNLOCKED_IO'.
33710
33711 2004-10-04  Simon Josefsson  <jas@extundo.com>
33712
33713         * config/srclist.txt: Add memmem from glibc.
33714
33715 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33716
33717         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33718
33719         * modules/argmatch, modules/argp, modules/closeout, modules/error,
33720         modules/exclude, modules/getdate, modules/getline,
33721         modules/getndelim2, modules/getpass, modules/getpass-gnu,
33722         modules/getusershell, modules/linebuffer, modules/md5,
33723         modules/mountlist, modules/posixtm, modules/readtokens,
33724         modules/readutmp, modules/regex, modules/sha1,
33725         modules/version-etc, modules/yesno:
33726         Remove dependency on unlocked-io.
33727
33728 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33729
33730         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
33731
33732         * m4/unlocked-io.m4: Add copyright notice.
33733         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33734
33735 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33736
33737         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
33738         * lib/xmalloc.c (xmemdup): Likewise.
33739         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33740         XFREE): Remove these long-obsolescent macros.
33741         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33742         * lib/xstrdup.c: Remove.
33743
33744         * lib/regex.c (re_comp): Cast gettext return value to char *,
33745         Problem reported by Martin Neitzel via Mark D. Baushke.
33746
33747 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33748
33749         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33750         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33751         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33752         regex.c, sha1.c, version-etc.c, yesno.c:
33753         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33754         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33755         the includer's responsibility.
33756
33757         Sync from coreutils.
33758
33759         * lib/modechange.c (mode_compile): Don't decrement a pointer that
33760         points to the start of a string, as the C Standard says the
33761         resulting behavior is undefined.
33762
33763         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33764         simple -> simple_backups, numbered_existing ->
33765         numbered_existing_backups, numbered -> numbered_backups
33766         to avoid shadowing problems.  All uses changed.
33767         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33768         * lib/backupfile.c (check_extension, numbered_backup):
33769         Rename locals to avoid shadowing 'basename'.
33770         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33771         once.
33772
33773         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33774         * lib/.cvsignore: Add getopt.h.
33775
33776 2004-10-04  Bruno Haible  <bruno@clisp.org>
33777
33778         * modules/README: New file.
33779         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33780         not a module.
33781
33782 2004-10-02  Jim Meyering  <jim@meyering.net>
33783
33784         * lib/dirfd.h, getpagesize.h: Add copyright notice.
33785
33786 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33787
33788         * modules/strsep: New file.
33789
33790 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33791
33792         * m4/strsep.m4: New file.
33793
33794 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33795
33796         * lib/strsep.h: New file.
33797         * lib/strsep.c: New file.
33798
33799 2004-10-01  Simon Josefsson  <jas@extundo.com>
33800
33801         * lib/snprintf.c (snprintf): Handle size==0.
33802
33803 2004-10-01  Simon Josefsson  <jas@extundo.com>
33804             Bruno Haible  <bruno@clisp.org>
33805
33806         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33807         (snprintf): Declare 'args'.
33808
33809 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
33810
33811         * lib/snprintf.c: Remove comments as to why each header is needed.
33812
33813 2004-10-01  Bruno Haible  <bruno@clisp.org>
33814
33815         * MODULES.html.sh: Add strsep.
33816
33817 2004-09-30  Simon Josefsson  <jas@extundo.com>
33818
33819         * modules/snprintf: New file.
33820
33821 2004-09-30  Simon Josefsson  <jas@extundo.com>
33822
33823         * m4/snprintf.m4: New file.
33824
33825 2004-09-30  Simon Josefsson  <jas@extundo.com>
33826
33827         * lib/snprintf.h, lib/snprintf.c: New files.
33828
33829 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33830
33831         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33832         (hol_entry_help): Never translate an empty string.
33833         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33834         * lib/argp.h (OPTION_NO_TRANS): New option.
33835
33836 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33837
33838         * modules/argp (Maintainer): Replace Simon Josefsson
33839         by Sergey Poznyakoff.
33840
33841 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33842
33843         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33844         changes merged back into glibc.
33845
33846 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33847
33848         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33849
33850 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
33851
33852         * lib/xvasprintf.c: Include xalloc.h.
33853         (xvasprintf): Use xalloc_die, not xmalloc_die.
33854
33855 2004-09-29  Bruno Haible  <bruno@clisp.org>
33856
33857         * modules/alloca-opt: New file, derived from modules/alloca.
33858         * modules/allocsa: Depend on alloca-opt instead of alloca.
33859         * modules/setenv: Likewise.
33860         * modules/vasnprintf: Likewise.
33861         * MODULES.html.sh: Add alloca-opt.
33862
33863 2004-09-28  Simon Josefsson  <jas@extundo.com>
33864
33865         * gnulib-tool: New parameter --lgpl, to asseert that modules are
33866         LGPL, and to replace license template from GPL to LGPL.
33867
33868 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33869
33870         * modules/dummy: Change license to LGPL.
33871
33872 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33873
33874         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33875
33876 2004-09-24  Simon Josefsson  <jas@extundo.com>
33877
33878         * modules/minmax (License): Change from GPL to LGPL.
33879
33880 2004-09-23  Simon Josefsson  <jas@extundo.com>
33881
33882         * gnulib-tool (--import): Typo.
33883
33884 2004-09-23  Simon Josefsson  <jas@extundo.com>
33885
33886         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33887
33888 2004-09-22  Bruno Haible  <bruno@clisp.org>
33889
33890         * modules/*: Add 'License' field.
33891         * gnulib-tool: Accept --extract-license option.
33892         (func_get_license): New function.
33893
33894 2004-09-21  Bruno Haible  <bruno@clisp.org>
33895
33896         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33897         Reported by Simon Josefsson.
33898
33899 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33900
33901         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
33902         gl_AC_TYPE_LONG_LONG.
33903
33904 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33905
33906         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
33907
33908 2004-09-18  Simon Josefsson  <jas@extundo.com>
33909         and  Paul Eggert  <eggert@cs.ucla.edu>
33910
33911         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
33912         calls with autoreconf.  Define GL_LIB.
33913
33914 2004-09-14  Karl Berry  <karl@gnu.org>
33915
33916         * config/srclist.txt: unsync setenv.c, sigh.
33917
33918 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33919
33920         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
33921         Problem reported by Bruno Haible in:
33922         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
33923
33924 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33925
33926         * config/srclist.txt: Comment out argp-pvh.c.
33927
33928 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
33929
33930         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
33931         in case some system header has #define'd it.  Problem reported by
33932         Soeren D. Schulze in
33933         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
33934
33935 2004-09-09  Karl Berry  <karl@gnu.org>
33936
33937         * regex.[ch]: delete from the root.  These were supposed to be
33938                 synced with emacs cvs, but this has not happened for about
33939                 a year, and anyway nothing else uses emacs regex.[ch].
33940                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
33941                 lib/regex[.ch] is untouched.
33942
33943 2004-09-09  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
33946
33947 2004-09-09  Bruno Haible  <bruno@clisp.org>
33948
33949         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
33950         modifications.
33951         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
33952
33953 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33954
33955         * modules/xvasprintf: New file.
33956         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
33957
33958 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33959
33960         * lib/xvasprintf.h: New file.
33961         * lib/xvasprintf.c: New file.
33962         * lib/xasprintf.c: New file.
33963
33964 2004-09-08  Bruno Haible  <bruno@clisp.org>
33965
33966         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33967
33968 2004-09-08  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
33971         length is > INT_MAX.
33972         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
33973         more.
33974
33975 2004-09-08  Bruno Haible  <bruno@clisp.org>
33976
33977         * lib/stdint_.h: New file, taken from GNU clisp.
33978
33979 2004-09-08  Bruno Haible  <bruno@clisp.org>
33980             Oskar Liljeblad  <oskar@osk.mine.nu>
33981
33982         * modules/stdint: New file.
33983         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
33984
33985 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33986
33987         Import from coreutils.
33988         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
33989         strings on unbounded length.  alloca's performance benefits aren't
33990         that important here.
33991         (V_STRDUP): Remove.
33992         (parse_with_separator): New function, with most of the internals
33993         of the old parse_user_spec.  Allow user to omit both user and group,
33994         for compatibility with FreeBSD.
33995         Clone only the user name, not the entire spec.
33996         Do not set *uid, *gid unless entirely successful.
33997         Avoid memory leak in some failing cases.
33998         Fix regression for USER.GROUP reported by Dmitry V. Levin in
33999         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34000         (parse_user_spec): Rewrite to use parse_with_separator.
34001
34002 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34003
34004         * modules/userspec: Don't depend on alloca.
34005
34006 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34007
34008         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34009
34010 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34011
34012         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34013         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34014         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
34015
34016 2004-08-16  Simon Josefsson  <jas@extundo.com>
34017
34018         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34019         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34020         Add --dry-run for --import.
34021         Let user provided command line parameters override configure.ac
34022         settings.
34023
34024 2004-08-12  Simon Josefsson  <jas@extundo.com>
34025
34026         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34027         as discussed with Paul Eggert in threads rooted at
34028         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34029         and
34030         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34031         Before, the test was empty, and relied on ELIDE_CODE in source
34032         code.)
34033         (gl_PREREQ_GETOPT): New macro.
34034         (gl_GETOPT): Use them.
34035
34036 2004-08-12  Simon Josefsson  <jas@extundo.com>
34037
34038         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34039         * lib/getopt_.h: Renamed from getopt.h.
34040
34041 2004-08-12  Simon Josefsson  <jas@extundo.com>
34042
34043         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34044         Change default library name from libfoo to libgnu.
34045         Now, if you have a configure.ac that says:
34046                 gl_SOURCE_BASE(gl)
34047                 gl_M4_BASE(gl/m4)
34048                 gl_MODULES(error getopt etcetera)
34049                 gl_INIT
34050         you can import all you need by running:
34051                 ../gnulib/gnulib-tool --import
34052
34053         * modules/getopt (Files): Rename getopt.h to getopt_.h.
34054         (Makefile.am): Rewrite, use logic from argz.
34055         (Include): Use <getopt.h> instead of "getopt.h".
34056
34057 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34058
34059         * modules/argp (Files): Add m4/unlocked-io.m4.
34060         (Depends-on): Add extensions.
34061
34062 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34063
34064         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34065         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34066         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34067         Check for program_invocation_name, program_invocation_short_name,
34068         flockfile, funlockfile, features.h, _getopt_long_only_r.
34069
34070 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34071
34072         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34073         its complicated substitute.
34074         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34075         and program_invocation_name.
34076         (__argp_basename) [!_LIBC]: Remove; the only use was
34077         replaced by its body.
34078         (__argp_short_program_name): Change condition from
34079         !defined __argp_short_program_name to
34080         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34081         to match argp-namefrob.h.
34082         (__argp_failure): Don't assume strerror_r returns char *.
34083         * lib/argp-parse.c (N_): Define unconditionally.
34084         (argp_default_options): Fill out initializers with 0 to avoid
34085         gcc warnings.
34086
34087 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34088
34089         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34090         getopt1.c.
34091
34092 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34093
34094         Merge from coreutils.
34095
34096         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34097
34098         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34099         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34100
34101 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34102
34103         Merge from coreutils.
34104
34105         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34106         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
34107         for Reliant Unix 5.43.
34108
34109         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34110         (union fooround): Use uintmax_t, not long int.
34111         The rest is a merge from libc:
34112         [defined _LIBC]: Include <shlib-compat.h>.
34113         (_obstack) [defined _LIBC]: Remove after 2.3.4.
34114
34115         * lib/settime.c (settime): Recode to avoid warning with
34116         Sun Forte C 6U2.
34117
34118         * lib/strverscmp.c: Convert to UTF-8.
34119
34120 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34121
34122         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34123         m4/uintmax_t.m4.
34124
34125 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34126
34127         * modules/xalloc-die: New file.
34128         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34129
34130         * modules/md5 (Files): Add m4/uint32_t.m4.
34131         * modules/sha1: Renamed from modules/sha.
34132         (Files):
34133         Rename lib/sha.h to lib/sha1.h.
34134         Rename lib/sha.c to lib/sha1.c.
34135         Rename m4/sha.m4 to m4/sha1.m4.
34136         (lib_SOURCES): Likewise.
34137         (configure.ac): Rename gl_SHA to gl_SHA1.
34138         (Include): sha.h -> sha1.h.
34139
34140 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34141
34142         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34143         * m4/sha1.m4: Renamed from sha.m4.
34144         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
34145
34146 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34147
34148         * lib/obstack.h (obstack_empty_p):
34149         Don't assume that chunk->contents is suitably aligned.
34150         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34151         Likewise. Problem reported by Benno in
34152         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34153
34154         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34155         readable.  This could be improved further but it'd take some work.
34156
34157 2004-08-08  Simon Josefsson  <jas@extundo.com>
34158
34159         * modules/xgethostname (Depends-on): Remove exit and error (not
34160         used).
34161
34162         * modules/getpass-gnu: Add getpass.h.
34163         (Depends-on): Add stdbool.
34164         * modules/getpass: Add getpass.h.
34165
34166 2004-08-08  Simon Josefsson  <jas@extundo.com>
34167
34168         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34169         Check getpass declaration.
34170
34171 2004-08-08  Simon Josefsson  <jas@extundo.com>
34172
34173         * lib/xgethostname.c: Don't include error.h (not used).
34174
34175         * lib/getpass.h: Add.
34176         * lib/getpass.c: Include getpass.h first.
34177
34178 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
34179
34180         * lib/xalloc-die.c: New file.
34181         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34182         All uses removed.
34183         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34184         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34185         xalloc-die.c.
34186         (_, N_, xalloc_die): Move to xalloc-die.c.
34187         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34188         so that we needn't mess with xalloc_msg_memory_exhausted.
34189
34190         * lib/sha1.h: Renamed from sha.h.
34191         (SHA1_H): Renamed from _SHA_H.
34192         (sha1_ctx): Renamed from sha_ctx.
34193         (sha1_init_ctx): Renamed from sha_init_ctx.
34194         (sha1_process_block): Renamed from sha_process_block.
34195         (sha1_process_bytes): Renamed from sha_process_bytes.
34196         (sha1_finish_ctx): Renamed from sha_finish_ctx.
34197         (sha1_read_ctx): Renamed from sha_read_ctx.
34198         (sha1_stream): Renamed from sha_stream.
34199         (sha1_buffer): Renamed from sha_buffer.
34200         * lib/sha1.c: Likewise; renamed from sha.c.
34201         Do not include <sys/types.h>.
34202         Include <stddef.h> rather than <stdlib.h>.
34203
34204 2004-08-08  Bruno Haible  <bruno@clisp.org>
34205
34206         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34207         FILESYSTEM_PREFIX_LEN.
34208         * lib/progreloc.c: Likewise.
34209         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34210
34211 2004-08-06  Simon Josefsson  <jas@extundo.com>
34212
34213         * modules/progname (Depends-on): Don't depend on stdbool.
34214
34215 2004-08-06  Simon Josefsson  <jas@extundo.com>
34216
34217         * modules/getsubopt: New file.
34218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34219         getsubopt.
34220
34221 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34222
34223         More merge from coreutils.
34224
34225         * m4/utimens.m4, m4/utimecmp.m4: New files.
34226         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34227         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34228         prereq.m4, sha.m4: Import changes from coreutils.
34229
34230 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34231
34232         More merge from coreutils.
34233         * modules/raise, modules/readtokens0, modules/utimens:
34234         * modules/utimecmp, module/xnanosleep: New files.
34235         * modules/strftime: Add lib/strftime.h.
34236         Change include from <time.h> to "strftime.h".
34237         * modules/yesno: Add lib/yesno.h.
34238         * modules/backupfile: Remove lib/addext.c.
34239         * modules/euidaccess: Add stat-macros.h.
34240         * modules/canonicalize, modules/euidaccess,
34241         modules/filemode, modules/lchown, modules/makepath,
34242         modules/rmdir, modules/stat: Likewise.
34243
34244 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34245
34246         Merge from tar.
34247         * lib/argp-help.c (make_hol, hol_append): Don't assume that
34248         SIZE_MAX is a valid preprocessor constant.
34249         (__argp_basename): Change from "#ifndef _LIBC"
34250         to "#ifndef __argp_short_program_name", so that
34251         we don't compile these functions for tar.
34252
34253         More merges from coreutils.
34254         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34255         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34256         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34257         * lib/addext.c: Remove; no longer needed.
34258         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34259         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34260         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34261         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34262         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34263         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34264         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34265         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34266         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34267         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34268         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34269         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34270         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34271         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34272         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34273         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34274         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34275         Import changes from coreutils.
34276
34277 2004-08-05  Simon Josefsson  <jas@extundo.com>
34278
34279         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34280
34281 2004-08-05  Simon Josefsson  <jas@extundo.com>
34282
34283         * m4/getsubopt.m4: New file.
34284
34285 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34286
34287         Merge from coreutils.
34288
34289         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34290         * m4/getcwd-path-max.m4: New files.
34291
34292         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34293         FILESYSTEM_PREFIX_LEN ->
34294         FILE_SYSTEM_PREFIX_LEN.
34295         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34296         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34297         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34298         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34299
34300         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34301         prerequisite modules now handle the DOS stuff.
34302         Don't check for unistd.h.
34303
34304 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34305
34306         Merge from coreutils.
34307
34308         * lib/.gdb-history: Remove; this doesn't belong here.
34309
34310         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34311         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34312         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34313         * lib/getcwd.c: New files.
34314
34315         * lib/dirname.h: Include <stdbool.h>.
34316         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34317         for consistency with POSIX terminology.  All uses changed.
34318         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34319         (strip_trailing_slashes): Use bool for booleans.
34320         * lib/stripslash.c (strip_trailing_slashes): Likewise.
34321
34322         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34323         sometimes returns a positive errno value even when it succeeds.
34324         (print_errno_message) [!LIBC]: Fall back on strerror if
34325         __strerror_r fails.
34326
34327         * lib/path-concat.c (mempcpy): Don't define if a system header defines
34328         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34329         (longest_relative_suffix): New function.
34330         (path_concat): Use it.  Assume first argument is not NULL.
34331         Port to DOS.  Omit redundant separators.
34332         Report an error instead of returning NULL.
34333         Use mempcpy instead of memcpy.
34334         (xpath_concat): Remove: not declared or used.
34335
34336         * lib/same.h: Include <stdbool.h>
34337         (same_name): Return bool, not int.
34338         * lib/same.c (same_name): Likewise.
34339         (errno): Don't declare; we assume C89 or better now.
34340
34341         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34342         if not already defined.
34343
34344         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34345         * lib/dup-safer.c (errno): Likewise.
34346
34347 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34348
34349         Merge from coreutils.
34350         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
34351         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
34352         * modules/path-concat: Don't depend on strdup.
34353
34354 2004-08-03  Simon Josefsson  <jas@extundo.com>
34355
34356         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
34357         * lib/progname.h: Don't include stdbool.h.
34358
34359 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34360
34361         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
34362         * MODULES.html.sh (func_all_modules): Remove fatal.
34363
34364 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34365
34366         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
34367
34368 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34369
34370         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
34371         working.
34372
34373 2004-08-02  Simon Josefsson  <jas@extundo.com>
34374
34375         * lib/getsubopt.h: New file, with comments from Bruno Haible.
34376         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
34377         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
34378
34379 2004-08-01  Simon Josefsson  <jas@extundo.com>
34380
34381         * lib/xgetdomainname.c: Include stdlib.h, for free().
34382
34383 2004-07-19  Bruno Haible  <bruno@clisp.org>
34384
34385         * MODULES.html.sh (func_all_modules): Add dummy.
34386
34387 2004-07-16  Simon Josefsson  <jas@extundo.com>
34388
34389         * modules/dummy: New file.
34390
34391 2004-07-16  Simon Josefsson  <jas@extundo.com>
34392
34393         * lib/dummy.c: New file.
34394
34395 2004-07-16  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/backupfile.h: Add extern "C" for C++.
34398         * lib/closeout.h: Likewise.
34399         * lib/copy-file.h: Likewise.
34400         * lib/findprog.h: Likewise.
34401         * lib/full-write.h: Likewise.
34402         * lib/pathname.h: Likewise.
34403         * lib/progname.h: Likewise.
34404         * lib/stpcpy.h: Likewise.
34405         * lib/stpncpy.h: Likewise.
34406         * lib/strcase.h: Likewise.
34407         * lib/strstr.h: Likewise.
34408         * lib/xalloc.h: Likewise.
34409
34410         * lib/mbswidth.h: Add extern "C" for C++.
34411         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
34412
34413 2004-07-13  Robert Millan  <robertmh@gnu.org>
34414
34415         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
34416
34417 2004-07-09  Simon Josefsson  <jas@extundo.com>
34418
34419         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
34420         failed without this.)
34421
34422 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34423
34424         * modules/chown (Files): Add lib/fchown-stub.c, since
34425         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
34426
34427 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34428
34429         * lib/fchown-stub.c: New file.
34430
34431 2004-06-24  Jim Meyering  <jim@meyering.net>
34432
34433         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
34434
34435 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34436
34437         * modules/argz: Omit "#include".
34438
34439         * MODULES.html.sh (func_all_modules): Add calloc, to match
34440         2004-06-01 addition of calloc module.
34441
34442 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34443
34444         * m4/argz.m4: New file, which is autoupdated from libtool.
34445
34446 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34447
34448         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
34449         libtool.
34450
34451 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34452
34453         * config/srclist-update: Don't insist on "USA." before the
34454         close-comment, as libtool omits the period and puts the */ on a
34455         separate line.
34456         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
34457         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
34458
34459 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
34460
34461         * modules/argz: New file.
34462         * MODULES.html.sh (func_all_modules): Add argz.
34463
34464 2004-06-12  Jim Meyering  <jim@meyering.net>
34465         and  Paul Eggert  <eggert@cs.ucla.edu>
34466
34467         * modules/hash (Files): Add lib/xalloc.h.
34468         * modules/pipe (Depends-on): Add wait-process.
34469         * modules/stat (Depends-on): Add xalloc.
34470         * modules/userspec (Files): Add lib/userspec.h.
34471         * modules/xstrto
34472
34473         Upgrade from gettext-0.13.
34474         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
34475         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
34476         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
34477
34478 2004-06-10  Jim Meyering  <jim@meyering.net>
34479
34480         * lib/calloc.c: New file.
34481
34482 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34483
34484         * lib/getdate.y (yylex): Allow space between sign and number.
34485         Problem reported by Dan Jacobson.
34486
34487 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34488
34489         Merge from coreutils CVS.
34490
34491         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
34492         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
34493         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
34494         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
34495         xstrtol.m4: Fix copyright date and/or serial number.
34496
34497         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
34498         See if we need an fchown replacement.
34499         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
34500         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
34501         and use the replacement function if we detect either defect.
34502
34503         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
34504         gl_UTIMECMP.
34505
34506 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34507         and  Jim Meyering  <jim@meyering.net>
34508
34509         Merge from coreutils CVS.
34510
34511         * lib/stat-macros.h: New file, with contents from file-type.h
34512         and coreutils' system.h.
34513         * lib/file-type.c: Include "stat-macros.h".
34514         * lib/file-type.h (file_type): Move all macro definitions to new file,
34515         stat-macros.h.
34516
34517         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
34518         Wrap old code with this conditional.
34519         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
34520         function that does not dereference symlinks.
34521         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
34522
34523         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
34524         dependency problems.
34525         (xreadlink): Accept new arg SIZE, for efficiency.
34526         All decls and uses changed.
34527         * lib/xreadlink.h: Include <stddef.h>, for size_t.
34528
34529         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
34530         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
34531
34532         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
34533         sysexits.h.
34534
34535 2004-06-01  Jim Meyering  <jim@meyering.net>
34536
34537         * m4/calloc.m4: New file.
34538
34539 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
34540
34541         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34542         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
34543         Also, fix a typo in a diagnostic.
34544
34545 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34546
34547         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34548         or AC_FUNC_REALLOC.
34549
34550 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34551
34552         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34553         macros to be defined.
34554         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34555         the allocator returns NULL because the requested size is zero.
34556
34557 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34558
34559         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34560         var.  Add comment explaining why libc still defines it.  This
34561         merges the following patch from glibc:
34562         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34563
34564 2004-05-20  Andreas Schwab  <schwab@suse.de>
34565
34566         * m4/free.m4: Replace free if it not known to work, not the other
34567         way round.
34568
34569 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34570
34571         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
34572         present in glibc since revision 1.1 of this file.
34573         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34574         obstack_alignment_mask, obstack_alloc, obstack_base,
34575         obstack_blank, obstack_blank_fast, obstack_chunk_size,
34576         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34577         obstack_grow0, obstack_init, obstack_int_grow,
34578         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34579         obstack_next_free, obstack_object_size, obstack_ptr_grow,
34580         obstack_ptr_grow_fast, obstack_room): Remove declarations of
34581         nonexistent functions.
34582
34583 2004-05-18  Karl Berry  <karl@gnu.org>
34584
34585         * config/srclist.txt: break link for vasnprintf.c.
34586
34587 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34588
34589         Port obstack to the AS/400, where pointers are 16 bytes wide and
34590         you cannot cast an integer to a valid pointer.  This patch is
34591         currently waiting to be integrated into glibc; see
34592         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34593
34594         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34595         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34596         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34597         (struct obstack): temp member is now a union of a pointer and
34598         an integer, instead of an integer.  All integer uses changed.
34599         This does not affect the physical layout of struct obstack,
34600         except on hosts (like the AS/400) where the size or alignment of
34601         void * is greater than that of ptrdiff_t.
34602         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34603         __STDC__)]: Store temporary in pointer member of union, not
34604         integer member.
34605         * lib/obstack.c: Include <stddef.h>, for offsetof.
34606         (struct fooalign): Remove; it doesn't need a name.
34607         (union fooround): Change double to long double, and add void *.
34608         (DEFAULT_ALIGNMENT): Use offsetof to compute.
34609         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34610         not a macro.  Hence the values are always int; so remove all
34611         casts-to-int in uses.
34612
34613 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34614
34615         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34616         we can get this patch merged into glibc.
34617
34618 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34619             Paul Eggert  <eggert@cs.ucla.edu>
34620
34621         * m4/argp: Depend on alloca.
34622
34623 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34624             Paul Eggert  <eggert@cs.ucla.edu>
34625
34626         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34627         freecoding.
34628
34629 2004-05-17  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34632         precision that consists of a '.' followed by an empty digit string.
34633         Patch by Tor Lillqvist <tml@iki.fi>.
34634
34635 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34636
34637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34638         for backward compatibility with older code.  We need our own
34639         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
34640         it under some other name, and our alloca.h will define it.
34641
34642 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34643             Derek Price  <derek@ximbiot.com>
34644
34645         * lib/alloca.c: Include <alloca.h>, to get our interface.
34646         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34647         include <alloca.h> first.  Use C89 prototype for alloca; this
34648         requires including <stddef.h> for size_t.  Use extern "C" if C++.
34649         Use #elif for simplicity, since we can assume C89 now.
34650         Don't try to source the system alloca.h since it will not be found
34651         and to prevent recursively including its replacement.
34652         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34653         * lib/regex.c: Likewise.
34654
34655 2004-05-16  Derek Price  <derek@ximbiot.com>
34656             Paul Eggert  <eggert@cs.ucla.edu>
34657
34658         getline cleanup.  This changes the getndelim2 API: both order of
34659         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34660         no delimiter).
34661
34662         * lib/getline.c: Don't include stddef.h or stdio.h, since our
34663         interface does that.
34664         (getline): Always use getdelim, so that we don't have two
34665         copies of this code.
34666         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34667         if available.
34668         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34669         (GETNDELIM2_MAXIMUM): New macro.
34670         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
34671         instead of the old practice of delim2==0.  All callers changed.
34672         Return -1 on overflow, instead of returning junk.
34673         Do not set *linesize unless allocation succeeds.
34674         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34675         that we include sys/types.h.
34676         * lib/getnline.h: Likewise.
34677         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34678         (getndelim2): Reorder arguments.
34679         * lib/getnline.c (getnline, getndelim):
34680         Don't discard the NMAX argument.
34681         (getnline): Invoke getndelim, to avoid code duplication.
34682         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34683         of (size_t) -1 by callers of the getnline family.
34684
34685 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34686
34687         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34688         Check for gettimeofday.
34689         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34690         Check for settimeofday, stime.
34691
34692 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34693
34694         * lib/nanosleep.c (suspended): Change its type from int to
34695         sig_atomic_t volatile.
34696         (first_call): Make it private to rpl_nanosleep, and have it
34697         be zero initially as that's a bit faster.
34698         (my_usleep): Round up fractional times instead of truncating them,
34699         as this is the usual meaning for 'sleep'.
34700
34701         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34702         doesn't work.
34703         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34704         (ENOSYS): Define if not defined.
34705         (settime): Fall back on stime if it exists and settimeofday fails.
34706         But don't bother with fallbacks if a method fails with errno == EPERM.
34707
34708 2004-05-11  Jim Meyering  <jim@meyering.net>
34709
34710         Prior to this change, the save_cwd caller required read access to the
34711         current directory on most systems (ones with the fchdir function).
34712
34713         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34714         fails, try write-only, and finally, resort to using xgetcwd.
34715
34716 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34717
34718         * lib/obstack.c, obstack.h: Import changes from libc.
34719
34720 2004-04-28  Bruno Haible  <bruno@clisp.org>
34721
34722         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34723         also implicitly appends .exe to executables.
34724         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34725         accepts Windows pathnames.
34726         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34727         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34728         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34729         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34730         Reported by Derek Robert Price <derek@ximbiot.com>.
34731
34732 2004-04-21  Karl Berry  <karl@gnu.org>
34733
34734         * config/srclist.txt (localcharset.c): break sync.
34735
34736 2004-04-20  Paul Eggert  <eggert@twinsun.com>
34737
34738         * m4/host-os.m4: Add a copyright notice.
34739
34740 2004-04-20  Jim Meyering  <jim@meyering.net>
34741
34742         Change UTILS_ to gl_ in AC_DEFINE'd names.
34743         Change utils_- and jm_-prefixed variables, too.
34744         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34745         UTILS_FUNC_MKDIR_TRAILING_SLASH.
34746         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34747
34748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34749         Don't emit trailing blanks.
34750         Also rename jm_-prefixed variables to have gl_ prefix.
34751
34752         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34753         Also rename jm_-prefixed variables to have gl_ prefix.
34754
34755         * m4/jm-macros.m4: Reflect the renamings.
34756         * m4/prereq.m4: Likewise.
34757
34758 2004-04-20  Jim Meyering  <jim@meyering.net>
34759
34760         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34761         memory.
34762
34763 2004-04-20  Jim Meyering  <jim@meyering.net>
34764             Bruno Haible  <bruno@clisp.org>
34765
34766         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34767         memory when realloc fails.
34768
34769 2004-04-19  Jim Meyering  <jim@meyering.net>
34770
34771         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34772         now that readutmp.c may call `free (0)'.
34773
34774 2004-04-19  Bruno Haible  <bruno@clisp.org>
34775
34776         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34777         * m4/inttypes_h.m4: Likewise.
34778         * m4/stdint_h.m4: Likewise.
34779         * m4/intmax_t.m4: Likewise.
34780         * m4/uintmax_t.m4: Likewise.
34781
34782 2004-04-18  Jim Meyering  <jim@meyering.net>
34783
34784         * m4/prereq.m4: Don't forbid jm_ prefix.
34785
34786         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34787         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34788         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34789         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34790         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34791         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34792         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34793         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34794         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34795         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34796         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34797         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34798         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34799         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34800         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34801         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34802         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34803         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34804         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34805
34806 2004-04-18  Jim Meyering  <jim@meyering.net>
34807
34808         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34809         failure, don't leak memory and do call END_UTMP_ENT.
34810
34811 2004-04-16  Jim Meyering  <jim@meyering.net>
34812
34813         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
34814         coreutils' stat program.
34815         (gl_PREREQ): Don't require jm_PREREQ_STAT.
34816
34817 2004-04-11  Paul Eggert  <eggert@twinsun.com>
34818
34819         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34820         C89.
34821         (CHAR_BIT): Remove, since we assume C89.
34822         Include <stdint.h> if available, as per current Autoconf CVS advice.
34823
34824 2004-03-31  Jim Meyering  <jim@meyering.net>
34825
34826         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34827         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34828         * m4/xalloc.m4: Likewise.
34829
34830 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34831
34832         Merge from coreutils.
34833
34834         * m4/inttostr.m4: New file.
34835         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34836         Require AM_STDBOOL_H and gl_TIMESPEC instead.
34837         Require gl_CLOCK_TIME.
34838         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34839
34840 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34841
34842         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34843         not bool, to be more consistent with Unix conventions.
34844         Suggested by Bruno Haible.
34845
34846         Merge from coreutils.
34847
34848         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34849         * lib/umaxtostr.c: New files.
34850
34851         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34852         the usual <time.h> dance.
34853         (get_date): Change signature to support fractional time stamps.
34854         All callers changed.
34855         * lib/getdate.y: Include "getdate.h" first, as we can now
34856         assume C89 and don't need to worry about 'const'.
34857         Similarly, include "unlocked-io.h" near start, not in middle.
34858         Include <limits.h>.
34859         (textint.value): Use long int rather than int.
34860         (textint.digits): Use size_t rather than int.
34861         (BILLION, LOG10_BILLION): New constants.
34862         (parser_control): New member rel_ns.  Members day_ordinal,
34863         time_zone, month, day, hour, minutes, rel_year, rel_month,
34864         rel_day, rel_hour, rel_minutes, rel_seconds
34865         are now long int, not int.  Member seconds is now struct timespec,
34866         not int.  New member timespec_seen.  Members dates_seen, days_seen,
34867         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34868         not int.
34869         (%union.intval): Now long int, not int.
34870         New member timespec.
34871         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34872         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34873         (spec): Now is a timespec or an item list.
34874         (timespec, items): New nonterminals.
34875         (time, rel, relunit, number, get_date):
34876         Add support for fractional seconds.
34877         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34878         (gmtime, localtime, mktime): Remove decls; not needed with C89.
34879         (to_hour): First arg is now long int, not int.
34880         (to_year): Returns long int, not int.
34881         Don't treat year -70 like 70.
34882         (tm_diff): Returns long int, not int.
34883         (lookup_word): Use bool instead of int when appropriate.
34884         (yylex): Use size_t for count, not int.
34885         Detect overflow when parsing large integer constants.
34886         Add support for fractions.
34887         (get_date): Make pointers 'const' if possible.
34888         Use more-portable code to detect integer overflow.
34889         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
34890         Don't use ctime; it's not reliable if the year has >4 digits.
34891
34892         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
34893         This is for compatibility with BSD.
34894
34895         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
34896         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
34897         From coreutils' system.h.
34898
34899         * lib/userspec.c: Don't include "posixver.h".
34900         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
34901         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
34902         compatible extension.  Simplify code by removing a boolean int
34903         that was always nonzero if a string was nonnull.
34904
34905 2004-03-30  Jim Meyering  <jim@meyering.net>
34906
34907         Merge from coreutils.
34908
34909         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
34910         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
34911         on some systems one must include <grp.h> before it.
34912         Reported by Christian Krackowizer.
34913
34914 2004-03-30  Jim Meyering  <jim@meyering.net>
34915
34916         Merge from coreutils.
34917
34918         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
34919
34920         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
34921         an empty input stream.
34922
34923         * lib/readtokens.c: Include <stdbool.h>.
34924         (readtoken): Use `size_t' rather than int/long.
34925         All callers adjusted.
34926         Use `bool' rather than `int' where appropriate.
34927         Use memset rather than an explicit loop.
34928         Use x2nrealloc rather than xrealloc.
34929         Allow the use of `\0' as a delimiter.
34930         (readtokens): Likewise.
34931         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
34932
34933 2004-03-30  Jim Meyering  <jim@meyering.net>
34934
34935         * m4/realloc.m4: Remove file, since now it does no more than
34936         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
34937         the `configure.ac' section of module/realloc.
34938         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
34939
34940 2004-03-30  Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
34943         nonnull.
34944
34945 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34946
34947         Merge changes to getloadavg.c from coreutils and Emacs.
34948
34949         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
34950         Define to an expression, not to the empty string.
34951         Include cloexec.h and xalloc.h.
34952         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
34953         Use set_cloexec_flag rather than rolling our own.
34954         * lib/cloexec.c, lib/cloexec.h: New files.
34955
34956 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34957
34958         * m4/cloexec.m4: New file.
34959
34960 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34961
34962         * lib/getopt.h: Sync with libc CVS.
34963
34964 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34965             Bruno Haible  <bruno@clisp.org>
34966
34967         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
34968         mbswidth.
34969
34970 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34971             Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/mbswidth.h: Include <wchar.h> only if
34974         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
34975         <wchar.h>.
34976         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
34977
34978 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34979
34980         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
34981         Sync with libc CVS.
34982         * lib/getopt_int.h: New file, also synced from libc.
34983
34984 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34985
34986         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
34987         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
34988         Bring back getopt.c, getopt.h, getopt1.c.
34989
34990 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34991
34992         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
34993         All uses changed.  Check for sa_sigaction member; this fixes
34994         a bug first reported by Jason Andrade in
34995         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34996
34997 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34998
34999         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
35000         '#if' expressions.  Unlike the code it replaces, it does not
35001         depend on (defined _SC_PAGESIZE).  However, it does depend on
35002         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35003         first reported by Jason Andrade in
35004         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35005
35006 2004-02-25  Simon Josefsson  <jas@extundo.com>
35007
35008         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35009
35010 2004-02-25  Simon Josefsson  <jas@extundo.com>
35011
35012         * lib/strdup.h: New file.
35013         * lib/strdup.c: Include it.
35014         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35015         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35016
35017 2004-02-23  Karl Berry  <karl@gnu.org>
35018
35019         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35020         (from fencepost.gnu.org:/gd/gnuorg).
35021
35022 2004-02-23  Karl Berry  <karl@gnu.org>
35023
35024         * config/srclistvars.sh (GNUORG) [karl]: redefine.
35025         * config/srclist.txt: add maintain/standards documents.
35026
35027 2004-02-18  Bruno Haible  <bruno@clisp.org>
35028
35029         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35030         Reported by Derek Robert Price <derek@ximbiot.com>.
35031
35032 2004-02-16  Karl Berry  <karl@gnu.org>
35033
35034         * config/mkinstalldirs, install-sh: update from automake.
35035
35036 2004-02-06  Karl Berry  <karl@gnu.org>
35037
35038         * m4/po.m4: update from gettext 0.14.1.
35039
35040 2004-02-06  Karl Berry  <karl@gnu.org>
35041
35042         * lib/config.charset: update from gettext 0.14.1.
35043
35044 2004-02-05  Paul Eggert  <eggert@twinsun.com>
35045
35046         Add comments and code, prompted by suggestions from Bruno Haible
35047         for sh-quote.
35048         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
35049         describing the enum quoting_style values.
35050         * lib/quotearg.c (quotearg_alloc): New function.
35051         (quotearg_buffer_restyled): Treat lone { and } as special.
35052         Treat = as special.  Work around bug with older shells
35053         that "see" a '\' that is really the 2nd byte of a multibyte char.
35054         Quote empty string with shell_quoting_style.
35055
35056 2004-02-03  Bruno Haible  <bruno@clisp.org>
35057
35058         * m4/pipe.m4: New file, from GNU gettext.
35059
35060 2004-02-03  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/pipe.h: New file, from GNU gettext.
35063         * lib/pipe.c: New file, from GNU gettext.
35064
35065 2004-01-27  Bruno Haible  <bruno@clisp.org>
35066
35067         * m4/execute.m4: New file, from GNU gettext.
35068
35069 2004-01-27  Bruno Haible  <bruno@clisp.org>
35070
35071         * lib/execute.h: New file, from GNU gettext.
35072         * lib/execute.c: New file, from GNU gettext.
35073         * lib/w32spawn.h: New file, from GNU gettext.
35074
35075 2004-01-24  Paul Eggert  <eggert@twinsun.com>
35076
35077         Merge from diffutils.
35078
35079         * lib/file-type.c (file_type): Add typed memory objects.
35080         * lib/file-type.h (S_TYPEISTMO): New macro.
35081
35082         * lib/c-stack.h (c_stack_action): Remove argv argument.
35083         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
35084         (die): Don't calculate message unless segv_action returns.
35085         (get_stack_location, min_address_from_argv, max_address_from_argv,
35086         volatile stack_base, volatile_stack_size): Remove.
35087         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35088         that every segmentation violation is a stack overflow.  (Ouch!)
35089         See Debian bug 136249 (still outstanding) for more info about why
35090         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35091
35092 2004-01-24  Paul Eggert  <eggert@twinsun.com>
35093
35094         Exit-status fix from coreutils.
35095
35096         Use exit_failure consistently in place of EXIT_FAILURE,
35097         so that program exit statuses are consistent on failure.
35098
35099         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35100         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35101         * lib/argmatch.h: Comment fix to match the above.
35102         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35103         Now a macro referring to exit_failure, instead of a separate
35104         variable.  Include "exitfail.h" to get it.
35105         * lib/xstrtol.h: Include "exitfail.h".
35106         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35107
35108         * lib/long-options.c (parse_long_options): Use prototype
35109         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
35110         for clarity.
35111
35112 2004-01-21  Jim Meyering  <jim@meyering.net>
35113
35114         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35115         so as not to conflict with a different-sized __mktime_internal
35116         function in GNU libc.
35117         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35118         Problem building statically-linked `ls' reported by Michael Brunnbauer.
35119
35120 2004-01-20  Karl Berry  <karl@gnu.org>
35121
35122         * config/config.guess: update from config.
35123
35124         * config/srclistvars.sh: GNUWWWLICENSES for karl.
35125
35126 2004-01-20  Bruno Haible  <bruno@clisp.org>
35127
35128         Safer stack allocation.
35129         * lib/setenv.c: Include allocsa.h.
35130         (alloca): Remove fallback definition.
35131         (freea): Remove macro.
35132         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35133         instead of freea.
35134
35135 2004-01-20  Bruno Haible  <bruno@clisp.org>
35136
35137         * m4/eealloc.m4: New file, from GNU gettext.
35138
35139 2004-01-20  Bruno Haible  <bruno@clisp.org>
35140
35141         * m4/allocsa.m4: New file, from GNU gettext.
35142
35143 2004-01-20  Bruno Haible  <bruno@clisp.org>
35144
35145         * lib/xallocsa.h: New file, from GNU gettext.
35146         * lib/xallocsa.c: New file, from GNU gettext.
35147
35148 2004-01-20  Bruno Haible  <bruno@clisp.org>
35149
35150         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35151
35152 2004-01-20  Bruno Haible  <bruno@clisp.org>
35153
35154         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35155         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35156         specially.
35157
35158 2004-01-20  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35161         patch.
35162
35163 2004-01-20  Bruno Haible  <bruno@clisp.org>
35164
35165         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35166
35167 2004-01-20  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/eealloc.h: New file.
35170
35171 2004-01-20  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/binary-io.h: Avoid warnings on Cygwin.
35174
35175 2004-01-20  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/allocsa.h: New file, from GNU gettext.
35178         * lib/allocsa.c: New file, from GNU gettext.
35179
35180 2004-01-18  Karl Berry  <karl@gnu.org>
35181
35182         * doc/gpl.texi, doc/lgpl.texi: new files.
35183
35184 2004-01-18  Karl Berry  <karl@gnu.org>
35185
35186         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35187         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35188
35189 2004-01-15  Paul Eggert  <eggert@twinsun.com>
35190
35191         Merge from coreutils.
35192
35193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35194         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35195         (gl_DEFAULT_POSIX2_VERSION): Move
35196         the documentation from 'configure' into 'config.hin',
35197         so that 'configure --help' isn't burdened by it and
35198         we don't have to worry about its formatting there.
35199         Reword the documentation so that it's more succinct
35200         and can be run together into a single paragraph.
35201         * m4/same.m4 (gl_SAME): Check for pathconf.
35202
35203 2004-01-15  Paul Eggert  <eggert@twinsun.com>
35204
35205         Merge from coreutils.
35206
35207         * lib/posixver.c: Include posixver.h.
35208
35209         * lib/same.c: Include <stdbool.h>, <limits.h>.
35210         (_POSIX_NAME_MAX): Define if not defined.
35211         (MIN): New macro.
35212         (same_name): If file names are silently truncated, report
35213         that the file names are the same if they are the same after
35214         the silent truncation.
35215
35216         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35217         conversion function.
35218         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
35219         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
35220         longer needed.
35221
35222 2004-01-15  Jim Meyering  <jim@meyering.net>
35223
35224         Merge from coreutils.
35225
35226         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35227         if no library is required.
35228         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35229         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35230         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35231         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35232         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35233         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35234         value, $ac_cv_search_crypt, if it's "none required".
35235         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35236         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35237         not gl_FUNC_GETLOADAVG.
35238         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35239         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35240
35241 2004-01-15  Jim Meyering  <jim@meyering.net>
35242
35243         Merge from coreutils.
35244
35245         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
35246         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
35247         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35248
35249         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35250         optional configure-time default.
35251
35252         * lib/version-etc.c (version_etc_copyright): Update copyright date.
35253
35254         * lib/xreadlink.c (xreadlink): Correct outdated comment.
35255
35256 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
35257
35258         Merge from coreutils.
35259
35260         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35261         value, $ac_cv_search_nanosleep, if it's "none required".
35262
35263 2004-01-14  Paul Eggert  <eggert@twinsun.com>
35264
35265         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35266         with like-named macro in fnmatch.c.
35267         (EXT): Use an internal constant instead.
35268
35269         Merge fnmatch patches from glibc.
35270         * lib/fnmatch.c (mbsinit): Remove define.
35271         Add libc_hidden_ver (__fnmatch, fnmatch).
35272         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35273         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35274
35275 2004-01-14  Karl Berry  <karl@gnu.org>
35276
35277         * config/install-sh: update from automake.
35278
35279 2004-01-13  Karl Berry  <karl@gnu.org>
35280
35281         * config/install-sh: update from automake.
35282
35283 2004-01-09  Karl Berry  <karl@gnu.org>
35284
35285         * config/install-sh: update from automake.
35286
35287 2004-01-05  Karl Berry  <karl@gnu.org>
35288
35289         * config/config.{sub,guess}: update from config.
35290
35291 2003-12-31  Karl Berry  <karl@gnu.org>
35292
35293         * config/depcomp: update from automake.
35294
35295 2003-12-14  Karl Berry  <karl@gnu.org>
35296
35297         * lib/config.charset: update from gettext-runtime.
35298
35299 2003-12-03  Paul Eggert  <eggert@twinsun.com>
35300
35301         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35302         Bug reported by Alfred M. Szmidt.
35303
35304 2003-12-03  Bruno Haible  <bruno@clisp.org>
35305
35306         * m4/gettext.m4: Upgrade from gettext-0.13.
35307         * m4/po.m4: Upgrade from gettext-0.13.
35308         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35309         * m4/intmax.m4: New file, from gettext-0.13.
35310         * m4/printf-posix.m4: New file, from gettext-0.13.
35311
35312 2003-11-29  Karl Berry  <karl@gnu.org>
35313
35314         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35315
35316 2003-11-25  Paul Eggert  <eggert@twinsun.com>
35317             Bruno Haible  <bruno@clisp.org>
35318
35319         * lib/printf-parse.h: Don't include sys/types.h.
35320         (ARG_NONE): New macro.
35321         (char_directive): Change type of *arg_index fields to size_t.
35322         * lib/printf-parse.c: Don't include sys/types.h.
35323         (SSIZE_MAX): Remove macro.
35324         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35325         Remove unnecessary overflow check.
35326         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35327         fields.
35328
35329 2003-11-25  Bruno Haible  <bruno@clisp.org>
35330
35331         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35332
35333 2003-11-25  Bruno Haible  <bruno@clisp.org>
35334
35335         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35336         gt_TYPE_SSIZE_T.
35337
35338 2003-11-24  Paul Eggert  <eggert@twinsun.com>
35339
35340         * modules/alloca: Remove dependency on xalloc.
35341
35342 2003-11-24  Paul Eggert  <eggert@twinsun.com>
35343
35344         * lib/alloca.c: Remove dependency on xalloc module.
35345         (xalloc_die): Remove.
35346         (memory_full) [!defined emacs]: New macro.
35347         [!defined emacs]: Don't include xalloc.h.
35348         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
35349         address arithmetic overflows.  Change datatypes a bit to avoid
35350         unnecessary casts.
35351
35352 2003-11-22  Jim Meyering  <jim@meyering.net>
35353
35354         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
35355         s/size/size_t/.
35356
35357 2003-11-21  Karl Berry  <karl@gnu.org>
35358
35359         * config/config.{sub,guess}: update from config.
35360
35361 2003-11-18  Karl Berry  <karl@gnu.org>
35362
35363         * config/config.{sub,guess}: update from config.
35364
35365         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
35366
35367 2003-11-17  Paul Eggert  <eggert@twinsun.com>
35368
35369         * README: Mention that S+T cannot overflow if S is the size of
35370         an existing object and T is sufficiently small.
35371
35372 2003-11-17  Jim Meyering  <jim@meyering.net>
35373
35374         On systems without utime and without a utimes function capable of
35375         dealing with a NULL struct utimbuf* argument, this utime replacement
35376         could -- in unusual circumstances -- leak a file descriptor.
35377         * lib/utime.c: Include <unistd.h> and <errno.h>.
35378         (utime_null): Be sure to close `fd' and to preserve errno.
35379         Reported by Geoff Collyer via Arnold Robbins.
35380
35381 2003-11-17  Bruno Haible  <bruno@clisp.org>
35382
35383         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
35384         (Depends-on): Add xsize.
35385
35386 2003-11-17  Bruno Haible  <bruno@clisp.org>
35387
35388         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
35389
35390 2003-11-17  Bruno Haible  <bruno@clisp.org>
35391
35392         * lib/vasnprintf.c (alloca): Remove fallback definition.
35393         (freea): Remove definition.
35394         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
35395         Reported by Paul Eggert.
35396
35397 2003-11-16  Paul Eggert  <eggert@twinsun.com>
35398             Bruno Haible  <bruno@clisp.org>
35399
35400         Protect against address arithmetic overflow.
35401         * lib/printf-args.h: Include stddef.h.
35402         (arguments): Change type of field 'count' to size_t.
35403         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
35404         'unsigned int' where appropriate.
35405         * lib/printf-parse.h: Include sys/types.h.
35406         (char_directive): Change type of *arg_index fields to ssize_t.
35407         (char_directives): Change type of fields 'count', max_*_length to
35408         size_t.
35409         * lib/printf-parse.c: Include sys/types.h and xsize.h.
35410         (SSIZE_MAX): Define fallback value.
35411         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
35412         instead of 'int' where appropriate. Check a_allocated, d_allocated
35413         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
35414         * lib/vasnprintf.c: Include xsize.h.
35415         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
35416         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
35417         overflow. Avoid wraparound when converting a width or precision from
35418         decimal to binary.
35419
35420 2003-11-16  Bruno Haible  <bruno@clisp.org>
35421
35422         Update from GNU gettext.
35423         * lib/printf-parse.c: Generalize to it can be compiled for wide
35424         strings.
35425         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
35426         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
35427         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
35428         SNPRINTF): New macros.
35429         Don't include <alloca.h> if the file is used inside libintl.
35430         (local_wcslen): New function, for Solaris 2.5.1.
35431         (VASNPRINTF): Use it instead of wcslen.
35432
35433 2003-11-16  Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/xsize.h (xmax): New function.
35436         (xsum, xsum3, xsum4): Declare as "pure" functions.
35437
35438 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35439
35440         * modules/xalloc (Files): Undo latest change, since xalloc.h
35441         no longer needs SIZE_MAX or PTRDIFF_MAX.
35442
35443 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35444
35445         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
35446         gl_PTRDIFF_MAX.
35447
35448 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35449
35450         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
35451         "return", to pacify some unknown compiler.  Problem reported
35452         by Joerg Schilling.
35453
35454 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35455
35456         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
35457         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
35458         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
35459         heuristic is just as accurate as far as we know, and it removes a
35460         dependency on size_max.m4 and ptrdiff_max.m4.
35461
35462 2003-11-11  Bruno Haible  <bruno@clisp.org>
35463
35464         * modules/xsize (Files): Add m4/size_max.m4.
35465         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
35466
35467 2003-11-11  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/size_max.m4: New file.
35470         * m4/ptrdiff_max.m4: New file.
35471         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
35472         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
35473         (gl_XALLOC): Invoke it.
35474
35475 2003-11-11  Bruno Haible  <bruno@clisp.org>
35476
35477         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
35478         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
35479         defined.
35480
35481 2003-11-10  Paul Eggert  <eggert@twinsun.com>
35482
35483         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
35484         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
35485         rejected some allocations of exactly SIZE_MAX - 2 bytes.
35486         From Bruno Haible.
35487         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
35488         not (size_t) -1, since it's defined here.
35489
35490 2003-11-09  Karl Berry  <karl@gnu.org>
35491
35492         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
35493
35494 2003-11-06  Paul Eggert  <eggert@twinsun.com>
35495
35496         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
35497         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
35498         Reject sizes of exactly SIZE_MAX bytes.
35499         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
35500         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
35501
35502 2003-11-05  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/xsize.h: Include limits.h, to avoid a possible collision with
35505         SIZE_MAX defined in <limits.h> on Solaris.
35506
35507 2003-11-04  Jim Meyering  <jim@meyering.net>
35508
35509         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
35510         variable names, rather than @VAR@.
35511         * modules/poll: Likewise.
35512
35513 2003-11-04  Bruno Haible  <bruno@clisp.org>
35514
35515         * modules/xsize: New file.
35516         * modules/linebreak: Depend on xsize.
35517         * MODULES.html.sh (func_all_modules): Add xsize.
35518
35519 2003-11-04  Bruno Haible  <bruno@clisp.org>
35520
35521         * m4/xsize.m4: New file.
35522
35523 2003-11-04  Bruno Haible  <bruno@clisp.org>
35524
35525         * lib/xsize.h: New file.
35526         * lib/linebreak.c: Include xsize.h.
35527         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
35528         argument for overflow.
35529         Suggested by Paul Eggert.
35530
35531 2003-11-03  Karl Berry  <karl@gnu.org>
35532
35533         * config/config.{guess,sub}: update from config.
35534
35535 2003-11-03  Jim Meyering  <jim@meyering.net>
35536
35537         * modules/userspec (lib_SOURCES): Add userspec.h.
35538         (Include): Add "userspec.h".
35539         Improve description.
35540
35541 2003-11-03  Jim Meyering  <jim@meyering.net>
35542
35543         * lib/userspec.c: Include "userspec.h".
35544         * lib/userspec.h: New file.
35545
35546 2003-11-03  Bruno Haible  <bruno@clisp.org>
35547
35548         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35549
35550 2003-11-03  Bruno Haible  <bruno@clisp.org>
35551
35552         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35553         available, to avoid (extremely rare) race condition.
35554         Suggested by Paul Eggert.
35555
35556 2003-11-02  Karl Berry  <karl@gnu.org>
35557
35558         * config/srclist.txt (vasprintf.c): sync broken, sigh.
35559
35560 2003-10-31  Paul Eggert  <eggert@twinsun.com>
35561
35562         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35563         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35564         (read_filesystem_list): Set and use me_type_malloced.
35565         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35566         whatever the type happens to be), for brevity and consistency.
35567         Check for size calculation overflow on Alphas running OSF/1.
35568
35569 2003-10-31  Jim Meyering  <jim@meyering.net>
35570
35571         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35572
35573         * lib/linebuffer.c: Include <string.h> for declaration of memset.
35574
35575 2003-10-30  Paul Eggert  <eggert@twinsun.com>
35576             Bruno Haible  <bruno@clisp.org>
35577
35578         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35579         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35580
35581 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35582
35583         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35584         netbsd*-gnu*.  Suggested by Robert Millan.
35585
35586 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35587
35588         * modules/group-member: Depend on stdbool.
35589
35590 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35591
35592         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35593
35594 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35595
35596         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
35597         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
35598         after the 'gnu' in these cases.  This fixes some bugs in the
35599         previous change, and is based on suggestions by Robert Millan.
35600
35601 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35602
35603         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35604         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
35605         no longer needed.
35606         * lib/quotearg.c (quotearg_n_options): Use it.
35607         * lib/group-member.c: Include <stdbool.h>.
35608         (free_group_info): Arg is now const *; don't free arg.
35609         (get_group_info): Now returns bool and accepts struct group_info *,
35610         rather than returning a malloc'ed struct group_info *.
35611         All uses changed.  Check for overflow in internal size calculation.
35612
35613         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35614         rather than xmalloc/xrealloc.
35615         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35616         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
35617         conformance bug: the old code used a pointer after freeing the
35618         storage that it addressed.
35619         * lib/hash.c (hash_initialize): Simplify the code by using
35620         xalloc_oversized rather than doing it by hand.
35621         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35622         the buffer preserved.  Use free and xmalloc instead.
35623         * lib/quotearg.c (quotearg_n_options): Likewise.
35624         Use a simpler test for size overflow.  Don't use xalloc_oversized
35625         because unsigned int might be wider than size_t (!); this suggests
35626         that we should switch from unsigned int to size_t for slot numbers.
35627
35628 2003-10-28  Paul Eggert  <eggert@twinsun.com>
35629
35630         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35631         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
35632         NetBSD kernels.  Requested by Richard Stallman.
35633
35634 2003-10-27  Paul Eggert  <eggert@twinsun.com>
35635
35636         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35637         to allocate the returned structure.  Do not allocate a subarray,
35638         as x2nrealloc will do that.
35639         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35640         instead of xnrealloc.
35641         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35642
35643 2003-10-27  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/stdbool_.h: Better support for BeOS.
35646
35647 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35648
35649         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35650         now uses inline.
35651
35652 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35653
35654         * lib/xalloc.h (xalloc_oversized): New static inline function, for
35655         callers that want to do their own size-overflow checking.  Include
35656         <stdbool.h>, since xalloc_oversized returns bool.
35657         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
35658         to use xalloc_oversized.
35659
35660         Add two functions x2realloc, x2nrealloc, for programs that grow
35661         arrays dynamically by doubling their sizes.
35662         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35663         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35664         New functions.
35665
35666         Port to C99 semantics for 'inline' of external functions.
35667         Bug reported by Bruno Haible.
35668         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35669         with the old contents of xnmalloc.
35670         (xnmalloc, xmalloc): Use it.
35671         (xnrealloc_inline): New static inline function,
35672         with the old contents of xnrealloc.
35673         (xnrealloc, xrealloc): Use it.
35674
35675         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35676         that.
35677
35678 2003-10-26  Karl Berry  <karl@gnu.org>
35679
35680         * config/srclist.txt (COPYING.DOC): no longer available from
35681         /gd/gnuorg; don't know where the ultimate source is.
35682
35683 2003-10-25  Paul Eggert  <eggert@twinsun.com>
35684
35685         Fix several address-calculation bugs in the hash modules,
35686         plus some minor code cleanup.
35687
35688         * lib/hash.h: Include <stdbool.h>, for bool.
35689         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35690         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35691         hash_get_n_entries, hash_get_max_bucket_length,
35692         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35693         hash_rehash): Use size_t rather than unsigned.
35694         * lib/hash.c (struct hash_table, hash_get_n_buckets,
35695         hash_get_n_buckets_used, hash_get_n_entries,
35696         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35697         hash_get_entries, hash_do_for_each, hash_string, is_prime,
35698         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35699         Likewise.
35700         (SIZE_MAX): Define if not defined.
35701         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35702         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35703         hash_print):
35704         Use const * when possible.
35705         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35706         (check_tuning): Fix bug: if tuning parameters were very close to
35707         0 or 1, rounding errors could have caused subscript violations.
35708         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35709         (hash_initialize): Add 'fail:' label
35710         to free table and return NULL, and use it to simplify code.
35711         Use calloc rather than clearing the storage ourself.
35712         (hash_initialize, hash_rehash): Check for arithmetic overflow in
35713         buffer size calculations.
35714         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35715         Include <stddef.h>, for size_t.
35716         * lib/hash-pjw.c (hash_pjw): Likewise.
35717         Switch to method described by Bruno Haible.
35718         Include <limits.h>, for CHAR_BIT.
35719         (SIZE_BITS): New macro.
35720
35721 2003-10-23  Paul Eggert  <eggert@twinsun.com>
35722
35723         * m4/getline.m4 (AM_FUNC_GETLINE):
35724         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35725         hosts.  Problem reported by Derek Robert Price in
35726         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35727         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35728         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35729
35730 2003-10-21  Paul Eggert  <eggert@twinsun.com>
35731
35732         * lib/getndelim2.c (getndelim2): When size calculation overflows,
35733         ceiling the allocation at NMAX bytes rather than silently
35734         discarding input bytes before NMAX is reached.  This makes
35735         a difference only if NMAX exceeds SIZE_MAX / 2.
35736
35737         * lib/obstack.c: Merge from glibc.
35738         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35739         Add libc_hidden_def (_obstack_newchunk).
35740         (_obstack_free) [! defined _LIBC]: Remove.
35741         [defined _LIBC]: Make a strong alias from obstack_free, rather than
35742         a clone of the function body.
35743         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35744         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35745
35746         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35747         glibc.
35748         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35749         arg to memcpy.
35750
35751         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35752         (obstack_ptr_grow_fast, obstack_int_grow_fast):
35753         Don't use lvalue casts, as GCC plans to remove support for them
35754         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
35755         was also present in the non-GCC version, indicating that this
35756         code had always been buggy and had never been widely used.
35757         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35758         Use the fast variant of each macro, rather than copying the
35759         definiens of the fast variant; that way, we'll be more likely to
35760         catch future bugs in the fast variants.
35761
35762 2003-10-20  Bruno Haible  <bruno@clisp.org>
35763
35764         * modules/wait-process: New file.
35765         * MODULES.html.sh (func_all_modules): Add wait-process.
35766
35767 2003-10-20  Bruno Haible  <bruno@clisp.org>
35768
35769         * m4/wait-process.m4: New file.
35770
35771 2003-10-20  Bruno Haible  <bruno@clisp.org>
35772
35773         * lib/wait-process.h: New file, from GNU gettext.
35774         * lib/wait-process.c: New file, from GNU gettext.
35775
35776 2003-10-19  Jim Meyering  <jim@meyering.net>
35777
35778         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35779         HPUX 10.20.
35780
35781 2003-10-18  Karl Berry  <karl@gnu.org>
35782
35783         * config/config.guess: update from config.
35784
35785 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35786
35787         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35788         (getgroups): First arg is int, not size_t.
35789         Don't let 'free' mangle errno.
35790
35791 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35792
35793         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35794
35795 2003-10-16  Karl Berry  <karl@gnu.org>
35796
35797         * config/config.{guess,sub}: update from config.
35798
35799 2003-10-16  Jim Meyering  <jim@meyering.net>
35800
35801         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35802         memcpy.
35803
35804 2003-10-15  Paul Eggert  <eggert@twinsun.com>
35805
35806         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35807         (SIZE_MAX): Remove.
35808         (new_exclude, add_exclude_file): Initial size no longer needs to
35809         be a power of 2.
35810         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35811         our own address arithmetic overflow checking.
35812
35813         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35814         (fnmatch): Do not alloca more than 2000 wide characters;
35815         instead, use malloc for large buffers.
35816         Check for address arithmetic overflow, and return -1
35817         with errno set to ENOMEM in that case.
35818         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35819         (NEW_PATTERN): Do not alloca more than 8000 bytes;
35820         instead, return -1.  Check for address arithmetic overflow.
35821
35822 2003-10-14  Paul Eggert  <eggert@twinsun.com>
35823
35824         Handle invalid suffixes and overflow independently, so that
35825         callers can treat them independently as needed.  Fix some bugs in
35826         suffix handling, e.g., "100k@" was not diagnosed as an invalid
35827         suffix for a human-readable blocksize.  The major caller-visible
35828         change is the addition of a new
35829         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35830         that both overflow and suffix chars were found.
35831
35832         * lib/human.c (humblock): Don't check separately for invalid suffix
35833         char; that is xstrtoumax's job (now that its bug is fixed).
35834         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35835         INTMAX_MAX]: New macros.
35836         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35837         TYPE_MAXIMUM): New macros.
35838         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35839         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35840         if overflow occurs, as it's what __strtol does and it's more useful
35841         in practice.
35842         (__xstrtol): If __strtol reports some error other than ERANGE,
35843         reflect it to the caller as LONGINT_INVALID.  If it reports
35844         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35845         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35846         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35847         value.
35848         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
35849         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35850         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35851         [defined UINTMAX_MAX]: New macros.
35852
35853 2003-10-14  Bruno Haible  <bruno@clisp.org>
35854
35855         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35856
35857 2003-10-14  Bruno Haible  <bruno@clisp.org>
35858
35859         * m4/sig_atomic_t: New file, from GNU gettext.
35860         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35861
35862 2003-10-14  Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35865         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35866         Also use volatile where needed.
35867
35868 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35869
35870         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
35871         Change maintainer from Bruno Haible to 'all'.
35872
35873 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35874
35875         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35876
35877 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35878
35879         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35880         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35881         and define in terms of the other primitives.
35882         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35883         (SIZE_MAX): Define if not already defined.
35884         (array_size_overflow): New function.
35885         (xalloc_die): Abort instead of exiting if 'error' returns.
35886         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35887         (xmalloc, xrealloc): Use them.
35888         (xcalloc): Check for address arithmetic overflow.
35889         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
35890         a bit faster than strcpy.
35891
35892 2003-10-10  Simon Josefsson  <jas@extundo.com>
35893
35894         * modules/argp (Depends-on): Add restrict and strcase.
35895
35896 2003-10-10  Simon Josefsson  <jas@extundo.com>
35897
35898         * m4/argp.m4: Add AC_C_INLINE.
35899
35900 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35901
35902         Merge getpass from libc, plus a few fixes.
35903
35904         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
35905         Include <stdbool.h>.
35906         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
35907         __fsetlocking to empty.
35908         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
35909         do include <bits/libc-lock.h>.
35910         Do not include <fcntl.h>; not needed.
35911         [_LIBC]: Include <wchar.h>.
35912         (NOTCANCEL_MODE): New macro.
35913         (flockfile, funlockfile) [_LIBC]: New macros.
35914         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
35915         [!_LIBC]: New macros.
35916         (call_fclose): New function.
35917         (getpass): Use it.  Save tty stream separately; this simplifies the
35918         code and makes it more reliable if stdin happens to equal stdout.
35919         Invoke __fsetlocking on tty.
35920         Handle thread cancellation if needed.
35921         Namespace cleanup (use __tcgetattr, __getline).
35922         Use bool for Booleans.
35923         [USE_IN_LIBIO]: Handle wide streams.
35924         [!_LIBC]: Unconditionally do the fseek, since we don't know what
35925         stream might go where.
35926
35927         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
35928         doesn't have to include <stdio.h> before us.
35929         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
35930         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
35931         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
35932         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
35933         if not declared, so that we can use getpass.c code from libc without
35934         rewriting it.
35935         (flockfile, ftrylockfile, funlockfile): New macros.
35936
35937 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35938
35939         * modules/getpass: Depend on stdbool.
35940
35941 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35942
35943         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
35944
35945 2003-10-07  Karl Berry  <karl@gnu.org>
35946
35947         * config/config.{guess,sub}: update from config.
35948
35949 2003-10-06  Jim Meyering  <jim@meyering.net>
35950             Bruno Haible  <bruno@clisp.org>
35951
35952         This lets translators provide better translations for the
35953         "Written by ..." part of --version output.
35954         * lib/version-etc.h: Include stdarg.h.
35955         (version_etc_copyright): Declare as readonly.
35956         (version_etc): Make this function variadic with a NULL-terminated list
35957         of author name strings.
35958         (version_etc_va): New declaration.
35959         * lib/version-etc.c: Include stdarg.h, stdlib.h.
35960         (version_etc_copyright): Declare as readonly.
35961         (version_etc_va): New function. Provide a different translatable string
35962         for each possible number of authors < 10. Abbreviate when there are 10
35963         authors or more.
35964         (version_etc): Make this function variadic. Call version_etc_va.
35965         Suggestion from Gary V. Vaughan.
35966
35967         * lib/long-options.h (parse_long_options): Change prototype: the
35968         authors string is moved to the end and becomes variadic.
35969         * lib/long-options.c: Include stdarg.h.
35970         (parse_long_options): Make this function variadic, too.
35971         Call version_etc_va, not version_etc.
35972
35973 2003-10-06  Bruno Haible  <bruno@clisp.org>
35974
35975         * modules/version-etc-2: Remove file.
35976         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
35977
35978 2003-10-06  Bruno Haible  <bruno@clisp.org>
35979
35980         * modules/fatal-signal: New file.
35981         * MODULES.html.sh (func_all_modules): Add fatal-signal.
35982
35983 2003-10-06  Bruno Haible  <bruno@clisp.org>
35984
35985         * m4/fatal-signal.m4: New file.
35986         * m4/signalblocking.m4: New file, from GNU gettext.
35987
35988 2003-10-06  Bruno Haible  <bruno@clisp.org>
35989
35990         * lib/version-etc-2.h: Remove file.
35991         * lib/version-etc-2.c: Remove file.
35992
35993 2003-10-06  Bruno Haible  <bruno@clisp.org>
35994
35995         * lib/fatal-signal.h: New file, from GNU gettext.
35996         * lib/fatal-signal.c: New file, from GNU gettext.
35997
35998 2003-10-05  Paul Eggert  <eggert@twinsun.com>
35999
36000         * README: Rework advice for preventing empty .o files.
36001         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
36002         not <sys/types.h>.
36003
36004 2003-10-04  Karl Berry  <karl@gnu.org>
36005
36006         * lib/argp*: update from libc.
36007
36008 2003-10-04  Karl Berry  <karl@gnu.org>
36009
36010         * config/config.{guess,sub}: update from config.
36011
36012 2003-10-02  Bruno Haible  <bruno@clisp.org>
36013
36014         * modules/lchown (Include): Add lchown.h.
36015         * modules/time_r (Include): Use "..." syntax.
36016         * modules/xgetdomainname (Include): Add xgetdomainname.h.
36017
36018 2003-10-01  Simon Josefsson  <jas@extundo.com>
36019
36020         * MODULES.html.sh (func_all_modules): Move gethostname from section
36021         'based on' to section 'lacking' POSIX:2001.
36022
36023 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
36024
36025         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36026         to output mode on the same stream.
36027
36028 2003-09-29  Paul Eggert  <eggert@twinsun.com>
36029
36030         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36031         Fix arg typo in previous patch.
36032
36033 2003-09-28  Jim Meyering  <jim@meyering.net>
36034
36035         * lib/error.c: Correct cpp indentation.
36036
36037 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36038
36039         * modules/free: New file.
36040
36041 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36042
36043         * m4/free.m4: New file.
36044
36045 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36046
36047         * lib/minmax.h (MIN, MAX)
36048         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36049         Omit the special code that used __typeof__, since we worry that
36050         it could be more trouble than it's worth.  See:
36051         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36052         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36053
36054         * lib/free.c: New file.
36055
36056 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
36057
36058         Trivial fixes to Makefile.am parts of module listings.
36059         * modules/strstr: Append strstr.h to lib_SOURCES.
36060         * modules/strcase: Likewise, for strcase.h.
36061
36062 2003-09-27  Karl Berry  <karl@gnu.org>
36063
36064         * config/mkinstalldirs: update from automake.
36065
36066 2003-09-26  Paul Eggert  <eggert@twinsun.com>
36067
36068         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36069         (error_tail): Do not loop, reallocating temporary buffer, since
36070         the output cannot contain more wide characters than the input
36071         contains bytes, the size must be big enough already.  This avoids
36072         one potential size overflow calculation.  Check for size overflow
36073         when calculating temporary buffer size.  Free temporary buffer
36074         when done, if it was allocated with malloc; this plugs a memory
36075         leak.  Remove casts from void * to pointers, that are no longer
36076         needed now that we're assuming C89 or better.
36077
36078         Merge error changes from glibc.
36079
36080         * lib/error.c, error.h: Update copyright notice header to match glibc.
36081         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36082         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36083         Disable cancellation while printing error.
36084         * lib/error.h: Prepend __ to parameter names.
36085
36086 2003-09-26  Jim Meyering  <jim@meyering.net>
36087
36088         * lib/error.c (error_tail): Move some declarations
36089         into inner scope where the local variables are used.
36090
36091 2003-09-26  Bruno Haible  <bruno@clisp.org>
36092
36093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36094         stpncpy().
36095         Don't define stpncpy through config.h; it's now done through stpncpy.h.
36096
36097 2003-09-26  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/stpncpy.h (gnu_stpncpy): New declaration.
36100         (stpncpy): Define as alias for gnu_stpncpy.
36101         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36102
36103 2003-09-25  Simon Josefsson  <jas@extundo.com>
36104
36105         * lib/xgetdomainname.h: New file.
36106         * lib/xgetdomainname.c: New file.
36107
36108 2003-09-25  Simon Josefsson  <jas@extundo.com>
36109             Bruno Haible  <bruno@clisp.org>
36110
36111         * modules/getdomainname: New file.
36112         * modules/xgetdomainname: New file.
36113         * MODULES.html.sh (func_all_modules): Add getdomainname,
36114         xgetdomainname.
36115
36116 2003-09-25  Simon Josefsson  <jas@extundo.com>
36117             Bruno Haible  <bruno@clisp.org>
36118
36119         * m4/getdomainname.m4: New file.
36120
36121 2003-09-25  Simon Josefsson  <jas@extundo.com>
36122             Bruno Haible  <bruno@clisp.org>
36123
36124         * lib/getdomainname.h: New file.
36125         * lib/getdomainname.c: New file.
36126
36127 2003-09-25  Karl Berry  <karl@gnu.org>
36128
36129         * lib/argp-fmtstream.c, argp-help.c: update from libc.
36130
36131 2003-09-25  Karl Berry  <karl@gnu.org>
36132
36133         * config/install-sh: update from automake.
36134
36135 2003-09-25  Bruno Haible  <bruno@clisp.org>
36136
36137         * modules/version-etc-2: New file, from modules/version-etc with
36138         modifications.
36139         * MODULES.html.sh (func_all_modules): Add version-etc-2.
36140
36141 2003-09-25  Bruno Haible  <bruno@clisp.org>
36142
36143         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36144         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36145
36146 2003-09-24  Simon Josefsson  <jas@extundo.com>
36147
36148         * modules/xgethostname: Add xgethostname.h.
36149
36150 2003-09-24  Paul Eggert  <eggert@twinsun.com>
36151
36152         * lib/linebuffer.c (freebuffer): Don't free the argument, just
36153         the buffer associated with the argument.  Bug reported by
36154         Simon Josefsson.
36155
36156 2003-09-24  Paul Eggert  <eggert@twinsun.com>
36157
36158         * README: Document assumptions that 'int' is at least 32 bits
36159         wide, that integer arithmetic is 2's complement without overflow,
36160         that there are no holes in integer values, that adding sizes of
36161         two nonoverlapping objects can't overflow, and that all-bits-zero
36162         yields scalar zero.  Fix spelling and capitalization typos.
36163
36164 2003-09-19  Karl Berry  <karl@gnu.org>
36165
36166         * lib/argp.h: update from libc.
36167
36168 2003-09-17  Paul Eggert  <eggert@twinsun.com>
36169
36170         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36171         to avoid spurious warnings like "AC_RUN_IFELSE was called before
36172         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36173
36174 2003-09-17  Paul Eggert  <eggert@twinsun.com>
36175
36176         * gnulib-tool: Use "test -h", not "test -L", for portability
36177         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
36178         (tags_regexp): Remove, since \| doesn't conform to POSIX.
36179         (sed_extract_prog): Issue s commands one-by-one, rather than
36180         using \| in one s command.
36181
36182 2003-09-16  Paul Eggert  <eggert@twinsun.com>
36183
36184         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36185         input error, instead of returning NULL the next time we are called
36186         (and therefore losing track of errno).
36187
36188 2003-09-16  Bruno Haible  <bruno@clisp.org>
36189
36190         * gnulib-tool (func_create_testdir): Warn about duplicated
36191         dependencies.
36192
36193 2003-09-15  Paul Eggert  <eggert@twinsun.com>
36194
36195         * modules/argmatch, modules/fatal, modules/obstack,
36196         modules/xalloc, modules/xgethostname: Sort dependencies by
36197         importance, not alphabetically.
36198
36199 2003-09-15  Paul Eggert  <eggert@twinsun.com>
36200
36201         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36202         fails, so that the caller gets the proper errno.
36203
36204         * lib/readutmp.c (read_utmp): Likewise.
36205         Check for fstat error.  Close stream and free storage
36206         when failing.
36207
36208 2003-09-14  Karl Berry  <karl@gnu.org>
36209
36210         * config/srclist.txt (strdup.c): disable for c89 changes.
36211
36212 2003-09-14  Jim Meyering  <jim@meyering.net>
36213
36214         * lib/getloadavg.c: Correct cpp indentation.
36215         * lib/strdup.c: Likewise.
36216         * lib/vasnprintf.c: Likewise.
36217
36218 2003-09-14  Bruno Haible  <bruno@clisp.org>
36219
36220         * modules/fwriteerror: New file.
36221         * MODULES.html.sh (func_all_modules): Add fwriteerror.
36222
36223 2003-09-14  Bruno Haible  <bruno@clisp.org>
36224
36225         * lib/fwriteerror.h: New file.
36226         * lib/fwriteerror.c: New file.
36227
36228 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36229
36230         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36231         modules/xgethostname, modules/xalloc: Depend on exit.
36232
36233 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36234
36235         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36236
36237         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36238         and AC_MINIX, too, so that their extensions are available.
36239
36240         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
36241         This macro has been superseded by gl_BACKUPFILE.
36242
36243         More patches to assume C89 or better.
36244
36245         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36246
36247         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36248         unconditionally.
36249         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36250         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36251         Include <string.h>, <stdlib.h> unconditionally.
36252         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36253         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36254         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36255         headers or for string.h.
36256         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36257         or strtoul.
36258
36259         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36260         headers.
36261         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36262         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36263         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36264         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36265         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36266         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36267         memcpy, memset.
36268         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36269         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36270         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36271         strtol.
36272         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36273         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36274         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36275         strtoul.
36276
36277 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36278
36279         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36280         * lib/obstack.c [!defined _LIBC]: Likewise.
36281         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36282         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36283         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36284
36285         More changes to assume C89 or better.
36286
36287         * lib/error.c (error_tail): Assume vprintf.
36288
36289         * lib/argmatch.c (getenv): Remove decl.
36290         * lib/progreloc.c (get_full_program_name): Define via prototype.
36291         * lib/setenv.c (clearenv): Likewise.
36292         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36293         needed.
36294         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36295         (malloc, memcpy): Remove decls.
36296         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36297         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36298         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36299         (memcpy): Remove macro.
36300         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36301         (__P): Remove.  All uses removed.
36302         (PTR): Remove.  All uses changed to void *.
36303         (CHAR_BIT, NULL): Remove.
36304         (spaces, zeros, memset_space, memset_zero)
36305         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36306         Remove.
36307         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36308         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36309         Define with prototype.
36310         Remove now-unnecessary prototype decl.
36311         (extra_args_spec): Assume ANSI C.  All uses changed.
36312         (extra_args_spec_iso): Remove.
36313         (my_strftime, emacs_strftimeu): Define via prototype.
36314         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36315         unconditionally.
36316         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36317         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36318         (strtoul, strtol): Remove decls.
36319         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36320         LONG_MAX): Remove.
36321         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36322         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
36323         (LOCALE_PARAM_PROTO): New macro.
36324         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36325         (INTERNAL (strtol), strtol): Define with a prototype.
36326         (PARAMS): Remove.  All uses removed.
36327         * lib/tempname.c: Include <string.h> unconditionally.
36328         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36329         * lib/xgethostname.c (main): Define with a prototype.
36330         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36331         Include <stdlib.h> unconditionally.
36332         (calloc, malloc, realloc, free): Remove decls.
36333         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36334         Include <stdlib.h> unconditionally.  Sort include file names.
36335         (strtod): Remove.
36336         (xstrtod): Define with a prototype.
36337         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36338         (strtol, strtoul): Remove decls.
36339
36340 2003-09-11  Paul Eggert  <eggert@twinsun.com>
36341
36342         More patches to assume C89 or better.
36343         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36344         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36345         string.h, memchr, STDC_HEADERS.
36346
36347 2003-09-11  Paul Eggert  <eggert@twinsun.com>
36348
36349         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
36350         Include <stdlib.h>, <string.h> unconditionally.
36351         Remove now-unnecessary cast to char *.
36352         * lib/strnlen.c: Include <string.h> unconditionally.
36353         * lib/yesno.c (yesno): Define with a prototype.
36354
36355 2003-09-11  Bruno Haible  <bruno@clisp.org>
36356
36357         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
36358
36359 2003-09-10  Jim Meyering  <jim@meyering.net>
36360
36361         * lib/error.c: Correct indentation of cpp directives.
36362
36363 2003-09-10  Bruno Haible  <bruno@clisp.org>
36364
36365         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
36366         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
36367         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
36368         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
36369         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
36370         <stdlib.h> and <string.h> checks.
36371         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
36372         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
36373
36374 2003-09-10  Bruno Haible  <bruno@clisp.org>
36375
36376         * lib/strcspn.c: Include <string.h> unconditionally.
36377         * lib/strpbrk.c: Include <string.h> unconditionally.
36378         * lib/strstr.c: Include <string.h> unconditionally.
36379         * lib/unicodeio.c: Include <string.h> unconditionally.
36380         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
36381         * lib/unsetenv.c: Likewise.
36382         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
36383         * lib/yesno.c: Include <stdlib.h> unconditionally.
36384         (rpmatch): Add prototype.
36385
36386 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36387
36388         More patches to assume C89 or better.
36389         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
36390         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
36391         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
36392         or for string.h.
36393         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
36394         stdlib.h.
36395         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
36396         C headers.
36397         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
36398         string.h.
36399         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
36400         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
36401         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
36402         or for string.h.
36403         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
36404         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
36405         C headers.
36406         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
36407         memcpy.
36408         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
36409         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
36410         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
36411         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
36412         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
36413         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
36414         string.h, free.
36415         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
36416         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
36417         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
36418         C headers, or for string.h.
36419         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
36420         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
36421         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
36422         headers, memory.h, stdlib.h, string.h, strings.h.
36423         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
36424         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
36425         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
36426         strchr.
36427         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
36428         headers, memory.h, string.h.
36429         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
36430         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
36431         free.
36432         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
36433         headers.
36434         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
36435         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
36436         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
36437         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
36438         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
36439
36440 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36441
36442         More K&R removal.
36443
36444         * lib/acosl.c (main): Use a prototype.
36445         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
36446         tanl.c: Likewise.
36447
36448         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
36449
36450         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
36451         (getopt, etopt_long, getopt_long_only, _getopt_internal)
36452         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
36453         with a prototype.
36454         * lib/getopt.c (const): Remove macro.
36455         Include <string.h> unconditionally.
36456         (my_index): Remove; all uses changed to strchr.
36457         (strlen): Remove decl.
36458         (exchange): Remove forward decl; no longer needed.
36459         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
36460         Define with prototype.
36461         * lib/getopt1.c (const): Remove macro.
36462         (getopt_long, getopt_long_only, main): Define with prototype.
36463
36464         * lib/getugroups.c: Include <string.h> unconditionally.
36465
36466         * lib/getusershell.c: Include <stdlib.h> unconditionally.
36467         (getusershell, setusershell, endusershell, readname, main):
36468         Define with prototypes.
36469
36470         * lib/group-member.c: Include group-member.h first.
36471         Include <stdlib.h> unconditionally.
36472
36473         * lib/hard-locale.c: Include hard-locale.h first.
36474         Include <stdlib.h>, <string.h> unconditionally.
36475
36476         * lib/hash.c (free, malloc): Remove decls.
36477         Include <stdlib.h> unconditionally.
36478
36479         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
36480         (getenv): Do not declare.
36481
36482         * lib/idcache.c: Include <string.h> unconditionally.
36483
36484         * lib/long-options.c: Include long-options.h first, to test interface.
36485         Include <stdlib.h> unconditionally.
36486
36487         * lib/makepath.c: Include makepath.h first, to test interface.
36488         Include <stdlib.h> and <string.h> unconditionally.
36489
36490         * lib/linebuffer.c: Include <stdlib.h>.
36491         (free): Remove decl.
36492
36493         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
36494         stddef.h. rpl_malloc returns void *, not char *.
36495         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
36496         prototype.
36497
36498         * lib/md5.h: Include <limits.h> unconditionally.
36499         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
36500         (__P): Remove; all uses removed.
36501         * lib/md5.c: Include "md5.h" first.
36502         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
36503         md5_buffer, md5_process_bytes, md5_process_block):
36504         Define with prototypes.
36505         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
36506         * lib/sha.c: Include "sha.h" first.
36507         Include <stdlib.h>, <string.h> unconditionally.
36508
36509         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
36510         * lib/memcmp.c (__ptr_t): Likewise.
36511         * lib/memrchr.c (__ptr_t): Likewise.
36512         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
36513         Include <string.h> unconditionally.
36514         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
36515         * lib/memchr.c: Include <stdlib.h> unconditionally.
36516         * lib/memchr.c (LONG_MAX): Remove.
36517         * lib/memrchr.c (LONG_MAX): Likewise.
36518         * lib/memchr.c (__memchr): Define via a prototype.
36519         * lib/memrchr.c (__memrchr): Likewise.
36520         * lib/memcmp.c (__P): Remove, and remove all uses.
36521         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
36522         Remove forward decls; no longer needed.
36523         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
36524         Use types required by C89 in prototype.
36525
36526         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
36527         * lib/savedir.c: Likewise.
36528         * lib/mkdir.c (free): Remove decl.
36529         * lib/rmdir.c (rmdir): Define with a prototype.
36530         * lib/savedir.c: Include savedir.h first, to test interface.
36531
36532         * lib/mktime.c (STDC_HEADERS): Remove.
36533         Include <stdlib.h>, <string.h> unconditionally.
36534
36535         * lib/modechange.c: Include <stdlib.h> unconditionally.
36536         (malloc): Remove decl.
36537
36538         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
36539         (free): Remove decl.
36540
36541         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36542         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36543         (This type really should be intptr_t, but that's a C99ism.)
36544         (_obstack_memcpy): Remove: all uses changed to memcpy.
36545         Include <string.h> unconditionally.
36546         (struct obstack): Assume __STDC__ for types of members
36547         chunkfun, freefun, extra_arg.
36548         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36549         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36550         obstack_begin, obstack_specify_allocation,
36551         obstack_specify_allocation_with_arg, obstack_chunkfun,
36552         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36553         Remove unprototyped decls and the macros that use them.
36554         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
36555         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36556         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36557         (defined __STDC__ && __STDC__)]:
36558         Remove nonprototyped code.
36559         Include <stdlib.h> unconditionally.
36560         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36561         _obstack_allocated_p, _obstack_free, obstack_free,
36562         _obstack_memory_used, print_and_abort):
36563         Define using prototypes.
36564         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36565         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36566         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36567         obstack_next_free, obstack_object_size, obstack_room) [0]:
36568         Remove unused, unprototyped code.
36569
36570         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36571
36572         * lib/physmem.c (physmem_total, physmem_available, main): Define
36573         with prototypes.
36574
36575         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36576         (main): Define with a prototype.
36577
36578         * lib/posixver.c (getenv): Remove decl.
36579
36580         * lib/putenv.c (malloc): Returns void *, not char *.
36581         Include <string.h> unconditionally.
36582         (strchr, memcpy, NULL): Do not define.
36583
36584         * lib/readtokens.c: Include readtokens.h first, to test interface.
36585         Include <stdlib.h>, <string.h> unconditionally.
36586         (init_tokenbuffer): Define with a prototype.
36587
36588         * lib/regex.c (PARAMS): Remove.  All uses removed.
36589         All uses of _RE_ARGS removed, too.
36590         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36591         unconditionally.
36592         (bzero): Assume memset exists.
36593         (memcmp, memcpy, NULL): Remove.
36594         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36595         char, or assignments to local vars of type signed char.
36596         (init_syntax_once, PREFIX(extract_number_and_incr),
36597         PREFIX(print_partial_compiled_pattern),
36598         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36599         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36600         PREFIX(regex_grow_registers), PREFIX(regex_compile),
36601         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36602         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36603         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36604         wcs_compile_range, byte_compile_range, truncate_wchar,
36605         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36606         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36607         count_mbs_length, wcs_re_match_2_internal,
36608         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36609         PREFIX(alt_match_null_string_p),
36610         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36611         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36612         regfree, PREFIX(extract_number)): Define with prototype.  Remove
36613         now-unnecessary declaration, if any.
36614         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36615         regcomp, regexec):
36616         Remove now-unnecessary casts among pointer types.
36617         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
36618
36619         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36620         (free): Remove decl.
36621
36622         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36623
36624         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36625         (free): Remove decl.
36626
36627         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36628         * lib/xgetcwd.c: Likewise.
36629
36630         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36631         (free): Remove decl.
36632
36633         * lib/strchrnul.c (strchrnul): Define with a prototype.
36634         Fix bug: c_in was not converted to char before searching.
36635
36636         The following changes are not K&R related:
36637
36638         * lib/group-member.h: Include <sys/types.h>, so that this file is
36639         self-contained.
36640         * lib/makepath.h: Likewise.
36641
36642         * lib/getusershell.c (readname, default_index, line_size, readname):
36643         Use size_t, not int, for sizes.
36644         (readname): If the size overflows, report an error instead of
36645         looping forever.
36646
36647 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36648
36649         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36650         libc.
36651
36652 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36653
36654         * README: New section: portability guidelines.
36655
36656 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36657
36658         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36659         C89 spec.
36660
36661 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36662
36663         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36664
36665 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36666
36667         Assume C89 or better; remove K&R cruft.
36668         A few of these changes were first proposed by Derek Robert Price
36669         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36670
36671         * lib/addext.c: Include <string.h> unconditionally.
36672         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36673         Don't declare getenv or malloc.
36674
36675         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36676         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36677         (NULL): Remove.
36678         (find_stack_direction, alloca): Use prototypes.
36679
36680         * lib/atexit.c (atexit): Define using a prototype.
36681
36682         * lib/basename.c, dirname.c, stripslash.c:
36683         Include <string.h> unconditionally.
36684
36685         * lib/bcopy.c: Include <stddef.h>.
36686         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36687
36688         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36689
36690         * lib/error.h (error, error_at_line, error_print_progname)
36691         [! (defined (__STDC__) && __STDC__)]: Remove decls.
36692         * lib/error.c: Include error.h first, to check interface.
36693         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36694         (VA_START): Remove; all uses changeed to va_start.
36695         (exit, strerror): Remove decls.
36696         (error_print_progname): Prototype uncondionally.
36697         Don't include <errno.h>; no longer needed.
36698         (private_strerror): Remove.
36699         (error_tail): Always define.
36700         (error, error_at_line): Assume C89 or better; always use prototypes.
36701         * lib/fatal.c: Include "fatal.h" first, to test interface.
36702         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36703         (VA_START): Remove; all uses changed to va_start.
36704         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36705         this case.
36706         (exit): Remove decl.
36707         (fatal): Prototype unconditionally.  Assume va_start works.
36708         Abort at end, to pacify gcc.
36709
36710         * lib/euidaccess.c (main): Define with a prototype.
36711
36712         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36713
36714         * lib/exitfail.c: Include <stdlib.h> unconditionally.
36715
36716         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
36717         prototypes.
36718         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36719         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36720         (getenv): Remove decl.
36721         (fnmatch): Define using a prototype.
36722         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36723         (FCT): Define using a prototype.
36724
36725         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36726
36727         * lib/gethostname.c: Include <stddef.h>.
36728         (gethostname): Define with prototype.  Length is size_t, not int.
36729
36730 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36731
36732         Assume C89 or better; remove K&R cruft.
36733         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36734         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36735         string.h, getenv, malloc.
36736         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36737         headers.
36738         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36739         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36740         do not check for strerror.
36741         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36742         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36743         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36744         do not check for doprnt or vprintf.
36745         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
36746         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36747
36748 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36749
36750         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36751         getversion.c should have been removed then, but was accidentally
36752         preserved.
36753
36754         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36755         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36756
36757 2003-09-08  Karl Berry  <karl@gnu.org>
36758
36759         * config/config.sub, config.guess, srclistvars.sh: update from savannah
36760                 config, forget about prep.
36761
36762         * config/depcomp, missing: update from automake.
36763
36764 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36765
36766         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
36767         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36768
36769 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36770
36771         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36772         copy_tm_result.  Bug reported by Simon Josefsson in
36773         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36774
36775 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36776
36777         * m4/time_r.m4: New file.
36778         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36779         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36780         is. Check for timegm declaration.
36781         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36782         Do not check for gmtime_r.
36783         Replace mktime if __mktime_internal does not exist and if mktime
36784         hasn't been replaced already.
36785
36786 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36787
36788         * lib/time_r.c, lib/time_r.h: New files.
36789
36790         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36791         __localtime_r.
36792         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
36793         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36794
36795         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36796         __gmtime_r.
36797         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36798         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36799         Include <time_r.h>.
36800
36801         * lib/timegm.c: Switch to glibc implementation, with the following
36802         changes:
36803         [defined HAVE_CONFIG_H]: Include <config.h>.
36804         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36805         (__mktime_internal) [!defined _LIBC]: New decl.
36806         (__gmtime_r) [!defined _LIBC]: New macro and function.
36807         (timegm): Use a prototype, since gnulib assumes C89.
36808         Do not bother declaring tmp to be const, as it's not really usefu.
36809         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36810         (timegm): Declare only if HAVE_DECL_TIMEGM.
36811
36812 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36813
36814         * MODULES.html.sh (func_all_modules): Add time_r.
36815         * modules/time_r: New file.
36816         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36817         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
36818
36819 2003-09-03  Paul Eggert  <eggert@twinsun.com>
36820
36821         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36822         Bug reported by Lute Kamstra in
36823         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36824
36825         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36826         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
36827         course with correspondingly smaller numbers for tomorrow and
36828         yesterday.  From Tadayoshi Funaba.  Originally installed into
36829         sh-utils on 1999-08-07, but the patch got lost (I guess during the
36830         coreutils merge?).
36831
36832 2003-08-31  Simon Josefsson  <jas@extundo.com>
36833
36834         * modules/timegm: New file.
36835         * MODULES.html.sh (func_all_modules): Add timegm.
36836
36837 2003-08-31  Simon Josefsson  <jas@extundo.com>
36838
36839         * m4/timegm.m4: New file.
36840
36841 2003-08-31  Simon Josefsson  <jas@extundo.com>
36842
36843         * lib/timegm.h: New file.
36844         * lib/timegm.c: New file.  Based on
36845         wget-1.8.2/src/http.c:mktime_from_utc.
36846
36847 2003-08-31  Karl Berry  <karl@gnu.org>
36848
36849         * lib/argp.h: update from libc.
36850
36851 2003-08-28  Bruno Haible  <bruno@clisp.org>
36852
36853         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36854         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36855         followed by '#define fnmatch fnmatch_posix' gives an error.
36856
36857 2003-08-28  Bruno Haible  <bruno@clisp.org>
36858
36859         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36860         warning on QNX, which defines O_BINARY to 000000.
36861
36862 2003-08-27  Jim Meyering  <jim@meyering.net>
36863
36864         * m4/mkstemp.m4: Require that the system mkstemp be able to create
36865         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
36866         would fail after 32.  Reported by Danny Levinson.  Details here:
36867         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36868
36869 2003-08-24  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36872         MSVC7 <stdio.h> is included later.
36873
36874 2003-08-22  Simon Josefsson  <jas@extundo.com>
36875
36876         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36877
36878 2003-08-20  Karl Berry  <karl@gnu.org>
36879
36880         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36881
36882 2003-08-20  Bruno Haible  <bruno@clisp.org>
36883
36884         * modules/progname: New file.
36885         * MODULES.html.sh (func_all_modules): Add progname.
36886
36887 2003-08-20  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/progname.h: New file, from GNU gettext.
36890         * lib/progname.c: New file, from GNU gettext.
36891         * lib/progreloc.c: New file, from GNU gettext.
36892
36893 2003-08-19  Jim Meyering  <jim@meyering.net>
36894
36895         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
36896         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
36897
36898 2003-08-19  Bruno Haible  <bruno@clisp.org>
36899
36900         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
36901         more.
36902
36903 2003-08-19  Bruno Haible  <bruno@clisp.org>
36904
36905         * lib/xstrdup.c: Assume <string.h> exists.
36906
36907 2003-08-18  Paul Eggert  <eggert@twinsun.com>
36908
36909         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
36910         in makefile rules.
36911
36912 2003-08-18  Jim Meyering  <jim@meyering.net>
36913
36914         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
36915         * m4/lib-ld.m4: Likewise.
36916
36917 2003-08-18  Jim Meyering  <jim@meyering.net>
36918
36919         * lib/setenv.h: Indent nested cpp directive.
36920         * lib/vasnprintf.c: Remove trailing blanks.
36921
36922 2003-08-17  Simon Josefsson  <jas@extundo.com>
36923
36924         * modules/xstrndup: New file.
36925         * MODULES.html.sh (func_all_modules): Add xstrndup.
36926
36927 2003-08-17  Simon Josefsson  <jas@extundo.com>
36928
36929         * modules/argp: Fix autoconf macro name. Add more dependencies.
36930
36931 2003-08-17  Simon Josefsson  <jas@extundo.com>
36932
36933         * m4/xstrndup.m4: New file.
36934
36935 2003-08-17  Simon Josefsson  <jas@extundo.com>
36936
36937         * m4/argp.m4: New file.
36938
36939 2003-08-17  Simon Josefsson  <jas@extundo.com>
36940             Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/xstrndup.h: New file.
36943         * lib/xstrndup.c: New file.
36944
36945 2003-08-17  Bruno Haible  <bruno@clisp.org>
36946
36947         * modules/strndup (Files, Include): Add lib/strndup.h.
36948
36949 2003-08-17  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/euidaccess (Files): Add lib/euidaccess.h.
36952
36953 2003-08-17  Bruno Haible  <bruno@clisp.org>
36954
36955         * lib/strndup.h: New file.
36956
36957 2003-08-17  Bruno Haible  <bruno@clisp.org>
36958
36959         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
36960         like AC_GNU_SOURCE.
36961         * modules/extensions (configure.ac): Comment out the invocation of
36962         gl_USE_SYSTEM_EXTENSIONS.
36963
36964 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36965
36966         Merges from coreutils, etc.
36967         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36968         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
36969         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
36970         fixing a typo.
36971         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
36972         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
36973
36974 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36975
36976         Document merge from coreutils.
36977         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
36978         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
36979         * modules/utime: Add m4/utimes-null.m4.
36980
36981 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36982
36983         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
36984         space, undoing this 2003-08-12 change:
36985         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36986
36987 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36988
36989         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
36990         strtoul.c from libc, undoing this 2003-08-12 change:
36991         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36992
36993 2003-08-16  Jim Meyering  <jim@meyering.net>
36994
36995         Merges from coreutils.
36996         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
36997         prefix.  Adjust cache variables similarly.  Create 500 rather than
36998         just 300 files, to exercise bug on Darwin6.5, too.
36999         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37000         $missing_dir.
37001         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37002         AM_SYS_POSIX_TERMIOS.
37003         Reported by mkc@mathdogs.com.
37004         Also change use of $am_cv_sys_posix_termios
37005         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
37006         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37007         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37008         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37009         in /proc/mounts until it finds one with matching device number.  This
37010         is unnecessary when the FILE argument *is* a mount point.  No stat call
37011         is necessary in that case.  So, disable the statvfs-testing code on
37012         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
37013         as RedHat bug# 84846.
37014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37015         to 1MB, so as not to render systems with no stack size limit (e.g.,
37016         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
37017         Include <unistd.h>.  On some systems,
37018         it is required for the definition of _SC_PAGESIZE.
37019
37020 2003-08-16  Jim Meyering  <jim@meyering.net>
37021
37022         Merge from coreutils.
37023         * lib/xstrtoimax.c: #else #if -> #elif.
37024         * lib/xstrtoumax.c: Likewise.
37025
37026 2003-08-16  Jim Meyering  <jim@meyering.net>
37027
37028         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37029         * m4/utimes.m4: Removed.
37030         * m4/utimes-null.m4: Renamed from utimes.m4.
37031
37032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37033         to 1MB, so as not to render systems with no stack size limit (e.g.,
37034         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
37035         Include <unistd.h>.  On some systems,
37036         it is required for the definition of _SC_PAGESIZE.
37037
37038 2003-08-16  Jim Meyering  <jim@meyering.net>
37039         and Paul Eggert  <eggert@cs.ucla.edu>
37040
37041         Merges from coreutils, etc.
37042
37043         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37044         using the latest version from cvs.  This avoids problems with #line
37045         directives using a vendor (Sun) compiler.
37046         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37047         Don't set GETGROUPS_LIB here; now it's
37048         done via getgroups.m4's wrapper function.
37049         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37050         rather than just in sh-util/configure.in, so that the
37051         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37052         same.
37053         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37054         AC_FUNC_GETLOADAVG where to find getloadavg.c.
37055         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37056         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37057         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37058         Remove code that is now done by the newly-required macros.
37059         Append $(EXEEXT) to DF_PROG.
37060         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37061         Do not invoke or require the following here,
37062         since prereq.m4 or some gnulib .m4 now does this for us:
37063         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37064         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37065         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37066         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37067         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37068         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37069         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37070         AC_FUNC_OBSTACK.
37071         Do not replace the following functions, as this is now the job
37072         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37073         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37074         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37075         atexit getpass, strdup, getpagesize.
37076         Replace 'raise'.
37077         Do not check for the following functions, as this is now the job
37078         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37079         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
37080         setregid.
37081         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37082         Check for sys/sysctl.h.
37083         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37084         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
37085         of checking for ssize_t ourselves.
37086
37087         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37088         Require every macro that gnulib/modules/* suggests for us.
37089         (jm_PREREQ_ADDEXT): New macro.
37090         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37091         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37092
37093         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37094         (gl_PHYSMEM): Use it.
37095         Also check for `table' function.
37096         Check for new headers and functions.
37097         Add check for sys/sysmp.h.
37098         With suggestions from Kaveh Ghazi.
37099         Ignore headers that are present but cannot be compiled.  This
37100         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37101         C 5.4.
37102
37103 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37104
37105         Document merge from coreutils.
37106         * modules/userspec: Depend on posixver.
37107         * modules/strftime: Depend on tzset.
37108
37109 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37110
37111         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37112         rather than tab, after '#' in shell-script copyright notices.
37113         Suggested by Bruno Haible.
37114
37115 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37116
37117         * config/srclist-update: Use three spaces, rather than tab, after '#'
37118         in shell-script copyright notices.  Suggested by Bruno Haible.
37119         Remove unnecessary parenthesization in regular expression.
37120
37121 2003-08-15  Jim Meyering  <jim@meyering.net>
37122
37123         Merge from coreutils.
37124         * lib/xgethostname.c: Include <stdlib.h>.
37125         (xghostname): Don't exit for anything other than memory-related
37126         failure; just return NULL.
37127         * lib/userspec.c: Include "posixver.h".
37128         (parse_user_spec): Accept `.' as a separator only
37129         in pre-POSIX-200112 mode.
37130         * lib/strtoimax.c: Use #elif rather than #else #if.
37131         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37132         Remove function, now that we can rely on a working tzset function.
37133         [!_LIBC]: Ensure that the required autoconf test has been run.
37134         [!defined _NL_CURRENT && HAVE_STRFTIME]:
37135         Use underlying_strftime for %r.
37136         * lib/sha.c: Merge in some clean-up and optimization changes from
37137         glibc.
37138         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37139         Ensure that it is a multiple of 64.
37140         Rearrange loop exit tests so as to avoid performing an
37141         additional fread after encountering an error or EOF.
37142         * lib/realloc.c: Update copyright date.
37143
37144 2003-08-15  Jim Meyering  <jim@meyering.net>
37145         and Paul Eggert  <eggert@twinsun.com>
37146
37147         Merge from coreutils.
37148         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37149         member but strut utmpx does not.  Needed for AIX 4.3.3.
37150         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37151
37152 2003-08-15  Jim Meyering  <jim@meyering.net>
37153         and Paul Eggert  <eggert@cs.ucla.edu>
37154
37155         Merges from coreutils, etc.
37156         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37157         Require gl_FUNC_TZSET_CLOBBER.
37158         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37159         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37160         members.
37161
37162 2003-08-14  Paul Eggert  <eggert@twinsun.com>
37163
37164         Help the merge from coreutils.
37165         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37166         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37167         * m4/tzset.m4: Use it too.
37168
37169 2003-08-14  Paul Eggert  <eggert@twinsun.com>
37170
37171         * modules/tzset: New file.
37172
37173 2003-08-14  Jim Meyering  <jim@meyering.net>
37174
37175         Merges from coreutils.
37176         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37177         variable names, rather than @FNMATCH_H@.
37178         * modules/alloca: Likewise for $(ALLOCA_H).
37179
37180         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37181         the three copies of the literal target, `fnmatch.h'.
37182         * modules/alloca (alloca.h): Likewise.
37183
37184 2003-08-14  Jim Meyering  <jim@meyering.net>
37185
37186         Merge from coreutils.
37187         * m4/tzset.m4: New file.
37188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37189         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37190         otherwise, AIX 5.1 systems would end up using the latter.
37191         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37192         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
37193         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37194         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
37195
37196 2003-08-14  Jim Meyering  <jim@meyering.net>
37197
37198         Merge from coreutils.
37199         * lib/obstack.h: Whitespace changes.
37200         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37201         and xcalloc return values.
37202         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37203         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
37204         hang on OSF/1 5.1 for DIR on both local and remote file systems.
37205         Reported by (and fix confirmed by) Nelson H. F. Beebe.
37206         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37207         error from mntctl.
37208         Use mntctl's return value to drive the entry-processing loop, since
37209         we can't rely on the value of the vmt_length member in the last
37210         entry.  On some systems doing so could result in exhausting
37211         virtual memory.  Based in part on a patch from Mike Jetzer.
37212
37213 2003-08-14  Jim Meyering  <jim@meyering.net>
37214         and Paul Eggert  <eggert@twinsun.com>
37215
37216         Merges from coreutils, plus other fixes.
37217         * lib/physmem.c: Merge in portability changes from gcc/libiberty
37218         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
37219         for credits and details.  Thanks to Kaveh Ghazi for helping
37220         to keep these files in sync.
37221         (ARRAY_SIZE): Define it.
37222         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37223         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37224         (memcasecmp): Don't assume size_t fits in unsigned int.
37225         Remove casts and duplicate code.
37226         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37227         (memcpy): Remove definition.
37228         Merge in some clean-up and optimization changes from glibc.
37229         [BLOCKSIZE]: Move definition to top of file.
37230         Ensure that it is a multiple of 64.
37231         Rearrange loop exit tests so as to avoid performing an
37232         additional fread after encountering an error or EOF.
37233         * lib/md5.h (md5_uintptr): Define.
37234         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37235         return to the initial working directory.  Preserve errno
37236         for caller.
37237         * lib/idcache.c: Include "xalloc.h".
37238         (xmalloc, xrealloc): Remove decls.
37239         (getuser): Remove casts no longer required in C89.
37240         * lib/human.c: Include stdio.h, for sprintf.
37241         * lib/group-member.c: Include "xalloc.h".
37242         (xmalloc, xrealloc): Remove decls.
37243         (get_group_info): Remove casts no longer required in C89.
37244         * lib/getusershell.c (readname): Remove casts no longer required in
37245         C89.
37246         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37247         * lib/getline.c: Whitespace fix, from coreutils.
37248
37249 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37250
37251         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37252         Check for isascii.
37253
37254         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37255         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37256         Undo previous (whitespace-only) change.
37257
37258 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37259
37260         * lib/exclude.c: Include <ctype.h>
37261         (IN_CTYPE_DOMAIN): New macro.
37262         (is_space): New fn.
37263         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37264         and empty lines.
37265
37266         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37267         Undo previous (whitespace-only) change.
37268
37269 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37270
37271         * config/srclist-update: Change update back to the old behavior,
37272         leaving whitespace alone.  Use one 'sed' command rather than a
37273         pipeline.
37274         (fixlicense): Now a variable, not a function.
37275         (remove_trailing_blanks): Remove.
37276         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37277         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37278         Undo previous (whitespace-only) change.
37279
37280 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37281
37282         Merge from coreutils.
37283         * modules/euidaccess: Add lib_SOURCES, include for new
37284         file euidaccess.h
37285
37286 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37287
37288         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37289         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37290         Normalize leading white space and remove trailing white space.
37291
37292         Merge from coreutils
37293         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37294
37295         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37296         0.12.1.  These files are now being upgraded automatically by
37297         ../config/srclist-update.
37298
37299 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37300
37301         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37302         Normalize leading white space and remove trailing white space.
37303         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37304         notice, as per ../config/srclist-update.
37305
37306         Merge from coreutils.
37307         * lib/euidaccess.h: New file.
37308         * lib/euidaccess.c: Include it.
37309         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37310         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
37311         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37312
37313 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37314
37315         * config/srclist-update: Add copyright notice.
37316         (remove_id_lines, remove_trailing_blanks): New constants.
37317         (fixfile): Use them to normalize spacing a bit in copied files.
37318         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37319         Normalize leading white space and remove trailing white space.
37320
37321         * config/texinfo.tex: Sync with texinfo.
37322
37323         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37324         strtoul.c from libc, to merge coreutils whitespace changes.
37325
37326         * config/srclist.txt: Get the following m4 files from gettext:
37327         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37328         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37329         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37330         wint_t.m4.
37331
37332 2003-08-12  Karl Berry  <karl@gnu.org>
37333
37334         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37335         been made.
37336
37337 2003-08-11  Paul Eggert  <eggert@twinsun.com>
37338
37339         * modules/gnu-source, m4/gnu-source.m4:
37340         Remove; we're assuming Autoconf 2.54 or later now.
37341         Suggested by Bruno Haible.
37342         * MODULES.html.sh (func_all_modules): Remove gnu-source.
37343
37344 2003-08-11  Bruno Haible  <bruno@clisp.org>
37345
37346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
37347
37348 2003-08-11  Bruno Haible  <bruno@clisp.org>
37349
37350         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
37351         (vasnprintf): Use it instead of wcslen.
37352
37353 2003-08-11  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
37356         value to ensure that _Bool promotes to int. Use #define for _Bool when
37357         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
37358
37359 2003-08-10  Karl Berry  <karl@gnu.org>
37360
37361         * lib/regex.h: update from libc (whitespace fix).
37362
37363 2003-08-09  Paul Eggert  <eggert@twinsun.com>
37364
37365         Merge some files from coreutils.  These changes were
37366         originally made by Jim Meyering.
37367         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
37368         many older Unixes require this.
37369         * lib/alloca.c (alloca): Remove cast to argument of free;
37370         no longer needed in C89.
37371         * lib/alloca_.h, regex.h: Fix white space to match
37372         what GNU indent does.
37373
37374 2003-08-09  Paul Eggert  <eggert@twinsun.com>
37375
37376         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
37377         apparently Emacs's Unicode mode got confused before my 2003-08-05
37378         checkin.
37379
37380 2003-08-08  Paul Eggert  <eggert@twinsun.com>
37381
37382         * m4/extensions.m4: New file.
37383         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
37384         Require gl_USE_SYSTEM_EXTENSIONS.
37385         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
37386         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
37387
37388 2003-08-08  Paul Eggert  <eggert@twinsun.com>
37389
37390         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
37391         * modules/extensions, modules/gnu-source: New files.
37392         * modules/timespec, modules/unlocked-io: Depend on extensions.
37393
37394 2003-08-07  Paul Eggert  <eggert@twinsun.com>
37395
37396         * modules/restrict: New file.
37397         * MODULES.html.sh (func_all_modules): Add restrict.
37398         * modules/regex: Depend on restrict.
37399
37400 2003-08-07  Paul Eggert  <eggert@twinsun.com>
37401
37402         * m4/restrict.m4: New file.
37403         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
37404
37405 2003-08-07  Bruno Haible  <bruno@clisp.org>
37406
37407         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
37408         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
37409
37410 2003-08-07  Bruno Haible  <bruno@clisp.org>
37411
37412         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
37413         makes the module 'getndelim2' compatible with the module 'getline'.
37414
37415 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37416
37417         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
37418         byte with "\201" to avoid glitches when editing that source file
37419         with multi-gnome-terminal.
37420
37421 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37422
37423         * lib/bumpalloc.h: Remove.
37424
37425 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37426
37427         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
37428         * modules/bumpalloc: Remove.
37429
37430 2003-08-04  Paul Eggert  <eggert@twinsun.com>
37431
37432         * lib/getloadavg.c: Change copyright notice and spacing to conform to
37433         GNU coding style.
37434
37435         Merge from coreutils.
37436         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
37437         1. From glibc.
37438         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
37439         from Karl Berry, implemented by Jim Meyering.
37440         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
37441         from Dmitry V. Levin.
37442         Remove anachronistic cast of xrealloc.
37443         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
37444         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
37445         type. Otherwise, it wouldn't compile with at least /bin/cc on
37446         ymp-cray-unicos9.0.2.X.
37447         Combine two mostly-identical uses of alloca into one.
37448         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
37449
37450 2003-08-04  Dave Love  <d.love@dl.ac.uk>
37451
37452         [From Emacs.]
37453
37454         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
37455         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
37456         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
37457         obsolete NLIST_NAME_UNION.
37458         [__GNU__]: Undef BSD and FSCALE.
37459         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
37460
37461 2003-08-03  Paul Eggert  <eggert@twinsun.com>
37462
37463         * lib/stdbool_.h (_Bool): Make it signed char, instead of
37464         an enum type, so that it's guaranteed to promote to int.  See:
37465         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
37466
37467 2003-08-03  Karl Berry  <karl@gnu.org>
37468
37469         * config/depcomp: update from automake.
37470
37471 2003-07-31  Paul Eggert  <eggert@twinsun.com>
37472
37473         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
37474         (strerror): Don't assume that a printable int fits in 14 bytes.
37475
37476 2003-07-31  Bruno Haible  <bruno@clisp.org>
37477
37478         * modules/getpass-gnu: New file.
37479         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
37480
37481 2003-07-31  Bruno Haible  <bruno@clisp.org>
37482
37483         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
37484
37485 2003-07-24  Karl Berry  <karl@gnu.org>
37486
37487         * config/missing: update from automake.
37488
37489 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
37490             Bruno Haible  <bruno@clisp.org>
37491
37492         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
37493         * lib/getline.c (getline, getdelim): Likewise.
37494         Remove _GNU_SOURCE define; now it's defined in config.h through
37495         m4/getline.m4.
37496
37497 2003-07-23  Karl Berry  <karl@gnu.org>
37498
37499         * config/config.sub: update from prep.
37500
37501 2003-07-22  Paul Eggert  <eggert@twinsun.com>
37502
37503         * modules/xalloc (Depends-on): Add exitfail.
37504         * modules/xmemcoll: Likewise.
37505
37506 2003-07-22  Paul Eggert  <eggert@twinsun.com>
37507
37508         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
37509         over-parenthesization in macros.
37510
37511         Sync with coreutils.
37512
37513         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
37514         required by C99.
37515
37516         Use `exit_failure' for xalloc and xmemcoll instead of their own
37517         private exit-failure variables.
37518         * lib/xalloc.h (xalloc_exit_failure): Remove.
37519         * lib/xmalloc.c: Likewise.  Include exitfail.h.
37520         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
37521         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
37522         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
37523         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
37524
37525 2003-07-20  Jim Meyering  <jim@meyering.net>
37526
37527         * modules/closeout (Depends-on): Add exitfail.
37528         Suggestion from Bruno Haible.
37529
37530 2003-07-19  Karl Berry  <karl@gnu.org>
37531
37532         * config/config.sub: update from prep.
37533
37534 2003-07-18  Paul Eggert  <eggert@twinsun.com>
37535
37536         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
37537         Remove.
37538         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
37539         to test that it can stand by itself.  Include "exitfail.h".
37540         Clients should set exit_failure instead.
37541         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
37542
37543 2003-07-18  Bruno Haible  <bruno@clisp.org>
37544
37545         * modules/getndelim2: New file.
37546         * modules/getline: Share files with module getndelim2.
37547         * modules/getnline: Depend on getndelim2 instead of sharing files with
37548         it. Add getnline.c to lib_SOURCES.
37549         * MODULES.html.sh (func_all_modules): Add getndelim2.
37550
37551 2003-07-18  Bruno Haible  <bruno@clisp.org>
37552
37553         * m4/getndelim2.m4: New file.
37554         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37555         invoke gl_PREREQ_GETNDELIM2.
37556         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37557         gl_PREREQ_GETNDELIM2.
37558         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37559         gl_GETNDELIM2.
37560
37561 2003-07-18  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/getndelim2.h: New file.
37564         * lib/getndelim2.c: Make into a module of its own. Include config.h,
37565         getndelim2.h.
37566         (getndelim2): Make non-static. Change return type to ssize_t.
37567         * lib/getline.h: Change argument names.
37568         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37569         * lib/getnline.c: Include getndelim2.h.
37570
37571 2003-07-18  Andreas Schwab  <schwab@suse.de>
37572
37573         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37574
37575 2003-07-17  Karl Berry  <karl@gnu.org>
37576
37577         * config/config.sub: update from prep.
37578
37579 2003-07-17  Bruno Haible  <bruno@clisp.org>
37580
37581         * modules/getnline: New file.
37582         * modules/getline: Add lib/getndelim2.c to source file list.
37583         * MODULES.html.sh (func_all_modules): Add getnline.
37584
37585 2003-07-17  Bruno Haible  <bruno@clisp.org>
37586
37587         * m4/getnline.m4: New file.
37588
37589 2003-07-17  Bruno Haible  <bruno@clisp.org>
37590
37591         * m4/Makefile.am.in: Remove file.
37592         * m4/Makefile.am: Remove file.
37593         * m4/Makefile.in: Remove file.
37594
37595 2003-07-17  Bruno Haible  <bruno@clisp.org>
37596
37597         * lib/getnline.h: New file.
37598         * lib/getnline.c: New file.
37599         * lib/getndelim2.c: New file, extracted from getline.c.
37600         (getndelim2): Renamed from getdelim2, with added nmax argument.
37601         * lib/getline.c: Include getndelim2.c.
37602         (getdelim2): Moved out to getndelim2.c.
37603         (getline, getdelim): Update.
37604
37605 2003-07-17  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/Makefile.am: Remove file.
37608         * lib/Makefile.in: Remove file.
37609
37610 2003-07-17  Bruno Haible  <bruno@clisp.org>
37611
37612         * configure.in: Remove file.
37613         * Makefile.in: Remove file.
37614
37615 2003-07-17  Bruno Haible  <bruno@clisp.org>
37616
37617         * MODULES.html.sh: Put the </BODY> right before </HTML>.
37618
37619 2003-07-16  Karl Berry  <karl@gnu.org>
37620
37621         * config/srclist-update: was running fixlicense twice, which caused
37622                 texinfo.tex to be nullified for some reason.  Simplify,
37623                 $gplsrc is no longer needed as far as I can see?
37624
37625 2003-07-16  Jim Meyering  <jim@meyering.net>
37626
37627         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
37628
37629 2003-07-15  Paul Eggert  <eggert@twinsun.com>
37630
37631         * config/srclist.txt: Get the following files from gettext-runtime/intl
37632         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37633         ref-del.sin.  From Bruno Haible.
37634         * config/srclist-update (fixfile): Change grep pattern again, since the
37635         previous fix didn't work (there was another trailing $).  Use
37636         '[$]' to escape the $s.
37637
37638 2003-07-15  Karl Berry  <karl@gnu.org>
37639
37640         * lib/vasnprintf.c: update from gettext.
37641
37642 2003-07-15  Karl Berry  <karl@gnu.org>
37643
37644         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37645         gets expanded when surrounded by '$'.
37646
37647 2003-07-15  Jim Meyering  <jim@meyering.net>
37648
37649         * modules/save-cwd: Don't depend on error.  From Derek Price.
37650
37651 2003-07-15  Jim Meyering  <jim@meyering.net>
37652
37653         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37654
37655 2003-07-14  Simon Josefsson  <jas@extundo.com>
37656
37657         * modules/mempcpy: New file.
37658         * MODULES.html.sh (func_all_modules): Add mempcpy.
37659
37660 2003-07-14  Simon Josefsson  <jas@extundo.com>
37661
37662         * m4/mempcpy.m4: New file.
37663
37664 2003-07-14  Simon Josefsson  <jas@extundo.com>
37665
37666         * lib/mempcpy.h: New file.
37667         * lib/mempcpy.c: New file.
37668
37669 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37670
37671         * modules/getdate, modules/posixtm: Depend on mktime.
37672
37673 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37674
37675         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37676         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37677         unicodeio.c, unicodeio.h, unlocked-io.h:
37678         Switch from LGPL to GPL.
37679
37680 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37681
37682         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37683         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37684         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37685         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37686         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
37687         updated automatically by ../config/srclist-update.  This changes
37688         their license from LPGL to GPL.
37689
37690 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37691
37692         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
37693         assumed to refer to the root of the most recent stable gettext version.
37694         * config/srclistvars.sh: Add defaults for eggert.
37695         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37696         Match "This program" as well as "The program".  This is needed
37697         for gettext.
37698
37699 2003-07-14  Jim Meyering  <jim@meyering.net>
37700
37701         Don't emit diagnostics.  Let callers do that.
37702         * lib/save-cwd.c: Don't include "error.h".
37703         (save_cwd): Don't call error.  Ensure that errno is valid
37704         when returning nonzero.
37705
37706         * lib/save-cwd.h (restore_cwd): Update prototype.
37707         * lib/save-cwd.c (restore_cwd): Remove two parameters.
37708         Simplify.  Don't call error upon failure.  Let callers do that.
37709         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37710         when auditing is enabled.  But don't bother updating the #if.
37711
37712 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
37713
37714         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37715         it breaks C++ compilation.
37716         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37717
37718 2003-07-10  Simon Josefsson  <jas@extundo.com>
37719
37720         * modules/strchrnul (Makefile.am): Add strchrnul.h.
37721
37722 2003-07-10  Jim Meyering  <jim@meyering.net>
37723
37724         * m4/clock_time.m4: Remove trailing blank.
37725         * m4/intmax_t.m4: Likewise.
37726
37727 2003-07-10  Jim Meyering  <jim@meyering.net>
37728
37729         * lib/vasnprintf.c: Remove trailing blanks.
37730         Make cpp indentation consistent.
37731
37732 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37733
37734         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37735         posixver.c, strftime.c, strnlen.c, strverscmp.c:
37736         Switch from LGPL to GPL.
37737
37738 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37739
37740         * config/srclist.txt: Sort sublists.  Add
37741         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37742         that differ from gnulib for one reason or another; we'd like this list
37743         to be smaller but for now let's document what we have.
37744
37745 2003-07-08  Paul Eggert  <eggert@twinsun.com>
37746
37747         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37748         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
37749         and sweeter "eval x=$x".
37750         * config/srclist.txt: Get lib/argp* from glibc.
37751
37752 2003-07-07  Paul Eggert  <eggert@twinsun.com>
37753
37754         * lib/mktime.c: Fix some boundary cases and remove need for floating
37755         point.
37756
37757         Issue a compile-time diagnostic if time_t is floating point, or if
37758         two's complement arithmetic is not in effect, or if arithmetic
37759         right shift does not propagate the sign.  These assumptions were
37760         all in the original code but they weren't checked.
37761
37762         (TIME_T_MIDPOINT, verify): New macros.
37763         (__isleap): Remove; it has integer overflow problems.
37764         (leapyear): New function, without those problems.
37765         (ydhms_tm_diff): Remove; splitting into two parts.
37766         (ydhms_diff): New function, containing the arithmetic part of
37767         the old ydhms_tm_diff function.  Issue a compile-time
37768         diagnostic if we are not using C99 integer division.
37769         Avoid casts when possible.
37770         (guess_time_tm): New function, containing the checking part of
37771         the old ydhms_tm_diff function.  Return the new value, rather than
37772         the difference between it and the old.  Accept a new argument T
37773         so that *T specifies the old value.  Check for overflow in the result.
37774
37775         (__mktime_internal): Use a time_t offset, not a long int offset.
37776         This undoes the 2003-06-04 change, which is no longer needed now
37777         that we have better overflow checking.
37778         (localtime_offset): Likewise.
37779
37780         (__mktime_internal): Avoid harmful overflow on hosts where time_t
37781         and long are 64-bit but int is only 32-bit.
37782         (ydhms_diff): Use long int to store year1 and yday1.
37783         Issue a compile-time diagnostic if long int is not wide enough.
37784
37785         (__mktime_internal): Use long int to store adjusted year and yday.
37786         Use plain C rather than preprocessor commands, if that doesn't
37787         affect efficiency.
37788         Check for overflow (and try to repair) after each probe
37789         rather than checking only at the very end.  This avoids some bugs
37790         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37791         does not equal GMT offset at maximum time).
37792         Use integer to check for overflow rather than floating point; this
37793         is more portable to non-IEEE hosts, and is a tad faster.
37794         When we detect that we are oscillating between two values,
37795         don't check whether tm_isdst has the requested value, since
37796         we already know the answer.  When tm_isdst has the wrong value,
37797         use a different heuristic to find the right one, based on the
37798         extreme values actually observed in practice in tz2003a,
37799         rather than the (overly optimistic) "previous 3 calendar quarters".
37800
37801         (not_equal_tm, print_tm, check_result): Use "const T" rather than
37802         "T const" to accommodate glibc style.
37803         (check_result): Use less-confusing report format.  "long" -> "long int.
37804         (main): Likewise.
37805         Don't loop if the iteration overflows time_t.
37806         Allow a negative step in the iteration.
37807
37808 2003-07-06  Karl Berry  <karl@gnu.org>
37809
37810         * config/depcomp: update from automake.
37811         * config/config.sub: update from prep.
37812
37813 2003-07-03  Karl Berry  <karl@gnu.org>
37814
37815         * config/config.guess: update from prep.
37816
37817 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37818
37819         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37820         xreadlink.c now includes it unconditionally.
37821
37822 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37823
37824         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37825         having it depend on HAVE_SYS_TYPES_H.
37826
37827 2003-07-01  Bruno Haible  <bruno@clisp.org>
37828
37829         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37830         <sys/types.h> should be sufficient.
37831         Reported by Paul Eggert.
37832
37833 2003-06-26  Karl Berry  <karl@gnu.org>
37834
37835         * config/depcomp: update from automake.
37836
37837 2003-06-26  Bruno Haible  <bruno@clisp.org>
37838
37839         * modules/human: Depend on module stdbool.
37840
37841 2003-06-25  Bruno Haible  <bruno@clisp.org>
37842
37843         * modules/readlink: New file.
37844         * modules/xreadlink: Depend on it.
37845         * MODULES.html.sh (func_all_modules): Add readlink.
37846
37847 2003-06-25  Bruno Haible  <bruno@clisp.org>
37848
37849         * m4/readlink.m4: New file.
37850
37851 2003-06-25  Bruno Haible  <bruno@clisp.org>
37852
37853         * lib/readlink.c: New file.
37854
37855 2003-06-22  Karl Berry  <karl@gnu.org>
37856
37857         * config/srclist.txt: update mkinstalldirs from automake.
37858         * config/mkinstalldirs: update.
37859
37860 2003-06-22  Bruno Haible  <bruno@clisp.org>
37861
37862         Portability to mingw32.
37863         * m4/ssize_t.m4: New file, from GNU gettext.
37864         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37865         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37866
37867 2003-06-22  Bruno Haible  <bruno@clisp.org>
37868
37869         * modules/safe-read: Add m4/ssize_t.m4.
37870         * modules/xreadlink: Add m4/ssize_t.m4.
37871
37872 2003-06-20  Bruno Haible  <bruno@clisp.org>
37873
37874         Assume C89, so PARAMS isn't needed.
37875         * lib/unicodeio.h (PARAMS): Remove.
37876         * lib/unicodeio.c: Don't use PARAMS.
37877
37878 2003-06-18  Karl Berry  <karl@gnu.org>
37879
37880         * config/config.{guess,sub}: update from prep.
37881
37882 2003-06-18  Jim Meyering  <jim@meyering.net>
37883
37884         Merge changes from coreutils.
37885         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37886         Remove explicit declarations of xmalloc and realloc.
37887         Include xalloc.h.
37888         (read_utmp): Remove anachronistic cast of xmalloc.
37889
37890 2003-06-17  Paul Eggert  <eggert@twinsun.com>
37891
37892         Assume C89, so PARAMS isn't needed.
37893         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
37894         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
37895         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
37896         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
37897         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
37898         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
37899         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
37900         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
37901         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
37902         lib/xstrtod.h, lib/xstrtol.h: Likewise.
37903         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
37904         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
37905         no longer needed. Anyway, config.h should always be included before any
37906         other file.
37907
37908 2003-06-11  Simon Josefsson  <jas@extundo.com>
37909
37910         * modules/sysexits: New file.
37911         * MODULES.html.sh (func_all_modules): Add sysexits.
37912
37913 2003-06-11  Simon Josefsson  <jas@extundo.com>
37914
37915         * lib/sysexit_.h: New file.
37916
37917 2003-06-11  Derek Price  <derek@ximbiot.com>
37918
37919         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
37920         necessary.
37921
37922 2003-06-11  Bruno Haible  <bruno@clisp.org>
37923
37924         * m4/sysexits.m4: New file.
37925
37926 2003-06-10  Simon Josefsson  <jas@extundo.com>
37927
37928         * lib/argp.h: New file, from glibc.
37929         * lib/argp-ba.c: New file, from glibc.
37930         * lib/argp-eexst.c: New file, from glibc.
37931         * lib/argp-fmtstream.c: New file, from glibc.
37932         * lib/argp-fmtstream.h: New file, from glibc.
37933         * lib/argp-fs-xinl.c: New file, from glibc.
37934         * lib/argp-help.c: New file, from glibc.
37935         * lib/argp-namefrob.h: New file, from glibc.
37936         * lib/argp-parse.c: New file, from glibc.
37937         * lib/argp-pv.c: New file, from glibc.
37938         * lib/argp-pvh.c: New file, from glibc.
37939         * lib/argp-xinl.c: New file, from glibc.
37940
37941 2003-06-10  Simon Josefsson  <jas@extundo.com>
37942
37943         * modules/strchrnul: New file.
37944
37945 2003-06-10  Simon Josefsson  <jas@extundo.com>
37946
37947         * modules/argp: New file.
37948
37949 2003-06-10  Simon Josefsson  <jas@extundo.com>
37950
37951         * m4/strchrnul.m4: New file.
37952
37953 2003-06-10  Simon Josefsson  <jas@extundo.com>
37954
37955         * lib/strchrnul.h: New file.
37956         * lib/strchrnul.c: New file.
37957
37958 2003-06-10  Bruno Haible  <bruno@clisp.org>
37959
37960         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
37961
37962 2003-06-07  Karl Berry  <karl@gnu.org>
37963
37964         * config/config.{guess,sub}: update from prep.
37965
37966 2003-06-07  Jim Meyering  <jim@meyering.net>
37967
37968         * modules/strtod: Use $(...) notation, not @...@ for
37969         AC_REPLACE'd variables.
37970         * modules/localcharset: Likewise.
37971
37972 2003-06-07  Jim Meyering  <jim@meyering.net>
37973
37974         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
37975         in place of my name in the copyright comment.
37976         Remove definition and uses of __P.
37977
37978         From coreutils.
37979         * lib/stat.c: Don't declare xmalloc explicitly.
37980         Instead, include "xalloc.h".
37981         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
37982         xrealloc, and xcalloc return values.
37983         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
37984         Improve comment.
37985         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
37986
37987 2003-06-07  Bruno Haible  <bruno@clisp.org>
37988
37989         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
37990         avoid AC_CONFIG_LINKS.
37991         * modules/fnmatch (Makefile.am): Use explicit creation rule for
37992         fnmatch.h, to avoid AC_CONFIG_LINKS.
37993         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
37994
37995 2003-06-07  Bruno Haible  <bruno@clisp.org>
37996
37997         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
37998         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
37999         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38000         directory.
38001         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38002         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38003         directory.
38004
38005 2003-06-06  Jim Meyering  <jim@meyering.net>
38006
38007         Merge from coreutils.
38008         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38009         Consolidate declarations and initializations of *_base* locals.
38010
38011         Merge from coreutils.
38012         This avoids a core dump on systems without GNU putenv,
38013         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38014         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38015         (unsetenv): New static function, from GNU libc.
38016         (rpl_putenv): Use it.
38017
38018         * lib/modechange.c: Remove trailing blanks.
38019
38020         Merge from coreutils.
38021         * lib/fsusage.c: Remove declaration of statfs.
38022         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38023
38024         * lib/posixtm.c: Include <stdbool.h> unconditionally.
38025
38026 2003-06-06  Jim Meyering  <jim@meyering.net>
38027
38028         * lib/stdbool_.h: Renamed from stdbool.h.in.
38029
38030 2003-06-06  Jim Meyering  <jim@meyering.net>
38031             Bruno Haible  <bruno@clisp.org>
38032
38033         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38034         Adjust Makefile.am snippet not to redirect directly to target.
38035         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38036
38037 2003-06-05  Paul Eggert  <eggert@twinsun.com>
38038
38039         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38040         mismatch, look in future quarters as well as past.  This fixes a
38041         bug when processing fall-backwards gaps immediately after a long
38042         period of daylight-saving time.
38043
38044         * lib/mktime.c: Assume freestanding C89 or better.
38045         (HAVE_LIMITS_H): Remove.  Assume it's 1.
38046         (__P): Remove; not used.
38047         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38048         (mktime, not_equal_tm, print_tm, check_result,
38049         main): Use prototypes.  Use const * where appropriate.
38050         (main): Fix typo in testing code that uncovered by above changes.
38051         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38052
38053 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38054
38055         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
38056         locale.h, localeconv.  This merges changes from coreutils.
38057
38058         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38059         It can be removed after the next Autoconf is released.
38060         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38061         needed.
38062
38063 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38064
38065         * lib/mktime.c: Fix Debian bug 177940
38066         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38067         (localtime_offset): Now long int, not time_t, because we want it
38068         to be guaranteed to be signed.  All uses changed.
38069         (__mktime_internal): If overflow would occur when adding offset,
38070         don't add it.
38071
38072         Merge 'human' changes from coreutils.  Rewrite to support
38073         locale-specific notations like thousands separators.
38074         * lib/human.c: Simplify authorship notice.
38075         Include human.h immediately after config.h.
38076         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38077         <limits.h>: Do not include, since human.h does.
38078         (SIZE_MAX, UINTMAX_MAX): New macros.
38079         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38080         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38081         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38082         (power_letter): Renamed from suffixes.
38083         (generate_suffix_backwards): Remove.
38084         (adjust_value): Now takes int style (because of human.h changes)
38085         and long double value (for greater precision on some platforms).
38086         (group_number): New function.
38087         (human_readable): Use it.  Use integer options, not enum.
38088         Put the options before the sizes in the arg list.
38089         Support all the new options.
38090         The old human_readable function has been removed;
38091         use inttostr.h instead.
38092         (human_readable, default_block_size, humblock):
38093         Use uintmax_t, not int, for block sizes.
38094         (human_readable_inexact, block_size_types): Remove.
38095         (block_size_opts): New constant.
38096         (human_options): Renamed from human_block_size, with new signature
38097         that allows block sizes up to UINTMAX_MAX.  All callers changed.
38098         * lib/human.h: Add copyright and authorship notice.
38099         Include <limits.h> and <stdbool.h> unconditionally.
38100         (PARAMS): Remove.  All uses removed.
38101         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38102         (enum human_inexact_style): Remove tag; now a nameless enum.
38103         (human_floor, human_ceiling, human_round_to_even): Now have
38104         values 2, 0, 1 rather than -1, 1, 0.
38105         (human_group_digits, human_suppress_point_zero, human_autoscale,
38106         human_base_1024, human_SI, human_B): New constants.
38107         (human_readable_inexact, human_block_size): Remove.
38108         (human_readable): Size args are now uintmax_t, not int.
38109         (human_options): New decl.
38110
38111         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38112         unnecessary now that we assume C89 or better.  This change
38113         imported from coreutils.
38114
38115         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38116         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
38117         in the 2003-05-30 sync from glibc.
38118
38119         .h files should stand alone, but we shouldn't include <sys/types.h>
38120         if we can get away with just <stddef.h>.
38121
38122         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38123         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38124         rather than <sys/types.h>, as we merely need size_t.
38125         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38126         to get size_t.
38127         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38128         Include <stdio.h>, to get FILE.
38129         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38130         memcasecmp.h has included <stddef.h> and all we need is size_t.
38131         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38132         our interface, instead of including <sys/types.h>
38133
38134 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38135
38136         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38137         now, as glibc mktime is buggy on non-glibc systems.
38138
38139 2003-06-03  Karl Berry  <karl@gnu.org>
38140
38141         * config/config.sub: update from prep.
38142
38143 2003-06-02  Paul Eggert  <eggert@twinsun.com>
38144
38145         [from coreutils]
38146         Fix some minor time-related bugs with POSIX time arguments.
38147         Some valid time stamps were being rejected (notably -1, and
38148         time stamps before 1900 on 64-bit hosts).  And some invalid
38149         time stamps were being accepted, e.g. September 31.
38150
38151         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38152         that we can return (time_t) -1 successfully.
38153         * lib/posixtm.c: Likewise.
38154         [HAVE_STDBOOL_H]: Include <stdbool.h>.
38155         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38156         (t): Remove static var.
38157         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38158         of static var.  All uses changed.
38159         (year): Do not reject years before 1900; they can occur with
38160         64-bit time_t.
38161         (posix_time_parse): Do not check for out-of-range components;
38162         that is now the caller's responsibility, since our checks were
38163         only approximations.
38164         (posixtime): Use mktime to check for out-of-range components,
38165         since it knows them exactly.
38166         If mktime returns (time_t) -1, check whether an error actually occurred
38167         by invoking localtime on -1.
38168         (main) [TEST_POSIXTIME]: Check for input data errors, and report
38169         posixtime failures better.
38170         Improve the test data (in comments only).
38171
38172 2003-06-02  Karl Berry  <karl@gnu.org>
38173
38174         * config/mkinstalldirs (version): new variable.
38175         (--version): new option.
38176         (usage): improve message.
38177
38178 2003-05-30  Karl Berry  <karl@gnu.org>
38179
38180         * lib/mktime.c: update from libc.
38181
38182 2003-05-30  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38185         * config/config.rpath: Upgrade to gettext-0.12.1.
38186
38187 2003-05-30  Bruno Haible  <bruno@clisp.org>
38188
38189         * m4/gettext.m4: Upgrade to gettext-0.12.1.
38190         * m4/nls.m4: New file, from gettext-0.12.1.
38191         * m4/po.m4: New file, from gettext-0.12.1.
38192         * m4/progtest.m4: Upgrade to gettext-0.12.1.
38193
38194 2003-05-30  Bruno Haible  <bruno@clisp.org>
38195
38196         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38197         * lib/localcharset.h: Likewise.
38198         * lib/localcharset.c: Likewise.
38199
38200 2003-05-29  Karl Berry  <karl@gnu.org>
38201
38202         * config/config.rpath: update from gettext.
38203
38204 2003-05-28  Paul Eggert  <eggert@twinsun.com>
38205
38206         Assume the headers required for C89 freestanding compilers.
38207         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38208         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38209         * m4/human.m4 (gl_HUMAN): Likewise.
38210         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38211         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38212         * m4/userspec.m4 (gl_USERSPEC): Likewise.
38213         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38214         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38215         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38216
38217 2003-05-28  Paul Eggert  <eggert@twinsun.com>
38218
38219         Assume the headers required for C89 freestanding compilers.
38220         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38221         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38222         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38223         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38224         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38225         define, since <limits.h> is guaranteed to do that.
38226         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38227         * lib/exclude.c: Include <stdbool.h> unconditionally.
38228         * lib/tempname.c: Include <stddef.h> unconditionally.
38229         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38230         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38231         <stddef.h> does that.
38232         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38233         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38234         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38235         needed.
38236         * lib/xstrtol.c: Likewise.
38237         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38238         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38239
38240         * lib/addext.c (addext): Use assignment rather than cast, to avoid
38241         warnings on some platforms.
38242
38243         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38244         arbitrarily.
38245
38246 2003-05-26  Jim Meyering  <jim@meyering.net>
38247
38248         Merge in a change from coreutils:
38249         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38250         that is guaranteed to be `no'.  Use `no_such_member' to indicate
38251         that condition, rather than `-1' which is slightly misleading.
38252         Change the name of the cache variable to have the gl_ prefix.
38253         Prompted by a patch from Richard Dawe for DJGPP.
38254
38255 2003-05-24  Karl Berry  <karl@gnu.org>
38256
38257         * config/config.guess: update from prep.
38258
38259 2003-05-22  Karl Berry  <karl@gnu.org>
38260
38261         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38262
38263 2003-05-20  Karl Berry  <karl@gnu.org>
38264
38265         * config/config.guess: update from prep.
38266
38267 2003-05-18  Karl Berry  <karl@gnu.org>
38268
38269         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38270         might actually be set by the user.
38271
38272         * config/depcomp, install-sh, mdate-sh: update from automake.
38273
38274 2003-05-17  Bruno Haible  <bruno@clisp.org>
38275
38276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38277         invalid expansion for AC_EGREP_CPP.
38278         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38279         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38280         Suggested by Akim Demaille <akim@epita.fr> in
38281         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38282
38283 2003-05-12  Jim Meyering  <jim@meyering.net>
38284
38285         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38286         the space-padded-by-default conversion specifiers, %e, %k, %l.
38287
38288 2003-05-12  Bruno Haible  <bruno@clisp.org>
38289
38290         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38291         the string is longer than 4 KB.
38292
38293 2003-05-11  Karl Berry  <karl@gnu.org>
38294
38295         * config/config.{guess,sub}: update from prep.
38296
38297 2003-05-09  Bruno Haible  <bruno@clisp.org>
38298
38299         * modules/error: Add m4/strerror_r.m4 to file list.
38300
38301 2003-05-03  Bruno Haible  <bruno@clisp.org>
38302
38303         Upgrade to Unicode-4.0.
38304         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38305         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38306         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38307         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38308         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38309         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38310         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38311         Change width of U+E0100..U+E01EF from 1 to 0.
38312
38313 2003-04-25  Jim Meyering  <jim@meyering.net>
38314
38315         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38316         of type size_t, not int.
38317
38318 2003-04-25  Bruno Haible  <bruno@clisp.org>
38319
38320         * lib/copy-file.c: Include <stddef.h>, for size_t.
38321
38322 2003-04-21  Paul Eggert  <eggert@twinsun.com>
38323
38324         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38325         code which expansion is under static control.  Patch imported from
38326         Akim Demaille's patch to Bison; see
38327         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38328
38329 2003-04-14  Bruno Haible  <bruno@clisp.org>
38330
38331         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38332
38333 2003-04-11  Jim Meyering  <jim@meyering.net>
38334
38335         Merge changes from Coreutils.
38336
38337         2003-03-22  Jim Meyering  <jim@meyering.net>
38338
38339         * lib/strftime.c (widen): Cast alloca return value to proper type.
38340
38341         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
38342
38343         From GNU libc.
38344         * lib/strftime.c (my_strftime): Handle very large width
38345         specifications for numeric values correctly.  Improve checks for
38346         overflow.
38347
38348         2003-01-19  Jim Meyering  <jim@meyering.net>
38349
38350         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
38351         definitions.
38352         (nl_get_alt_digit) [! defined my_strftime]: Define.
38353         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
38354         _nl_get_alt_digit and _nl_get_walt_digit.
38355
38356         * lib/strftime.c (my_strftime): Merge in locale-related changes from
38357         libc. These changes have no effect outside of _LIBC.
38358
38359 2003-04-10  Bruno Haible  <bruno@clisp.org>
38360
38361         * modules/findprog: New file.
38362         * MODULES.html.sh (func_all_modules): Add it.
38363
38364 2003-04-10  Bruno Haible  <bruno@clisp.org>
38365
38366         * m4/findprog.m4: New file.
38367         * m4/eaccess.m4: New file.
38368
38369 2003-04-10  Bruno Haible  <bruno@clisp.org>
38370
38371         * lib/findprog.h: New file, from GNU gettext.
38372         * lib/findprog.c: New file, from GNU gettext.
38373
38374 2003-04-05  Jim Meyering  <jim@meyering.net>
38375
38376         Merge changes from Coreutils.
38377
38378         * lib/exclude.h (PARAMS): Remove definition and uses.
38379         * lib/exclude.c: Remove uses of `PARAMS'.
38380
38381         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
38382         Add test-cases for DOS filenames. Declare program_name.
38383         (main): Set up program_name.  Patch by Rich Dawe.
38384
38385         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38386         error from mntctl.
38387         Use mntctl's return value to drive the entry-processing loop, since
38388         we can't rely on the value of the vmt_length member in the last
38389         entry.  On some systems doing so could result in exhausting
38390         virtual memory.  Based in part on a patch from Mike Jetzer.
38391
38392 2003-04-04  Bruno Haible  <bruno@clisp.org>
38393
38394         * modules/linebreak: New file.
38395         * MODULES.html.sh (func_all_modules): Add it.
38396
38397 2003-04-04  Bruno Haible  <bruno@clisp.org>
38398
38399         * m4/linebreak.m4: New file.
38400
38401 2003-04-04  Bruno Haible  <bruno@clisp.org>
38402
38403         * lib/linebreak.h: New file, from GNU gettext.
38404         * lib/linebreak.c: New file, from GNU gettext with slight
38405         modifications.
38406         * lib/lbrkprop.h: New file, from GNU gettext.
38407
38408 2003-04-03  Bruno Haible  <bruno@clisp.org>
38409
38410         * modules/utf8-ucs4: New file.
38411         * modules/utf16-ucs4: New file.
38412         * modules/ucs4-utf8: New file.
38413         * modules/ucs4-utf16: New file.
38414         * MODULES.html.sh (func_all_modules): Add them.
38415
38416 2003-04-03  Bruno Haible  <bruno@clisp.org>
38417
38418         * m4/utf-ucs4.m4: New file.
38419         * m4/ucs4-utf.m4: New file.
38420
38421 2003-04-03  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/utf8-ucs4.h: New file, from GNU gettext.
38424         * lib/utf16-ucs4.h: New file, from GNU gettext.
38425         * lib/ucs4-utf8.h: New file, from GNU gettext.
38426         * lib/ucs4-utf16.h: New file, from GNU gettext.
38427
38428 2003-04-02  Bruno Haible  <bruno@clisp.org>
38429
38430         * modules/binary-io: New file.
38431         * MODULES.html.sh (func_all_modules): Add it.
38432
38433 2003-04-02  Bruno Haible  <bruno@clisp.org>
38434
38435         * lib/binary-io.h: New file, from GNU gettext.
38436
38437 2003-04-01  Bruno Haible  <bruno@clisp.org>
38438
38439         * modules/pathname: New file.
38440         * MODULES.html.sh (func_all_modules): Add it.
38441
38442 2003-04-01  Bruno Haible  <bruno@clisp.org>
38443
38444         * lib/pathname.h: New file, from GNU gettext.
38445         * lib/concatpath.c: New file, from GNU gettext.
38446
38447 2003-03-30  Bruno Haible  <bruno@clisp.org>
38448
38449         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
38450
38451 2003-03-30  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
38454         function chown() doesn't exist.
38455
38456 2003-03-28  Bruno Haible  <bruno@clisp.org>
38457
38458         * modules/copy-file: New file.
38459         * MODULES.html.sh (func_all_modules): Add it.
38460
38461 2003-03-28  Bruno Haible  <bruno@clisp.org>
38462
38463         * m4/copy-file.m4: New file.
38464
38465 2003-03-28  Bruno Haible  <bruno@clisp.org>
38466
38467         * lib/copy-file.h: New file, from GNU gettext.
38468         * lib/copy-file.c: New file, from GNU gettext.
38469
38470 2003-03-18  Jim Meyering  <jim@meyering.net>
38471
38472         * lib/quote.c (quote_n): Fix typo in comment.
38473
38474 2003-03-18  Bruno Haible  <bruno@clisp.org>
38475
38476         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
38477         checking.
38478         * m4/onceonly_2_57.m4: Likewise.
38479
38480 2003-03-17  Bruno Haible  <bruno@clisp.org>
38481
38482         * m4/onceonly.m4: Require autoconf 2.54 or newer.
38483         (m4_quote): Remove macro.
38484         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
38485
38486 2003-03-14  Jim Meyering  <jim@meyering.net>
38487
38488         Merge changes from Coreutils.
38489         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
38490         to be const, in order to avoid warnings.
38491         (obstack_room): Likewise.
38492         (obstack_empty_p): Likewise.
38493
38494 2003-03-14  Bruno Haible  <bruno@clisp.org>
38495
38496         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
38497         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
38498
38499 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38500
38501         Merge changes from Bison.
38502         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
38503         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
38504         when compiling Bison 1.875's `bitset bset = obstack_alloc
38505         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
38506         * lib/hash.c: Include <stdbool.h> unconditionally.
38507
38508 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38509
38510         * m4/onceonly.m4 (m4_quote): New macro.
38511         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
38512         Quote AC_FOREACH variable-expansions properly.
38513
38514 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38515
38516         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
38517
38518 2003-03-09  Paul Eggert  <eggert@twinsun.com>
38519
38520         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
38521         Reported by Bruce Becker; see:
38522         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
38523
38524 2003-03-03  Paul Eggert  <eggert@twinsun.com>
38525             Bruno Haible  <bruno@clisp.org>
38526
38527         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
38528         Reported by John Hughes, see
38529         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
38530
38531 2003-02-20  Bruno Haible  <bruno@clisp.org>
38532
38533         * MODULES.html.sh (func_all_modules): Add poll.
38534
38535 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38536
38537         * modules/poll: New file.
38538
38539 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38540
38541         * lib/poll_.h: New file.
38542         * lib/poll.c: New file.
38543
38544 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38545
38546         * m4/poll.m4: New file.
38547
38548 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38549
38550         * modules/mathl: New file.
38551
38552 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38553
38554         * lib/mathl.h: New file.
38555         * lib/acosl.c: New file.
38556         * lib/asinl.c: New file.
38557         * lib/atanl.c: New file.
38558         * lib/ceill.c: New file.
38559         * lib/cosl.c: New file.
38560         * lib/expl.c: New file.
38561         * lib/floorl.c: New file.
38562         * lib/frexpl.c: New file.
38563         * lib/ldexpl.c: New file.
38564         * lib/logl.c: New file.
38565         * lib/sincosl.c: New file.
38566         * lib/sinl.c: New file.
38567         * lib/sqrtl.c: New file.
38568         * lib/tanl.c: New file.
38569         * lib/trigl.c: New file.
38570         * lib/trigl.h: New file.
38571
38572 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38573
38574         * m4/mathl.m4: New file.
38575
38576 2003-02-18  Bruno Haible  <bruno@clisp.org>
38577
38578         * MODULES.html.sh (func_all_modules): Add mathl.
38579
38580 2003-02-17  Bruno Haible  <bruno@clisp.org>
38581
38582         * modules/mkdtemp: New module.
38583         * MODULES.html.sh (func_all_modules): Add it.
38584
38585 2003-02-17  Bruno Haible  <bruno@clisp.org>
38586
38587         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38588
38589 2003-02-17  Bruno Haible  <bruno@clisp.org>
38590
38591         * lib/mkdtemp.h: New file, from GNU gettext.
38592         * lib/mkdtemp.c: New file, from GNU gettext.
38593
38594 2003-02-02  Jim Meyering  <jim@meyering.net>
38595
38596         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38597         e.g. glibc-2.2.93.
38598
38599 2003-01-31  Bruno Haible  <bruno@clisp.org>
38600
38601         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38602         'rpl_rename'.
38603         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38604         'rpl_strnlen'.
38605         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38606         'rpl_strtod'.
38607         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38608         'rpl_utime'.
38609
38610 2003-01-31  Bruno Haible  <bruno@clisp.org>
38611
38612         * lib/rename.c: #undef rename before defining rpl_rename.
38613         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38614
38615 2003-01-30  Bruno Haible  <bruno@clisp.org>
38616
38617         * modules/vasnprintf, modules/vasprintf: New modules.
38618         * MODULES.html.sh (func_all_modules): Add them.
38619
38620 2003-01-30  Bruno Haible  <bruno@clisp.org>
38621
38622         * m4/signed.m4: New file, from GNU gettext.
38623         * m4/longdouble.m4: New file, from GNU gettext.
38624         * m4/wchar_t.m4: New file, from GNU gettext.
38625         * m4/wint_t.m4: New file, from GNU gettext.
38626         * m4/vasnprintf.m4: New file.
38627         * m4/vasprintf.m4: New file.
38628
38629 2003-01-30  Bruno Haible  <bruno@clisp.org>
38630
38631         * lib/printf-args.h: New file, from GNU gettext.
38632         * lib/printf-args.c: New file, from GNU gettext.
38633         * lib/printf-parse.h: New file, from GNU gettext.
38634         * lib/printf-parse.c: New file, from GNU gettext.
38635         * lib/vasnprintf.h: New file, from GNU gettext.
38636         * lib/vasnprintf.c: New file, from GNU gettext.
38637         * lib/asnprintf.c: New file, from GNU gettext.
38638         * lib/vasprintf.h: New file, from GNU gettext with modifications.
38639         * lib/vasprintf.c: New file, from GNU gettext.
38640         * lib/asprintf.c: New file, from GNU gettext.
38641
38642 2003-01-29  Bruno Haible  <bruno@clisp.org>
38643
38644         * modules/stpncpy: New module.
38645         * MODULES.html.sh (func_all_modules): Add it.
38646
38647 2003-01-29  Bruno Haible  <bruno@clisp.org>
38648
38649         * m4/stpncpy.m4: New file.
38650
38651 2003-01-29  Bruno Haible  <bruno@clisp.org>
38652
38653         * lib/stpncpy.h: New file, from GNU gettext with modifications.
38654         * lib/stpncpy.c: New file, from GNU gettext with modifications.
38655
38656 2003-01-28  Bruno Haible  <bruno@clisp.org>
38657
38658         * modules/c-ctype: New module.
38659         * MODULES.html.sh (func_all_modules): Add it.
38660
38661 2003-01-28  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38664         Paul Eggert.
38665         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38666         Paul Eggert.
38667
38668 2003-01-27  Bruno Haible  <bruno@clisp.org>
38669
38670         * modules/xsetenv: New module.
38671         * MODULES.html.sh (func_all_modules): Add it.
38672
38673 2003-01-27  Bruno Haible  <bruno@clisp.org>
38674
38675         * lib/xsetenv.h: New file, from GNU gettext.
38676         * lib/xsetenv.c: New file, from GNU gettext.
38677
38678 2003-01-23  Jim Meyering  <jim@meyering.net>
38679
38680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38681         from working on systems without dirfd (at least Irix and OSF1/Tru64).
38682
38683 2003-01-23  Bruno Haible  <bruno@clisp.org>
38684
38685         * modules/minmax: New module.
38686         * MODULES.html.sh (func_all_modules): Add it.
38687
38688 2003-01-23  Bruno Haible  <bruno@clisp.org>
38689
38690         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38691         Eggert.
38692
38693 2003-01-22  Bruno Haible  <bruno@clisp.org>
38694
38695         * modules/exit: New module.
38696         * MODULES.html.sh (func_all_modules): Add it.
38697
38698 2003-01-22  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/exit.h: New file, from GNU gettext.
38701
38702 2003-01-19  Bruno Haible  <bruno@clisp.org>
38703
38704         * gnulib-tool: Recognize option --extract-maintainer.
38705         (func_get_maintainer): New function.
38706         * modules/*: Add Maintainer entry.
38707
38708 2003-01-16  Jim Meyering  <jim@meyering.net>
38709
38710         * m4/regex.m4: The `regex' struct is both input and output.
38711         Initialize it before each use.  Patch by Tim Waugh.
38712
38713 2003-01-16  Bruno Haible  <bruno@clisp.org>
38714
38715         * MODULES.html.sh: Add a table of contents. Add the module name as
38716         leftmost column. Add hyperlinks.
38717
38718 2003-01-15  Bruno Haible  <bruno@clisp.org>
38719
38720         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38721
38722 2003-01-15  Bruno Haible  <bruno@clisp.org>
38723
38724         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38725         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38726         suffix.
38727
38728 2003-01-15  Bruno Haible  <bruno@clisp.org>
38729
38730         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38731
38732 2003-01-15  Bruno Haible  <bruno@clisp.org>
38733
38734         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38735         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38736
38737 2003-01-14  Jim Meyering  <jim@meyering.net>
38738
38739         * lib/same.c (same_name): Tweak a comment.
38740
38741 2003-01-14  Bruno Haible  <bruno@clisp.org>
38742
38743         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38744         when a string comparison is sufficient.
38745
38746 2003-01-14  Bruno Haible  <bruno@clisp.org>
38747
38748         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38749         'unsigned int'.
38750
38751 2003-01-14  Bruno Haible  <bruno@clisp.org>
38752
38753         * lib/hash-pjw.c: Add comment about low quality of this function.
38754
38755 2003-01-13  Bruno Haible  <bruno@clisp.org>
38756
38757         * modules/stpcpy: Distribute lib/stpcpy.h.
38758         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38759
38760 2003-01-13  Bruno Haible  <bruno@clisp.org>
38761
38762         * modules/*: Add a description.
38763         * modules/strpbrk: Fix Makefile.am snippet.
38764         * modules/strtoimax: Fix dependencies.
38765         * modules/strtoumax: Likewise.
38766
38767 2003-01-13  Bruno Haible  <bruno@clisp.org>
38768
38769         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38770         * modules/alloca (Makefile.am): All object files depend on alloca.h.
38771         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38772
38773 2003-01-13  Bruno Haible  <bruno@clisp.org>
38774
38775         * gnulib-tool (func_create_testdir): Store config/* files in the main
38776         directory.
38777         * config.rpath: Move to ...
38778         * config/config.rpath: ... here.
38779         * modules/gettext: Contains config/config.rpath, not config.rpath.
38780         * modules/iconv: Likewise.
38781
38782 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38783
38784         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38785         to avoid collisions with libcurses and libreadline.
38786
38787         * m4/getstr.m4: Remove.
38788         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38789
38790 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38791
38792         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38793         to avoid collisions with libcurses and libreadline.
38794
38795         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38796         * lib/getstr.h, getstr.c: Remove.
38797         * lib/getline.c: Include "getline.h", to check interface.
38798         Move body of old getstr.c here: this defines MIN_CHUNK and
38799         declares getdelim2, which is renamed from getstr.
38800         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38801
38802         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38803         All uses changed.
38804         * lib/linebuffer.h: Likewise.
38805         (readline): Remove backward-compatibility macro.
38806
38807 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38808
38809         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38810         to avoid collisions with libcurses and libreadline.
38811         * getstr: Remove.
38812         * MODULES.html.sh: Remove getstr.
38813         * modules/getline: Depend on unlocked-io, not getstr.
38814
38815 2003-01-12  Jim Meyering  <jim@meyering.net>
38816
38817         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
38818
38819 2003-01-10  Bruno Haible  <bruno@clisp.org>
38820
38821         * modules/alloca: Change Makefile.am requirements. Simplify Include
38822         requirements. Add lib/alloca_.h to file list.
38823
38824 2003-01-10  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38827
38828 2003-01-10  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/alloca_.h: New file.
38831         * lib/getdate.y: Unconditionally include alloca.h.
38832         * lib/makepath.c: Likewise.
38833         * lib/setenv.c: Likewise.
38834         * lib/userspec.c: Likewise.
38835
38836 2003-01-09  Karl Berry  <karl@gnu.org>
38837
38838         * MODULES.html.sh: include `dirname $0` in PATH, to find
38839         gnulib-tool.
38840
38841 2003-01-09  Bruno Haible  <bruno@clisp.org>
38842
38843         * modules/stdbool: Change configure.ac, Makefile.am requirements.
38844         Simplify Include requirements. Add lib/stdbool.h.in to file list.
38845
38846 2003-01-09  Bruno Haible  <bruno@clisp.org>
38847
38848         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38849
38850 2003-01-09  Bruno Haible  <bruno@clisp.org>
38851
38852         * lib/stdbool.h.in: New file.
38853
38854 2003-01-09  Bruno Haible  <bruno@clisp.org>
38855
38856         * gnulib-tool (func_all_modules): Ignore files ending in ~.
38857         * MODULES.html.sh: Likewise.
38858
38859 2003-01-08  Jim Meyering  <jim@meyering.net>
38860
38861         * lib/full-write.c: Undefine and define-away `const' after inclusion
38862         of errno.h, not before.  Suggestion from Bruno Haible.
38863
38864 2003-01-08  Bruno Haible  <bruno@clisp.org>
38865
38866         * modules/full-read: Depend on full-write.
38867
38868 2003-01-08  Bruno Haible  <bruno@clisp.org>
38869
38870         * lib/safe-read.c: Include specification header first, to ensure its
38871         selfcontainedness.
38872         * lib/full-write.c: Likewise.
38873
38874 2003-01-07  Jim Meyering  <jim@meyering.net>
38875
38876         * lib/full-write.c: Rework so that it may serve to define full_read,
38877         too.
38878         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38879
38880 2003-01-07  Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/strtoimax.c: Include <stdint.h> as an alternative to
38883         <inttypes.h>.
38884         * lib/xstrtol.h: Likewise.
38885         * lib/xstrtoimax.c: Likewise.
38886         * lib/xstrtoumax.c: Likewise.
38887         * lib/human.h: Likewise.
38888
38889         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
38890         on systems that have <inttypes.h> but not <stdint.h>.
38891
38892 2003-01-07  Bruno Haible  <bruno@clisp.org>
38893
38894         * MODULES.html.sh: Add copyright notice.
38895         (missed_files): Omit CVS directory entries.
38896         (func_module): Make it work with sed-3.02.
38897         * MODULES.txt: Remove file.
38898
38899 2003-01-06  Jim Meyering  <jim@meyering.net>
38900
38901         * lib/version-etc.c: Update year in translatable copyright string.
38902
38903 2003-01-03  Karl Berry  <karl@gnu.org>
38904
38905         * config/config.{guess,sub}: update from prep.
38906
38907 2003-01-02  Karl Berry  <karl@gnu.org>
38908
38909         * doc/COPYING.DOC: belatedly updated to 1.2.
38910
38911 2003-01-01  Karl Berry  <karl@gnu.org>
38912
38913         * gnulib-tool (func_verify_module): report module name $module in
38914         error message, not $1.
38915         * gnulib-tool (create-testdir): don't complain if destdir couldn't
38916         be created, only if it doesn't exist.
38917         * gnulib-tool (last_checkin_date): don't expand the $Date here.
38918
38919 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38920
38921         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
38922
38923 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38924
38925         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
38926         memcmp if strcoll doesn't work.
38927
38928 2002-12-31  Bruno Haible  <bruno@clisp.org>
38929
38930         * lib/utime.c (utime_null): No need to call ftruncate if the file was
38931         nonempty.
38932
38933 2002-12-31  Bruno Haible  <bruno@clisp.org>
38934
38935         * lib/memcoll.c (STRCOLL): New macro.
38936         (memcoll): Use it.
38937
38938 2002-12-31  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/localcharset.h: New file.
38941         * lib/localcharset.c: Include it.
38942         * lib/unicodeio.c: Likewise.
38943
38944 2002-12-31  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
38947         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
38948
38949 2002-12-31  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/getline.h: Include <stddef.h>, for size_t.
38952
38953         * lib/unicodeio.h: Include <stddef.h>, for size_t.
38954         * lib/unicodeio.c: Don't include <stddef.h>.
38955
38956 2002-12-31  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
38959         HAVE_TM_ZONE.
38960
38961 2002-12-24  Karl Berry  <karl@gnu.org>
38962
38963         * config/config.guess: update from prep.
38964
38965 2002-12-24  Bruno Haible  <bruno@clisp.org>
38966
38967         General infrasructure.
38968         * m4/README: Rewritten.
38969         * m4/onceonly.m4: New file.
38970         * m4/onceonly_2_57.m4: New file.
38971
38972         Module atexit.
38973         * m4/atexit.m4: New file.
38974
38975         Module strtod.
38976         * m4/strtod.m4: New file.
38977
38978         Module strtol.
38979         * m4/strtol.m4: New file.
38980
38981         Module strtoul.
38982         * m4/strtoul.m4: New file.
38983
38984         Module memchr.
38985         * m4/memchr.m4: New file.
38986
38987         Module memcmp.
38988         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
38989         (jm_FUNC_MEMCMP): Invoke it.
38990
38991         Module memcpy.
38992         * m4/memcpy.m4: New file.
38993
38994         Module memmove.
38995         * m4/memmove.m4: New file.
38996
38997         Module memset.
38998         * m4/memset.m4: New file.
38999
39000         Module strcspn.
39001         * m4/strcspn.m4: New file.
39002
39003         Module strpbrk.
39004         * m4/strpbrk.m4: New file.
39005
39006         Module strstr.
39007         * m4/strstr.m4: New file.
39008
39009         Module strerror.
39010         * m4/strerror.m4: New file.
39011
39012         Module mktime.
39013         * m4/mktime.m4: Renamed from jm-mktime.m4.
39014         (gl_PREREQ_MKTIME): New macro.
39015         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39016
39017         Module malloc.
39018         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39019         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39020         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39021
39022         Module realloc.
39023         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39024         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39025         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39026
39027         Module strftime.
39028         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39029         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39030         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39031         gl_TM_GMTOFF.
39032         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39033
39034         Module xalloc.
39035         * m4/xalloc.m4: New file.
39036
39037         Module alloca.
39038         * m4/alloca.m4: New file.
39039
39040         Module putenv.
39041         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39042         (jm_FUNC_PUTENV): Invoke it.
39043
39044         Module setenv.
39045         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39046         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39047         when invoked twice.
39048         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39049         gt_FUNC_SETENV.
39050
39051         Module memrchr.
39052         * m4/memrchr.m4: New file.
39053
39054         Module stpcpy.
39055         * m4/stpcpy.m4: New file.
39056
39057         Module strcase.
39058         * m4/strcase.m4: New file.
39059
39060         Module strdup.
39061         * m4/strdup.m4: New file.
39062
39063         Module strnlen.
39064         * m4/strnlen.m4: New file.
39065
39066         Module strndup.
39067         * m4/strndup.m4: New file.
39068
39069         Module xstrtod.
39070         * m4/xstrtod.m4: New file.
39071
39072         Module xstrtol.
39073         * m4/xstrtol.m4: New file.
39074
39075         Module getdate.
39076         * m4/getdate.m4: New file.
39077
39078         Module unlocked-io.
39079         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39080         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39081         * m4/jm-glibc-io.m4n: Remove file.
39082
39083         Module long-options.
39084         * m4/long-options.m4: New file.
39085
39086         Module md5.
39087         * m4/md5.m4: New file.
39088
39089         Module sha.
39090         * m4/sha.m4: New file.
39091
39092         Module getstr.
39093         * m4/getstr.m4: New file.
39094
39095         Module getline.
39096         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39097         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39098         <sys/types.h>, for size_t. Use the function name gnu_getline, not
39099         simply getline. Infoke gl_PREREQ_GETLINE.
39100
39101         Module obstack.
39102         * m4/obstack.m4: New file.
39103
39104         Module hash.
39105         * m4/hash.m4: New file.
39106
39107         Module readtokens.
39108         * m4/readtokens.m4: New file.
39109
39110         Module strverscmp.
39111         * m4/strverscmp.m4: New file.
39112
39113         Module stdbool.
39114         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39115         OSF/1.
39116
39117         Module strtoll.
39118         * m4/strtoll.m4: New file.
39119
39120         Module strtoull.
39121         * m4/strtoull.m4: New file.
39122
39123         Module strtoimax.
39124         * m4/strtoimax.m4: New file.
39125
39126         Module strtoumax.
39127         * m4/strtoumax.m4: New file.
39128
39129         Module xstrtoimax.
39130         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39131         jm_AC_PREREQ_XSTRTOIMAX.
39132         Moved the strtol prerequisites to strtol.m4.
39133         Moved the strtoll prerequisites to strtoll.m4.
39134         Moved the strtoimax prerequisites to strtoimax.m4.
39135
39136         Module xstrtoumax.
39137         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39138         jm_AC_PREREQ_XSTRTOUMAX.
39139         Moved the strtoul prerequisites to strtoul.m4.
39140         Moved the strtoull prerequisites to strtoull.m4.
39141         Moved the strtoumax prerequisites to strtoumax.m4.
39142
39143         Module chown.
39144         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39145         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39146
39147         Module dup2.
39148         * m4/dup2.m4: New file.
39149
39150         Module ftruncate.
39151         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39152         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39153
39154         Module getgroups.
39155         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39156         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39157
39158         Module gettimeofday.
39159         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39160         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39161         gl_PREREQ_GETTIMEOFDAY.
39162
39163         Module mkdir.
39164         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39165         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39166
39167         Module mkstemp.
39168         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39169         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39170         jm_AC_TYPE_UINTMAX_T.
39171         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39172
39173         Module stat.
39174         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39175         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39176
39177         Module lstat.
39178         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39179         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39180
39181         Module timespec.
39182         * m4/timespec.m4 (gl_TIMESPEC): New macro.
39183         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39184         * m4/st_mtim.m4: Indentation.
39185
39186         Module nanosleep.
39187         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39188         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39189         gl_PREREQ_NANOSLEEP.
39190
39191         Module regex.
39192         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39193         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39194         (gl_REGEX): New macro.
39195
39196         Module rename.
39197         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39198         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39199
39200         Module rmdir.
39201         * m4/rmdir.m4: New file.
39202
39203         Module utime.
39204         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39205         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39206         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39207
39208         Module dirname.
39209         * m4/dirname.m4: New file.
39210
39211         Module getopt.
39212         * m4/getopt.m4: New file.
39213
39214         Module unistd-safer.
39215         * m4/unistd-safer.m4: New file.
39216
39217         Module fnmatch.
39218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39219         declaration.
39220         (gl_PREREQ_FNMATCH_EXTRA): New macro.
39221         (gl_FUNC_FNMATCH_POSIX): New macro.
39222         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39223         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39224         simply fnmatch.
39225
39226         Module exclude.
39227         * m4/exclude.m4: New file.
39228
39229         Module human.
39230         * m4/human.m4: New file.
39231
39232         Module acl.
39233         * m4/acl.m4: Nop.
39234
39235         Module backupfile.
39236         * m4/backupfile.m4: New file.
39237         * m4/d-ino.m4: Indentation.
39238
39239         Module fsusage.
39240         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39241         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39242         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39243
39244         Module dirfd.
39245         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39246         requirements.
39247
39248         Module euidaccess.
39249         * m4/euidaccess.m4: New file.
39250
39251         Module file-type.
39252         * m4/file-type.m4: New file.
39253
39254         Module fileblocks.
39255         * m4/fileblocks.m4: New file.
39256
39257         Module filemode.
39258         * m4/filemode.m4: New file.
39259
39260         Module isdir.
39261         * m4/isdir.m4: New file.
39262
39263         Module lchown.
39264         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39265         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39266
39267         Module makepath.
39268         * m4/makepath.m4: New file.
39269
39270         Module modechange.
39271         * m4/modechange.m4: New file.
39272
39273         Module mountlist.
39274         * m4/mountlist.m4: New file.
39275         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39276         Indentation.
39277
39278         Module path-concat.
39279         * m4/path-concat.m4: New file.
39280
39281         Module pathmax.
39282         * m4/pathmax.m4: New file.
39283
39284         Module same.
39285         * m4/same.m4: New file.
39286
39287         Module save-cwd.
39288         * m4/save-cwd.m4: New file.
39289
39290         Module savedir.
39291         * m4/savedir.m4: New file.
39292
39293         Module xgetcwd.
39294         * m4/xgetcwd.m4: New file.
39295         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39296
39297         Module xreadlink.
39298         * m4/xreadlink.m4: New file.
39299
39300         Module safe-read.
39301         * m4/safe-read.m4: New file.
39302
39303         Module safe-write.
39304         * m4/safe-write.m4: New file.
39305
39306         Module closeout.
39307         * m4/closeout.m4: New file.
39308
39309         Module stdio-safer.
39310         * m4/stdio-safer.m4: New file.
39311
39312         Module getpass.
39313         * m4/getpass.m4: New file.
39314
39315         Module getugroups.
39316         * m4/getugroups.m4: New file.
39317
39318         Module group-member.
39319         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39320         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39321
39322         Module idcache.
39323         * m4/idcache.m4: New file.
39324
39325         Module userspec.
39326         * m4/userspec.m4: New file.
39327
39328         Module gettime.
39329         * m4/clock_time.m4: New file.
39330         * m4/gettime.m4: New file.
39331
39332         Module settime.
39333         * m4/settime.m4: New file.
39334
39335         Module posixtm.
39336         * m4/posixtm.m4: New file.
39337
39338         Module gethostname.
39339         * m4/gethostname.m4: New file.
39340
39341         Module canon-host.
39342         * m4/canon-host.m4: New file.
39343
39344         Module gettext.
39345         * m4/codeset.m4: New file, from gettext-0.11.5.
39346         * m4/gettext.m4: New file, from gettext-0.11.5.
39347         * m4/glibc21.m4: New file, from gettext-0.11.5.
39348         * m4/iconv.m4: New file, from gettext-0.11.5.
39349         * m4/intdiv0.m4: New file, from gettext-0.11.5.
39350         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
39351         * m4/inttypes.m4: New file, from gettext-0.11.5.
39352         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
39353         * m4/isc-posix.m4: New file, from gettext-0.11.5.
39354         * m4/lcmessage.m4: New file, from gettext-0.11.5.
39355         * m4/lib-ld.m4: New file, from gettext-0.11.5.
39356         * m4/lib-link.m4: New file, from gettext-0.11.5.
39357         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
39358         * m4/progtest.m4: New file, from gettext-0.11.5.
39359         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
39360         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
39361         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
39362
39363         Module localcharset.
39364         * m4/localcharset.m4: New file.
39365
39366         Module hard-locale.
39367         * m4/hard-locale.m4: New file.
39368
39369         Module mbswidth.
39370         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
39371         onceonly macros.
39372         * m4/mbrtowc.m4: Add comment.
39373
39374         Module memcasecmp.
39375         * m4/memcasecmp.m4: New file.
39376
39377         Module memcoll.
39378         * m4/memcoll.m4: New file.
39379
39380         Module unicodeio.
39381         * m4/unicodeio.m4: New file.
39382
39383         Module rpmatch.
39384         * m4/rpmatch.m4: New file.
39385
39386         Module yesno.
39387         * m4/yesno.m4: New file.
39388
39389         Module exitfail.
39390         * m4/exitfail.m4: New file.
39391
39392         Module c-stack.
39393         * m4/c-stack.m4 (gl_C_STACK): New macro.
39394         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
39395
39396         Module error.
39397         * m4/error.m4 (gl_ERROR): New macro.
39398         (jm_PREREQ_ERROR): Use onceonly macros.
39399
39400         Module fatal.
39401         * m4/fatal.m4: New file.
39402
39403         Module getloadavg.
39404         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
39405         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
39406
39407         Module getpagesize.
39408         * m4/getpagesize.m4: New file.
39409
39410         Module getusershell.
39411         * m4/getusershell.m4: New file.
39412
39413         Module physmem.
39414         * m4/physmem.m4: New file.
39415
39416         Module posixver.
39417         * m4/posixver.m4: New file.
39418
39419         Module quotearg.
39420         * m4/quotearg.m4: New file.
39421
39422         Module quote.
39423         * m4/quote.m4: New file.
39424
39425         Module readutmp.
39426         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
39427
39428         Module sig2str.
39429         * m4/sig2str.m4: New file.
39430
39431         Other.
39432         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
39433         ulonglong.m4.
39434         * m4/intmax_t.m4: New file.
39435         * m4/d-type.m4: Indentation.
39436         * m4/jm-macros.m4: Update.
39437         * m4/prereq.m4 (jm_PREREQ): Update.
39438         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
39439         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
39440         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
39441         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
39442         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
39443         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
39444         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
39445         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
39446         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
39447         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
39448         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
39449         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
39450         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
39451         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
39452         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
39453         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
39454         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
39455         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
39456         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
39457
39458 2002-12-24  Bruno Haible  <bruno@clisp.org>
39459
39460         * MODULES.txt: Update according to m4/ changes.
39461
39462         Module gettext.
39463         * config.rpath: New file, from gettext-0.11.5.
39464
39465         * modules/*: New module descriptions.
39466         * gnulib-tool: New file.
39467         * MODULES.html.sh: New file.
39468
39469 2002-12-21  Karl Berry  <karl@gnu.org>
39470
39471         * doc/fdl.texi: update to version 1.2.
39472
39473 2002-12-19  Karl Berry  <karl@gnu.org>
39474
39475         * config/config.guess: update from prep.
39476
39477 2002-12-18  Bruno Haible  <bruno@clisp.org>
39478
39479         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
39480         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
39481
39482 2002-12-17  Bruno Haible  <bruno@clisp.org>
39483
39484         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
39485         stdlib.h, string.h.
39486
39487 2002-12-17  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/canon-host.c (strdup): Remove unused declaration.
39490
39491         * lib/fsusage.c: Include full_read.h.
39492         (get_fs_usage): Use full_read instead of safe_read.
39493
39494         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
39495
39496 2002-12-12  Karl Berry  <karl@gnu.org>
39497
39498         * config/config.guess: update from prep.
39499
39500 2002-12-11  Bruno Haible  <bruno@clisp.org>
39501
39502         * m4/setenv.m4: New file, from gettext-0.11.5.
39503
39504 2002-12-11  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
39507         not unsetenv().
39508         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
39509         modifications:
39510
39511         2002-12-11  Bruno Haible  <bruno@clisp.org>
39512
39513                 * setenv.c (alloca): Fall back to malloc.
39514                 (freea): New macro.
39515                 (setenv): Use freea() to free memory allocated with alloca().
39516
39517         2002-11-13  Bruno Haible  <bruno@clisp.org>
39518
39519                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
39520                 function declarations.
39521                 * unsetenv.c (unsetenv): Likewise.
39522
39523         2002-03-04  Bruno Haible  <bruno@clisp.org>
39524
39525                 Portability to AIX 4.3.3.
39526                 * unsetenv.c: New file, extracted from setenv.c.
39527                 * setenv.c: Move the unsetenv() function to unsetenv.c.
39528
39529         2001-12-20  Bruno Haible  <bruno@clisp.org>
39530
39531                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
39532                 use malloc instead. For SunOS 4.
39533
39534         2001-12-11  Bruno Haible  <bruno@clisp.org>
39535
39536                 * setenv.c: Declare alloca.
39537                 (compar_fn_t): New typedef.
39538                 (KNOWN_VALUE, STORE_VALUE): Use it.
39539
39540         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
39541         setenv.h.
39542
39543 2002-12-10  Paul Eggert  <eggert@twinsun.com>
39544
39545         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39546         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39547         Choose values that are less likely to collide with system fnmatch
39548         options.
39549         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39550         defined (e.g., a pure POSIX system).
39551         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39552         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39553
39554 2002-12-06  Paul Eggert  <eggert@twinsun.com>
39555
39556         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39557         a pain in practice to deal with generated m4 files.  This change
39558         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39559
39560         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39561         and jm-glibc-io.m4, as they are no longer a special case.
39562         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39563         kludge and the auto-generation stuff.  Check only whether the
39564         functions are declared, not whether they exist, since older hosts
39565         that don't declare the functions can't use the optimization anyway.
39566
39567 2002-12-06  Jim Meyering  <jim@meyering.net>
39568
39569         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39570
39571         Merge in changes from libc's misc/error.c, in preparation
39572         for the merge of gnulib's changes back into libc.
39573
39574         * lib/error.c (_): Define only if not already defined.
39575         Move definition to follow all #include directives.
39576         Include unlocked-io.h only if !_LIBC.
39577         [_LIBC]: Include <libio/libioP.h>.
39578         [USE_IN_LIBIO]: Include <libio/iolibio.h>
39579         (fflush): Tweak definition to use INTUSE.
39580         (putc): Define.
39581
39582 2002-12-05  Paul Eggert  <eggert@twinsun.com>
39583
39584         * lib/alloca.c [defined emacs]: Include "lisp.h".
39585         (xalloc_die) [defined emacs]: New macro.
39586         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39587         [! defined emacs]: Include <xalloc.h>.
39588         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39589         (pointer): Typedef to POINTER_TYPE *.
39590         (malloc): Remove decl; we now always use xmalloc.
39591         (alloca): Use old-style definition, since Emacs needs this.
39592         Check for arithmetic overflow when computing combined size.
39593
39594 2002-12-04  Paul Eggert  <eggert@twinsun.com>
39595
39596         Do not generate unlocked-io.h automatically, since it's easier to
39597         maintain it by hand.
39598
39599         * lib/unlocked-io.h: New file, from GNU diffutils,
39600         but with proper copyright notice and attribution.
39601         * lib/gen-uio: Remove.
39602         * lib/Makefile.am: Add copyright notice.
39603         (libfetish_a_SOURCES): Add unlocked-io.h.
39604         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39605         (DISTCLEANFILES, io_functions): Remove macros.
39606         (EXTRA_DIST): Remove gen_uio.
39607         (unlocked-io.h): Remove rule.
39608
39609 2002-12-04  Jim Meyering  <jim@meyering.net>
39610
39611         Reflect the fact that stat.c and lstat.c are no longer generated.
39612         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39613         (DISTCLEANFILES): Likewise.
39614         (EXTRA_DIST): Likewise.
39615         (all_local): Don't depend on stat.c or lstat.c.
39616         (stat.c, lstat.c): Remove rules.
39617         (EXTRA_DIST): Remove xstat.in.
39618
39619         * lib/xstat.in: Remove file.  Contents moved into stat.c.
39620         * lib/stat.c: New file.  Contents mostly from xstat.in.
39621         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39622         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39623
39624         * lib/safe-read.c: Rework so that it may serve to define safe_write,
39625         too.
39626         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39627
39628 2002-12-03  Jim Meyering  <jim@meyering.net>
39629
39630         * lib/safe-read.c, safe-write.c: Change variable names and comments,
39631         but not semantics, to minimize the differences between these two files.
39632         (safe_read): Change comment to mention SAFE_READ_ERROR.
39633
39634         * lib/safe-read.c (IS_EINTR): Define.
39635         (safe_read): Use IS_EINTR in place of in-function cpp directives.
39636
39637 2002-12-02  Jim Meyering  <jim@meyering.net>
39638
39639         * lib/safe-read.c (EINTR): Define.
39640         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39641         (INT_MAX): Provide fallback.
39642         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39643
39644         * lib/safe-read.h (SAFE_READ_ERROR): Define.
39645
39646 2002-12-02  Bruno Haible  <bruno@clisp.org>
39647
39648         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39649         Define, taken from safe-read.c.
39650         (INT_MAX): Provide fallback.
39651         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39652         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39653
39654         * lib/safe-read.c (EINTR): Remove definition.
39655         (safe_read): Don't use EINTR if it is absent.
39656
39657 2002-12-01  Jim Meyering  <jim@meyering.net>
39658
39659         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39660         zero.
39661         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39662
39663 2002-11-27  Paul Eggert  <eggert@twinsun.com>
39664
39665         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39666         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39667         with `if (! (value < limit)) abort ();', for readability.
39668
39669 2002-11-26  Karl Berry  <karl@gnu.org>
39670
39671         * lib/strdup.c: copy from libc again, with jim's ok.
39672         * lib/.cppi-disable: re-add strdup.c
39673
39674 2002-11-25  Karl Berry  <karl@gnu.org>
39675
39676         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39677         instead of "strtol.c".
39678
39679 2002-11-25  Karl Berry  <karl@gnu.org>
39680
39681         * config/install-sh: update from automake for variable quoting, $0 in
39682         error msgs, etc.
39683
39684         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39685         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39686         entry.
39687
39688 2002-11-25  Jim Meyering  <jim@meyering.net>
39689
39690         * lib/mktime.c: Sync from libc, now that it has the latest fix.
39691
39692 2002-11-24  Karl Berry  <karl@gnu.org>
39693
39694         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39695         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39696
39697 2002-11-24  Jim Meyering  <jim@meyering.net>
39698
39699         Update from coreutils:
39700
39701         * lib/mktime.c: Merge in changes from libc.
39702
39703         Avoid a link-time failure on some Linux systems.
39704         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39705         (otherwise).
39706         (__mon_yday): Declare with the STATIC attribute.
39707         (__mktime_internal): Likewise.
39708         Based on a report from Greg Schafer.
39709
39710 2002-11-23  Jim Meyering  <jim@meyering.net>
39711
39712         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39713         Use `unsigned', not `int', as type of index.
39714
39715         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39716
39717         * lib/fsusage.c: Remove unneeded parentheses around operands of
39718         `defined'.
39719
39720 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39721
39722         * lib/quotearg.h: Allow multiple inclusion by surrounding with
39723         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
39724         so that we can be included first.
39725         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
39726         * lib/quotearg.c: Include quotearg.h immediately after config.h.
39727         No need to include stddef.h or sys/types.h any more.
39728         Surround local include files with "", not "<>".
39729         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39730         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39731         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39732         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39733         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39734         (ISPRINT): Remove; no longer needed now that we assume C89.
39735
39736         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39737         Preserve errno.
39738
39739         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39740         quotearg_char): Use SIZE_MAX rather than
39741         (size_t) -1 when we are talking about "infinity".
39742
39743         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39744
39745 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39746
39747         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39748         hint that one should use `if (! x) abort ();' rather than `assert
39749         (x);', and anyway it's one less thing to worry about configuring.
39750         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39751         hash_rehash, hash_insert): Use abort rather than assert.
39752
39753 2002-11-22  Bruno Haible  <bruno@clisp.org>
39754
39755         * lib/safe-read.h: Assume C89. Add comments.
39756         (safe_read): Change return type to size_t.
39757         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39758         byte counts > SSIZE_MAX correctly.
39759         * lib/safe-write.h: New file.
39760         * lib/safe-write.c: New file.
39761         * lib/full-read.h: New file.
39762         * lib/full-read.c: New file.
39763         * lib/full-write.h: Assume C89. Add comments.
39764         * lib/full-write.c: Include safe-write.h.
39765         (full_write): Rewritten to use safe_write.
39766         Suggested by Jim Meyering and Paul Eggert.
39767
39768 2002-11-21  Jim Meyering  <jim@meyering.net>
39769
39770         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39771
39772         Merge in changes from the coreutils.
39773
39774         2002-09-25  Paul Eggert  <eggert@twinsun.com>
39775         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39776         <stdint.h>.
39777         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39778         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39779         int.  Work more efficiently if X is the same width as uintmax_t.
39780         Do not compare X to -1, to avoid bogus compiler warning.
39781         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39782         Don't assume that f_frsize and f_bsize are the same type.
39783
39784         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39785         warning on FreeBSD.
39786
39787         * lib/makepath.c (make_path): Restore umask *before* creating the final
39788         component.
39789         (make_path): Minor reformatting.
39790
39791         * lib/xmalloc.c: Adjust to work with new autoconf macros,
39792         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39793         HAVE_MALLOC/HAVE_REALLOC.
39794
39795         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39796         dummy ones.  At least on GNU/Linux systems, `auto' means something
39797         else.
39798         From Michael Stone.
39799
39800 2002-11-21  Bruno Haible  <bruno@clisp.org>
39801
39802         Remove case insensitive option matching.
39803         * lib/argmatch.h (argcasematch): Remove declaration.
39804         (ARGCASEMATCH): Remove macro.
39805         (__xargmatch_internal): Remove case_sensitive argument.
39806         (XARGMATCH): Update.
39807         (XARGCASEMATCH): Remove macro.
39808         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39809         case_sensitive argument.
39810         (argcasematch): Remove function.
39811         (__xargmatch_internal): Remove case_sensitive argument.
39812         (main): Use XARGMATCH instead of XARGCASEMATCH.
39813
39814         * lib/xmalloc.c: Change compile-time error message. Add comment about
39815         required autoconf version.
39816
39817 2002-11-20  Paul Eggert  <eggert@twinsun.com>
39818
39819         Merge argmatch cleanups from Bison.  Assume C89.
39820
39821         * lib/argmatch.c: Include config.h here, not in argmatch.h.
39822         Include stdlib.h, for EXIT_FAILURE.
39823         Always include <string.h>, since we assume C89.
39824         (EXIT_FAILURE): Remove pre-C89 bug workaround.
39825         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39826         Include <stddef.h> instead, since it's all we need for size_t.
39827         (PARAMS): Remove.  All uses removed.
39828         (ARRAY_CARDINALITY): Do not bother to #undef.
39829         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39830         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39831         Remove unnecessary parentheses.
39832         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39833         Insert necessary parentheses.
39834         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39835         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39836
39837 2002-11-19  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39840         * lib/mbswidth.h: Include <stddef.h>, for size_t.
39841
39842         * lib/mbswidth.h (PARAMS): Remove macro.
39843         (mbswidth, mbsnwidth): Use ANSI C function declarations.
39844         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39845
39846         * lib/gcd.h (PARAMS): Remove macro.
39847         (gcd): Use ANSI C function declarations.
39848         * lib/gcd.c (gcd): Likewise.
39849
39850 2002-11-15  Bruno Haible  <bruno@clisp.org>
39851
39852         * lib/strcspn.c: Include <stddef.h>.
39853         (strcspn): Use ANSI C function declaration. Change return type to
39854         size_t. Use NULL.
39855         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39856         (strpbrk): Use NULL.
39857         * lib/strpbrk.h (PARAMS): Remove macro.
39858         (strpbrk): Use ANSI C function declaration.
39859         * lib/strstr.c: Don't include <sys/types.h>.
39860         * lib/strstr.h (PARAMS): Remove macro.
39861         (strstr): Use ANSI C function declarations.
39862
39863 2002-11-14  Karl Berry  <karl@gnu.org>
39864
39865         * config/mkinstalldirs: `do' on separate line, instead of
39866         `for var; do'.
39867
39868 2002-11-06  Bruno Haible  <bruno@clisp.org>
39869
39870         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39871         * lib/gcd.c (gcd): Likewise.
39872
39873 2002-11-05  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/gcd.h: New file, from gettext-0.11.5.
39876         * lib/gcd.c: New file, from gettext-0.11.5.
39877
39878 2002-11-05  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39881         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39882         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39883         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39884
39885         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39886         <libintl.h>.
39887         * lib/makepath.c: Include gettext.h instead of <locale.h> and
39888         <libintl.h>.
39889
39890         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
39891         * lib/human.c: Include gettext.h instead of <libintl.h>.
39892         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
39893         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
39894         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
39895         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
39896         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
39897         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
39898         (textdomain): Remove definition.
39899         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
39900
39901         * lib/long-options.c: Remove include of <libintl.h> and definition of
39902         _.
39903         * lib/same.c: Remove include of <libintl.h> and definition of _.
39904
39905 2002-11-04  Owen Taylor  <otaylor@redhat.com>
39906
39907         * lib/config.charset: A few additions for Solaris.
39908
39909 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39910
39911         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
39912         * lib/localcharset.c (locale_charset): Declare as extern "C".
39913
39914 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39915
39916         * lib/config.charset: msdos in uk_UA uses CP1125.
39917
39918 2002-11-04  Bruno Haible  <bruno@clisp.org>
39919
39920         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
39921         * lib/strcase.h: New file, from GNU gettext-0.11.5.
39922         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
39923         * lib/strstr.h: New file, from GNU gettext-0.11.5.
39924         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
39925
39926 2002-11-04  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/localcharset.c (locale_charset): Don't return an empty string.
39929
39930 2002-11-04  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
39933         aliases.
39934
39935 2002-11-04  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/config.charset: Update for newest glibc. Add canonical names
39938         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
39939
39940 2002-11-04  Bruno Haible  <bruno@clisp.org>
39941
39942         * lib/config.charset: Add support for NetBSD.
39943
39944 2002-11-04  Bruno Haible  <bruno@clisp.org>
39945
39946         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
39947
39948 2002-11-01  Bruno Haible  <bruno@clisp.org>
39949
39950         * configure.in: Add AC_CONFIG_AUX_DIR call.
39951         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
39952         test/Makefile.
39953         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
39954
39955 2002-09-28  Karl Berry  <karl@gnu.org>
39956
39957         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
39958         installed automake until the next release, since changes have been
39959         made.
39960
39961 2002-09-25  Karl Berry  <karl@gnu.org>
39962
39963         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39964         * lib/getopt*: copy from libc/posix.
39965         * lib/gettext.h: copy from gettext.
39966         * lib/.cppi-disable: add strdup.c, gettext.h.
39967
39968 2002-09-25  Karl Berry  <karl@gnu.org>
39969
39970         * config/srclist.txt: enable gettext.h check.
39971         * config/config.{guess,sub}: update from prep.
39972         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
39973                 from automake 1.6.3.
39974         See srclist*.
39975
39976 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
39977
39978         * regex.c (PATFETCH): Remove the translating fetch.
39979         (PATFETCH_RAW): Rename to PATFETCH.
39980         (set_image_of_range): New fun.
39981         (SET_RANGE_TABLE_WORK_AREA): Use it.
39982         (regex_compile): Don't translate the pattern chars so eagerly.
39983         Only do it when inserting an `exactn' bytecode or when handling
39984         a char-range.
39985         (mutually_exclusive_p): Avoid empty statement.
39986
39987 2002-07-06  Jim Meyering  <meyering@lucent.com>
39988
39989         * m4/README: Don't mention Makefile.am.in.
39990         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
39991
39992 2002-07-01  Jim Meyering  <meyering@lucent.com>
39993
39994         * lib/c-stack.c: Include sys/time.h.
39995         From Volker Borchert.
39996
39997 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39998
39999         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40000
40001 2002-06-26  Paul Eggert  <eggert@twinsun.com>
40002
40003         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40004         New macro.  Use it uniformly instead of
40005         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40006         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40007         reported by Vin Shelton.
40008
40009 2002-06-22  Paul Eggert  <eggert@twinsun.com>
40010
40011         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40012         Do not assume SA_SIGINFO behavior.
40013         Bug reported by Jim Meyering on NetBSD 1.5.2.
40014
40015 2002-06-22  Jim Meyering  <meyering@lucent.com>
40016
40017         * m4/c-stack.m4: New file, from diffutils-2.8.2.
40018         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40019
40020         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40021         now that configure.ac uses AC_GNU_SOURCE.
40022         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40023         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40024
40025         Update to latest tools.  Suggestions from Paul Eggert.
40026         * m4/stdbool.m4: New file, from diffutils-2.8.2.
40027         * m4/gnu-source.m4: Update from diffutils-2.8.2.
40028         * m4/fnmatch.m4: Likewise.
40029         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40030         to AC_HEADER_STDBOOL
40031
40032 2002-06-22  Jim Meyering  <meyering@lucent.com>
40033
40034         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40035         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40036
40037 2002-06-22  Jim Meyering  <meyering@lucent.com>
40038
40039         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40040
40041         * lib/exitfail.c, exitfail.h: Likewise.
40042         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40043
40044         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40045         of fnmatch.h.
40046         (EXTRA_DIST): Add fnmatch_loop.c.
40047         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40048
40049         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40050         * lib/fnmatch.c: Update from diffutils-2.8.2.
40051         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
40052         * lib/fnmatch.h: Remove file.
40053
40054 2002-06-21  Jim Meyering  <meyering@lucent.com>
40055
40056         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40057         * m4/mbrtowc.m4: Likewise.
40058
40059         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40060         * m4/mbswidth.m4: Reflect name change:
40061         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40062         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40063
40064         * m4/lib-link.m4: Update from gettext-0.11.2.
40065         * m4/gettext.m4: Likewise.
40066
40067         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40068         From Alfred M. Szmidt.
40069
40070 2002-06-18  Paul Eggert  <eggert@twinsun.com>
40071
40072         * lib/file-type.h: Report an error if neither S_ISREG nor
40073         S_IFREG is defined, instead of using a test specific to glibc
40074         2.2.  This should be safe, since POSIX requires S_ISREG and
40075         Unix Version 7 had S_IFREG.  We don't need to check for
40076         <sys/types.h> since we don't use any symbols that it defines.
40077
40078 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
40079
40080         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40081         $@-t, so that each temporary file name is unique and valid in the first
40082         8 characters, for operation under DOS.
40083
40084 2002-06-15  Paul Eggert  <eggert@twinsun.com>
40085
40086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40087
40088 2002-06-15  Jim Meyering  <meyering@lucent.com>
40089
40090         Work even with DJGPP 2.03, which lacks support for symlinks.
40091         From Richard Dawe.
40092         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40093         is defined.
40094         * lib/lchown.c (S_ISLNK): Likewise.
40095
40096 2002-06-15  Jim Meyering  <meyering@lucent.com>
40097
40098         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40099         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40100         have been included before this file.
40101
40102 2002-06-14  Jim Meyering  <meyering@lucent.com>
40103
40104         * lib/file-type.h: Use the version from diffutils-2.8.2.
40105         * lib/file-type.c: Likewise.
40106
40107 2002-06-07  Jim Meyering  <meyering@lucent.com>
40108
40109         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40110         They're needed at least for NetBSD 1.5.2.
40111         ($statxfs_includes): Include those same headers.
40112         ($statxfs_includes): Include sys/vfs.h if available.
40113         ($statxfs_includes): Likewise for sys/statvfs.h.
40114         Check for the following members in both structs statfs and statvfs:
40115         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40116
40117 2002-06-01  Jim Meyering  <meyering@lucent.com>
40118
40119         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40120         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40121
40122 2002-05-28  Jim Meyering  <meyering@lucent.com>
40123
40124         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40125         Reported by Volker Borchert.
40126
40127 2002-05-27  Jim Meyering  <meyering@lucent.com>
40128
40129         Fix a problem seen only on nonconforming systems whereby ls.c's
40130         use of localtime, and then of gettimeofday would cause trouble:
40131         the localtime call used to initialize rpl_gettimeofday's save
40132         mechanism would clobber ls's current local time information so
40133         that in any long listing the first file would always be listed
40134         with date 1970-01-01.  Analysis by Volker Borchert.
40135
40136         * lib/gettimeofday.c (localtime): Undefine.
40137         (rpl_localtime): New function.
40138
40139 2002-05-27  Jim Meyering  <meyering@lucent.com>
40140
40141         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40142         localtime.
40143
40144         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40145         use the replacement function; it wouldn't resolve at link time.
40146         Reported by Volker Borchert.
40147
40148 2002-05-22  Jim Meyering  <meyering@lucent.com>
40149
40150         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40151         file-type.h.
40152         * lib/file-type.h: New file.
40153         * lib/file-type.c (file_type): New file/function.  Extracted from
40154         diffutils.
40155
40156 2002-04-30  Jim Meyering  <meyering@lucent.com>
40157
40158         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40159
40160 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40161
40162         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40163
40164 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40165
40166         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40167         Do not check for alloca.h (no longer used) or stdbool.h (was never
40168         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
40169
40170 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40171
40172         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40173
40174 2002-04-29  Jim Meyering  <meyering@lucent.com>
40175
40176         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40177         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40178         Use AC_FUNC_STRNLEN here instead.
40179
40180         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40181         With autoconf-2.53a, it's part of AC_PROG_CC.
40182
40183 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40184
40185         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40186         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40187
40188 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40189
40190         * lib/sig2str.h, lib/sig2str.c: New files.
40191         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40192
40193 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40194
40195         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40196         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
40197         of 127, since 64 is the largest conceivable number for ancient
40198         nonstandard hosts.
40199         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40200
40201 2002-04-28  Jim Meyering  <meyering@lucent.com>
40202
40203         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40204
40205 2002-04-24  Jim Meyering  <meyering@lucent.com>
40206
40207         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40208         (jm_PREREQ): Use it.
40209
40210         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40211         mach/mach.h fcntl.h.
40212         Check for this function: setlocale.
40213
40214 2002-04-24  Jim Meyering  <meyering@lucent.com>
40215
40216         * lib/gettext.h: New file, from Gettext.
40217         * lib/Makefile.am (INCLUDES): Remove -I../intl.
40218         (libfetish_a_SOURCES): Add gettext.h.
40219
40220 2002-04-16  Jim Meyering  <meyering@lucent.com>
40221
40222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40223         ut_pid, ut_id, ut_exit.
40224
40225 2002-04-16  Jim Meyering  <meyering@lucent.com>
40226
40227         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40228         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40229         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40230
40231 2002-04-12  Jim Meyering  <meyering@lucent.com>
40232
40233         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40234         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
40235         existence of the getmntinfo function.  Needed for Darwin 5.3.
40236
40237         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40238         This is necessary at least on Darwin 5.3.
40239
40240         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40241         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
40242         strnlen.o in the library, and that makes some versions of ranlib
40243         object.
40244
40245 2002-04-12  Jim Meyering  <meyering@lucent.com>
40246
40247         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40248
40249 2002-04-09  Jim Meyering  <meyering@lucent.com>
40250
40251         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40252         to be more precise.  Rather than saying we're checking whether the
40253         function `works', say what we're testing.
40254         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40255         Reported by Bruno Haible.
40256
40257 2002-03-10  Jim Meyering  <meyering@lucent.com>
40258
40259         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40260         Suggestion from Santiago Vila.
40261
40262 2002-03-08  Jim Meyering  <meyering@lucent.com>
40263
40264         * lib/rename.c: Mention that this wrapper is needed also on
40265         mips-dec-ultrix4.4 systems.
40266
40267 2002-03-02  Jim Meyering  <meyering@lucent.com>
40268
40269         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40270         not HAVE_CLOCK_SETTIME.
40271
40272 2002-02-27  Paul Eggert  <eggert@twinsun.com>
40273
40274         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40275         Check for clock_settime.
40276
40277 2002-02-27  Paul Eggert  <eggert@twinsun.com>
40278
40279         * lib/nanosleep.h: Rename to....
40280         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
40281
40282         * lib/gettime.c: New file.
40283         * lib/settime.c: New file.
40284         * lib/stime.c: Remove.
40285
40286         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40287         timespec.h.  Remove nanosleep.h.
40288
40289 2002-02-25  Paul Eggert  <eggert@twinsun.com>
40290
40291         * m4/acl.m4: New file.
40292         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40293         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40294
40295 2002-02-25  Paul Eggert  <eggert@twinsun.com>
40296
40297         * lib/acl.c, lib/acl.h: New files.
40298         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40299
40300 2002-02-24  Jim Meyering  <meyering@lucent.com>
40301
40302         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40303         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40304         cause trouble.  Reported by Nelson Beebe.
40305
40306 2002-02-23  Paul Eggert  <eggert@twinsun.com>
40307
40308         * lib/path-concat.c (xpath_concat): Reorder code to pacify
40309         compilers that don't know that xalloc_die never returns.
40310
40311 2002-02-20  Jim Meyering  <meyering@lucent.com>
40312
40313         * lib/getdate.c: Regenerate using bison-1.33.
40314
40315 2002-02-17  Jim Meyering  <meyering@lucent.com>
40316
40317         * config/config.guess (main): Don't use `head -1'; it's no longer
40318         portable. Use `sed 1q' instead.
40319
40320 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
40321
40322         * m4/codeset.m4: Upgrade to gettext-0.11.
40323         * m4/gettext.m4: Upgrade to gettext-0.11.
40324         * m4/glibc21.m4: Upgrade to gettext-0.11.
40325         * m4/iconv.m4: Upgrade to gettext-0.11.
40326         * m4/isc-posix.m4: Upgrade to gettext-0.11.
40327         * m4/lcmessage.m4: Upgrade to gettext-0.11.
40328         * m4/lib-ld.m4: New file, from gettext-0.11.
40329         * m4/lib-link.m4: New file, from gettext-0.11.
40330         * m4/lib-prefix.m4: New file, from gettext-0.11.
40331         * m4/progtest.m4: Upgrade to gettext-0.11.
40332
40333 2002-02-15  Paul Eggert  <eggert@twinsun.com>
40334
40335         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40336         (jm_PREREQ): Use it.
40337
40338 2002-02-15  Paul Eggert  <eggert@twinsun.com>
40339
40340         * lib/posixver.c, lib/posixver.h: New files.
40341         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40342
40343 2002-02-02  Paul Eggert  <eggert@twinsun.com>
40344             Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
40347         (fwrite_success_callback): New declaration.
40348         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
40349         print_unicode_char. Call failure callback instead of error.
40350         (fwrite_success_callback): New function.
40351         (exit_failure_callback): New function.
40352         (fallback_failure_callback): New function.
40353         (print_unicode_char): Call unicode_to_mb.
40354
40355 2002-01-26  Jim Meyering  <meyering@lucent.com>
40356
40357         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
40358         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
40359
40360 2002-01-26  Jim Meyering  <meyering@lucent.com>
40361
40362         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
40363
40364 2002-01-22  Paul Eggert  <eggert@twinsun.com>
40365
40366         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
40367
40368 2002-01-22  Jim Meyering  <meyering@lucent.com>
40369
40370         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
40371         Otherwise, some versions of automake would omit the rule that makes
40372         Makefile from Makefile.in.
40373
40374 2002-01-21  Paul Eggert  <eggert@twinsun.com>
40375
40376         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
40377         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40378         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
40379         (memcoll): Set errno to zero if there is no error.
40380
40381         * lib/quotearg.c (quotearg_buffer_restyled):
40382         Fix bug with quoting buffers containing NUL when backslashing escapes.
40383         This bug was exposed by the other changes in this patch.
40384         (quotearg_n_options): New arg ARGSIZE.
40385         All callers changed.
40386         (quoting_options_from_style): New function.
40387         (quotearg_n_style): Use it.
40388         (quotearg_n_style_mem): New function.
40389
40390         * lib/quotearg.h (quotearg_n_style_mem): New function.
40391
40392 2002-01-19  Jim Meyering  <meyering@lucent.com>
40393
40394         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
40395         Remove useless quotes: DF_PROG="df".
40396         * m4/strnlen.m4: New file.
40397
40398 2002-01-16  Paul Eggert  <eggert@twinsun.com>
40399
40400         * lib/backupfile.c (ISDIGIT): Comment fix.
40401         * lib/getdate.y (ISDIGIT): Likewise.
40402         * lib/posixtm.c (ISDIGIT, year): Likewise.
40403         * lib/strverscmp.c (ISDIGIT): Likewise.
40404         * lib/userspec.c (ISDIGIT): Likewise.
40405
40406 2002-01-16  Jim Meyering  <meyering@lucent.com>
40407
40408         * lib/getdate.y: Add three semicolons, each just before a closing
40409         brace. Bison (as of version 1.31) no longer papers over that mistake.
40410
40411 2002-01-05  Jim Meyering  <meyering@lucent.com>
40412
40413         * lib/version-etc.c (version_etc_copyright): Update copyright year.
40414
40415 2001-12-19  Paul Eggert  <eggert@twinsun.com>
40416
40417         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
40418         not silently exit merely because the output buffer happens to
40419         have nothing pending.
40420
40421 2001-12-18  Paul Eggert  <eggert@twinsun.com>
40422
40423         See the big note in ../ChangeLog.
40424         * lib/human.c (suffixes): Prefer K to k for 1024.
40425         (generate_suffix_backwards): New function.
40426         (human_readable_inexact): Use it.
40427         * lib/xstrtol.c (__xstrtol): If there is no number but there
40428         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
40429         Accept 'K' as well as 'k'.
40430
40431 2001-12-15  Jim Meyering  <meyering@lucent.com>
40432
40433         * lib/regex.h (__restrict_arr): Update from libc.
40434
40435         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
40436         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
40437         (STREQ): Define.
40438
40439 2001-12-14  Jim Meyering  <meyering@lucent.com>
40440
40441         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
40442         Suggestion from Bruno Haible.
40443
40444 2001-12-10  Jim Meyering  <meyering@lucent.com>
40445
40446         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
40447         xrealloc, Instead, include "xalloc.h".
40448         (initbuffer): Don't cast xmalloc return value to char*.
40449         (readline): Reword comment.
40450         Don't cast xrealloc return value to char*
40451         Return NULL, not 0.
40452
40453 2001-12-09  Jim Meyering  <meyering@lucent.com>
40454
40455         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
40456         about `signed and unsigned type in conditional expression'.
40457         * lib/posixtm.c (posix_time_parse): Likewise.
40458
40459         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
40460
40461         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
40462         to avoid a pedantic warning.
40463
40464         * lib/getstr.c: Don't include assert.h.
40465         (getstr): Remove warning-evoking assertions.
40466         Return -1 if offset parameter is out of bounds.
40467         Change the type of a local from int to size_t.
40468
40469         * lib/strftime.c (my_strftime_localtime_r): Include this function
40470         definition in the `#if ! HAVE_TM_GMTOFF' block.
40471
40472         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
40473         Include xalloc.h instead.
40474
40475 2001-12-02  Jim Meyering  <meyering@lucent.com>
40476
40477         * lib/tempname.c: Don't declare getenv, thus reverting the change of
40478         2001-11-18.  It's no longer necessary, now that stdlib.h is always
40479         included.
40480
40481         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
40482         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
40483
40484 2001-11-30  Akim Demaille  <akim@epita.fr>
40485
40486         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
40487         before being defined.
40488
40489 2001-11-27  Paul Eggert  <eggert@twinsun.com>
40490
40491         * lib/quotearg.h (quotearg_n, quotearg_n_style):
40492         First arg is int, not unsigned.
40493         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
40494         (SIZE_MAX, UINT_MAX): New macros.
40495         (quotearg_n_options): Abort if N is negative.
40496         Avoid overflow check on hosts where size_t is 64 bits and int
40497         is 32 bits, as overflow is impossible there.
40498         Fix off-by-one typo that caused unnecessary reallocation.
40499
40500 2001-11-27  Jim Meyering  <meyering@lucent.com>
40501
40502         * lib/tempname.c: Merge with version from libc.
40503         * lib/regex.c: Likewise.
40504
40505         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
40506         systems for which STDC_HEADERS is 0, it was not included, resulting in
40507         a warning about an integer-to-pointer conversion problem with getenv.
40508         Reported by Volker Borchert.
40509
40510 2001-11-26  Jim Meyering  <meyering@lucent.com>
40511
40512         * lib/gtod.h: Remove file.
40513         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
40514         * lib/gettimeofday.c: Don't include gtod.h.
40515         (GTOD_init): Remove function.
40516         (rpl_gettimeofday): Do its job here instead, rather than aborting.
40517         Suggestion from Volker Borchert.
40518
40519 2001-11-23  Jim Meyering  <meyering@lucent.com>
40520
40521         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
40522         it.
40523         * lib/hash.c (struct hash_table): Define it here instead.
40524
40525 2001-11-22  Jim Meyering  <meyering@lucent.com>
40526
40527         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
40528
40529 2001-11-20  Jim Meyering  <meyering@lucent.com>
40530
40531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
40532         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
40533
40534 2001-11-19  Jim Meyering  <meyering@lucent.com>
40535
40536         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
40537         directory.  Use "conftestXXXXXX" as the template.
40538         Suggestion from Paul Eggert.
40539
40540         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
40541         immediately, so the test doesn't mistakenly hit the max-open-files
40542         limit.
40543
40544 2001-11-18  Paul Eggert  <eggert@twinsun.com>
40545
40546         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40547         (TEMPORARIES): New macro.
40548         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
40549         removes an artificial limitation (e.g. HP-UX 10.20, where
40550         TMP_MAX is 17576).
40551
40552 2001-11-18  Jim Meyering  <meyering@lucent.com>
40553
40554         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40555
40556 2001-11-18  Jim Meyering  <meyering@lucent.com>
40557
40558         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40559         on SunOS 4.
40560
40561         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40562         files will be created before anything else.
40563
40564 2001-11-17  Paul Eggert  <eggert@twinsun.com>
40565
40566         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40567         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40568
40569 2001-11-17  Jim Meyering  <meyering@lucent.com>
40570
40571         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40572         Prompted by a report from Bob Proulx.
40573
40574         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40575         Instead, require UTILS_FUNC_MKSTEMP.
40576
40577 2001-11-17  Jim Meyering  <meyering@lucent.com>
40578
40579         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40580         Now, that's done as part of AC_FUNC_STRTOD.
40581
40582 2001-11-17  Jim Meyering  <meyering@lucent.com>
40583
40584         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40585         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40586         rather than group writable.  Patch by Juan F. Codagnone.
40587
40588         * lib/readtokens.c: Remove explicit declarations of xmalloc and
40589         xrealloc, Instead, include "xalloc.h".
40590
40591         * lib/mountlist.c: Include unlocked-io.h after all system headers.
40592         Remove explicit declarations of xmalloc, xrealloc,
40593         and xstrdup.  Instead, include "xalloc.h".
40594
40595         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40596         unlocked-io.h.
40597         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40598         Likewise.
40599         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40600
40601         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40602         Reported by Padraig Brady.
40603
40604         * lib/mkstemp.c: #undef mkstemp.
40605         Include config.h.
40606         (rpl_mkstemp): Rename from mkstemp.
40607         Protoize.
40608
40609 2001-11-16  Jim Meyering  <meyering@lucent.com>
40610
40611         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40612         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40613         determine the amount of total physical memory, use pstat_getstatic.
40614         HPUX-11 doesn't define _SC_PHYS_PAGES.
40615         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40616         If sysconf couldn't be used to determine the amount of available
40617         physical memory, use both pstat_getstatic and pstat_getdynamic.
40618         Based on a patch from Bob Proulx.
40619
40620 2001-11-10  Jim Meyering  <meyering@lucent.com>
40621
40622         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40623         (jm_PREREQ): Use it.
40624
40625 2001-11-09  Jim Meyering  <meyering@lucent.com>
40626
40627         * m4/jm-macros.m4: Require autoconf-2.52f.
40628         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40629         Use these AC_-prefixed names, not the AM_-prefixed ones.
40630
40631         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
40632
40633 2001-11-05  Jim Meyering  <meyering@lucent.com>
40634
40635         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40636
40637 2001-11-04  Jim Meyering  <meyering@lucent.com>
40638
40639         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40640         $DEFS.
40641
40642 2001-11-03  Jim Meyering  <meyering@lucent.com>
40643
40644         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40645         of AC_DEFUN.
40646
40647         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40648         know the name of the variable in the macro definition.
40649
40650 2001-11-03  Jim Meyering  <meyering@lucent.com>
40651
40652         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40653         in argmatch_to_argument call.
40654
40655         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40656         argument.
40657
40658         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40659         e.g., a fault due to an attempt to free a NULL pointer.
40660
40661 2001-11-01  Jim Meyering  <meyering@lucent.com>
40662
40663         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40664         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40665
40666 2001-11-01  Jim Meyering  <meyering@lucent.com>
40667
40668         * lib/dirfd.c, lib/dirfd.h: New files.
40669         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40670
40671         * lib/hash.c (hash_print) [TESTING]: Clean up.
40672
40673 2001-10-22  Paul Eggert  <eggert@twinsun.com>
40674
40675         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40676         to avoid a warning if -Wall.
40677
40678 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
40679
40680         * README: New file
40681         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40682         (per RMS's instructions, this is now the canonical source)
40683         * lgpl/, gpl/: New directories.
40684
40685 2001-10-21  Paul Eggert  <eggert@twinsun.com>
40686
40687         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40688
40689 2001-10-21  Jim Meyering  <meyering@lucent.com>
40690
40691         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
40692         this code would end up calling gettext even in packages built
40693         with --disable-nls.
40694         * lib/getopt.c (_): Likewise.
40695         * lib/regex.c (_): Likewise.
40696
40697 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40698
40699         * m4/error.m4 (jm_PREREQ_ERROR):
40700         Do not invoke AC_CHECK_FUNCS with strerror_r, as
40701         AC_FUNC_STRERROR_R does that.
40702         Check for strerror declaration.
40703
40704         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40705         are supposed to have them these days.
40706         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40707         Merge changes from latest Autoconf CVS.
40708         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40709         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40710         POSIX decided to standardize on the int flavor of strerror_r.
40711
40712 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40713
40714         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40715         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40716         Use strerror_r that is only a macro, even if it is not a function.
40717         (strerror): Check for HAVE_DECL_STRERROR before declaring.
40718         (private_strerror): Use prototypes, not old-style function definition.
40719         (print_errno_message): New function.
40720         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40721         char*-flavored one.
40722         (error_tail, error, error_at_line): Use it.
40723
40724 2001-10-11  Jim Meyering  <meyering@lucent.com>
40725
40726         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40727         and quote_n (1, ... to avoid clobbering a buffer.
40728
40729 2001-10-05  Jim Meyering  <meyering@lucent.com>
40730
40731         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40732         hash-pjw.h.
40733         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40734         * lib/hash-pjw.h: New file.
40735
40736 2001-09-30  Jim Meyering  <meyering@lucent.com>
40737
40738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40739         `struct fsstat' has the `f_fstypename' member.
40740         Use that to define FS_TYPE, which is now used to make
40741         the getfsstat link test tighter.
40742
40743 2001-09-30  Jim Meyering  <meyering@lucent.com>
40744
40745         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40746         Include <sys/ucred.h>, for Apple Darwin.
40747         Include sys/mount.h and sys/fs_types.h only if available.
40748         (FS_TYPE): Define.
40749         (read_filesystem_list): Use FS_TYPE.
40750
40751 2001-09-29  Paul Eggert  <eggert@twinsun.com>
40752
40753         * lib/exclude.c (excluded_filename): 0 -> false, since it's
40754         a boolean context.
40755
40756 2001-09-29  Jim Meyering  <meyering@lucent.com>
40757
40758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40759         [one-argument getmntent function]): Include stdio.h before mntent.h.
40760         SunOS 4.1.x needs it for the declaration of `FILE'.
40761         Patch by Volker Borchert.
40762
40763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40764         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40765         sys/fs_types.h, and make the link-test for getfsstat guard #include
40766         directives with appropriate #if HAVE_*_H tests so that we can
40767         detect getfsstat on Apple Darwin1.3.7 systems.
40768         Reported by Nelson Beebe.
40769         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40770
40771 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40772
40773         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40774         #defines strtoimax.  Also treat the other strto* functions
40775         like strtoimax.
40776
40777         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40778         Check for strtoul and strtoumax,
40779         as those declarations are made even in the signed case.
40780         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40781         Likewise, for strtol and strtoimax.
40782
40783 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40784
40785         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40786         #defines strtoimax.  Also treat the other strto* functions
40787         like strtoimax.
40788
40789         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40790         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40791         (strtoimax, strtoumax): Do not declare if already defined as a macro.
40792
40793 2001-09-26  Jim Meyering  <meyering@lucent.com>
40794
40795         Most macros in unlocked-io.h had the wrong number of arguments.
40796         * lib/gen-uio: New script.
40797         (USE_UNLOCKED_IO): Define to 1 if not already defined.
40798         * lib/unlocked-io.hin: Remove file.
40799         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40800         rather than trying to embed it here.
40801         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
40802         Reported by Padraig Brady.
40803
40804 2001-09-25  Volker Borchert  <bt@teknon.de>
40805
40806         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40807         `result'.
40808
40809 2001-09-24  Jim Meyering  <meyering@lucent.com>
40810
40811         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40812
40813 2001-09-23  Jim Meyering  <meyering@lucent.com>
40814
40815         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40816         instead of the mere test for existence of mntent.h.  The latter
40817         would get a false-positive on AIX 3.4 systems.
40818         In the outer getmntent if-block, don't die if neither of the getmntent
40819         tests succeeds.  Instead, just fall through and continue with the
40820         remaining tests.
40821
40822 2001-09-23  Jim Meyering  <meyering@lucent.com>
40823
40824         * lib/mountlist.c: Remove useless parentheses in #if directives.
40825         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40826         the deprecated MOUNTED symbol is no longer defined in mntent.h.
40827
40828 2001-09-22  Jim Meyering  <meyering@lucent.com>
40829
40830         * m4/gettext.m4: New file.  From gettext.
40831         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40832         * m4/progtest.m4: Likewise
40833         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40834         * m4/glibc21.m4: Likewise.
40835
40836         * m4/libintl.m4: Remove.  No longer used.
40837
40838 2001-09-22  Jim Meyering  <meyering@lucent.com>
40839
40840         * lib/localcharset.c: Update from latest gettext.
40841         * lib/config.charset: Likewise.
40842
40843 2001-09-20  Jim Meyering  <meyering@lucent.com>
40844
40845         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40846         strtoimax.
40847         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40848         strtoumax.
40849
40850 2001-09-20  Jim Meyering  <meyering@lucent.com>
40851
40852         * lib/xstrtol.c (strtoimax): Guard declaration with
40853         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40854         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40855         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40856         (strtoumax): Likewise, for completeness (it wasn't necessary).
40857
40858 2001-09-17  Paul Eggert  <eggert@twinsun.com>
40859
40860         * lib/strtoimax.c (HAVE_LONG_LONG):
40861         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40862         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40863         to work around bug in IBM C compiler.
40864
40865 2001-09-17  Jim Meyering  <meyering@lucent.com>
40866
40867         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40868         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40869         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40870         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40871         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40872         whenever the right hand side need not be expanded by the shell.
40873
40874 2001-09-16  Paul Eggert  <eggert@twinsun.com>
40875
40876         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40877         library.  It's not correct, as some older glibcs are buggy.
40878         fnmatch wasn't fixed until glibc 2.2.
40879
40880         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40881         special shell magic here.
40882
40883 2001-09-16  Jim Meyering  <meyering@lucent.com>
40884
40885         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40886         * m4/jm-macros.m4: Require it.
40887
40888 2001-09-16  Jim Meyering  <meyering@lucent.com>
40889
40890         * lib/mkdir.c: New file.
40891
40892 2001-09-15  Jim Meyering  <meyering@lucent.com>
40893
40894         * m4/jm-macros.m4: Check for help2man.
40895
40896 2001-09-11  Jim Meyering  <meyering@lucent.com>
40897
40898         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
40899         The body, by Paul Eggert, was moved here from configure.in.
40900         * m4/jm-macros.m4: Require UTILS_HOST_OS.
40901
40902 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40903
40904         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
40905         (jm_PREREQ): Use it.
40906
40907 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40908
40909         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
40910         Use ssize_t, not int, to store result of readlink.
40911         Check for ssize_t overflow as well as size_t overflow,
40912         as POSIX says the result of readlink is implementation-defined
40913         when ssize_t overflows.
40914         Remove unnecessary cast to char*.
40915         Use free+malloc instead of realloc, as the storage doesn't need
40916         to be preserved and it's clearer and can be more efficient that way.
40917         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
40918         * lib/xreadlink.h (xreadlink): Update prototype.
40919
40920 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40921
40922         * lib/xgetcwd.c: Revert some of the previous change; intead,
40923         fix the HAVE_GETCWD_NULL code to behave more like the
40924         !HAVE_GETCWD_NULL code used to.
40925
40926         Include "xalloc.h".
40927         (xgetcwd): Do not return NULL when memory is exhausted; instead,
40928         invoke xalloc_die.
40929
40930 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40931
40932         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
40933         sys/param.h, as pathmax.h includes them.
40934
40935 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40936
40937         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
40938         (jm_PREREQ_XGETCWD): New macro.
40939
40940         * m4/getcwd.m4: New file.
40941
40942 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40943
40944         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
40945         like the HAVE_GETCWD_NULL code.
40946         Include pathmax.h if not HAVE_GETCWD.
40947         Do not include xalloc.h.
40948         (INITIAL_BUFFER_SIZE): New symbol.
40949         Do not use xmalloc / xrealloc, since the caller is responsible for
40950         handling errors.  Preserve errno around `free' during failure.
40951         Do not overrun buffer when using getwd.
40952
40953 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40954
40955         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
40956         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
40957         getcwd (NULL, 0).
40958
40959 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40960
40961         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
40962         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
40963         spotted by Jim Meyering.
40964
40965 2001-09-03  Jim Meyering  <meyering@lucent.com>
40966
40967         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
40968         failure.
40969
40970 2001-09-02  Jim Meyering  <meyering@lucent.com>
40971
40972         * lib/error.c: Update from GNU libc.
40973
40974 2001-09-01  Jim Meyering  <meyering@lucent.com>
40975
40976         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
40977         Used by df.
40978
40979 2001-09-01  Jim Meyering  <meyering@lucent.com>
40980
40981         * lib/xreadlink.c: New file.
40982         * lib/xreadlink.h: New file.
40983         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
40984         xreadlink.h.
40985
40986         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
40987         doesn't conflict with sparc Solaris 7's definition in
40988         /usr/include/sys/int_types.h.
40989
40990         * lib/exclude.c: Use `""', not `<>' to #include non-system header
40991         files.
40992         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
40993         and strncasecmp as r-values.  Unixware didn't have declarations.
40994
40995 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40996
40997         * lib/xstrtol.h: Add copyright notice.
40998         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
40999         LONGINT_INVALID_SUFFIX_CHAR.
41000
41001 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41002
41003         * lib/xstrtol.c (strtoimax): New decl.
41004
41005 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41006
41007         * lib/xgetcwd.c: Don't include pathmax.h.
41008         Include stdlib.h and unistd.h if available.
41009         Include xalloc.h.
41010         (xmalloc, xstrdup, free): Remove decls.
41011         (xgetcwd): Don't assume sizes fit in unsigned.
41012         Check for overflow when computing sizes.
41013         Simplify reallocation code.
41014
41015 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41016
41017         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41018         a directory's st_size can have an arbitrary value, so the old
41019         usage could waste an arbitrary amount of memory.  All uses
41020         changed.
41021         * lib/savedir.h: Update prototype.
41022
41023 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41024
41025         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41026
41027         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41028         old strtoimax.c.
41029
41030         Also, make the following further changes to make this file's
41031         configuration more similar to that of strtol.c:
41032         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
41033         (strtoumax, uintmax_t, strtoull, strtol): Remove.
41034         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41035         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
41036         changed to signed values.
41037
41038         And make the following changes as well:
41039         Fix copyright notice, as 1999 was missing.
41040         (verify): New macro.
41041         (strtoimax): Check sizes at compile-time, not run-time.
41042         Prefer strtol to strtoll if both work.
41043         (main): Remove; it was not that useful and was a pain to maintain.
41044
41045         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41046
41047 2001-08-31  Jim Meyering  <meyering@lucent.com>
41048
41049         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41050         Use an initial, malloc'd, buffer of length 128 rather than
41051         a statically allocated one of length 1024.
41052
41053 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41054
41055         Simplify code, partly by assuming autoconf 2.52 semantics.
41056
41057         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41058
41059         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41060         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41061         All uses removed.
41062         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41063         Move AC_REQUIRE to next-to-top level, to avoid confusion.
41064         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41065         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41066         jm_AC_HEADER_INTTYPES_H.
41067         * m4/jm-macros.m4 (jm_MACROS): Likewise.
41068
41069         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41070
41071         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41072         Quote first arg of AC_DEFUN.
41073         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41074         since they are needed to parse the include file even if we need
41075         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
41076         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41077         but with opposite signedness.
41078
41079 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41080
41081         Merge 'exclude' changes from tar 1.13.22.
41082         This fixes one or two unlikely storage allocation overflow bugs,
41083         but doesn't change user-visible behavior otherwise.
41084
41085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41086
41087         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41088         (jm_PREREQ_EXCLUDE): New macro.
41089
41090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41091
41092         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41093         tm to be declared.
41094
41095 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41096
41097         * lib/hash.c: Remove '2001' from copyright notice.
41098
41099 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41100
41101         * lib/full-write.h: New file.
41102         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41103         * lib/full-write.c: Correct credits, as cccp.c no longer
41104         exists and anyway it was so heavily changed from the old cccp
41105         code as to be unrecognizable.  Include full-write.h.
41106         (full_write) Return size_t, with short writes meaning failure.
41107         All callers changed.  This fixes a bug with large buffers
41108         on 64-bit hosts.
41109         * lib/utime.c: Include full-write.h.
41110
41111 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41112
41113         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41114         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41115         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41116         Include if available.
41117         (<xalloc.h>): Include
41118         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41119         (verify): New macro.  Use it to verify that EXCLUDE macros do not
41120         collide with FNM macros.
41121         (struct patopts): New struct.
41122         (struct exclude): Use it, as exclude patterns now come with options.
41123         (new_exclude): Support above changes.
41124         (new_exclude, add_exclude_file):
41125         Initial size must now be a power of two to simplify overflow checking.
41126         (free_exclude, fnmatch_no_wildcards): New function.
41127         (excluded_filename): No longer requires options arg, as the options
41128         are determined by add_exclude.  Now returns bool, not int.
41129         (excluded_filename, add_exclude):
41130         Add support for the fancy new exclusion options.
41131         (add_exclude, add_exclude_file): Now takes int options arg.
41132         Check for arithmetic overflow when computing sizes.
41133         (add_exclude_file): xrealloc might modify errno, so don't
41134         realloc until after errno might be used.
41135
41136         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41137         New macros.
41138         (free_exclude): New decl.
41139         (add_exclude, add_exclude_file): Now takes int options arg.
41140         (excluded_filename): No longer requires options arg, as the options
41141         are determined by add_exclude.  Now returns bool, not int.
41142
41143 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41144
41145         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41146
41147 2001-08-27  Jim Meyering  <meyering@lucent.com>
41148
41149         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41150
41151         * lib/version-etc.c (N_): Remove definition.
41152         Revert most of last change.
41153         Instead, simply don't mark the `Copyright...' string for translation.
41154         Based on advice from Paul Eggert.
41155
41156         * lib/strtoxmax.c: Tweak comment.
41157
41158 2001-08-26  Jim Meyering  <meyering@lucent.com>
41159
41160         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41161
41162         * m4/xstrtoimax.m4: New file.
41163         * m4/xstrtoumax.m4: Add comments explaining why we
41164         AC_REPLACE_FUNCS(strtol).
41165
41166 2001-08-26  Jim Meyering  <meyering@lucent.com>
41167
41168         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41169         of copyright with `%s' so translators don't get an untranslated
41170         message in 2002.
41171         (COPYRIGHT_YEAR): Define.
41172         (version_etc): Use fprintf rather than fputs.
41173         Suggestion from Ulrich Drepper.
41174
41175         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41176
41177         * lib/strtoll.c: New file, from GNU libc.
41178         * lib/xstrtoimax.c: New file.
41179
41180         * lib/xstrtol.h: Add xstrtoimax.
41181         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
41182         * lib/strtoimax.c: New file.  Likewise, but first define
41183         STRTOUXMAX_SIGNED.
41184
41185         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41186         ...
41187         * lib/strtoxmax.c: ... then renamed to this.
41188
41189 2001-08-18  Paul Eggert  <eggert@twinsun.com>
41190
41191         * m4/inttypes.m4: Add AC_PREREQ(2.13).
41192         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41193         (jm_AC_TYPE_INTMAX_T): New macro.
41194         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41195
41196         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41197
41198         * m4/longlong.m4: Renamed from ulonglong.m4.
41199         * m4/inttypes.m4: Renamed from inttypes_h.m4.
41200         * m4/uintmax_t.m4: Removed.
41201
41202 2001-08-13  Paul Eggert  <eggert@twinsun.com>
41203
41204         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41205         Port to Solaris 8, where 'sed' requires a space after the 'r'
41206         command, and where sh dislikes "$/".  Clean up the spacing a bit.
41207         Redirect output to $tmp just once.
41208
41209 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
41210
41211         * lib/addext.c (<errno.h>): Include.
41212         (errno): Declare if not defined.
41213         (addext): Work correctly when pathconf returns -1 and leaves
41214         errno alone because there is no limit.  Also, work even if
41215         pathconf returns a value greater than SIZE_MAX.
41216
41217 2001-08-12  Jim Meyering  <meyering@lucent.com>
41218
41219         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41220         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41221         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41222         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41223         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41224         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41225         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41226         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41227         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41228         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41229         utime.m4, utimes.m4, xstrtoumax.m4:
41230         Quote the first argument in each use of AC_DEFUN.
41231
41232 2001-08-12  Jim Meyering  <meyering@lucent.com>
41233
41234         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41235         Simply `return getcwd (NULL, 0);'.
41236         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41237         Use 1300 as initial value for length, not PATH_MAX.
41238
41239         * lib/pathmax.h: Clean up cpp syntax.
41240
41241 2001-08-12  Jim Meyering  <meyering@lucent.com>
41242
41243         * lib/gettimeofday.c: New file.
41244         * lib/gtod.h: New file.
41245         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41246
41247 2001-08-05  Jim Meyering  <meyering@lucent.com>
41248
41249         * m4/jm-macros.m4: Require autoconf-2.52.
41250
41251 2001-08-04  Jim Meyering  <meyering@lucent.com>
41252
41253         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41254         stmt, to get in sync with glibc.
41255
41256 2001-08-03  Paul Eggert  <eggert@twinsun.com>
41257
41258         The following changes are from gettext 0.10.39 as maintained by
41259         Bruno Haible.
41260
41261         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41262         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41263         with inverted sense.  All uses changed.
41264
41265         * lib/mbswidth.c: Don't include <limits.h>.
41266         Include <stdlib.h> and <string.h> unconditionally.
41267         (iswcntrl, mbsinit, ISCNTRL): New macros.
41268         (mbsnwidth): Use K&R style function declarations.
41269         Don't bother checking for MB_LEN_MAX == 1, since the compiler
41270         can optimize it when MB_CUR_MAX == 1.
41271         The width of control characters is zero, not 1.
41272
41273 2001-08-03  Paul Eggert  <eggert@twinsun.com>
41274
41275         The following changes are from gettext 0.10.39 as maintained by
41276         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41277
41278         * m4/codeset.m4: Upgrade to serial AM1.
41279         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41280         all uses changed.  Quote first arg of AC_DEFUN.
41281         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41282
41283         * m4/iconv.m4: Upgrade to serial AM2.
41284         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41285         Add --with-libconv-prefix.
41286         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
41287         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41288         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41289         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41290         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41291
41292         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41293         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41294         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41295         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41296         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41297         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41298         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41299         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41300         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41301
41302         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41303         string.h any more.
41304
41305         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41306         not the default value.
41307
41308         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
41309         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41310         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
41311         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41312         Also check for iswcntrl, used for wcwidth fallback.
41313         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41314         to Autoconf 2.13.
41315
41316 2001-08-03  Jim Meyering  <meyering@lucent.com>
41317
41318         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41319         as it was in the original.  Reported by Paul Eggert.
41320
41321 2001-07-16  Jim Meyering  <meyering@lucent.com>
41322
41323         * m4/gettimeofday.m4: New file.
41324         Prompted by a report from Bernhard Baehr.
41325
41326 2001-07-15  Jim Meyering  <meyering@lucent.com>
41327
41328         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41329         stuff. Now it's in ../Makefile.cfg.
41330
41331 2001-07-15  Jim Meyering  <meyering@lucent.com>
41332
41333         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41334         (BUILT_SOURCES): Add unlocked-io.h.
41335         (io_functions): Define.
41336         (unlocked-io.h): New rule.
41337         (DISTCLEANFILES): Add unlocked-io.h.
41338         (all-local): Depend on unlocked-io.h, to ensure it is created.
41339
41340         * lib/unlocked-io.hin: New file
41341
41342         * lib/regex.c: Update from glibc.
41343
41344 2001-07-05  Jim Meyering  <meyering@lucent.com>
41345
41346         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
41347         recommendation.
41348         (libfetish_a_SOURCES): Put all .h files here instead.
41349         Remove a thus-exposed (better checks in automake) duplicate and
41350         two unnecessary .h files.
41351
41352 2001-07-04  Jim Meyering  <meyering@lucent.com>
41353
41354         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
41355         that generates jm-glibc-io.m4 so that it doesn't trigger any make
41356         distcheck failure.
41357
41358 2001-07-02  Jim Meyering  <meyering@lucent.com>
41359
41360         The following changes were prompted by suggestions from Bruno Haible.
41361
41362         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
41363         is now generated.
41364         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
41365         definition of EXTRA_DIST.
41366         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
41367         ensure that the generated file is created/updated whenever the list
41368         of $(unlocked_functions) is changed.
41369         (jm-glibc-io.m4): New rule.
41370         (unlocked-io.h): New rule -- currently unused.
41371
41372 2001-06-24  Jim Meyering  <meyering@lucent.com>
41373
41374         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
41375         unmatched right bracket, rather than kludging it with an extra,
41376         falsely-matching quote in a comment.  Patch by Akim Demaille.
41377
41378 2001-06-11  Jim Meyering  <meyering@lucent.com>
41379
41380         * lib/regex.c: Update from GNU libc.
41381
41382 2001-05-27  Jim Meyering  <meyering@lucent.com>
41383
41384         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
41385         Check for ut_type in struct utmp.
41386
41387 2001-05-27  Jim Meyering  <meyering@lucent.com>
41388
41389         * lib/readutmp.h (UT_TYPE): Define.
41390
41391 2001-05-24  Jim Meyering  <meyering@lucent.com>
41392
41393         * lib/argmatch.c: Include "quote.h".
41394         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
41395         quote function.  Reported by Göran Uddeborg.
41396
41397 2001-05-22  Jim Meyering  <meyering@lucent.com>
41398
41399         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
41400         now that we use the package-supplied version unconditionally.
41401         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
41402
41403 2001-05-21  Jim Meyering  <meyering@lucent.com>
41404
41405         * m4/regex.m4: Change a couple backticks to single quotes to avoid
41406         shell syntax errors.
41407
41408 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
41409
41410         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
41411
41412 2001-05-20  Paul Eggert  <eggert@twinsun.com>
41413
41414         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
41415         Don't bother to check library strftime, since
41416         we'll be using our own my_strftime function anyway.
41417         Define my_strftime instead of strftime.
41418
41419 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
41420
41421         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
41422         which is not yet declared.
41423
41424 2001-05-15  Jim Meyering  <meyering@lucent.com>
41425
41426         * m4/regex.m4: Use proper quoting so brackets appear in the test
41427         program.
41428         Reported by, and with help from, Bruno Haible.
41429
41430 2001-05-13  Jim Meyering  <meyering@lucent.com>
41431
41432         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
41433         undefined.
41434
41435 2001-05-11  Paul Eggert  <eggert@twinsun.com>
41436
41437         dirname code cleanup.  base_name now behaves more compatibly
41438         with POSIX basename when given file names that have trailing
41439         slashes, and similarly for dir_name.  Add new primitives
41440         base_len and dir_len.  Put the directory-name-related decls
41441         into dirname.h.
41442
41443         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
41444         * lib/backupfile.c (base_name): Likewise.
41445         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
41446         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
41447         * lib/makepath.c (strip_trailing_slashes): Likewise.
41448         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
41449         ISSLASH): Likewise.
41450         * lib/rename.c (strip_trailing_slashes): Likewise.
41451         * lib/same.c (base_name): Likewise.
41452         * lib/stripslash.c (ISSLASH): Likewise.
41453
41454         * lib/addext.c: Include <dirname.h> after size_t is defined.
41455         * lib/backupfile.c: Likewise.
41456
41457         * lib/addext.c (addext): Use base_len to trim redundant
41458         trailing slashes instead of doing it ourselves.
41459         But do not trim the last slash if it is not redundant.
41460
41461         * lib/backupfile.c (find_backup_file_name,
41462         max_backup_version): Use base_len instead of rolling it ourselves.
41463         Handle the case of "" and (on DOS) "C:" correctly.
41464
41465         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
41466         needed. Include <string.h>, <dirname.h>.
41467         (base_name): Allow file names ending in slashes, other than names
41468         that are all slashes.  In this case, return the basename followed
41469         by the slashes.  This is more general, and can be used in places
41470         where the original base_name purposely had an assertion failure.
41471         (base_len): New function.
41472
41473         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
41474         Do not include <assert.h>; no longer needed.
41475         Include xalloc.h.
41476         (memrchr): Remove decl.
41477         (dir_name_r): Remove.
41478         (dir_len): Renamed from dirlen.  All callers changed.
41479         Rewrite in terms of base_name, for simplicity and consistency.
41480         (dir_name): Never return NULL.  All callers changed.
41481         Do not include <stdlib.h> in test program; no longer needed.
41482         return 0; is fine for test program.
41483
41484         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
41485         New macros.
41486         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
41487
41488         * lib/path-concat.c (path_concat): Use base_len to compute
41489         base length, not strlen; this means we cannot rely on memcpy
41490         to null-terminate.
41491
41492         * lib/same.c (STREQ): Remove.
41493         (same_name): Handle the case where the basename ends in trailing '/'.
41494
41495         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
41496         a slash was stripped.  Do not strip the last slash after a
41497         file system prefix.
41498
41499 2001-05-11  Paul Eggert  <eggert@twinsun.com>
41500
41501         * lib/Makefile.am (libfetish_a_SOURCES):
41502         Add strftime.c, since we now compile it on all hosts.
41503
41504         * lib/strftime.c (my_strftime):
41505         Define to nstrftime if emacs, but only if my_strftime is not defined.
41506         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
41507         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
41508         Add one more extra argument: a nanoseconds value.
41509         All uses changed.
41510         (ns): New macro.
41511         (my_strftime function): Add %N format.
41512         (emacs_strftimeu): Renamed from emacs_strftime,
41513         with extra ut argument.
41514
41515 2001-05-09  Paul Eggert  <eggert@twinsun.com>
41516
41517         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
41518
41519 2001-04-21  Jim Meyering  <meyering@lucent.com>
41520
41521         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
41522         doesn't interfere.
41523
41524 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
41525
41526         * m4/ftruncate.m4: Check for chsize.
41527         Link with ftruncate.o unconditionally if ftruncate is missing.
41528         This was required when cross-compiling to i586-mingw32msvc.
41529
41530 2001-04-08  Jim Meyering  <meyering@lucent.com>
41531
41532         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
41533         recomputed; that's necessary when the offset spans a DST transition.
41534         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
41535
41536 2001-04-02  Jim Meyering  <meyering@lucent.com>
41537
41538         * lib/regex.h, regex.c: Update from GNU libc.
41539
41540 2001-03-24  Jim Meyering  <meyering@lucent.com>
41541
41542         * m4/jm-macros.m4: Require autoconf-2.49d.
41543
41544 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
41545
41546         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41547
41548 2001-03-19  Paul Eggert  <eggert@twinsun.com>
41549
41550         * lib/version-etc.c (version_etc_copyright): Update to 2001.
41551
41552 2001-03-17  Jim Meyering  <meyering@lucent.com>
41553
41554         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41555         now that the version in autoconf is equivalent.
41556         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41557
41558         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41559         Suggestion from Akim Demaille.
41560
41561         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41562         (jm_PREREQ_TEMPNAME): New function.
41563
41564 2001-03-16  Paul Eggert  <eggert@twinsun.com>
41565
41566         * lib/tempname.c (uint64_t): Define to uintmax_t if
41567         not defined, and if UINT64_MAX is not defined.
41568         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41569         Reported by John David Anglin.
41570
41571 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
41572
41573         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41574         resolve alias if codeset is empty.
41575         * lib/config.charset (BeOS): Use wildcard syntax.
41576
41577 2001-03-13  Jim Meyering  <meyering@lucent.com>
41578
41579         * lib/path-concat.c (path_concat)
41580         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41581         concatenating e.g., `C:' and `foo'.
41582         From Bruno Haible.
41583
41584 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41585
41586         * lib/localcharset.c (locale_charset): Don't use
41587         setlocale(LC_CTYPE,NULL). Don't return NULL.
41588         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41589
41590 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41591
41592         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41593         support for DOS/DJGPP.
41594
41595 2001-03-01  Paul Eggert  <eggert@twinsun.com>
41596
41597         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41598         lacks mkstemp.  Compile our own tempname.c if we compile our own
41599         mkstemp.c, as mkstemp relies on tempname.
41600
41601 2001-03-01  Jim Meyering  <meyering@lucent.com>
41602
41603         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41604         AH_VERBATIM really does output its argument verbatim.
41605
41606 2001-02-28  Paul Eggert  <eggert@twinsun.com>
41607
41608         * lib/Makefile.am (libfetish_a_SOURCES):
41609         Add dup-safer.c, fopen-safer.c.
41610         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41611
41612         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41613         * lib/unistd-safer.h: New files.
41614
41615 2001-02-25  Paul Eggert  <eggert@twinsun.com>
41616
41617         The mkstemp replacement is taken from glibc 2.2.2, with some
41618         portability fixes for use outside glibc, as follows:
41619
41620         * lib/tempname.c (struct_stat64): New macro.
41621         (direxists, __gen_tempname): Use it.
41622         This avoids a portability problem with Solaris 8.
41623
41624         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41625         (<stddef.h>, <stdint.h>, <string.h>):
41626         Include only if STDC_HEADERS || _LIBC.
41627         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41628         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41629         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41630         (__set_errno): Define this macro if <errno.h> doesn't.
41631         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41632         Define these macros if <stdio.h> doesn't.
41633         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41634         Define these macros if <sys/stat.h>
41635         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41636         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41637         __xstat64): Define if not _LIBC.
41638         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41639         (__gen_tempname): Invoke gettimeofday only if
41640         HAVE_GETTIMEOFDAY || _LIBC;
41641         otherwise, fall back on plain "time".
41642         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41643
41644         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41645
41646         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41647
41648 2001-02-18  Paul Eggert  <eggert@twinsun.com>
41649
41650         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41651
41652 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41653
41654         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41655         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41656         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41657         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41658
41659 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41660
41661         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41662         Remove workaround macros for hosts that have mbrtowc but not
41663         mbstate_t, as we now insist on proper declarations for both
41664         before using mbrtowc.
41665
41666 2001-02-17  Jim Meyering  <meyering@lucent.com>
41667
41668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41669         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41670         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41671         UnixWare 7.1.1.
41672
41673         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41674         rather than AC_CACHE_VAL.
41675
41676 2001-02-17  Jim Meyering  <meyering@lucent.com>
41677
41678         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
41679         around included file name.
41680
41681         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41682
41683         * lib/strftime.c: Update from GNU libc (the only changes were to
41684         comments).
41685
41686 2001-02-17  Jim Meyering  <meyering@lucent.com>
41687
41688         * lib/regex.c: Update from libc.
41689
41690 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
41691
41692         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41693         clash.
41694
41695 2001-02-16  Paul Eggert  <eggert@twinsun.com>
41696
41697         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41698         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
41699         Reported by Mark Hounschell via Paul Eggert.
41700
41701 2001-02-07  Jim Meyering  <meyering@lucent.com>
41702
41703         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41704
41705 2001-02-05  Jim Meyering  <meyering@lucent.com>
41706
41707         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41708         it includes the patch required for `large file' support with at least
41709         HP-UX's 10.20 /bin/cc.
41710
41711 2001-02-03  Jim Meyering  <meyering@lucent.com>
41712
41713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41714         AS_IF, now that it works once again (mysteriously).
41715         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41716
41717 2001-01-30  Jim Meyering  <meyering@lucent.com>
41718
41719         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41720         * m4/chown.m4: Rename conftestchown to conftest.chown.
41721         * m4/rename.m4: s/conftestdir/conftest.d1/ and
41722         s/conftestdir2/conftest.d2/.
41723         * m4/utimes.m4: s/conftestdata/conftest.data/
41724         Inspired by Pavel Roskin's change in autoconf.
41725
41726 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
41727
41728         * lib/config.charset: Update for FreeBSD 4.2.
41729
41730 2001-01-27  Jim Meyering  <meyering@lucent.com>
41731
41732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41733         a use of AS_IF.
41734         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41735
41736 2001-01-26  Jim Meyering  <meyering@lucent.com>
41737
41738         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41739         quotearg.c includes it.
41740
41741 2001-01-26  Jim Meyering  <meyering@lucent.com>
41742
41743         * lib/quotearg.c: Include stddef.h.
41744         * lib/quote.c: Include stddef.h.
41745         Reported by Axel Kittenberger.
41746
41747         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41748         line in double quotes so that it evokes a better diagnostic.
41749         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41750         Reported by Axel Kittenberger.
41751
41752 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
41753
41754         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41755         as if it was a `charset'.
41756
41757 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41758
41759         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41760         has const.
41761
41762 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41763
41764         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41765         to avoid a warning.  Add back 'const' to inptr.
41766
41767 2001-01-20  Jim Meyering  <meyering@lucent.com>
41768
41769         Be sure that headers are checked before used in code compiled
41770         for the type checks.
41771         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41772         In place of that, invoke jm_CHECK_ALL_TYPES.
41773         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41774         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41775         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41776         The check for ssize_t was mistakenly run before the test for unistd.h.
41777
41778         The configure-time check for stdbool.h was missing.
41779         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41780         (jm_PREREQ_HASH): New function.
41781
41782 2001-01-17  Jim Meyering  <meyering@lucent.com>
41783
41784         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41785         for autoconf-2.49c.
41786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41787
41788 2001-01-16  Jim Meyering  <meyering@lucent.com>
41789
41790         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41791         From Bruno Haible.
41792
41793 2001-01-14  Jim Meyering  <meyering@lucent.com>
41794
41795         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41796         foo and bar.  Create conftestdir/ in the script, not in the C code.
41797         Remove directories in the script, not in the C code.
41798         Remove conftestdir{,2} before trying to create the directory.
41799         Make the entire configure script fail if the mkdir fails.
41800
41801 2001-01-14  Jim Meyering  <meyering@lucent.com>
41802
41803         * lib/rename.c: New file.  From Volker Borchert.
41804         Include stdlib.h, string.h or strings.h, and xalloc.h.
41805         Use strip_trailing_slashes rather than open-coding it.
41806
41807 2001-01-03  Paul Eggert  <eggert@twinsun.com>
41808
41809         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41810
41811 2001-01-03  Jim Meyering  <meyering@lucent.com>
41812
41813         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41814         of local `inptr' to avoid warning with some system declarations of
41815         iconv.
41816
41817 2001-01-02  Volker Borchert  <bt@teknon.de>
41818
41819         * m4/rename.m4: New file.
41820         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41821
41822 2001-01-01  Jim Meyering  <meyering@lucent.com>
41823
41824         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41825         even on systems with utmpx.h.  It's necessary for the declaration of
41826         utmp's ut_user member.  Reported by Andreas Jaeger.
41827
41828         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41829         available. They are required for the declarations of getgrgid and
41830         getpwuid resp.
41831         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41832         Reported by Andreas Jaeger.
41833
41834 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
41835
41836         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41837         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41838         so `make install' also works in VPATH builds.
41839
41840 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
41841
41842         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41843         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41844         can be used in subdirectories.
41845
41846 2000-12-29  Paul Eggert  <eggert@twinsun.com>
41847
41848         * lib/modechange.c: Do not assume that mode_t uses the
41849         traditional octal encoding.  E.g. "chmod 1 FOO" should set
41850         the other-execute bit of FOO even if S_IXOTH != 1.
41851
41852         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41853         WOTH, XOTH, ALLM): New macros.
41854         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41855          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41856         Use them.
41857         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41858         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41859         (mode_compile):
41860         No need to use uintmax_t; unsigned long is long enough.
41861         Don't bother to get suffix since we don't use it.
41862
41863 2000-12-26  Jim Meyering  <meyering@lucent.com>
41864
41865         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41866         better with autoheader.
41867
41868 2000-12-24  Jim Meyering  <meyering@lucent.com>
41869
41870         * lib/hash.c (is_prime): Return explicit boolean values.
41871         (hash_get_first): Return NULL to appease Irix5.6's 89.
41872         Reported by Nelson Beebe.
41873
41874 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
41875
41876         * lib/localcharset.c (locale_charset): Add support for Win32.
41877
41878 2000-12-18  Paul Eggert  <eggert@twinsun.com>
41879
41880         * lib/physmem.h, lib/physmem.c: New files.
41881
41882         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41883         (noinst_HEADERS): Add physmem.h.
41884
41885         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41886         't' for compatibility with Solaris 8 sort.
41887
41888 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
41889
41890         * lib/config.charset: Add support for BeOS.
41891
41892 2000-12-17  Jim Meyering  <meyering@lucent.com>
41893
41894         * m4/dos.m4 (jm_AC_DOS): New file and macro.
41895         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
41896
41897 2000-12-16  Jim Meyering  <meyering@lucent.com>
41898
41899         This bug had a serious impact on chown: `chown N:M FILE' (for integer
41900         N and M) would have treated it like `chown N:N FILE'.
41901
41902         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
41903
41904 2000-12-16  Jim Meyering  <meyering@lucent.com>
41905
41906         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
41907         SHELLS_FILE to a file name that's useful on djgpp systems.
41908         Include stdlib.h.
41909         (ADDITIONAL_DEFAULT_SHELLS): Define.
41910         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
41911         Based mostly on a patch from Prashant TR.
41912
41913 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
41914
41915         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
41916         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
41917         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
41918
41919 2000-12-08  Andreas Schwab  <schwab@suse.de>
41920
41921         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
41922         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
41923
41924 2000-12-07  Jim Meyering  <meyering@lucent.com>
41925
41926         * lib/stripslash.c (ISSLASH): Define.
41927         (strip_trailing_slashes): Use ISSLASH rather than comparing against
41928         `/'.
41929         From Prashant TR.
41930
41931         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
41932         (dir_name_r): Declare this function as static.
41933         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
41934         manifest itself on a name containing a mix of slashes and
41935         backslashes.
41936         Make this function work with names starting with a DOS-style
41937         drive letter and colon prefix.
41938         (dir_name): Append `.' if necessary.
41939         Based mostly on patches from Prashant TR and Eli Zaretskii.
41940
41941         * lib/dirname.h (dir_name_r): Remove prototype.
41942
41943 2000-12-06  Paul Eggert  <eggert@twinsun.com>
41944
41945         * m4/off_t-format.m4: Remove this file.
41946         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
41947
41948 2000-12-06  Jim Meyering  <meyering@lucent.com>
41949
41950         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
41951         replacement strtoull, we may well need the replacement strtoul, too.
41952         Check for declarations of strtoul and strtoull.
41953         Check for strtol.  Mainly as a cue to cause automake to include
41954         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
41955         Check for limits.h -- strtol.c needs it.
41956
41957 2000-12-05  Jim Meyering  <meyering@lucent.com>
41958
41959         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
41960
41961 2000-12-04  Jim Meyering  <meyering@lucent.com>
41962
41963         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41964         Also include memory.h, stdlib.h, unistd.h if appropriate.
41965         Reported by Andreas Jaeger (conflicting declaration of malloc).
41966
41967 2000-12-02  Jim Meyering  <meyering@lucent.com>
41968
41969         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
41970         * m4/jm-macros.m4 (jm_MACROS): require it.
41971
41972 2000-12-02  Jim Meyering  <meyering@lucent.com>
41973
41974         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
41975
41976 2000-12-01  Paul Eggert  <eggert@twinsun.com>
41977
41978         * lib/memrchr.c: Include <config.h> before any system include file.
41979
41980 2000-11-30  Jim Meyering  <meyering@lucent.com>
41981
41982         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
41983
41984 2000-11-30  Jim Meyering  <meyering@lucent.com>
41985
41986         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
41987
41988 2000-11-29  Paul Eggert  <eggert@twinsun.com>
41989
41990         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
41991
41992 2000-11-26  Jim Meyering  <meyering@lucent.com>
41993
41994         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
41995
41996 2000-11-22  Paul Eggert  <eggert@twinsun.com>
41997
41998         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
41999         size of (size_t) -1; it's not portable.
42000
42001 2000-11-17  Jim Meyering  <meyering@lucent.com>
42002
42003         * lib/strstr.c: Update from GNU libc.
42004
42005 2000-11-17  Akim Demaille  <akim@epita.fr>
42006
42007         * lib/obstack.h: Formatting changes.
42008         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42009         prevent type checking.
42010         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42011         cast the value to (void *): assigning a `foo *' to a `void *'
42012         variable is valid.
42013         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42014
42015 2000-11-16  Jim Meyering  <meyering@lucent.com>
42016
42017         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42018
42019 2000-11-11  Jim Meyering  <meyering@lucent.com>
42020
42021         * lib/error.c: Add a couple #includes, merging from GNU libc version.
42022
42023 2000-11-10  Jim Meyering  <meyering@lucent.com>
42024
42025         * lib/obstack.h: Update from GNU libc.
42026         * lib/obstack.c: Likewise.
42027
42028 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
42029
42030         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42031
42032 2000-11-06  Paul Eggert  <eggert@twinsun.com>
42033
42034         * lib/getusershell.c (setusershell): Use rewind rather than
42035         fseek/fseeko, to avoid configuration hassles with fseeko.
42036         Don't bother opening SHELLS_FILE if shellstream is NULL;
42037         it's not necessary.
42038
42039 2000-11-05  Jim Meyering  <meyering@lucent.com>
42040
42041         * lib/makepath.h (make_dir): Declare.
42042         * lib/makepath.c (make_dir): Remove `static' attribute.
42043         Tweak a comment.
42044
42045 2000-11-04  Jim Meyering  <meyering@lucent.com>
42046
42047         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42048
42049 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
42050
42051         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
42052         last one in a bucket, advance to the next bucket.
42053
42054 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
42055
42056         * lib/fnmatch.c: Do not comment out all the code if we are using
42057         the GNU C library, because in some cases we are replacing buggy
42058         code in the GNU C library itself.
42059
42060 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
42061
42062         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42063         (regex_compile): Catch bogus \(\1\).
42064
42065 2000-10-30  Paul Eggert  <eggert@twinsun.com>
42066
42067         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42068         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42069         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42070
42071 2000-10-30  Paul Eggert  <eggert@twinsun.com>
42072
42073         * lib/error.h, getline.h, modechange.h:
42074         Remove "2000" from Copyright line, as the file hasn't been
42075         changed this year other than in the copyright notice.
42076
42077         * lib/xalloc.h: Add "2000" to Copyright line, as this file
42078         was changed this year.
42079
42080 2000-10-29  Jim Meyering  <meyering@lucent.com>
42081
42082         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42083         renaming.
42084         * m4/ls-mntd-fs.m4: Likewise
42085
42086 2000-10-29  Jim Meyering  <meyering@lucent.com>
42087
42088         * lib/xstat.in: Fix grammar in comment.
42089
42090 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
42091
42092         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42093         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42094         doesn't define __restrict_arr.
42095
42096 2000-10-28  Jim Meyering  <meyering@lucent.com>
42097
42098         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42099         (jm_PREREQ_MEMCHR): New function.
42100
42101 2000-10-28  Jim Meyering  <meyering@lucent.com>
42102
42103         * lib/memchr.c: Update from libc.
42104         Adjust for portability:
42105         [HAVE_STDLIB_H]: Include stdlib.h.
42106         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42107         Undef __memchr, too.
42108         [!weak_alias]: Define __memchr to memchr.
42109
42110         * lib/regex.c: Update from libc.
42111         * lib/regex.h: Likewise.
42112         * lib/getopt1.c: Likewise.
42113         * lib/memcmp.c: Likewise.
42114
42115         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42116         Avoid using fseek, when possible -- it's broken by design.
42117         Patch by Ulrich Drepper.
42118
42119 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
42120
42121         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42122         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42123         Giving in to popular pressure to shut up the compiler with casts.
42124
42125 2000-10-26  Jim Meyering  <meyering@lucent.com>
42126
42127         * lib/strftime.c: Update from libc.
42128
42129 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
42130
42131         * regex.c: More `unsigned char' -> `re_char' changes.
42132         Also change several `int' into `re_wchar_t'.
42133         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42134         (PUSH_FAILURE_POINTER): Don't cast any more.
42135         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42136         We want GCC to complain, since this piece of code makes
42137         re_match non-reentrant, which *should* be fixed.
42138         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42139         (EXTEND_BUFFER): Use RETALLOC.
42140         (SET_LIST_BIT): Don't cast.
42141         (re_wchar_t): New type.
42142         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42143         that those two functions will always properly return.
42144         (IMMEDIATE_QUIT_CHECK): Cast to void.
42145         (analyse_first): Use recursion rather than an explicit stack.
42146         (re_compile_fastmap): Can't fail anymore.
42147         (re_search_2): Don't check re_compile_fastmap for failure.
42148         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42149         Now also sets the new value (passed in a new argument).
42150         (re_match_2_internal): Use it.
42151         Also, use a new var `reg' of type size_t when looping through regs
42152         rather than reuse the inappropriate `mcnt'.
42153
42154 2000-10-25  Jim Meyering  <meyering@lucent.com>
42155
42156         * lib/obstack.c: Update from libc.
42157
42158 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
42159
42160         * regex.c (regex_compile): Change the way of handling a range from
42161         a char less than 256 to a char not less than 256.
42162
42163 2000-10-24  Andrew Innes  <andrewi@gnu.org>
42164
42165         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42166         NT-Emacs only.
42167         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42168         so that re_search functions only quit when callers expect them to.
42169
42170 2000-10-23  Jim Meyering  <meyering@lucent.com>
42171
42172         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42173         wrong.  That set_locale call must not have any side effects.
42174         From Paul Eggert.
42175
42176 2000-10-22  Jim Meyering  <meyering@lucent.com>
42177
42178         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42179         [CYCLIC]: Remove now-unused definition.
42180
42181         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42182         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42183         Suggestion from Ulrich Drepper.
42184
42185 2000-10-21  Jim Meyering  <meyering@lucent.com>
42186
42187         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42188         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42189         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42190
42191 2000-10-21  Jim Meyering  <meyering@lucent.com>
42192
42193         * lib/dirname.c (memrchr): Declare if necessary.
42194         (dir_name): Remove the restriction that there be no
42195         trailing slashes.  Now, this code skips past them, effectively
42196         ignoring them.
42197         [TEST_DIRNAME] (main): New unit tests.
42198
42199         * lib/memrchr.c: New file from GNU libc.
42200         Undef __memrchr, too.
42201         [!weak_alias]: Define __memrchr to memrchr.
42202         Guard weak_alias use with `#ifdef weak_alias'.
42203
42204 2000-10-21  Jim Meyering  <meyering@lucent.com>
42205
42206         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42207         (dir_name): Use dir_name_r.
42208         * lib/dirname.h (dir_name_r): Declare it.
42209
42210 2000-10-17  Jim Meyering  <meyering@lucent.com>
42211
42212         * lib/quote.h (PARAMS): Define and use.
42213         Reported by Akim Demaille.
42214
42215         * lib/getopt.c: Update from libc.
42216
42217 2000-10-16  Jim Meyering  <meyering@lucent.com>
42218
42219         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42220         setlocale.
42221         From Jan Fedak.
42222
42223 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
42224
42225         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42226
42227 2000-09-25  Jim Meyering  <meyering@lucent.com>
42228
42229         * lib/md5.h (rol): Define (from GnuPG).
42230
42231         * lib/sha.c: Give credit (GnuPG) where due.
42232         (M): Use rol rather than open-coding it.
42233         Add a FIXME comment.
42234
42235 2000-09-21  Jim Meyering  <meyering@lucent.com>
42236
42237         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42238         Reported by Michael Stone.
42239
42240 2000-09-20  Jim Meyering  <meyering@lucent.com>
42241
42242         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42243         (noinst_HEADERS): Add sha.h.
42244         Based on code from Scott G. Miller and from GnuPG.
42245
42246 2000-09-18  Jim Meyering  <meyering@lucent.com>
42247
42248         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42249         LIBS. Otherwise, everyone ends up linking with -lelf for some
42250         configurations.
42251         Reported by Mike Stone.
42252
42253 2000-09-15  Jim Meyering  <meyering@lucent.com>
42254
42255         * lib/regex.c: Update from libc.
42256
42257 2000-09-10  Jim Meyering  <meyering@lucent.com>
42258
42259         * lib/getopt.c (_getopt_internal): Update from glibc.
42260
42261 2000-09-09  Jim Meyering  <meyering@lucent.com>
42262
42263         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42264         think it should be used as a general replacement for isascii.
42265         * lib/fnmatch.c: Likewise.
42266         * lib/mbswidth.c: Likewise
42267         * lib/regex.c: Likewise.
42268
42269         Don't use atoi.
42270         * lib/userspec.c: Include sys/param.h and limits.h.
42271         Include xstrtol.h.
42272         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42273         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42274         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42275         UID, GID.  Check range.
42276
42277 2000-09-06  Jim Meyering  <meyering@lucent.com>
42278
42279         * lib/getopt.c (_getopt_internal): Update from glibc.
42280
42281 2000-08-30  Jim Meyering  <meyering@lucent.com>
42282
42283         * lib/strftime.c: Merge in changes from GNU libc.
42284
42285 2000-08-26  Jim Meyering  <meyering@lucent.com>
42286
42287         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42288         * m4/fpending.m4: New file.
42289
42290 2000-08-26  Jim Meyering  <meyering@lucent.com>
42291
42292         * lib/closeout.c: Include "__fpending.h".
42293         (close_stdout_status): Return right away if there's nothing to flush.
42294
42295         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42296         * lib/__fpending.c: New file.
42297         * lib/__fpending.h: New file.
42298
42299 2000-08-20  Jim Meyering  <meyering@lucent.com>
42300
42301         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42302         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
42303         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
42304
42305 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
42306
42307         Improve fileutils installation on systems where running
42308         programs (like install) can't be unlinked.
42309         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42310         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42311
42312 2000-08-07  Paul Eggert  <eggert@twinsun.com>
42313
42314         Standardize on "memory exhausted" instead of "Memory exhausted"
42315         or "virtual memory exhausted".
42316         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42317         "virtual memory exhausted".
42318         * lib/same.c (same_name): Invoke xalloc_die instead of printing
42319         our own message.
42320         * lib/userspec.c (parse_user_spec): Likewise.
42321         * lib/bumpalloc.h: comment fix
42322         * lib/same.c, userspec.c: Include xalloc.h.
42323
42324         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42325         not char *const and pointing to a constant array.
42326         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42327         (xrealloc): Comment fix.
42328
42329         * lib/userspec.c (parse_user_spec):
42330         Don't translate a message until just before returning,
42331         to avoid unnecessary translation.
42332
42333 2000-08-07  Jim Meyering  <meyering@lucent.com>
42334
42335         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42336         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42337         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42338         getgroups.c, gethostname.c, getopt.h, group-member.c,
42339         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42340         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42341         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42342         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42343         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42344         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42345         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
42346         yesno.c: Back out Copyright date changes for each file with no change
42347         this year.  This eases coordination with other programs using the same
42348         source code modules.  From Paul Eggert.
42349
42350 2000-08-06  Paul Eggert  <eggert@twinsun.com>
42351
42352         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
42353         not char, for compatibility with glibc 2.1.3 strftime.c.
42354
42355 2000-08-03  Greg McGary  <greg@mcgary.org>
42356
42357         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
42358         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
42359         (EXTEND_BUFFER): Use them.
42360
42361 2000-08-01  Jim Meyering  <meyering@lucent.com>
42362
42363         * lib/dirname.c (ISSLASH): Define.
42364         (BACKSLASH_IS_PATH_SEPARATOR): Define.
42365         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
42366         both `\' and `/' may be use as path separators.
42367         Based on a patch from Prashant TR.
42368
42369 2000-07-31  Paul Eggert  <eggert@twinsun.com>
42370
42371         * lib/quotearg.c (quotearg_n_options): Don't make the initial
42372         slot vector a constant, since it might get modified.
42373
42374 2000-07-31  Jim Meyering  <meyering@lucent.com>
42375
42376         * lib/xmalloc.c: Use `virtual memory exhausted', not
42377         `Memory exhausted'.
42378         * lib/obstack.c (print_and_abort): Likewise.
42379
42380 2000-07-30  Paul Eggert  <eggert@twinsun.com>
42381
42382         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
42383         buffer, so that the caller can always quote one small
42384         component of a "memory exhausted" message in slot 0.
42385         From a suggestion by Jim Meyering.
42386
42387 2000-07-30  Jim Meyering  <meyering@lucent.com>
42388
42389         * lib/makepath.c (make_path): Quote the other instance, too.
42390
42391         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
42392         (STATIC_BUF_SIZE): Define.
42393         (quotearg_n_options): Use only statically allocated storage when
42394         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
42395         than STATIC_BUF_SIZE.
42396
42397 2000-07-29  Jim Meyering  <meyering@lucent.com>
42398
42399         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
42400         * lib/dirname.c (dir_name): Likewise.
42401
42402         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
42403         `/'.
42404
42405         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
42406         (dir_name): Assert that there are no trailing slashes.
42407
42408 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
42409
42410         * lib/mbswidth.h (mbswidth): Add a flags argument.
42411         (mbswidth): New declaration.
42412         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
42413         * lib/mbswidth.c (mbswidth): Add a flags argument.
42414         (mbsnwidth): New function.
42415
42416 2000-07-24  Jim Meyering  <meyering@lucent.com>
42417
42418         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
42419
42420 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42421
42422         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
42423
42424 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42425
42426         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
42427         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
42428         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
42429         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
42430         invoke multibyte primitives.
42431
42432 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42433
42434         * lib/quotearg.c:
42435         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
42436         so that mbstate_t is always defined.
42437
42438         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
42439         be 1 in at least one GCC installation, and this configuration
42440         error is likely to be common.  Ignoring MB_LEN_MAX hurts
42441         performance on hosts that have mbrtowc but have only unibyte
42442         locales, but I assume these hosts are rare.
42443
42444 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42445
42446         * lib/mbswidth.c (_XOPEN_SOURCE):
42447         Don't define; this causes problems on Solaris 7.
42448         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
42449
42450 2000-07-23  Jim Meyering  <meyering@lucent.com>
42451
42452         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
42453         too: getgrgid, getpwuid, getuid.
42454
42455 2000-07-23  Jim Meyering  <meyering@lucent.com>
42456
42457         * lib/basename.c (base_name): Add an assertion.
42458
42459 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
42460
42461         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
42462         shadow its mbsinit function.
42463
42464 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
42465
42466         * lib/mbswidth.h: New file.
42467         * lib/mbswidth.c: New file.
42468         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
42469         (noinst_HEADERS): Add mbswidth.h.
42470
42471 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
42472
42473         * lib/config.charset: Add support for FreeBSD. Improve support for
42474         HP-UX and IRIX 6.
42475
42476 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
42477
42478         * m4/mbswidth.m4: New file.
42479         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
42480
42481 2000-07-15  Jim Meyering  <meyering@lucent.com>
42482
42483         * lib/makepath.c: Include quote.h.
42484         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
42485         corresponding argument in a `quote (...)' call.
42486         Give better diagnostics.
42487
42488         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
42489         (noinst_HEADERS): Add quote.h.
42490
42491         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
42492         from tar's src/misc.c.
42493         * lib/quote.h: New file.  Prototypes for same.
42494
42495 2000-07-14  Paul Eggert  <eggert@twinsun.com>
42496
42497         From a suggestion by Bruno Haible.
42498         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
42499         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
42500         to decide whether to define the BeOS workaround macro;
42501         this adjusts to the change to AC_MBSTATE_T.
42502
42503 2000-07-14  Jim Meyering  <meyering@lucent.com>
42504
42505         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
42506         jm_AC_TYPE_UINTMAX_T.
42507
42508 2000-07-13  Paul Eggert  <eggert@twinsun.com>
42509
42510         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
42511
42512         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
42513         quotearg_buffer_restyled): Add support for
42514         clocale_quoting_style.  Undo previous change to
42515         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
42516         and "{RIGHT QUOTATION MARK}" msgids.
42517
42518 2000-07-10  Paul Eggert  <eggert@twinsun.com>
42519
42520         From a suggestion by Bruno Haible.
42521         * m4/mbstate_t.m4 (AC_MBSTATE_T):
42522         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
42523         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
42524         and mbstate_t, to a single-part test that simply defines mbstate_t.
42525         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
42526         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
42527
42528 2000-07-10  Jim Meyering  <meyering@lucent.com>
42529
42530         * m4/strerror_r.m4: Mirror the correction made in autoconf.
42531
42532         * m4/gnu-source.m4: Output to confdefs.h directly.
42533         Suggestion from Akim Demaille.
42534
42535 2000-07-09  Paul Eggert  <eggert@twinsun.com>
42536
42537         The old behavior of quoting `like this' doesn't look good with
42538         newer, ISO-style fonts.  See:
42539         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
42540
42541         Instead, quote "like this" by default.  Let the translator
42542         tailor the locale-specific quoting behavior by providing
42543         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42544
42545         * lib/quotearg.c (N_): New macro.
42546         (gettext_default): New function.
42547         (quotearg_buffer_restyled): Use
42548         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42549         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42550
42551 2000-07-09  Jim Meyering  <meyering@lucent.com>
42552
42553         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42554         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
42555
42556         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42557         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42558
42559 2000-07-09  Jim Meyering  <meyering@lucent.com>
42560
42561         * lib/Most files: Update copyright dates to include 2000.
42562
42563 2000-07-08  Jim Meyering  <meyering@lucent.com>
42564
42565         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42566         if not defined.
42567         (xgethostname): Remove now-unnecessary #ifdef.
42568         Move declaration of `err' into loop where it's used.
42569
42570 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42571         and Bruno Haible  <haible@clisp.cons.org>
42572
42573         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42574         only if the test for an object-type mbstate_t fails.  This
42575         prevents us from mistakenly reporting that mbstate_t is a
42576         system object type after we "#define mbstate_t int" to work
42577         around its lack.
42578
42579 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42580         and Bruno Haible  <haible@clisp.cons.org>
42581
42582         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42583
42584 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42585
42586         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42587         to strerror_r.
42588         Include <ctype.h> for use of isalpha.
42589
42590 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42591
42592         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42593         by allocating a larger buffer. Test the gethostname return value for
42594         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
42595         returns an error and ENAMETOOLONG isn't defined.
42596
42597 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42598
42599         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42600         dimension.
42601
42602 2000-07-04  Jim Meyering  <meyering@lucent.com>
42603
42604         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42605         of the deprecated AC_CHECKING.
42606
42607 2000-07-04  Jim Meyering  <meyering@lucent.com>
42608
42609         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42610         Reported by Bruno Haible.
42611
42612 2000-07-04  Jim Meyering  <meyering@lucent.com>
42613
42614         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42615         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
42616         lacks mbrtowc.
42617
42618 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42619
42620         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42621         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42622
42623 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42624         and Bruno Haible  <haible@clisp.cons.org>
42625
42626         * lib/quotearg.c (mbrtowc):
42627         Assign to *pwc, and return 1 only if result is nonzero.
42628         (iswprint): Use ISPRINT when substituting our own mbrtowc.
42629
42630 2000-07-03  Jim Meyering  <meyering@lucent.com>
42631
42632         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42633
42634 2000-07-03  Jim Meyering  <meyering@lucent.com>
42635
42636         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42637         This is necessary to get a definition of e.g., UTMP_FILE on
42638         HP-UX 10.20.
42639         From Bob Proulx.
42640
42641 2000-07-02  Jim Meyering  <meyering@lucent.com>
42642
42643         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42644
42645         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42646         AC_LIBOBJ(function_name).
42647         * m4/chown.m4: Likewise.
42648         * m4/fnmatch.m4: Likewise.
42649         * m4/ftruncate.m4: Likewise.
42650         * m4/getgroups.m4: Likewise.
42651         * m4/getline.m4: Likewise.
42652         * m4/group-member.m4: Likewise.
42653         * m4/jm-macros.m4: Likewise.
42654         * m4/lstat.m4: Likewise.
42655         * m4/malloc.m4: Likewise.
42656         * m4/memcmp.m4: Likewise.
42657         * m4/nanosleep.m4: Likewise.
42658         * m4/putenv.m4: Likewise.
42659         * m4/realloc.m4: Likewise.
42660         * m4/regex.m4: Likewise.
42661         * m4/stat.m4: Likewise.
42662         * m4/strftime.m4: Likewise.
42663
42664 2000-07-02  Jim Meyering  <meyering@lucent.com>
42665
42666         * lib/quotearg.c (mbstate_t): Don't define here.
42667
42668 2000-07-02  Jim Meyering  <meyering@lucent.com>
42669
42670         * lib/nanosleep.c (SIGCONT): Define if not already defined.
42671
42672 2000-07-01  Jim Meyering  <meyering@lucent.com>
42673
42674         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42675
42676 2000-07-01  Jim Meyering  <meyering@lucent.com>
42677
42678         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42679         problem.
42680
42681 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42682
42683         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42684         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42685
42686 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42687
42688         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42689         per change in ../m4/ls-mntd-fs.m4.
42690         (read_filesystem_list): Ignore symbolic links.
42691
42692 2000-06-29  Jim Meyering  <meyering@lucent.com>
42693
42694         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42695         for declaration of strcmp.
42696
42697         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42698
42699         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42700         Avoid warning by casting result to `char *' to remove `const'.
42701
42702 2000-06-28  Jim Meyering  <meyering@lucent.com>
42703
42704         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
42705         included by quotearg.c, for which we perform this test.  From
42706         Bruno Haible.
42707
42708 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42709
42710         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42711         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42712         <utmpx.h> exists, put readutmp.o into LIBOBJS.
42713
42714 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42715
42716         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42717
42718 2000-06-26  Paul Eggert  <eggert@twinsun.com>
42719
42720         savedir now sets errno on failure and invokes xmalloc to get memory.
42721         Fix a couple of other minor bugs while we're at it.
42722
42723         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42724         (NAMLEN): Remove macro.
42725         (malloc, realloc): Remove decls.
42726         (stpcpy): Likewise.
42727         ("xalloc.h"): Include.
42728         (NAME_SIZE_DEFAULT): New macro.
42729         (savedir): Use xmalloc / xrealloc to allocate memory.
42730         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42731         Skip "" directory entries.
42732         Use strlen to calculate directory entry length, since the old method
42733         is rarely used these days and isn't worth supporting.
42734         Don't use a pointer after freeing it.
42735         Check for integer overflow when calculating allocation size.
42736         Use memcpy to copy entries, instead of stpcpy.
42737         Set errno properly when returning NULL.
42738         Check for readdir error.
42739
42740 2000-06-26  Jim Meyering  <meyering@lucent.com>
42741
42742         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42743
42744 2000-06-25  Jim Meyering  <meyering@lucent.com>
42745
42746         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42747         Linux header bug when _XOPEN_SOURCE is defined to 500.
42748
42749 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42750
42751         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42752         deficiency.
42753
42754 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42755
42756         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42757         Include xalloc.h.
42758         Don't include <stdlib.h>.  Don't declare malloc, realloc.
42759
42760 2000-06-24  Jim Meyering  <meyering@lucent.com>
42761
42762         * m4/strerror_r.m4: Revive this file -- to try out an experimental
42763         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42764         for which strerror does return char*, but which lacks a conveniently
42765         accessible declaration of the function.  If the compile-test says
42766         strerror_r doesn't work, then resort to a `run'-test that works on
42767         BeOS and segfaults on DEC Unix.
42768
42769 2000-06-24  Jim Meyering  <meyering@lucent.com>
42770
42771         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42772
42773 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42774
42775         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42776         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
42777
42778 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42779
42780         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42781         (mbrtowc, mbstate_t): Define substitutes if
42782         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42783         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42784         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42785
42786 2000-06-23  Jim Meyering  <meyering@lucent.com>
42787
42788         * m4/afs.m4: Add missing AC_MSG_RESULT.
42789         Reported by Bruno Haible.
42790
42791         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42792         Suggestion from Bruno Haible.
42793
42794 2000-06-23  Jim Meyering  <meyering@lucent.com>
42795
42796         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
42797
42798 2000-06-21  Jim Meyering  <meyering@lucent.com>
42799
42800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42801
42802 2000-06-21  Jim Meyering  <meyering@lucent.com>
42803
42804         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42805         (noinst_HEADERS): Add getstr.h.
42806
42807         * lib/getline.c (getstr): Move into a separate file.
42808         * lib/getstr.c (getstr): New file, extracted from getline.c, with
42809         the following changes: new parameter, delim2; both delim[12]
42810         parameters have type `int', not `char'.  The latter would lose
42811         with 8-bit delimiters.
42812         * lib/getstr.h: New file.
42813
42814 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42815
42816         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42817         than 1024, return a memory chunk of least possible size, instead
42818         of size PATH_MAX + 2. In the loop, increment the size proportionally.
42819         Use free/xmalloc instead of xrealloc to avoid copying for very long
42820         paths.
42821
42822 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42823
42824         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42825         the empty string.
42826
42827 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42828
42829         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42830         address, not strdup.  Include <stdlib.h> and don't declare free().
42831
42832 2000-06-19  Jim Meyering  <meyering@lucent.com>
42833
42834         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42835
42836 2000-06-18  Jim Meyering  <meyering@lucent.com>
42837
42838         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42839
42840         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42841         `checking whether...' message to be consistent with that of the
42842         lstat test.
42843
42844 2000-06-18  Jim Meyering  <meyering@lucent.com>
42845
42846         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42847         Besides, these days every porting target provides a mkdir function.
42848
42849         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42850         needed. (this snippet comes from src/system.h).
42851
42852 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
42853
42854         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42855
42856 2000-06-15  Paul Eggert  <eggert@twinsun.com>
42857
42858         * lib/human.c (adjust_value): New function.
42859         (human_readable_inexact): Apply rounding style even when
42860         printing approximate values.
42861
42862 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42863
42864         * lib/human.c (human_readable_inexact): Allow an input block
42865         size that is not a multiple of the output block size, and vice versa.
42866         Reported by Piergiorgio Sartor.
42867
42868 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42869
42870         * lib/getdate.y (get_date): Apply relative times after time
42871         zone indicator, not before.  Reported by Todd A. Jacobs.
42872
42873 2000-06-13  Jim Meyering  <meyering@lucent.com>
42874
42875         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42876
42877         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42878
42879 2000-06-12  Paul Eggert  <eggert@twinsun.com>
42880
42881         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42882
42883 2000-06-12  Jim Meyering  <meyering@lucent.com>
42884
42885         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42886         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42887         optional argument.
42888         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42889         the optional argument, `lib'.
42890
42891 2000-06-08  Jim Meyering  <meyering@lucent.com>
42892
42893         * m4/largefile.m4: Remove file (now that it's part of autoconf).
42894
42895 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42896
42897         Rewrite largefile configuration so that we don't need to run
42898         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
42899         AC_CANONICAL_HOST in configure.in -- jmm]
42900
42901         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
42902         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
42903         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
42904         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
42905         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
42906         All uses changed.
42907         Instead of inspecting the output of getconf, try to compile the
42908         test program without and with the macro definition.
42909         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
42910         for getconf.  Instead, check for the needed flags by compiling
42911         test programs.
42912
42913 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42914
42915         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
42916
42917 2000-06-04  Jim Meyering  <meyering@lucent.com>
42918
42919         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
42920         SunOS 4.1.4 for which gid_t is an unsigned type.
42921
42922 2000-06-03  Jim Meyering  <meyering@lucent.com>
42923
42924         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
42925         now that autoconf requires that.
42926
42927         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
42928         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
42929         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
42930
42931 2000-06-03  Jim Meyering  <meyering@lucent.com>
42932
42933         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
42934
42935 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42936
42937         * m4/glibc21.m4: New file.
42938         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
42939
42940 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42941
42942         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
42943         newer, don't install charset.alias.
42944         * lib/config.charset: Change the Linux/glibc rules so they become empty
42945         on glibc-2.1 or newer.
42946
42947 2000-06-02  Jim Meyering  <meyering@lucent.com>
42948
42949         * lib/mountlist.c: Back out last change.  Instead, do this...
42950         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
42951         me_dummy member using the same `ignore'-testing code.
42952         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
42953         fs_type strings.
42954         From Mark D. Roth.
42955
42956 2000-05-29  Jim Meyering  <meyering@lucent.com>
42957
42958         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
42959         mounts with the `ignore' attribute.  Based on a patch from
42960         Mark D. Roth.
42961
42962 2000-05-28  Jim Meyering  <meyering@lucent.com>
42963
42964         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42965         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42966         * m4/stat.m4: Likewise.
42967         * m4/lstat.m4: Likewise.
42968         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
42969
42970         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
42971         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
42972
42973 2000-05-26  Jim Meyering  <meyering@lucent.com>
42974
42975         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
42976
42977 2000-05-24  Jim Meyering  <meyering@lucent.com>
42978
42979         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
42980         autoconf requires that.
42981         * m4/lib-check.m4: Likewise.
42982         * m4/jm-macros.m4: Likewise.
42983         * m4/strftime.m4: Likewise.
42984
42985         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
42986         AC_CHECK_DECLS, now that autoconf requires that.
42987
42988 2000-05-22  Jim Meyering  <meyering@lucent.com>
42989
42990         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42991         * m4/lstat.m4: Likewise.
42992
42993 2000-05-22  Jim Meyering  <meyering@lucent.com>
42994
42995         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
42996
42997 2000-05-20  Jim Meyering  <meyering@lucent.com>
42998
42999         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43000         (jm_PREREQ): Use it.
43001
43002 2000-05-18  Jim Meyering  <meyering@lucent.com>
43003
43004         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43005         back, too, since it may have been modified by allocate_entry.
43006         (hash_delete): Rewrite to use neither the assignment operator
43007         nor the comma operator in an if-expression.
43008
43009 2000-05-15  Paul Eggert  <eggert@twinsun.com>
43010
43011         * lib/closeout.c:
43012         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43013         Remove; no longer needed.
43014         "quotearg.h": Add include.
43015         (file_name): Do not bother to explicitly initialize to NULL; it's less
43016         efficient on some hosts.
43017         (close_stdout_status): Remove test as to whether stdout was already
43018         closed; it breaks for the case "echo x | sort >&-".
43019         Quote file name colons.
43020         Do not assume that _("write error") lacks format strings.
43021
43022 2000-05-15  Jim Meyering  <meyering@lucent.com>
43023
43024         * lib/version-etc.c (version_etc_copyright): Update the copyright
43025         string used in all --version output.
43026
43027 2000-05-14  Jim Meyering  <meyering@lucent.com>
43028
43029         * lib/closeout.c (close_stdout_set_file_name): New function.
43030         (close_stdout_status): Use new file-scoped global.
43031         Return right away if fstat says the stdout file descriptor is invalid.
43032         * lib/closeout.h (close_stdout_set_file_name): Declare.
43033
43034 2000-05-10  Jim Meyering  <meyering@lucent.com>
43035
43036         * lib/closeout.c [default_exit_status]: New file-scoped variable.
43037         (close_stdout_set_status): New function.
43038         * lib/closeout.h (close_stdout_set_status): Declare.
43039
43040 2000-05-09  Jim Meyering  <meyering@lucent.com>
43041
43042         * m4/gettext.m4: Rename this...
43043         * m4/libintl.m4: ...to this.
43044
43045 2000-05-08  Jim Meyering  <meyering@lucent.com>
43046
43047         * lib/long-options.c: Don't include closeout.h.
43048         (parse_long_options): Don't call close_stdout for --version.
43049
43050 2000-05-06  Paul Eggert  <eggert@twinsun.com>
43051
43052         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43053         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43054         2.1.3 bug.  This avoids a clash when files like regex.c define
43055         _GNU_SOURCE.
43056
43057 2000-05-06  Jim Meyering  <meyering@lucent.com>
43058
43059         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43060         (AC_REPLACE_FUNCS): Add strnlen.
43061
43062         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43063         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43064
43065         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43066         AC_SEARCH_LIBS call for nanosleep.
43067         (LIB_NANOSLEEP): Set and AC_SUBST.
43068
43069 2000-05-06  Jim Meyering  <meyering@lucent.com>
43070
43071         * lib/strnlen.c: Undefine __strnlen and strnlen.
43072         [!weak_alias]: Define __strnlen to strnlen.
43073
43074         * lib/atexit.c: New file, from libiberty.
43075
43076 2000-05-06  Jim Meyering  <meyering@lucent.com>
43077
43078         * lib/closeout.c (close_stdout_status): Also check for errors on the
43079         stderr stream.
43080
43081 2000-05-05  Jim Meyering  <meyering@lucent.com>
43082
43083         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43084         AC_SEARCH_LIBS call for clock_gettime.
43085         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43086
43087         * m4/search-libs.m4: Update from autoconf.
43088
43089         su doesn't work on Solaris 2.6.
43090         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43091         <shadow.h>.  Reported by Dragos Harabor.
43092
43093 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
43094
43095         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43096         memcpy instead of xmalloc, xrealloc, path_concat.
43097         (locale_charset): Treat empty environment variables as absent.
43098         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43099
43100 2000-05-04  Jim Meyering  <meyering@lucent.com>
43101
43102         * lib/getopt.c: Update from glibc.
43103         * lib/obstack.c: Likewise.
43104         * lib/obstack.h: Likewise.
43105         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
43106         file
43107
43108         * lib/regex.h: Likewise.
43109         * lib/strndup.c: Likewise.
43110         * lib/strnlen.c: New file, from glibc.
43111
43112 2000-05-03  Jim Meyering  <meyering@lucent.com>
43113
43114         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43115
43116 2000-05-02  Paul Eggert  <eggert@twinsun.com>
43117
43118         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43119         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
43120         compile-time test, rather than inspecting host and OS, to
43121         decide whether to define _LARGEFILE_SOURCE.
43122
43123 2000-05-01  Jim Meyering  <meyering@lucent.com>
43124
43125         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43126
43127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43128         Based on a patch from Bruno Haible.
43129
43130 2000-05-01  Jim Meyering  <meyering@lucent.com>
43131
43132         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43133
43134 2000-04-29  Jim Meyering  <meyering@lucent.com>
43135
43136         * lib/path-concat.c: Declare strdup only if it's not defined.
43137         * lib/canon-host.c: Likewise.
43138
43139 2000-04-28  Jim Meyering  <meyering@lucent.com>
43140
43141         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43142         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
43143         is included first, then limits.h is included by locale.h by libintl.h.
43144         From John David Anglin.
43145
43146 2000-04-25  Jim Meyering  <meyering@lucent.com>
43147
43148         * lib/makepath.c (S_IRWXUGO): Define.
43149         (make_path): Always perform explicit chmod if MODE specifies any
43150         of the `special' permission bits.  Prompted by a bug report against
43151         install from Mate Wierdl and Joost van Baal.
43152
43153 2000-04-18  Jim Meyering  <meyering@lucent.com>
43154
43155         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43156         (jm_PREREQ): Use it.
43157
43158 2000-04-18  Jim Meyering  <meyering@lucent.com>
43159
43160         * lib/README: New file.
43161
43162         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43163         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
43164
43165 2000-04-17  Jim Meyering  <meyering@lucent.com>
43166
43167         Get it right :-)
43168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43169         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
43170         Suggestion from Akim Demaille.
43171
43172 2000-04-17  Jim Meyering  <meyering@lucent.com>
43173
43174         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43175         the definition of it to rpl_strftime also defined-away the system's
43176         declaration.
43177
43178 2000-04-15  Jim Meyering  <meyering@lucent.com>
43179
43180         Use `C' to denote so-called `contiguous' files, the same way
43181         that tar does.
43182         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43183         (ftypelet): Use S_ISCTG.
43184         From Michael Deutschmann.
43185
43186 2000-04-14  Jim Meyering  <meyering@lucent.com>
43187
43188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43189         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
43190         clobbered.
43191
43192 2000-04-14  Jim Meyering  <meyering@lucent.com>
43193
43194         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43195
43196 2000-04-13  Jim Meyering  <meyering@lucent.com>
43197
43198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43199         AH_VERBATIM to insert required #ifndef into config.h.in.
43200         Suggestion from Akim Demaille.
43201
43202 2000-04-12  Jim Meyering  <meyering@lucent.com>
43203
43204         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43205         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
43206         Christian Krackowizer.
43207
43208         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43209         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43210         (AC_SYS_LARGEFILE): Require.
43211         (AM_C_PROTOTYPES): Require.
43212
43213 2000-04-08  Jim Meyering  <meyering@lucent.com>
43214
43215         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43216         names don't conflict.  Reported by Eli Zaretskii.
43217
43218 2000-04-07  Jim Meyering  <meyering@lucent.com>
43219
43220         * lib/putenv.c: Move inclusion of errno.h so it follows that of
43221         sys/types.h, to work around system header problems on AIX 3.2.5.
43222         From Bruno Haible.
43223
43224 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
43225
43226         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43227         bug.  Deal with the different error behavior of Irix iconv.
43228
43229 2000-04-05  Paul Eggert  <eggert@twinsun.com>
43230
43231         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43232         IRIX if the installer said otherwise.
43233
43234 2000-04-05  Jim Meyering  <meyering@lucent.com>
43235
43236         Portability tweaks required for ultrix4.3.
43237         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43238         (jm_CHECK_DECLS): Add getutent to the list of functions.
43239         (_jm_DECL_HEADERS): Add utmpx.h.
43240         From John David Anglin.
43241
43242         * m4/strftime.m4: Back out the 2000-04-02 change.
43243         Instead of that change, simply undefine putenv in the test program.
43244
43245 2000-04-05  Jim Meyering  <meyering@lucent.com>
43246
43247         Portability tweaks required for ultrix4.3.
43248         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43249         getutent.
43250         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43251         * lib/canon-host.c: Declare strdup.
43252         * lib/path-concat.c: Likewise.
43253         From John David Anglin.
43254
43255 2000-04-04  Jim Meyering  <meyering@lucent.com>
43256
43257         Be more DOS 8.3-friendly.
43258         * lib/ref-add.sin: Renamed from ref-add.sed.in.
43259         * lib/ref-del.sin: Renamed from ref-del.sed.in.
43260         * lib/Makefile.am: Reflect renaming.
43261         Reported by Eli Zaretskii.
43262
43263         Use a temporary file name that won't clash with `charset.alias'
43264         in the DOS 8.3 name space.
43265         * lib/Makefile.am (charset_tmp): Define.
43266         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43267         (uninstall-local): Likewise.
43268         Reported by Eli Zaretskii.
43269
43270 2000-04-03  Jim Meyering  <meyering@lucent.com>
43271
43272         * m4/gettext.m4: Fix typo in comment.
43273
43274         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43275         textutils/configure.in).  Suggestion from Paul Eggert.
43276         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
43277
43278 2000-04-02  Paul Eggert  <eggert@twinsun.com>
43279
43280         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43281         variable in the shell rather than using putenv, which isn't
43282         portable.  This avoids the configure-time inter-test dependency
43283         on the potentially-renamed putenv function.
43284
43285 2000-03-30  Paul Eggert  <eggert@twinsun.com>
43286
43287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43288         before checking struct stat.st_blksize, so that
43289         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43290
43291 2000-03-29  Paul Eggert  <eggert@twinsun.com>
43292
43293         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43294         since strftime.c uses HAVE_STRFTIME to decide whether to use
43295         the underlying strftime.
43296
43297 2000-03-29  Paul Eggert  <eggert@twinsun.com>
43298
43299         * lib/time/strftime.c (my_strftime): Make sure we call the system
43300         strftime, not ourselves, when invoking the underlying strftime.
43301
43302 2000-03-24  Jim Meyering  <meyering@lucent.com>
43303
43304         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43305         (charset_alias): Define.
43306         (install-exec-local): Factor out common code.
43307         (uninstall-local): Split lines longer than 80.
43308         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43309         (SUFFIXES): Define.
43310         (.sed.in.sed): New rule.  Don't redirect directly to $@.
43311         (CLEANFILES): Add ref-add.sed and ref-del.sed.
43312
43313 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
43314
43315         * lib/config.charset: Output a line containing "Packages using this
43316         file".
43317         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43318         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43319         ref-del.sed): New rules.
43320
43321 2000-03-17  Jim Meyering  <meyering@lucent.com>
43322
43323         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43324         Otherwise, include <strings.h>
43325
43326 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
43327
43328         * lib/unicodeio.c (utf8_wctomb): New function.
43329         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43330         format instead of in UCS-4 with platform dependent endianness.
43331
43332 2000-03-10  Jim Meyering  <meyering@lucent.com>
43333
43334         * m4/lib-check.m4: Look for getspnam in -lgen, too.
43335         From Marco Franzen.
43336
43337 2000-03-07  Paul Eggert  <eggert@twinsun.com>
43338
43339         * lib/savedir.c (savedir): Work even if directory size is
43340         negative; this can happen with some screwy NFS configurations.
43341
43342 2000-03-06  Jim Meyering  <meyering@lucent.com>
43343
43344         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43345         if it's NULL (because we ran out of memory).  From Bruno Haible.
43346
43347 2000-03-05  Jim Meyering  <meyering@lucent.com>
43348
43349         * lib/localcharset.c ("path-concat.h"): Include.
43350         (get_charset_aliases): Use path_concat instead of ANSI string
43351         concatenation.
43352
43353         * lib/unicodeio.h (PARAMS): Define.
43354         Use it to guard prototype.
43355
43356 2000-03-04  Jim Meyering  <meyering@lucent.com>
43357
43358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
43359         for lib/localcharset.c.
43360
43361 2000-03-04  Jim Meyering  <meyering@lucent.com>
43362
43363         * lib/Makefile.am (install-exec-local): Create $(libdir) before
43364         installing into it.
43365         (uninstall-local): Uncomment this rule so `make distcheck' works
43366         once again.
43367
43368         * lib/unicodeio.c (<errno.h>): Include it.
43369         (errno): Declare if not defined.
43370
43371         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
43372
43373         * lib/config.charset: New version, incorporating remarks from a linux
43374         i18n mailing list.  From Bruno Haible.
43375
43376 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
43377
43378         * m4/codeset.m4: New file.
43379         * m4/iconv.m4: New file.
43380         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
43381
43382 2000-03-03  Jim Meyering  <meyering@lucent.com>
43383
43384         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
43385
43386 2000-03-02  Jim Meyering  <meyering@lucent.com>
43387
43388         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
43389         the messages come out on separate lines.
43390
43391         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
43392         rather than jm_CHECK_DECLARATIONS.
43393         * m4/decl.m4: Remove now-unused file.
43394
43395         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
43396         geteuid.
43397
43398 2000-03-02  Jim Meyering  <meyering@lucent.com>
43399
43400         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
43401
43402 2000-03-01  Jim Meyering  <meyering@lucent.com>
43403
43404         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
43405         * lib/unicodeio.c: Likewise.
43406
43407 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
43408
43409         * lib/config.charset: New file.
43410         * lib/localcharset.c: New file.
43411         * lib/unicodeio.h, lib/unicodeio.c: New files.
43412         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
43413         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
43414         (noinst_HEADERS): Add unicodeio.h.
43415         (all-local, install-exec-local, charset.alias): New targets.
43416
43417 2000-02-28  Paul Eggert  <eggert@twinsun.com>
43418
43419         * lib/quotearg.c (ALERT_CHAR): New macro.
43420         (quotearg_buffer_restyled): Use it.
43421
43422 2000-02-27  Jim Meyering  <meyering@lucent.com>
43423
43424         * m4/check-decl.m4: Add getenv to the list.
43425
43426 2000-02-27  Jim Meyering  <meyering@lucent.com>
43427
43428         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
43429         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
43430
43431         * lib/backupfile.c: Guard inclusion of stdlib.h with
43432         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
43433         Declare malloc if needed.
43434
43435         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
43436         `#ifndef HAVE_DECL..'
43437         now that autoconf always defines the HAVE_DECL_ symbols.
43438         * lib/human.c: Likewise.
43439         * lib/same.c: Likewise.
43440         * lib/strtoumax.c: Likewise.
43441
43442         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
43443         declaration check was not run.
43444         * lib/hash.c: Likewise.
43445         * lib/human.c: Likewise.
43446         * lib/same.c: Likewise.
43447         * lib/strtoumax.c: Likewise.
43448
43449         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
43450         `.', then first look up the entire `.'-containing string as a login
43451         name.
43452
43453 2000-02-23  Jim Meyering  <meyering@lucent.com>
43454
43455         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
43456         in place of my hack.
43457
43458 2000-02-18  Paul Eggert  <eggert@twinsun.com>
43459
43460         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
43461         (textint): New typedef.
43462         (parser_control): Member year changed from int to textint.
43463         All uses changed.
43464         (YYSTYPE): Removed; replaced by %union with int and textint members.
43465         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
43466         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
43467         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
43468         (tSNUMBER, tUNUMBER): Now of type <textintval>.
43469         (date, number, to_year): Use width of number in digits, not its value,
43470         to determine whether it's a 2-digit year, or a 2-digit time.
43471         (yylex): Store number of digits of numeric tokens.
43472         Reported by John Kendall.
43473
43474         (parser_control): Changed from struct parser_control to typedef (for
43475         consistency).  All uses changed.
43476
43477         (tID): Removed; not used.
43478         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
43479
43480 2000-02-14  Paul Eggert  <eggert@twinsun.com>
43481
43482         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
43483         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
43484
43485 2000-02-12  Jim Meyering  <meyering@lucent.com>
43486
43487         * lib/userspec.c (ISDIGIT): Define it.
43488         (isdigit): Remove definition.
43489         (is_number): Use ISDIGIT, not isdigit.
43490         <libintl.h>: Include.
43491         (_ and N_): Define.
43492         (parse_user_spec): Mark translatable strings.
43493
43494 2000-02-10  Jim Meyering  <meyering@lucent.com>
43495
43496         With these changes, nanosleep.[ch] are finally enough like the other
43497         lib/* replacement files to compile on a few more losing systems.
43498
43499         * lib/nanosleep.h: Don't include config.h.
43500         Remove prototype from declaration of nanosleep.
43501         (PARAMS): Remove now-unneeded definition.
43502         * lib/nanosleep.c: #undef nanosleep.
43503         (rpl_nanosleep): Rename from nanosleep.
43504
43505 2000-02-10  Jim Meyering  <meyering@lucent.com>
43506
43507         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
43508         gnu_nanosleep to rpl_nanosleep.
43509
43510 2000-02-09  Jim Meyering  <meyering@lucent.com>
43511
43512         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
43513         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
43514
43515 2000-02-08  Akim Demaille  <akim@epita.fr>
43516
43517         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
43518         `[' and `]' and remove uses of `changequote'.
43519         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
43520         (AC_SYS_LARGEFILE): Likewise.
43521         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43522         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
43523         of changequote.
43524         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
43525         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
43526         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
43527         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
43528
43529 2000-02-05  Jim Meyering  <meyering@lucent.com>
43530
43531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
43532         Remove explicit use of AC_HEADER_TIME.  It is required by
43533         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
43534         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
43535         in autoconf whereby the expansion of the latter ended up preceding
43536         the expansion of its prerequisite, AC_HEADER_TIME.
43537         Reported by Volker Borchert.
43538
43539 2000-02-03  Jim Meyering  <meyering@lucent.com>
43540
43541         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43542
43543 2000-02-03  Jim Meyering  <meyering@lucent.com>
43544
43545         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43546         rather than with `#if HAVE_UTMPNAME'.
43547
43548 2000-02-02  Jim Meyering  <meyering@lucent.com>
43549
43550         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43551         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43552         Reported by Eli Zaretskii.
43553
43554 2000-02-01  Jim Meyering  <meyering@lucent.com>
43555
43556         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
43557
43558 2000-01-31  Jim Meyering  <meyering@lucent.com>
43559
43560         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43561         functions.  Add the time.h and sys/time.h headers along with the
43562         AC_REQUIRE'ment of AC_HEADER_TIME.
43563
43564 2000-01-31  Jim Meyering  <meyering@lucent.com>
43565
43566         * lib/nanosleep.h (nanosleep): Guard declaration with
43567         `#if ! HAVE_DECL_NANOSLEEP'.
43568         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43569         the declaration in that vendor's sys/timers.h.
43570         Reported by Christian Krackowizer.
43571
43572         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43573         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43574         (ISPRINT): Likewise.
43575         Reported by Tom Tromey.
43576
43577 2000-01-30  Jim Meyering  <meyering@lucent.com>
43578
43579         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43580
43581         * m4/prereq.m4 (utmp_includes): Define.
43582         Check for ut_user and ut_name members in both struct utmpx
43583         and struct utmp.
43584
43585 2000-01-30  Jim Meyering  <meyering@lucent.com>
43586
43587         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43588         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
43589         header files where only utmpx.ut_user is declared.
43590
43591         * lib/readutmp.h (UT_USER): Define.
43592
43593 2000-01-29  Jim Meyering  <meyering@lucent.com>
43594
43595         * m4/lib-check.m4: New file containing library-related checks from
43596         fileutils and sh-utils (textutils had none).
43597
43598 2000-01-28  Jim Meyering  <meyering@lucent.com>
43599
43600         * m4/perl.m4: Change format of warning message to look more like that
43601         from the missing script.  Suggestion from François Pinard.
43602
43603 2000-01-25  Jim Meyering  <meyering@lucent.com>
43604
43605         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43606         well as time.h in the compile check.
43607         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43608         Fix typo in cross-compiling case: s/yes/no/.
43609
43610 2000-01-23  Jim Meyering  <meyering@lucent.com>
43611
43612         * m4/jm-macros.m4: Move df-related tests here from
43613         fileutils/configure.in
43614
43615         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43616         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43617
43618         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
43619         s/space/ac_fsusage_space/.
43620         (jm_FILE_SYSTEM_USAGE): Take two parameters.
43621
43622         * m4/ftruncate.m4: New file (derived from part of
43623         fileutils/configure.in).
43624         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43625         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43626
43627         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43628         AC_SUBST these here, rather than just in sh-util/configure.in, so
43629         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43630         all the same.
43631         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43632         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43633         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43634         (AC_SUBST(POW_LIBM)): Likewise.
43635         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43636
43637 2000-01-23  Jim Meyering  <meyering@lucent.com>
43638
43639         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43640         obstack.c.
43641
43642 2000-01-22  Jim Meyering  <meyering@lucent.com>
43643
43644         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43645
43646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43647
43648         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43649         configure.in
43650         (AC_CHECK_HEADERS): Likewise for sh-utils.
43651         (AC_CHECK_HEADERS): Likewise for textutils.
43652         Merge the three lists of headers.
43653
43654         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
43655         from fileutils' configure.in.
43656
43657         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43658         code. Moved tests into their own function (_jm_DECL_HEADERS) in
43659         check-decl.m4.
43660
43661         * m4/check-decl.m4: Use #if rather than #ifdef.
43662         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43663         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43664         (_jm_DECL_HEADERS): Define new function.
43665         (jm_CHECK_DECLARATIONS): Require it.
43666
43667 2000-01-22  Jim Meyering  <meyering@lucent.com>
43668
43669         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43670         [! HAVE_DECL_STRTOULL]: Declare strtoull.
43671         Required for some AIX systems.  Reported by Christian Krackowizer.
43672         [TESTING] (main): New function.
43673
43674         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
43675         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43676         letters.
43677
43678         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43679         iswprint.
43680
43681         * lib/strverscmp.c (ISDIGIT): Define.
43682         (strverscmp): Use ISDIGIT, not isdigit.
43683
43684 2000-01-19  Jim Meyering  <meyering@lucent.com>
43685
43686         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43687         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
43688         defines `struct timespec' in <sys/time.h>
43689
43690         * m4/c-bs-a.m4: Remove uses of changequote altogether.
43691         Thanks to Akim for explaining.
43692
43693 2000-01-17  Paul Eggert  <eggert@twinsun.com>
43694
43695         * lib/nanosleep.c (nanosleep):
43696         Don't use SA_INTERRUPT to decide whether to call sigaction, as
43697         POSIX.1 doesn't require SA_INTERRUPT and some systems
43698         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
43699         it's been part of POSIX.1 since day 1 (in 1988).
43700
43701 2000-01-17  Jim Meyering  <meyering@lucent.com>
43702
43703         * lib/interlock: Remove unused file.  Reported by François Pinard.
43704
43705 2000-01-16  Paul Eggert  <eggert@twinsun.com>
43706
43707         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43708         alert, backslash, formfeed, and vertical tab unnecessarily in
43709         shell quoting style.
43710
43711 2000-01-16  Jim Meyering  <meyering@lucent.com>
43712
43713         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43714         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43715         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43716         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43717
43718 2000-01-16  Jim Meyering  <meyering@lucent.com>
43719
43720         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43721         because the latter didn't work.
43722
43723 2000-01-15  Jim Meyering  <meyering@lucent.com>
43724
43725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43726         (AC_REPLACE_FUNCS): Add memcpy and memset.
43727         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43728         Add strpbrk.
43729         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43730
43731 2000-01-12  Jim Meyering  <meyering@lucent.com>
43732
43733         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43734         (jm_PREREQ): Use it.
43735         (jm_PREREQ_READUTMP): New macro.
43736         (jm_PREREQ): Use it.
43737
43738 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43739
43740         Quote multibyte characters correctly.
43741         * m4/c-bs-a.m4: New file.
43742         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43743         (jm_PREREQ): Use it.
43744
43745 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43746
43747         * m4/uintmax_t.m4: Port to autoconf 2.13.
43748
43749 2000-01-08  Jim Meyering  <meyering@ascend.com>
43750
43751         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43752         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43753
43754 2000-01-04  Jim Meyering  <meyering@ascend.com>
43755
43756         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43757         jm_STRUCT_DIRENT_D_TYPE.
43758         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43759         jm_STRUCT_DIRENT_D_INO.
43760         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43761         jm_STRUCT_UTIMBUF.
43762         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43763         renamings.
43764         * m4/utime.m4: Likewise.
43765
43766         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43767         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43768
43769 2000-01-03  Paul Eggert  <eggert@twinsun.com>
43770
43771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43772         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43773
43774 2000-01-02  Jim Meyering  <meyering@ascend.com>
43775
43776         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
43777         remember if this is necessary.
43778
43779 1999-12-26  Jim Meyering  <meyering@ascend.com>
43780
43781         * m4/jm-macros.m4: Use it here.
43782         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43783
43784 1999-12-23  Jim Meyering  <meyering@ascend.com>
43785
43786         * m4/jm-macros.m4: Check for clock_gettime (moved from
43787         fileutils/configure.in)
43788         Check for gettimeofday.
43789
43790 1999-12-20  Jim Meyering  <meyering@ascend.com>
43791
43792         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43793         autoconf-2.14a-1999-12-20.
43794
43795 1999-12-19  Jim Meyering  <meyering@ascend.com>
43796
43797         * m4/lstat-slash.m4: New file.
43798         * m4/jm-macros.m4: Use the new macro:
43799         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43800
43801 1999-12-07  Jim Meyering  <meyering@ascend.com>
43802
43803         * m4/perl.m4: Require that File::Compare be available, too.
43804         Too many systems seem to lack it.
43805
43806         * m4/strftime.m4: Add checks for most of the cpp macros tested in
43807         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
43808
43809 1999-11-18  Paul Eggert  <eggert@twinsun.com>
43810
43811         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43812         problem with the QNX 4.25 shell, which doesn't propagate exit
43813         status of failed commands inside shell assignments.
43814
43815 1999-11-17  Jim Meyering  <meyering@ascend.com>
43816
43817         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43818
43819 1999-11-07  Jim Meyering  <meyering@ascend.com>
43820
43821         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43822
43823 1999-11-06  Jim Meyering  <meyering@ascend.com>
43824
43825         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43826         * m4/jm-macros.m4 (jm_MACROS): Use it here.
43827
43828 1999-11-05  Jim Meyering  <meyering@ascend.com>
43829
43830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43831         configure.in of textutils, fileutils, and sh-utils into this one
43832         (shared between those packages) file.
43833         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43834         AC_STRUCT_ST_BLKSIZE.
43835
43836 1999-11-03  Jim Meyering  <meyering@ascend.com>
43837
43838         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
43839         of AC_CHECK_TYPE checks includes unistd.h.
43840         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43841         Suggestion from Akim Demaille.
43842
43843 1999-10-30  Jim Meyering  <meyering@ascend.com>
43844
43845         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
43846         m4-quoted string.
43847         * m4/ls-mntd-fs.m4: Likewise.
43848         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
43849         * m4/jm-winsz1.m4: Likewise.
43850
43851         * m4/const.m4: Remove file, since the fix made it into the experimental
43852         version of autoconf.
43853         * m4/mktime.m4: Likewise.
43854
43855         * m4/check-type.m4: Remove file, now that the latest version of
43856         AC_CHECK_TYPE takes a third arg to specify additional #includes.
43857
43858         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43859         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43860         AC_CHECK_TYPE.
43861
43862 1999-10-04  Jim Meyering  <meyering@ascend.com>
43863
43864         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43865
43866 1999-09-22  Paul Eggert  <eggert@twinsun.com>
43867
43868         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43869         2.95.1 bug with HP-UX 10.20.
43870
43871 1999-09-17  Jim Meyering  <meyering@ascend.com>
43872
43873         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43874         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43875         due to missing strdup (against sh-utils-2.0).
43876
43877 1999-08-29  Jim Meyering  <meyering@ascend.com>
43878
43879         * m4/jm-macros.m4: Require jm_BISON.
43880         * m4/bison.m4: New file.
43881
43882 1999-08-17  Paul Eggert  <eggert@twinsun.com>
43883
43884         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43885         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43886
43887 1999-08-05  Jim Meyering  <meyering@ascend.com>
43888
43889         * m4/getline.m4: Rename test file from conftestdata to conftest.data
43890         to avoid conflicts with `conftest' on 8+3 filesystems.
43891         Suggestion from Eli Zaretskii.
43892
43893 1999-08-04  Jim Meyering  <meyering@ascend.com>
43894
43895         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
43896         fileutils and sh-utils (textutils's getline test was inadequate).
43897         (AM_FUNC_GETLINE): Run this test.
43898         (AC_CHECK_FUNCS): Check for getdelim.
43899         Reported by Bob Proulx.
43900
43901 1999-08-02  Jim Meyering  <meyering@ascend.com>
43902
43903         * m4/jm-macros.m4: Add a comment.
43904
43905 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43906
43907         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
43908         <inttypes.h> defines strtoumax as a macro (and not as a
43909         function).
43910
43911 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43912
43913         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
43914         that we can shift, multiply and divide unsigned long long
43915         values; Ultrix cc can't do it.
43916
43917 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43918
43919         * m4/mktime.m4: New file, which is a preview of what should appear
43920         in the next public autoconf release.
43921
43922 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43923
43924         * m4/lfs.m4: Remove this file.
43925         * m4/largefile.m4: New file.  It contains the old contents of
43926         lfs.m4, except that all names with prefix AC_LFS have been
43927         changed to use the prefix AC_SYS_LARGEFILE instead, to be
43928         compatible with future autoconf versions.  Also, some minor m4
43929         quoting problems have been fixed.
43930
43931 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43932
43933         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
43934         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
43935         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
43936         and simplify the shell code.
43937
43938 1999-08-01  Jim Meyering  <meyering@ascend.com>
43939
43940         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
43941         m4.
43942
43943 1999-07-20  Jim Meyering  <meyering@ascend.com>
43944
43945         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
43946
43947 1999-07-15  Jim Meyering  <meyering@ascend.com>
43948
43949         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
43950
43951 1999-05-22  Jim Meyering  <meyering@ascend.com>
43952
43953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
43954
43955 1999-05-20  Jim Meyering  <meyering@ascend.com>
43956
43957         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
43958         Add a colon after each `then' in case $4 is empty.
43959
43960 1999-05-16  Jim Meyering  <meyering@ascend.com>
43961
43962         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
43963
43964 1999-05-10  Jim Meyering  <meyering@ascend.com>
43965
43966         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43967
43968         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
43969         AC_FUNC_MKTIME.
43970
43971 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43972
43973         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
43974
43975 1999-05-04  Paul Eggert  <eggert@twinsun.com>
43976
43977         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
43978         not CPPFLAGS, so that linking works correctly in IRIX.
43979
43980 1999-04-30  Paul Eggert  <eggert@twinsun.com>
43981
43982         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
43983
43984 1999-04-20  Paul Eggert  <eggert@twinsun.com>
43985
43986         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
43987         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
43988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
43989         jm_AC_TYPE_UNSIGNED_LONG_LONG.
43990         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
43991
43992         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
43993
43994 1999-04-20  Jim Meyering  <meyering@ascend.com>
43995
43996         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
43997         AC_REPLACE xstroull if necessary.  From Paul Eggert.
43998         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
43999
44000 1999-04-18  Jim Meyering  <meyering@ascend.com>
44001
44002         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44003         * m4/jm-macros.m4: Use it.
44004
44005 1999-04-06  Jim Meyering  <meyering@ascend.com>
44006
44007         * m4/strftime.m4: Remove test for %f.
44008
44009 1999-03-29  Jim Meyering  <meyering@ascend.com>
44010
44011         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44012         superset of the AC_TYPE_* checks in the textutils, fileutils,
44013         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
44014         AC_TYPE_PID_T.
44015
44016 1999-03-28  Jim Meyering  <meyering@ascend.com>
44017
44018         * m4/jm-macros.m4: Define GNU_PACKAGE here.
44019         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44020         replaced e.g., in the *.sh files of the sh-utils.
44021
44022 1999-03-20  Jim Meyering  <meyering@ascend.com>
44023
44024         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44025         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44026         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
44027
44028 1999-03-19  Jim Meyering  <meyering@ascend.com>
44029
44030         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44031
44032 1999-03-12  Jim Meyering  <meyering@ascend.com>
44033
44034         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44035
44036 1999-03-07  Jim Meyering  <meyering@ascend.com>
44037
44038         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44039         declared.
44040
44041 1999-02-17  Jim Meyering  <meyering@ascend.com>
44042
44043         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44044         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
44045
44046 1999-02-07  Jim Meyering  <meyering@ascend.com>
44047
44048         * m4/group-member.m4: New file -- extracted from sh-utils'
44049         configure.in.
44050
44051         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
44052         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44053
44054 1999-02-06  Jim Meyering  <meyering@ascend.com>
44055
44056         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44057         * m4/fnmatch.m4: Likewise.
44058         * m4/getgroups.m4: Likewise.
44059         * m4/lstat.m4: Likewise.
44060         * m4/malloc.m4: Likewise.
44061         * m4/putenv.m4: Likewise.
44062         * m4/realloc.m4: Likewise.
44063         * m4/regex.m4: Likewise.
44064         * m4/stat.m4: Likewise.
44065         * m4/strftime.m4: Likewise.
44066         Suggestion from Alain Magloire.
44067
44068         * m4/chown.m4: Use `.$ac_objext', not `.o'.
44069         * m4/fnmatch.m4: Likewise.
44070         * m4/getgroups.m4: Likewise.
44071         * m4/getline.m4: Likewise.
44072         * m4/lstat.m4: Likewise.
44073         * m4/malloc.m4: Likewise.
44074         * m4/memcmp.m4: Likewise.
44075         * m4/putenv.m4: Likewise.
44076         * m4/realloc.m4: Likewise.
44077         * m4/regex.m4: Likewise.
44078         * m4/stat.m4: Likewise.
44079         * m4/strftime.m4: Likewise.
44080         Suggestion from Alain Magloire.
44081
44082         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44083         an argument.
44084
44085         * m4/regex.m4: Add a run-time Test for proper operation of
44086         re_compile_pattern.
44087
44088 1999-01-31  Jim Meyering  <meyering@ascend.com>
44089
44090         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44091
44092 1999-01-30  Jim Meyering  <meyering@ascend.com>
44093
44094         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44095
44096         * m4/jm-mktime.m4: Make this a wrapper around the official
44097         AM_FUNC_MKTIME rather than my private copy, now that the official one
44098         is up to date.
44099         * m4/mktime.m4: Remove file.
44100
44101         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44102         * m4/uptime.m4: Likewise.
44103         * m4/uintmax_t.m4: Likewise.
44104
44105 1999-01-28  Jim Meyering  <meyering@ascend.com>
44106
44107         * m4/jm-macros.m4: Use jm_AFS.
44108         * m4/afs.m4: New file (from fileutils' configure.in).
44109
44110         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44111         * m4/chown.m4: Likewise.
44112         * m4/d-ino.m4: Likewise.
44113         * m4/d-type.m4: Likewise.
44114         * m4/fnmatch.m4: Likewise.
44115         * m4/getgroups.m4: Likewise.
44116         * m4/gettext.m4: Likewise.
44117         * m4/jm-mktime.m4: Likewise.
44118         * m4/jm-winsz2.m4: Likewise.
44119         * m4/lcmessage.m4: Likewise.
44120         * m4/ls-mntd-fs.m4: Likewise.
44121         * m4/malloc.m4: Likewise.
44122         * m4/memcmp.m4: Likewise.
44123         * m4/putenv.m4: Likewise.
44124         * m4/realloc.m4: Likewise.
44125         * m4/st_mtim.m4: Likewise.
44126         * m4/strftime.m4: Likewise.
44127
44128 1999-01-16  Jim Meyering  <meyering@ascend.com>
44129
44130         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44131         (ARGMATCH_DIE_DECL): Define.
44132
44133 1999-01-12  Jim Meyering  <meyering@ascend.com>
44134
44135         * m4/Makefile.am.in: Rewrite to avoid using fmt.
44136         Reported by Lars Hecking.
44137
44138 1999-01-10  Jim Meyering  <meyering@ascend.com>
44139
44140         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44141         gross kludge.
44142         * m4/inttypes_h.m4: Likewise.
44143         * m4/lstat.m4: Likewise.
44144         * m4/malloc.m4: Likewise.
44145         * m4/readdir.m4: Likewise.
44146         * m4/realloc.m4: Likewise.
44147         * m4/st_dm_mode.m4: Likewise.
44148         * m4/stat.m4: Likewise.
44149         * m4/utimbuf.m4: Likewise.
44150         * m4/utimes.m4: Likewise.
44151
44152         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44153         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
44154         comments in config.h.in are meaningful.
44155
44156         * m4/jm-macros.m4: Require autoconf-2.13 here.
44157
44158         * m4/regex.m4: By default, don't use the included regex.c on systems
44159         with glibc 2.  Suggestion from Uli Drepper.
44160
44161 1999-01-02  Jim Meyering  <meyering@ascend.com>
44162
44163         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44164
44165 1998-12-18  Jim Meyering  <meyering@ascend.com>
44166
44167         * m4/Makefile.am.in (Makefile.am): Simplify rule.
44168         Based on a suggestion from Lars Hecking.
44169
44170 1998-11-16  Paul Eggert  <eggert@twinsun.com>
44171
44172         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44173
44174 1998-11-16  Jim Meyering  <meyering@ascend.com>
44175
44176         * m4/lfs.m4: Double-quote the `uname...` expression.
44177
44178 1998-11-14  Jim Meyering  <meyering@ascend.com>
44179
44180         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
44181         * m4/stat.m4: Likewise.
44182
44183 1998-11-03  Jim Meyering  <meyering@ascend.com>
44184
44185         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44186         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44187
44188 1998-10-18  Jim Meyering  <meyering@ascend.com>
44189
44190         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44191
44192 1998-10-17  Jim Meyering  <meyering@ascend.com>
44193
44194         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44195         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44196         calls for those previously hard-coded headers.  Instead, take a new
44197         parameter.
44198         (jm_CHECK_DECLARATIONS): Reflect interface change.
44199         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44200         (jm_CHECK_DECL_LOCALTIME_R): New macro.
44201
44202         * m4/mktime.m4: Test for spring-forward gap before long-running test.
44203
44204 1998-10-14  Jim Meyering  <meyering@ascend.com>
44205
44206         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44207         instead of "TZ=America/Vancouver".  From Paul Eggert.
44208
44209 1998-10-11  Jim Meyering  <meyering@ascend.com>
44210
44211         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44212         This adds a test for a recently added compatibility fix for mktime.c.
44213         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44214
44215 1998-09-27  Jim Meyering  <meyering@ascend.com>
44216
44217         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44218
44219         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
44220         ../configure.in, including a change from Gordon Matzigkeit to allow
44221         cross-compiling for the Hurd.
44222
44223         * m4/glibc.m4: New file/macro to test for the GNU C Library
44224         versions 1 and 2.  From Gordon Matzigkeit.
44225         Indent.
44226
44227 1998-09-21  Jim Meyering  <meyering@ascend.com>
44228
44229         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
44230
44231 1998-08-18  Paul Eggert  <eggert@twinsun.com>
44232
44233         Port nanosecond-resolution times to UnixWare 2.1.2 and
44234         pedantic Solaris 2.6.
44235
44236         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44237         AC_STRUCT_ST_MTIM.
44238         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44239         Generate name of ns member, instead of just 1 or undef.
44240         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44241
44242 1998-08-15  Jim Meyering  <meyering@ascend.com>
44243
44244         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44245         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
44246         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44247         instead of jm_TYPE_SSIZE_T.
44248
44249 1998-08-12  Jim Meyering  <meyering@ascend.com>
44250
44251         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
44252
44253 1998-08-02  Jim Meyering  <meyering@ascend.com>
44254
44255         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44256         in acconfig.h manually.
44257
44258 1998-07-31  Paul Eggert  <eggert@twinsun.com>
44259
44260         * m4/st_mtim.m4: New file.
44261
44262 1998-07-28  Jim Meyering  <meyering@ascend.com>
44263
44264         * m4/utimes.m4: Undef stat.
44265
44266 1998-07-25  Jim Meyering  <meyering@ascend.com>
44267
44268         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44269         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44270
44271 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
44272
44273         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44274         uid and gid actually remain unchanged.
44275
44276 1998-07-07  Jim Meyering  <meyering@ascend.com>
44277
44278         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44279
44280 1998-07-04  Jim Meyering  <meyering@ascend.com>
44281
44282         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
44283         to prove that this macro can be used in packages without regex.c.
44284
44285 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
44286
44287         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44288         is to be used.
44289
44290 1998-07-03  Jim Meyering  <meyering@ascend.com>
44291
44292         * m4/gettext.m4: Add -lintl if it's found to be necessary.
44293
44294         * m4/gettext.m4: New file -- from gettext-0.10.35.
44295         * m4/lcmessage.m4: Likewise.
44296         * m4/progtest.m4: Likewise.
44297
44298         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44299         * m4/jm-macros.m4: Require the new macro.
44300
44301 1998-06-29  Jim Meyering  <meyering@ascend.com>
44302
44303         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
44304         for the definition of NGROUPS (used in a system header included
44305         by sys/mount.h).
44306
44307 1998-06-28  Jim Meyering  <meyering@ascend.com>
44308
44309         * m4/ls-mntd-fs.m4: New file.
44310         * m4/fstypename.m4: New file.
44311
44312         * m4/jm-macros.m4: Require the new macro.
44313         * m4/jm-glibc-io.m4: New file.
44314
44315 1998-05-19  Jim Meyering  <meyering@ascend.com>
44316
44317         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44318         * m4/lchown.m4: New file.
44319
44320         * m4/Makefile.am.in: New file.
44321         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44322
44323 1998-05-14  Jim Meyering  <meyering@ascend.com>
44324
44325         * m4/Makefile.am (EXTRA_DIST): Add them.
44326         * m4/jm-macros.m4: New file.
44327         * m4/utimbuf.m4: New file.
44328
44329 1998-05-12  Jim Meyering  <meyering@ascend.com>
44330
44331         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44332
44333 1998-05-11  Jim Meyering  <meyering@ascend.com>
44334
44335         * m4/isc-posix.m4: New file.
44336
44337 1998-05-10  Jim Meyering  <meyering@ascend.com>
44338
44339         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44340
44341 1998-05-09  Jim Meyering  <meyering@ascend.com>
44342
44343         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44344         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
44345         with automake.
44346
44347         * m4/ssize_t.m4: New file.
44348         * m4/mktime.m4: Remove file -- the new automake has this now.
44349
44350 1998-04-26  Jim Meyering  <meyering@ascend.com>
44351
44352         * m4/assert.m4: New file.
44353         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
44354
44355 1998-04-05  Jim Meyering  <meyering@ascend.com>
44356
44357         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
44358         (jm_PREREQ): Use it here.
44359
44360 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
44361
44362         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
44363         in acconfig.h.
44364
44365 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
44366
44367         * m4/prereq.m4: New file.
44368         * m4/error.m4: New file.
44369         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
44370
44371 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
44372
44373         * m4/getline.m4: Don't set am_cv_func_working_getline before the
44374         cache-check for the same variable -- that defeated the purpose of
44375         the test; the test program was never run.  This was a problem only
44376         on systems with losing getline functions -- HP-UX 10.20 is one.
44377         Reported by Bjorn Helgaas.
44378
44379 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
44380
44381         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
44382
44383 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
44384
44385         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
44386
44387         * m4/const.m4: New file.  Use an initializer in this declaration
44388         typedef int charset[2]; const charset x;
44389         Reported by Bob Glickstein.
44390
44391 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
44392
44393         * m4/chown.m4: Fix reversed types on -1 args to chown.
44394         From Kaveh Ghazi.
44395
44396 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
44397
44398         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
44399         Add lseek and memchr.
44400
44401         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
44402         T.E.Dickey <dickey@clark.net> said that some older preprocessors
44403         have a 20-character limit on names.
44404
44405 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
44406
44407         * m4/inttypes_h.m4: New file.
44408         * m4/uintmax_t.m4: New file.
44409         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
44410
44411
44412         -----
44413
44414         Local Variables:
44415         coding: utf-8
44416         End:
44417
44418         Copyright (C) 1997-2008 Free Software Foundation, Inc.
44419
44420         Copying and distribution of this file, with or without
44421         modification, are permitted provided the copyright notice
44422         and this notice are preserved.