open-safer.c: avoid 'signed and unsigned in conditional...' warning
[gnulib.git] / ChangeLog
1 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2
3         open-safer.c: avoid 'signed and unsigned in conditional...' warning
4         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
5         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
6
7 2008-10-16  Jim Meyering  <meyering@redhat.com>
8
9         openat-die.c: avoid 'no previous prototype' warning
10         * lib/openat-die.c: Include "openat.h".
11         Reported by Reuben Thomas <rrt@sc3d.org>.
12
13 2008-10-16  Simon Josefsson  <simon@josefsson.org>
14
15         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
16         * lib/netdb.in.h: Fix typo.
17         Reported by Bruno Haible  <bruno@clisp.org>
18
19         * lib/netdb.in.h: Include sys/socket.h for platforms without
20         netdb.h, to get structures like hostent on MinGW.
21         * modules/netdb (Depends-on): Add sys_socket.
22
23 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24
25         * modules/netdb, modules/netdb-tests: New file.
26         * m4/netdb_h.m4: New file.
27         * lib/netdb.in.h: Add, currently just an empty file pending
28         definitions.
29         * tests/test-netdb.c: New file.
30         * doc/posix-headers/netdb.texi: Mention that we replace it if
31         needed.
32         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33         netdb.
34
35 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36
37         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38         with code.
39
40 2008-10-13  Bruno Haible  <bruno@clisp.org>
41
42         * lib/glthread/cond.c (glthread_cond_wait_func,
43         glthread_cond_timedwait_func): Add a comment.
44
45 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46
47         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48         * tests/test-select.c: Likewise,
49
50 2008-10-13  Bruno Haible  <bruno@clisp.org>
51
52         * lib/glthread/cond.c (glthread_cond_wait_func,
53         glthread_cond_timedwait_func): Fix variable name.
54         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55
56 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
57
58         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
59         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
60         struct sockaddr.sa_len.
61         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
62
63 2008-10-13  Simon Josefsson  <simon@josefsson.org>
64
65         * build-aux/pmccabe2html: Add css and css_url parameters.
66
67 2008-10-12  Bruno Haible  <bruno@clisp.org>
68
69         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
70         calling aclx_get.
71         Reported by Rainer Tammer <tammer@tammer.net>.
72
73 2008-10-12  Bruno Haible  <bruno@clisp.org>
74
75         Use msvcrt aware primitives for creation/termination of Win32 threads.
76         * lib/glthread/thread.c: Include <process.h>.
77         (glthread_create_func): Use _beginthreadex instead of CreateThread.
78         (wrapper_func): Update signature.
79         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
80
81 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82             Bruno Haible  <bruno@clisp.org>
83
84         Provide a Win32 implementation of the 'cond' module.
85         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86         * lib/glthread/cond.c (glthread_cond_init_func,
87         glthread_cond_wait_func, glthread_cond_timedwait_func,
88         glthread_cond_signal_func, glthread_cond_broadcast_func,
89         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90         * modules/cond (Dependencies): Add gettimeofday.
91
92 2008-10-11  Bruno Haible  <bruno@clisp.org>
93
94         Make sleep work on older versions of mingw.
95         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
96         only whether it exists.
97         * doc/posix-functions/sleep.texi: Mention the problem with older
98         versions of mingw.
99
100 2008-10-11  Bruno Haible  <bruno@clisp.org>
101
102         New module 'shutdown'.
103         * modules/shutdown: New file.
104         * lib/sys_socket.in.h (shutdown): New declaration.
105         * lib/winsock.c (shutdown): New function.
106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
107         GNULIB_SHUTDOWN.
108         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
109         * doc/posix-functions/shutdown.texi: Document the new module.
110
111 2008-10-11  Jim Meyering  <meyering@redhat.com>
112
113         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
114
115 2008-10-11  Bruno Haible  <bruno@clisp.org>
116
117         New module 'fclose'.
118         * modules/fclose: New file.
119         * lib/stdio.in.h (fclose): New declaration.
120         * lib/fclose.c: New file.
121         * m4/fclose.m4: New file.
122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
123         REPLACE_FCLOSE.
124         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
125         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
126         REPLACE_FCLOSE.
127         * modules/close (Depends-on): fclose.
128         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
129
130 2008-10-11  Bruno Haible  <bruno@clisp.org>
131
132         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
133         set errno and don't call _close.
134
135 2008-10-10  Bruno Haible  <bruno@clisp.org>
136
137         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
138         ACL, not afterwards. Fixes test failure on Cygwin.
139
140 2008-10-09  Ben Pfaff  <blp@gnu.org>
141
142         * build-aux/announce-gen: Fix gnulib version related part of usage
143         message.  Die with a useful error message if no tarballs are
144         found.
145
146 2008-10-10  Jim Meyering  <meyering@redhat.com>
147
148         bootstrap: use git's --depth=N option only if it's supported
149         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
150         recognize the --depth option.  Reported by Pádraig Brady.
151
152 2008-10-09  Bruno Haible  <bruno@clisp.org>
153
154         New module 'ioctl'.
155         * modules/ioctl: New file.
156         * lib/sys_socket.in.h (ioctl): Remove declaration.
157         * lib/winsock.c: Include <sys/ioctl.h>.
158         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
159         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
160         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
161         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
162         * doc/posix-functions/ioctl.texi: Mention the new module.
163
164 2008-10-09  Bruno Haible  <bruno@clisp.org>
165
166         New module 'sys_ioctl'.
167         * lib/sys_ioctl.in.h: New file.
168         * m4/sys_ioctl_h.m4: New file.
169         * modules/sys_ioctl: New file.
170         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
171
172 2008-10-09  Bruno Haible  <bruno@clisp.org>
173
174         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
175         * lib/winsock.c: Include <stdarg.h>.
176         (rpl_ioctl): Change to second argument 'int' and then varargs.
177
178 2008-10-09  Bruno Haible  <bruno@clisp.org>
179
180         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
181         when the sys_socket module is present and the system has <winsock2.h>.
182
183 2008-10-09  Bruno Haible  <bruno@clisp.org>
184
185         * doc/posix-functions/close.texi: Mention module 'close' instead of
186         module 'sys_socket'.
187
188 2008-10-09  Bruno Haible  <bruno@clisp.org>
189
190         * doc/glibc-headers/sys_ioctl.texi: New file.
191         * doc/gnulib.texi: Include it.
192
193 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
194             Bruno Haible  <bruno@clisp.org>
195
196         Combine the two replacements of 'close'.
197         * lib/sys_socket.in.h (close): Define to a reminder to include
198         <unistd.h>.
199         (_gl_close_fd_maybe_socket): New declaration.
200         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
201         * lib/winsock.c (close): Remove undefinition.
202         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
203         needed for the gnulib module 'close'.
204         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
205         define to an error symbol or to a warning, if suitable.
206         * lib/close.c: Include <sys/socket.h>.
207         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
208         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
209         UNISTD_H_HAVE_WINSOCK2_H.
210         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
212         UNISTD_H_HAVE_WINSOCK2_H.
213         * modules/sys_socket (Files): Add m4/unistd_h.m4.
214         (configure.ac): Set a module indicator.
215         (Makefile.am): Substitute GNULIB_CLOSE.
216         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
217         * modules/poll-tests (Depends-on): Add close.
218         * modules/select-tests (Depends-on): Likewise.
219
220 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
221             Bruno Haible  <bruno@clisp.org>
222
223         New module 'close'.
224         * modules/close: New file.
225         * lib/unistd.in.h (close): Move declaration out of the
226         FCHDIR_REPLACEMENT scope.
227         (_gl_unregister_fd): New declaration.
228         * lib/close.c: New file.
229         * lib/fchdir.c (rpl_close): Remove function.
230         * m4/close.m4: New file.
231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
232         close.
233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
234         REPLACE_CLOSE.
235         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
236         REPLACE_CLOSE.
237         * modules/fchdir (Depends-on): Add close.
238
239 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
240             Bruno Haible  <bruno@clisp.org>
241
242         * lib/fcntl.in.h (open): Simplify conditionals.
243         (_gl_register_fd): New declaration.
244         * lib/fchdir.c (rpl_open): Remove function.
245         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
246         also.
247         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
249         open.
250
251 2008-10-09  Jim Meyering  <meyering@redhat.com>
252
253         GNUmakefile: use the more name-space-friendly "_version"
254         * top/GNUmakefile (_dummy): Update.
255         (_version): Rename from "version".
256
257 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
258             Bruno Haible  <bruno@clisp.org>
259
260         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
261         rpl_close.
262         (_gl_register_fd): New function, extracted from rpl_open.
263         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
264         (rpl_open, rpl_opendir): Use _gl_register_fd.
265
266 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
267
268         Fix organization of 'open' replacement.
269         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
270         (gl_FUNC_OPEN): Use it.
271         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
272
273 2008-10-08  Bruno Haible  <bruno@clisp.org>
274
275         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
276
277 2008-10-08  Simon Josefsson  <simon@josefsson.org>
278
279         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
280         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
281         listen).
282
283 2008-10-08  Eric Blake  <ebb9@byu.net>
284
285         GNUmakefile: add 'make version' target
286         * top/GNUmakefile (_curr-ver): Split version update rules...
287         (version): ...into a target.
288
289 2008-10-07  Bruno Haible  <bruno@clisp.org>
290
291         Use a more portable replacement expression for -0.0L.
292         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
293         instead of -0.0L. Fix m4 quotation.
294
295         * tests/test-signbit.c: Include <float.h>.
296         (minus_zero): New variable.
297         (test_signbitl): Use minus_zero instead of -zero.
298         * modules/signbit-tests (Depends-on): Add float.
299
300         * tests/test-ceill.c: Include <float.h>.
301         (zero): Remove variable.
302         (minus_zero): New variable.
303         (main): Use minus_zero instead of -zero.
304         * modules/ceill-tests (Depends-on): Add float.
305
306         * tests/test-floorl.c: Include <float.h>.
307         (zero): Remove variable.
308         (minus_zero): New variable.
309         (main): Use minus_zero instead of -zero.
310         * modules/floorl-tests (Depends-on): Add float.
311
312         * tests/test-roundl.c: Include <float.h>.
313         (zero): Remove variable.
314         (minus_zero): New variable.
315         (main): Use minus_zero instead of -zero.
316         * modules/roundl-tests (Depends-on): Add float.
317
318         * tests/test-truncl.c: Include <float.h>.
319         (zero): Remove variable.
320         (minus_zero): New variable.
321         (main): Use minus_zero instead of -zero.
322         * modules/truncl-tests (Depends-on): Add float.
323
324         * tests/test-frexpl.c (zero): Remove variable.
325         (minus_zero): New variable.
326         (main): Use minus_zero instead of -zero.
327         * modules/frexpl-tests (Depends-on): Add float.
328
329         * tests/test-isnan.c (zerol): Remove variable.
330         (minus_zerol): New variable.
331         (test_long_double): Use minus_zerol instead of -zerol.
332         * modules/isnan-tests (Depends-on): Add float.
333
334         * tests/test-isnanl.h (zero): Remove variable.
335         (minus_zero): New variable.
336         (main): Use minus_zero instead of -zero.
337         * modules/isnanl-nolibm-tests (Depends-on): Add float.
338         * modules/isnanl-tests (Depends-on): Add float.
339
340         * tests/test-ldexpl.c (zero): Remove variable.
341         (minus_zero): New variable.
342         (main): Use minus_zero instead of -zero.
343         * modules/ldexpl-tests (Depends-on): Add float.
344
345         * tests/test-snprintf-posix.h (zerol): Remove variable.
346         (minus_zerol): New variable.
347         (test_function): Use minus_zerol instead of -zerol.
348         * modules/snprintf-posix-tests (Depends-on): Add float.
349         * modules/vsnprintf-posix-tests (Depends-on): Add float.
350
351         * tests/test-sprintf-posix.h (zerol): Remove variable.
352         (minus_zerol): New variable.
353         (test_function): Use minus_zerol instead of -zerol.
354         * modules/sprintf-posix-tests (Depends-on): Add float.
355         * modules/vsprintf-posix-tests (Depends-on): Add float.
356
357         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
358         (minus_zerol): New variable.
359         (test_function): Use minus_zerol instead of -zerol.
360         * modules/vasnprintf-posix-tests (Depends-on): Add float.
361
362         * tests/test-vasprintf-posix.c (zerol): Remove variable.
363         (minus_zerol): New variable.
364         (test_function): Use minus_zerol instead of -zerol.
365         * modules/vasprintf-posix-tests (Depends-on): Add float.
366
367 2008-10-07  Simon Josefsson  <simon@josefsson.org>
368
369         * MODULES.html.sh (Support for building documentation): Mention
370         pmccabe2html.  Sort entries.
371
372         Add pmccabe2html module, from gnupdf.
373         * build-aux/pmccabe.css: New file.
374         * build-aux/pmccabe2html: New file.
375         * m4/pmccabe2html.m4: New file.
376         * modules/pmccabe2html: New file.
377
378 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
379
380         flock: new module
381         * MODULES.html.sh: Add to list of modules.
382         * lib/flock.c: flock implementation for Windows and Unix systems
383         which have fcntl.
384         * doc/glibc-functions/flock.texi: Update documentation.
385         * lib/sys_file.in.h: <sys/file.h> header file.
386         * m4/flock.m4: M4 macros.
387         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
388         * modules/flock: flock module.
389         * modules/flock-tests: flock tests module.
390         * modules/sys_file: sys/file.h module.
391         * tests/test-flock.c: test suite for flock.
392
393 2008-10-06  Jim Meyering  <meyering@redhat.com>
394
395         bootstrap: check for LT_INIT more portably still ;-)
396         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
397         Spotted by Bruno Haible.
398
399 2008-10-06  Eric Blake  <ebb9@byu.net>
400
401         test-signbit: avoid tripping Irix cc bug on -0.0L
402         * tests/test-signbit.c (minus_zerol): Delete, and replace with
403         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
404         entire testsuite consistent and avoids an Irix 6.2 bug.
405
406 2008-10-05  Bruno Haible  <bruno@clisp.org>
407             Jim Meyering  <jim@meyering.net>
408
409         Add an option for ignoring EPIPE during close_stdout.
410         * lib/closeout.h: Include <stdbool.h>.
411         (close_stdout_set_ignore_EPIPE): New declaration.
412         * lib/closeout.c: Include <stdbool.h>.
413         (ignore_EPIPE): New variable.
414         (close_stdout_set_ignore_EPIPE): New function.
415         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
416         * lib/close-stream.c (close_stream): Mention the possible EPIPE
417         failure.
418         * modules/closeout (Depends-on): Add stdbool.
419
420 2008-10-05  Bruno Haible  <bruno@clisp.org>
421
422         * modules/accept: New file.
423         * modules/bind: New file.
424         * modules/connect: New file.
425         * modules/getpeername: New file.
426         * modules/getsockname: New file.
427         * modules/getsockopt: New file.
428         * modules/listen: New file.
429         * modules/recv: New file.
430         * modules/recvfrom: New file.
431         * modules/send: New file.
432         * modules/sendto: New file.
433         * modules/setsockopt: New file.
434         * modules/socket: New file.
435         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
436         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
437         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
438         the particular module is requested. Add a link warning when the
439         particular module is not requested.
440         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
441         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
442         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
443         the particular module is requested.
444         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
445         gl_SYS_SOCKET_H_DEFAULTS): New macros.
446         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
447         * modules/sys_socket (Depends-on): Add link-warning.
448         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
449         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
450         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
451         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
452         GL_LINK_WARNING.
453         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
454         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
455         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
456         * doc/posix-functions/getpeername.texi: Mention the new module
457         'getpeername'.
458         * doc/posix-functions/getsockname.texi: Mention the new module
459         'getsockname'.
460         * doc/posix-functions/getsockopt.texi: Mention the new module
461         'getsockopt'.
462         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
463         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
464         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
465         * doc/posix-functions/send.texi: Mention the new module 'send'.
466         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
467         * doc/posix-functions/setsockopt.texi: Mention the new module
468         'setsockopt'.
469         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
470         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
471         listen, connect, accept.
472         * modules/select-tests (Depends-on): Likewise.
473
474 2008-10-05  Bruno Haible  <bruno@clisp.org>
475
476         * lib/winsock.c (strerror): Remove unused #undef.
477         (rpl_close): Remove unused local variable.
478
479         * modules/sys_socket (Depends-on); Add errno.
480
481 2008-10-05  Bruno Haible  <bruno@clisp.org>
482
483         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
484         (select): Add a link warning when the 'select' module is not used.
485         * modules/sys_select (Depends-on): Add link-warning.
486         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
487         Suggested by Paolo Bonzini.
488
489 2008-10-05  Jim Meyering  <meyering@redhat.com>
490
491         bootstrap: check for LT_INIT more portably
492         * build-aux/bootstrap: Avoid using grep -E, since it's not
493         portable enough.  Suggestion from Bruno Haible.
494
495 2008-10-05  Bruno Haible  <bruno@clisp.org>
496
497         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
498         as being fixed by gnulib.
499
500 2008-10-05  Bruno Haible  <bruno@clisp.org>
501
502         * modules/select-tests: New file, mostly copied from
503         modules/sys_select-tests.
504         * tests/test-select.c: New file, mostly copied from
505         tests/test-sys_select.c.
506         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
507         * modules/sys_select-tests (Depends-on): Remove all dependencies.
508         (Makefile.am): Remove test_sys_select_LDADD.
509
510         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
511         to an undefined symbol, for an error message.
512         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
513         (gl_SYS_SELECT_H_DEFAULTS): New macro.
514         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
515         winsock-select.c here.
516         * modules/sys_select (Files): Remove lib/winsock-select.c.
517         (Depends-on): Remove alloca.
518         (Makefile.am): Substitute GNULIB_SELECT.
519         * modules/select: New file.
520         * doc/posix-functions/select.texi: Update.
521
522 2008-10-05  Bruno Haible  <bruno@clisp.org>
523
524         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
525         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
526         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
527         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
528         getdtablesize.
529         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
530         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
531
532 2008-10-05  Bruno Haible  <bruno@clisp.org>
533
534         * modules/getdtablesize-tests: New file.
535         * tests/test-getdtablesize.c: New file.
536
537         New module 'getdtablesize'.
538         * lib/unistd.in.h (getdtablesize): New declaration.
539         * lib/getdtablesize.c: New file.
540         * m4/getdtablesize.m4: New file.
541         * modules/getdtablesize: New file.
542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
543         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
544         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
545         HAVE_GETDTABLESIZE.
546         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
547
548 2008-10-05  Bruno Haible  <bruno@clisp.org>
549
550         * modules/sched (Makefile.am): Fix typo.
551         Reported by Simon Josefsson.
552
553 2008-10-05  Jim Meyering  <meyering@redhat.com>
554
555         bootstrap: check for LT_INIT, too
556         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
557         are deprecated.  Suggestion from Ralf Wildenhues.
558
559 2008-10-05  Bruno Haible  <bruno@clisp.org>
560
561         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
562         overriding them by ours.
563         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
564
565 2008-10-05  Jim Meyering  <meyering@redhat.com>
566
567         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
568         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
569         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
570
571 2008-10-04  Bruno Haible  <bruno@clisp.org>
572
573         * modules/dup2 (License): Change to LGPLv2+.
574         * modules/sleep (License): Likewise.
575         * modules/perror (License): Likewise.
576         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
577         Blake.
578         * modules/signal (License): Likewise.
579         * modules/sigprocmask (License): Likewise.
580         * modules/raise (License): Change to LGPLv2+, with approval by Jim
581         Meyering.
582
583 2008-10-04  Bruno Haible  <bruno@clisp.org>
584
585         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
586         Reported by Rainer Tammer <tammer@tammer.net>.
587
588 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
589             Bruno Haible  <bruno@clisp.org>
590
591         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
592         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
593         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
594
595 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
596
597         filevercmp: new module
598         * lib/filevercmp.h: New function filevercmp comparing version strings.
599         * lib/filevercmp.c: Implementation of filevercmp function.
600         * modules/filevercmp: Module metadata.
601         * tests/test-filevercmp.c: Unit test for new module.
602         * modules/filevercmp-tests: Unit test metadata.
603         * MODULES.html.sh: Add filevercmp module.
604
605 2008-10-03  Bruno Haible  <bruno@clisp.org>
606
607         * lib/c-ctype.h: Add comment.
608         Reported by Jim Meyering.
609
610 2008-10-02  Bruno Haible  <bruno@clisp.org>
611
612         * modules/posix_spawn-internal (Depends-on): Add 'open'.
613
614 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
615
616         * build-aux/bootstrap: Allow renaming bootstrap, and change the
617         name of bootstrap.conf accordingly.
618
619 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
620
621         * build-aux/bootstrap: Install git-merge-changelog configuration
622         items into .gitconfig if needed.
623
624 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
625
626         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
627         git repository, and initialize/update it accordingly.
628
629 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
630
631         * modules/fsync-tests: New file.
632         * tests/test-fsync.c: New file.
633
634         New module 'fsync'.
635         * lib/fsync.c: New file.
636         * m4/fsync.m4: New file.
637         * modules/fsync: New file.
638         * lib/unistd.in.h (fsync): New declaration.
639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
640         GNULIB_FSYNC and HAVE_FSYNC.
641         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
642         * MODULES.html.sh (posix_functions): Add fsync.
643         * doc/posix-functions/fsync.texi: Mention the new module.
644
645 2008-10-02  Jim Meyering  <meyering@redhat.com>
646
647         fts.c: sync with similar code from coreutils' remove.c
648         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
649         Guard also with "#if defined __linux__", since for now at least,
650         this code is Linux-kernel-specific.
651
652 2008-10-02  Jim Meyering  <meyering@redhat.com>
653
654         fts: bug fixes
655         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
656         Include <sys/vfs.h>, not <sys/statfs.h>.
657
658         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
659         Include <sys/vfs.h>, not <sys/statfs.h>.
660
661 2008-10-01  Bruno Haible  <bruno@clisp.org>
662
663         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
665         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
666         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
667         * doc/posix-functions/posix_spawnp.texi: Likewise.
668         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
669         whether posix_spawn actually works.
670         * m4/pipe.m4 (gl_PIPE): Likewise.
671         * modules/execute (Files): Add m4/posix_spawn.m4.
672         * modules/pipe (Files): Add m4/posix_spawn.m4.
673         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
674
675 2008-10-01  Jim Meyering  <meyering@redhat.com>
676
677         remove trailing spaces
678         * NEWS: Likewise.
679         * lib/poll.c (poll): Likewise.
680         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
681         * lib/winsock.c (rpl_close): Likewise.
682         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
683         * modules/yield: Likewise.
684         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
685         * tests/test-sys_select.c (connect_to_socket): Likewise.
686
687         fts.c: adjust a new interface to be more generally useful
688         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
689         (fts_build): Adjust caller.
690
691 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
692
693         * modules/cond-tests: New file.
694         * tests/test-cond.c: New file.
695
696 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
697             Bruno Haible  <bruno@clisp.org>
698
699         * modules/cond (Dependencies): Add errno, time.
700         * lib/glthread/cond.h: Include <time.h>.
701         (gl_cond_define, gl_cond_define_initialized): Use the same definition
702         across platforms.
703
704 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
705             Bruno Haible  <bruno@clisp.org>
706
707         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
708
709 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
710             Bruno Haible  <bruno@clisp.org>
711
712         * modules/tls-tests (Depends-on): Add thread, yield.
713         (configure.ac): Remove all checks.
714         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
715         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
716         gl_thread_self): Remove definitions. Include glthread/thread.h and
717         glthread/yield.h instead.
718         (test_tls): Pass an additional NULL argument to gl_thread_join.
719
720 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
721             Bruno Haible  <bruno@clisp.org>
722
723         * modules/lock-tests (Depends-on): Add thread, yield.
724         (configure.ac): Remove all checks.
725         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
726         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
727         gl_thread_self): Remove definitions. Include glthread/thread.h and
728         glthread/yield.h instead.
729         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
730         additional NULL argument to gl_thread_join.
731
732 2008-09-30  Bruno Haible  <bruno@clisp.org>
733
734         Fix the Win32 implementation of the 'thread' module.
735         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
736         pointer type.
737         (gl_thread_self): Invoke gl_thread_self_func.
738         (gl_thread_self_func): New declaration.
739         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
740         (do_init_self_key, init_self_key): New functions.
741         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
742         Remove some fields.
743         (running_threads, running_lock): Remove variables.
744         (get_current_thread_handle): New function.
745         (gl_thread_self_func, wrapper_func, glthread_create_func,
746         glthread_join_func, gl_thread_exit_func): Largely rewritten and
747         simplified.
748
749 2008-09-30  Bruno Haible  <bruno@clisp.org>
750
751         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
752         files.
753
754 2008-09-30  Jim Meyering  <meyering@redhat.com>
755
756         fts.m4: correct the test for statfs.f_type
757         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
758         when checking for statfs.f_type.
759
760 2008-09-15  Simon Josefsson  <simon@josefsson.org>
761
762         tests: avoid some compiler warnings
763         * tests/test-memchr.c (main): Pass NULL indirectly.
764         * tests/test-getdate.c (main): Remove unused variable 'ret'.
765
766 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
767
768         getdate.y: disallow countable dayshifts like "4 yesterday ago"
769         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
770         exactly specified dayshifts.
771         (dayshift): New rule.
772         (rel): Add dayshift.
773         (relative_time_table) [tomorrow, yesterday, today, now]:
774         Use tDAY_SHIFT in place of tDAY_UNIT.
775         * tests/test-getdate.c: Add tests for now-disallowed countable
776         dayshifts, e.g., "4 yesterday ago".
777
778 2008-09-29  Bruno Haible  <bruno@clisp.org>
779
780         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
781         * tests/test-posix_spawn1.in.sh: Renamed from
782         tests/test-posix_spawn.in.sh.
783         * tests/test-posix_spawn2.c: New file.
784         * tests/test-posix_spawn2.in.sh: New file.
785         * modules/posix_spawnp-tests (Files): Update.
786         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
787
788 2008-09-29  Bruno Haible  <bruno@clisp.org>
789
790         Propagate effects of putenv/setenv/unsetenv to child processes.
791         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
792         * lib/pipe.c (create_pipe): Likewise.
793
794 2008-09-29  Bruno Haible  <bruno@clisp.org>
795
796         Enable use of shell scripts as executables in mingw.
797         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
798         run the program as a shell script.
799         * lib/pipe.c (create_pipe): Likewise.
800         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
801         resulting array.
802
803 2008-09-29  Eric Blake  <ebb9@byu.net>
804
805         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
806
807 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
808
809         * doc/posix-functions/accept.texi: Update mingw problems.
810         * doc/posix-functions/bind.texi: Update mingw problems.
811         * doc/posix-functions/close.texi: Update mingw problems.
812         * doc/posix-functions/connect.texi: Update mingw problems.
813         * doc/posix-functions/getpeername.texi: Update mingw problems.
814         * doc/posix-functions/getsockname.texi: Update mingw problems.
815         * doc/posix-functions/getsockopt.texi: Update mingw problems.
816         * doc/posix-functions/ioctl.texi: Update mingw problems.
817         * doc/posix-functions/listen.texi: Update mingw problems.
818         * doc/posix-functions/recv.texi: Update mingw problems.
819         * doc/posix-functions/recvfrom.texi: Update mingw problems.
820         * doc/posix-functions/select.texi: Update mingw problems.
821         * doc/posix-functions/send.texi: Update mingw problems.
822         * doc/posix-functions/sendto.texi: Update mingw problems.
823         * doc/posix-functions/setsockopt.texi: Update mingw problems.
824         * doc/posix-functions/socket.texi: Update mingw problems.
825
826 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
827             Bruno Haible  <bruno@clisp.org>
828
829         * lib/sys_select.in.h: Include sys/time.h.
830         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
831         * modules/sys_select: Depend on sys_time.
832         * tests/test-sys_select.c: Test that sys/select.h defines struct
833         timeval fully.
834
835 2008-09-29  Bruno Haible  <bruno@clisp.org>
836
837         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
838         * lib/sys_select.in.h: Likewise.
839
840 2008-09-29  Bruno Haible  <bruno@clisp.org>
841
842         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
843
844 2008-09-29  Bruno Haible  <bruno@clisp.org>
845
846         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
847         Set LIBSOCKET instead of augmenting LIBS.
848         * modules/sockets (Link): New section.
849         * modules/sockets-tests (test_sockets_LDADD): New variable.
850         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
851         * modules/poll-tests (test_poll_LDADD): New variable.
852         * NEWS: Document the change.
853
854 2008-09-29  Bruno Haible  <bruno@clisp.org>
855
856         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
857         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
858         ARPA_INET_H directly.
859         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
860
861 2008-09-28  Bruno Haible  <bruno@clisp.org>
862
863         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
864         from gl_HEADER_SYS_SOCKET.
865         (gl_HEADER_SYS_SOCKET): Invoke it.
866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
867
868 2008-09-28  Bruno Haible  <bruno@clisp.org>
869
870         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
871         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
872         Needed on OSF/1 4.0.
873
874 2008-09-28  Bruno Haible  <bruno@clisp.org>
875
876         Override open more carefully.
877         * lib/open.c (orig_open): New function.
878         (rpl_open): Use orig_open instead of open.
879         * lib/fcntl.in.h: Add special invocation convention.
880         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
881         (gl_FUNC_OPEN): Invoke it.
882
883         Override freopen more carefully.
884         * lib/freopen.c (orig_freopen): New function.
885         (rpl_freopen): Use orig_freopen instead of freopen.
886         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
887         (gl_FUNC_FREOPEN): Invoke it.
888
889         Override fopen more carefully.
890         * lib/fopen.c (orig_fopen): New function.
891         (rpl_fopen): Use orig_fopen instead of fopen.
892         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
893         (gl_FUNC_FOPEN): Invoke it.
894         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
895
896 2008-09-28  Bruno Haible  <bruno@clisp.org>
897
898         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
899         SIGPIPE.
900
901 2008-09-28  Bruno Haible  <bruno@clisp.org>
902
903         * tests/test-sigaction.c (handler, main): Disable the check whether
904         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
905         glibc systems with LinuxThreads.
906
907 2008-09-28  Bruno Haible  <bruno@clisp.org>
908
909         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
910
911         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
912         with AIX xlc.
913         * lib/fcntl.in.h (open): Likewise.
914         Reported by Rainer Tammer <tammer@tammer.net>.
915
916 2008-09-28  Bruno Haible  <bruno@clisp.org>
917
918         * modules/posix_spawnp-tests: New file.
919         * tests/test-posix_spawn.c: New file.
920         * tests/test-posix_spawn.in.sh: New file.
921
922         New module 'posix_spawnp'.
923         * modules/posix_spawnp: New file.
924         * lib/spawnp.c: New file, from GNU libc with modifications.
925         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
926
927         New module 'posix_spawn'.
928         * modules/posix_spawn: New file.
929         * lib/spawn.c: New file, from GNU libc with modifications.
930         * doc/posix-functions/posix_spawn.texi: Mention the new module.
931
932         New module 'posix_spawnattr_destroy'.
933         * modules/posix_spawnattr_destroy: New file.
934         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
935         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
936         module.
937
938         New module 'posix_spawnattr_setsigmask'.
939         * modules/posix_spawnattr_setsigmask: New file.
940         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
941         modifications.
942         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
943         new module.
944
945         New module 'posix_spawnattr_getsigmask'.
946         * modules/posix_spawnattr_getsigmask: New file.
947         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
948         modifications.
949         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
950         new module.
951
952         New module 'posix_spawnattr_setsigdefault'.
953         * modules/posix_spawnattr_setsigdefault: New file.
954         * lib/spawnattr_setdefault.c: New file, from GNU libc with
955         modifications.
956         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
957         new module.
958
959         New module 'posix_spawnattr_getsigdefault'.
960         * modules/posix_spawnattr_getsigdefault: New file.
961         * lib/spawnattr_getdefault.c: New file, from GNU libc with
962         modifications.
963         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
964         new module.
965
966         New module 'posix_spawnattr_setschedpolicy'.
967         * modules/posix_spawnattr_setschedpolicy: New file.
968         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
969         modifications.
970         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
971         new module.
972
973         New module 'posix_spawnattr_getschedpolicy'.
974         * modules/posix_spawnattr_getschedpolicy: New file.
975         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
976         modifications.
977         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
978         new module.
979
980         New module 'posix_spawnattr_setschedparam'.
981         * modules/posix_spawnattr_setschedparam: New file.
982         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
983         modifications.
984         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
985         new module.
986
987         New module 'posix_spawnattr_getschedparam'.
988         * modules/posix_spawnattr_getschedparam: New file.
989         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
990         modifications.
991         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
992         new module.
993
994         New module 'posix_spawnattr_setpgroup'.
995         * modules/posix_spawnattr_setpgroup: New file.
996         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
997         modifications.
998         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
999         module.
1000
1001         New module 'posix_spawnattr_getpgroup'.
1002         * modules/posix_spawnattr_getpgroup: New file.
1003         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1004         modifications.
1005         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1006         module.
1007
1008         New module 'posix_spawnattr_setflags'.
1009         * modules/posix_spawnattr_setflags: New file.
1010         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1011         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1012         module.
1013
1014         New module 'posix_spawnattr_getflags'.
1015         * modules/posix_spawnattr_getflags: New file.
1016         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1017         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1018         module.
1019
1020         New module 'posix_spawnattr_init'.
1021         * modules/posix_spawnattr_init: New file.
1022         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1023         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1024         module.
1025
1026         New module 'posix_spawn_file_actions_destroy'.
1027         * modules/posix_spawn_file_actions_destroy: New file.
1028         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1029         modifications.
1030         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1031         the new module.
1032
1033         New module 'posix_spawn_file_actions_addopen'.
1034         * modules/posix_spawn_file_actions_addopen: New file.
1035         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1036         modifications.
1037         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1038         the new module.
1039
1040         New module 'posix_spawn_file_actions_adddup2'.
1041         * modules/posix_spawn_file_actions_adddup2: New file.
1042         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1043         modifications.
1044         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1045         the new module.
1046
1047         New module 'posix_spawn_file_actions_addclose'.
1048         * modules/posix_spawn_file_actions_addclose: New file.
1049         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1050         modifications.
1051         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1052         the new module.
1053
1054         New module 'posix_spawn_file_actions_init'.
1055         * modules/posix_spawn_file_actions_init: New file.
1056         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1057         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1058         new module.
1059
1060         New module 'posix_spawn-internal'.
1061         * modules/posix_spawn-internal: New file.
1062         * lib/spawn_int.h: New file, from GNU libc with modifications.
1063         * lib/spawni.c: New file, from GNU libc with modifications.
1064         * m4/posix_spawn.m4: New file.
1065
1066         New module 'spawn'.
1067         * modules/spawn: New file.
1068         * lib/spawn.in.h: New file, from GNU libc with modifications.
1069         * m4/spawn_h.m4: New file.
1070         * doc/posix-headers/spawn.texi: Mention the new module.
1071
1072 2008-09-28  Bruno Haible  <bruno@clisp.org>
1073
1074         * modules/sched-tests: New file.
1075         * tests/test-sched.c: New file.
1076
1077         New module 'sched'.
1078         * modules/sched: New file.
1079         * lib/sched.in.h: New file.
1080         * m4/sched_h.m4: New file.
1081         * doc/posix-headers/sched.texi: Mention the new module.
1082
1083 2008-09-27  Eric Blake  <ebb9@byu.net>
1084
1085         Fix previous patch, and tweak references to $0.
1086         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1087         (func_version, func_gnulib_dir): Don't call this program
1088         gnulib-tool.
1089         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1090         with using $0 in function.
1091         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1092         (func_fatal_error): Reuse the name the user invoked us with.
1093
1094 2008-09-27  Bruno Haible  <bruno@clisp.org>
1095
1096         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1097         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1098         (gl_ICONV_H): Not here.
1099         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1100         instead of assigning ICONV_H directly.
1101
1102         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1104         WCHAR_H directly.
1105
1106 2008-09-27  Bruno Haible  <bruno@clisp.org>
1107
1108         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1109         * modules/arpa_inet (Depends-on): Add link-warning.
1110         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1111         * modules/unistd (Makefile.am): Likewise.
1112
1113 2008-09-26  Bruno Haible  <bruno@clisp.org>
1114
1115         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1116         variables.
1117         (func_version): Essentially copied from gnulib-tool.
1118         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1119         func_readlink): Copied from gnulib-tool.
1120
1121 2008-09-26  Bruno Haible  <bruno@clisp.org>
1122
1123         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1124         invoking git-version-gen.
1125
1126 2008-09-26  Bruno Haible  <bruno@clisp.org>
1127
1128         * posix-modules: Update to directory names changed on 2008-01-19.
1129         Remove commas in output before splitting into words. No more need to
1130         avoid 'ftruncate' since 2007-02-19.
1131
1132 2008-09-26  Bruno Haible  <bruno@clisp.org>
1133
1134         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1135
1136 2008-09-26  Bruno Haible  <bruno@clisp.org>
1137
1138         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1139         * modules/fwriteerror (Depends-on): Add errno.
1140
1141 2008-09-26  Bruno Haible  <bruno@clisp.org>
1142
1143         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1144         * tests/test-vc-list-files-cvs.sh: Likewise.
1145
1146 2008-09-26  Bruno Haible  <bruno@clisp.org>
1147
1148         * doc/posix-headers/sys_resource.texi: Reorder items.
1149
1150 2008-09-26  Jim Meyering  <meyering@redhat.com>
1151
1152         fts: tweak inode comparison function
1153         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1154         inode numbers, as documented.
1155
1156         fts: sort dirent entries on inode number before traversing
1157         This avoids a quadratic, seek-related performance penalty when
1158         operating on a directory containing many entries (measurable at 10k;
1159         3.5 hours at 2 million entries with a cold cache) on certain types
1160         of file systems, including ext3 and ext4, but not tmpfs.
1161         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1162         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1163         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1164         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1165         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1166         (fts_build): Set the stat.st_ino member from D_INO.
1167         If it is likely to be useful, sort dirent entries on inode number.
1168
1169         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1170         and the struct statfs.f_type member.
1171         * modules/fts (Depends-on): Add d-ino.
1172
1173 2008-09-26  Bruno Haible  <bruno@clisp.org>
1174
1175         * modules/sigpipe-die (Depends-on): Add sigpipe.
1176
1177         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1178         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1179         and GNULIB_STDIO_H_SIGPIPE are set.
1180         * lib/stdio-write.c: New file.
1181         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1182         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1183         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1184         REPLACE_STDIO_WRITE_FUNCS.
1185         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1186         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1187         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1188         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1189         * modules/stdio (Files): Add lib/stdio-write.c.
1190         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1191         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1192         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1193         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1194         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1195         REPLACE_FPRINTF_POSIX.
1196         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1197         REPLACE_PRINTF_POSIX.
1198         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1199         REPLACE_VFPRINTF_POSIX.
1200         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1201         REPLACE_VPRINTF_POSIX.
1202         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1203         SIGPIPE issue.
1204         * doc/posix-functions/fputc.texi: Likewise.
1205         * doc/posix-functions/fputs.texi: Likewise.
1206         * doc/posix-functions/fwrite.texi: Likewise.
1207         * doc/posix-functions/printf.texi: Likewise.
1208         * doc/posix-functions/putc.texi: Likewise.
1209         * doc/posix-functions/putchar.texi: Likewise.
1210         * doc/posix-functions/puts.texi: Likewise.
1211         * doc/posix-functions/vfprintf.texi: Likewise.
1212         * doc/posix-functions/vprintf.texi: Likewise.
1213
1214         * modules/safe-write (Depends-on): Add write.
1215
1216         * modules/sigpipe-tests: New file.
1217         * tests/test-sigpipe.c: New file.
1218         * tests/test-sigpipe.sh: New file.
1219
1220         * modules/write: New file.
1221         * lib/unistd.in.h: Include <sys/types.h>.
1222         (write): New declaration.
1223         * lib/write.c: New file.
1224         * m4/write.m4: New file.
1225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1226         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1227         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1228         GNULIB_WRITE, REPLACE_WRITE.
1229         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1230         and the SIGPIPE issue.
1231
1232         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1233         (raise): New declaration.
1234         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1235         (ext_signal): New function.
1236         (rpl_raise): New function.
1237         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1238         GNULIB_SIGNAL_H_SIGPIPE.
1239         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1240         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1241
1242         * modules/sigpipe: New file.
1243         * m4/sigpipe.m4: New file.
1244
1245 2008-09-25  Derek Price  <derek@ximbiot.com>
1246             Bruno Haible  <bruno@clisp.org>
1247
1248         * gnulib-tool (func_import): Report all license incompatibilities, not
1249         just the first one.
1250
1251 2008-09-25  Bruno Haible  <bruno@clisp.org>
1252
1253         * gnulib-tool (func_import): When computing the edits, consider not
1254         only the Makefile.ams that exist but also those that will be generated.
1255
1256 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1257
1258         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1259         fixes gnulib-tool --test warning about duplicate dependency.
1260
1261 2008-09-25  Bruno Haible  <bruno@clisp.org>
1262
1263         * gnulib-tool: Don't ask the user to perform edits in the generated
1264         Makefile.ams.
1265         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1266         apply to the Makefile.am being generated.
1267         (func_emit_tests_Makefile_am): Execute edits that apply to the
1268         Makefile.am being generated.
1269         (func_import): Setup list of Makefile.am edits before emitting the
1270         Makefile.ams, not at the end.
1271         (func_create_testdir): Update.
1272         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1273
1274 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1275
1276         * gnulib-tool (func_import): Store the --tests-base option in the
1277         comment in gnulib-cache.m4.
1278
1279 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1280
1281         * NEWS: Document increased portability that sys_select now provides.
1282
1283         * lib/sys_select.in.h: Install select wrapper.
1284         * lib/sys_socket.in.h: Use more descriptive name when there is no
1285         select wrapper.
1286         * lib/winsock-select.c: New.
1287         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1288         Require gl_HEADER_SYS_SOCKET.
1289         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1290         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1291         * tests/test-sys_select.c: Add functional tests.
1292
1293 2008-09-24  Eric Blake  <ebb9@byu.net>
1294
1295         open, fopen: close fd leak in last patch
1296         * lib/open.c (rpl_open): Close fd before returning error.
1297         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1298         * doc/posix-functions/open.texi (open): Document that Irix also
1299         has the bug.
1300         * doc/posix-functions/fopen.texi (fopen): Likewise.
1301         Reported by Paolo Bonzini.
1302
1303 2008-09-24  Bruno Haible  <bruno@clisp.org>
1304
1305         Ensure that a filename ending in a slash cannot be used to access a
1306         non-directory.
1307         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1308         to check whether it's really a directory.
1309         * lib/fopen.c: Include fcntl.h, unistd.h.
1310         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1311         and fdopen().
1312         * modules/fopen (Depends-on): Add unistd.
1313         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1314         * tests/test-fopen.c (main): Likewise.
1315         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1316         * doc/posix-functions/fopen.texi: Likewise.
1317         Reported by Eric Blake.
1318
1319 2008-09-23  Eric Blake  <ebb9@byu.net>
1320
1321         c-stack: avoid compiler optimizations when provoking overflow
1322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1323         recursion harder to optimize, to ensure a stack overflow occurs.
1324         * tests/test-c-stack.c (recurse): Likewise.
1325         Borrowed from libsigsegv.
1326
1327         c-stack: work around Irix sigaltstack bug
1328         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1329         whether sigaltstack uses wrong end of stack_t (copied in part from
1330         libsigsegv).
1331         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1332         Irix bug, without requiring an over-allocation.
1333         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1334         bug.
1335
1336         fopen: document mingw bug on directories
1337         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1338         not allowing a stream visiting a directory, even though reading
1339         from such a stream is not portable.
1340
1341 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1342
1343         * lib/poll.c: Rewrite.
1344         * modules/poll: Depend on alloca.
1345
1346 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1347
1348         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1349         instead define prototypes for a full set of wrappers.  Ensure
1350         that Cygwin does not use the compatibility code, which is only
1351         for MinGW.
1352         * lib/winsock.c: New.
1353         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1354         * modules/sys_socket: Add lib/winsock.c.
1355
1356         * modules/poll-tests: Add errno and perror.
1357         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1358
1359 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1360
1361         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1362
1363 2008-09-23  Bruno Haible  <bruno@clisp.org>
1364
1365         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1366         * doc/glibc-functions/*: Likewise.
1367
1368 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1369
1370         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1371         success.
1372
1373 2008-09-22  Eric Blake  <ebb9@byu.net>
1374             Bruno Haible  <bruno@clisp.org>
1375
1376         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1377         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1378         supply %A but mishandle pseudo-NaN.
1379         Reported by Simon Josefsson.
1380
1381 2008-09-21  Bruno Haible  <bruno@clisp.org>
1382
1383         * tests/test-lock.c (main): Tweak skip message.
1384         * tests/test-tls.c (main): Likewise.
1385
1386 2008-09-21  Bruno Haible  <bruno@clisp.org>
1387
1388         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1389         whether 'struct sigaction' has sa_sigaction here...
1390         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1391         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1392
1393 2008-09-21  Bruno Haible  <bruno@clisp.org>
1394
1395         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1396         section.
1397         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1398         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1399         the new section.
1400         (Support for obsolete systems lacking POSIX:2001): New section.
1401         (String handling <string.h>): Move strdup to the new section.
1402         Suggested by Simon Josefsson and Paolo Bonzini.
1403
1404 2008-09-21  Bruno Haible  <bruno@clisp.org>
1405
1406         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1407         exponents in %e and %g results on 'long double'. Needed for mingw's
1408         improved *printf functions.
1409         * tests/test-vasprintf-posix.c (test_function): Likewise.
1410         * tests/test-snprintf-posix.h (test_function): Likewise.
1411         * tests/test-sprintf-posix.h (test_function): Likewise.
1412         Reported by Eric Blake.
1413
1414 2008-09-21  Bruno Haible  <bruno@clisp.org>
1415
1416         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1417         * tests/test-sprintf-posix.h (test_function): Likewise.
1418
1419 2008-09-21  Bruno Haible  <bruno@clisp.org>
1420
1421         * modules/getpass (Depends-on): Add strdup-posix.
1422
1423         New module 'strdup-posix'.
1424         * modules/strdup-posix: New file.
1425         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1426         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1428         REPLACE_STRDUP.
1429         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1430         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1432         strdup-posix.
1433
1434         * modules/strdup (Depends-on): Remove malloc-posix.
1435
1436 2008-09-20  Bruno Haible  <bruno@clisp.org>
1437
1438         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1439         Wildenhues.
1440
1441 2008-09-20  Bruno Haible  <bruno@clisp.org>
1442
1443         Ensure that wint_t gets defined on IRIX 5.3.
1444         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1445         * lib/wctype.in.h (wint_t): Likewise.
1446         (__wctype_wint_t): Remove type.
1447         (isw*): Use wint_t instead of __wctype_wint_t.
1448         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1449         * modules/wchar (Files): Add m4/wint_t.m4.
1450         (Makefile.am): Substitute HAVE_WINT_T.
1451         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1452         * tests/test-wctype.c: Check that wint_t is defined.
1453         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1454         * doc/posix-headers/wctype.texi: Likewise.
1455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1456
1457 2008-09-18  Bruno Haible  <bruno@clisp.org>
1458
1459         * gnulib-tool (func_exit): Update comment.
1460
1461 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1462
1463         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1464         assumes strdup exists and does not depend on strdup to return
1465         ENOMEM on out of memory conditions.
1466
1467 2008-09-18  Bruno Haible  <bruno@clisp.org>
1468
1469         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
1470         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1471         digits for the exponent.
1472
1473 2008-09-18  Jim Meyering  <meyering@redhat.com>
1474             Bruno Haible  <bruno@clisp.org>
1475
1476         * lib/vasnprintf.c (decimal_point_char): Define also if
1477         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1478
1479 2008-09-16  Bruno Haible  <bruno@clisp.org>
1480         and Eric Blake  <ebb9@byu.net>
1481
1482         vasnprintf: support Irix 5.3
1483         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1484         that mishandle long double infinity.
1485         Reported by Tom G. Christensen.
1486
1487 2008-09-16  Bruno Haible  <bruno@clisp.org>
1488
1489         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1490         Solaris 9.
1491         * doc/glibc-functions/alphasort.texi: Likewise.
1492         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1493
1494 2008-09-16  Jim Meyering  <meyering@redhat.com>
1495
1496         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1497         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1498         a umask modification leak out of a subshell.  Otherwise, the
1499         opensolaris /bin/sh would be accepted and thus cause unwarranted
1500         failures in the coreutils test suite.
1501
1502 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1503
1504         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1505         to succeed.
1506
1507 2008-09-16  Jim Meyering  <meyering@redhat.com>
1508
1509         avoid spurious test failure when library is built without ACL support
1510         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1511         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1512         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1513         * tests/test-copy-acl.sh: Likewise.
1514
1515 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1516
1517         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1518         based on character occurrence counts.
1519
1520 2008-09-15  Eric Blake  <ebb9@byu.net>
1521
1522         tests: avoid some compiler warnings
1523         * tests/test-memchr.c (main): Pass NULL indirectly.
1524         * tests/test-closein.c (main): Avoid unused variable.
1525
1526 2008-09-15  Bruno Haible  <bruno@clisp.org>
1527
1528         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1529         are missing on OpenBSD 4.0 individually.
1530         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1531
1532 2008-09-15  Bruno Haible  <bruno@clisp.org>
1533
1534         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1535         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1536         * doc/posix-functions/perror.texi: Likewise.
1537         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1538         is missing.
1539         Reported by Eric Blake.
1540
1541         * lib/errno.in.h: Use replacement values >= 2000.
1542         Reported by Eric Blake.
1543
1544 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1545
1546         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1547         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1548         limit.
1549         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1550         compareseq was aborted.
1551
1552 2008-09-14  Bruno Haible  <bruno@clisp.org>
1553
1554         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1555         yvec_edit_count.
1556         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1557         (fstrcmp_bounded): Simplify result computation accordingly.
1558
1559 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1560
1561         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1562         (fstrcmp): Define in terms of fstrcmp_bounded.
1563         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1564         lower_bound argument.
1565         Return quickly if the result is certainly < lower_bound.
1566         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1567
1568 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1569
1570         * lib/diffseq.h (EARLY_ABORT): New macro.
1571         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1572         evaluates to true.
1573
1574 2008-09-14  Bruno Haible  <bruno@clisp.org>
1575
1576         * modules/perror-tests: New file.
1577         * tests/test-perror.sh: New file.
1578         * tests/test-perror.c: New file.
1579
1580         New module 'perror'.
1581         * lib/stdio.in.h (perror): New declaration.
1582         * lib/perror.c: New file.
1583         * m4/perror.m4: New file.
1584         * modules/perror: New file.
1585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1586         * doc/posix-functions/perror.texi: Mention the perror module.
1587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1588         REPLACE_PERROR.
1589         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1590         REPLACE_PERROR.
1591
1592 2008-09-14  Bruno Haible  <bruno@clisp.org>
1593
1594         * modules/stdio (Makefile.am): Reorder to match the order in
1595         lib/stdio.in.h.
1596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1597
1598 2008-09-13  Bruno Haible  <bruno@clisp.org>
1599
1600         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1601
1602 2008-09-13  Bruno Haible  <bruno@clisp.org>
1603
1604         Extend strerror to cover the added errno values.
1605         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1606         (rpl_strerror): Provide error messages for the added errno values and
1607         for the WSA* values.
1608         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1609         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1610         strerror.
1611         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1612         * modules/strerror (Depends-on): Add errno.
1613         * doc/posix-functions/strerror.texi: Document the change.
1614         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1615         and EOVERFLOW.
1616
1617 2008-09-13  Bruno Haible  <bruno@clisp.org>
1618
1619         * modules/EOVERFLOW: Remove file.
1620         * m4/eoverflow.m4: Remove file.
1621         * modules/EOVERFLOW-tests: Remove file.
1622         * tests/test-EOVERFLOW.c: Remove file.
1623         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1624         * modules/ftell (Depends-on): Likewise.
1625         * modules/getdelim (Depends-on): Likewise.
1626         * modules/getugroups (Depends-on): Likewise.
1627         * modules/poll (Depends-on): Likewise.
1628         * modules/snprintf (Depends-on): Likewise.
1629         * modules/sprintf-posix (Depends-on): Likewise.
1630         * modules/vasnprintf (Depends-on): Likewise.
1631         * modules/vasprintf (Depends-on): Likewise.
1632         * modules/vfprintf-posix (Depends-on): Likewise.
1633         * modules/vsnprintf (Depends-on): Likewise.
1634         * modules/vsprintf-posix (Depends-on): Likewise.
1635         * modules/xvasprintf (Depends-on): Likewise.
1636         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1637         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1638         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1639         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1640         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1641         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1642         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1643         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1644         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1645         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1646         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1647         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1648         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1649         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1650         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1651         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1652         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1653         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1654         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1655         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1656         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1657         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1658         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1659         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1660         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1661         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1662         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1663         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1664         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1665         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1666         * MODULES.html.sh: Remove EOVERFLOW.
1667         * NEWS: Mention the change.
1668
1669 2008-09-13  Bruno Haible  <bruno@clisp.org>
1670
1671         * modules/errno-tests: New file.
1672         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1673
1674         * lib/errno.in.h: New file.
1675         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1676         * modules/errno: New file.
1677         * doc/posix-headers/errno.texi: Update documentation.
1678         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1679
1680 2008-09-13  Bruno Haible  <bruno@clisp.org>
1681
1682         * tests/test-poll.c: Use #if for native Windows, rather than testing
1683         __MSVCRT__.
1684
1685 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1686             Bruno Haible  <bruno@clisp.org>
1687
1688         * lib/glob.c: Don't include <pwd.h> on native Windows.
1689         (WINDOWS32): New macro.
1690         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1691
1692 2008-09-13  Bruno Haible  <bruno@clisp.org>
1693
1694         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1695         (ETIMEDOUT): Remove macro.
1696         (glthread_cond_timedwait_multithreaded): New declaration.
1697         (glthread_cond_timedwait): Use it.
1698         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1699         (glthread_cond_timedwait_multithreaded): New function.
1700
1701 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1702
1703         * modules/poll-tests: Do not check for io.h.
1704         * tests/test-poll.c: Check for __MSVCRT__ instead.
1705
1706 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1707
1708         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1709         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1710         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1711
1712 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1713
1714         * modules/poll-tests: New.
1715         * tests/test-poll.c: New.
1716
1717 2008-09-12  Eric Blake  <ebb9@byu.net>
1718
1719         frexp: test for NetBSD failure on -0.0
1720         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1721         not all, bugs from NetBSD 3.0 have been fixed.
1722         * doc/posix-functions/frexp.texi (frexp): Document bug.
1723         Reported by Thomas Klausner.
1724
1725         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1726         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1727         literal -0.0.
1728         Reported by Jonathan C. Patschke <jp@centtech.com>.
1729
1730 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1731
1732         * lib/glthread/cond.h: Use dummy implementation also if
1733         USE_WIN32_THREADS.
1734
1735 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1736
1737         * modules/fnmatch-posix (License): Change to LGPLv2+.
1738         * modules/fnmatch-gnu (License): Likewise.
1739
1740 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1741
1742         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1743
1744 2008-09-11  Jim Meyering  <meyering@redhat.com>
1745
1746         * users.txt: Add gtk-vnc.
1747
1748 2008-09-08  Simon Josefsson  <simon@josefsson.org>
1749
1750         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1751         rotate amounts.
1752
1753         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1754         required for 16-bit and 8-bit rotates.
1755         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1756         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1757         UINT8_MAX instead of hard-coded constants.
1758         Suggested by Paul Eggert.
1759
1760 2008-09-07  Bruno Haible  <bruno@clisp.org>
1761
1762         * tests/test-striconveh.c (main): Check behaviour when converting from
1763         UTF-7.
1764
1765         Make striconveh work better with stateful encodings.
1766         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1767         that iconv does not increment the inptr when returning -1/EINVAL.
1768
1769 2008-09-07  Bruno Haible  <bruno@clisp.org>
1770
1771         * build-aux/config.rpath: Update according to libtool-2.2.6.
1772         * build-aux/config.libpath: Likewise.
1773
1774 2008-09-06  Bruno Haible  <bruno@clisp.org>
1775
1776         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1777         * lib/freadptr.c (freadptr): Likewise.
1778         * lib/freadseek.c (freadptrinc): Likewise.
1779         Reported by Simon Josefsson.
1780
1781 2008-09-06  Bruno Haible  <bruno@clisp.org>
1782
1783         * modules/freadptr (License): Change to LGPLv2+.
1784         * modules/freadseek (License): Likewise.
1785         Suggested by Eric Blake.
1786
1787         * modules/memchr2 (License): Change to LGPLv2+.
1788         Approved by Eric Blake.
1789
1790 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1791             Bruno Haible  <bruno@clisp.org>
1792
1793         Make gnulib-tool work with native 'sed' on AIX.
1794         * gnulib-tool (sed_noop): New variable.
1795         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1796         func_add_or_update, func_create_testdir): Use it to initialize sed
1797         script variables.
1798         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1799
1800 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
1801             Bruno Haible  <bruno@clisp.org>
1802
1803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1804         also works after #include directives.
1805
1806 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
1807
1808         getdate.y: reject an out-of-range timezone value
1809         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1810         the range [-24...+24].  When specified with only one or two digits,
1811         * tests/test-getdate.c: Tests for the fix.
1812         * doc/getdate.texi: Document this change.
1813
1814 2008-09-03  Bruno Haible  <bruno@clisp.org>
1815
1816         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1817
1818 2008-09-02  Simon Josefsson  <simon@josefsson.org>
1819
1820         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
1821         <bruce.korb@gmail.com> with ideas from Ben Pfaff
1822         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1823         Blake <ebb9@byu.net>.
1824
1825         * tests/test-bitrotate.c: Add more test vectors.
1826
1827 2008-09-02  Eric Blake  <ebb9@byu.net>
1828
1829         vasnprintf-posix: handle large precision via %.*d
1830         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1831         when handling it ourselves.
1832         * tests/test-vasnprintf-posix.c (test_function): Add test.
1833         * tests/test-snprintf-posix.h (test_function): Likewise.
1834         * tests/test-sprintf-posix.h (test_function): Likewise.
1835         * tests/test-vasprintf-posix.c (test_function): Likewise.
1836         Reported by Alain Guibert.
1837
1838 2008-09-01  Eric Blake  <ebb9@byu.net>
1839
1840         c-stack: make configure-time check more robust
1841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1842         successful sigaction call.
1843         Reported by Tom G. Christensen.
1844
1845 2008-09-01  Bruno Haible  <bruno@clisp.org>
1846
1847         New module 'findprog-lgpl'.
1848         * modules/findprog-lgpl: New file.
1849         * lib/findprog-lgpl.c: New file.
1850         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1851         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1852         to decide whether to use strdup or xstrdup, concatenated_filename or
1853         xconcatenated_filename.
1854
1855 2008-09-01  Bruno Haible  <bruno@clisp.org>
1856
1857         Split module 'concat-filename' into 'concat-filename' (LGPL) and
1858         'xconcat-filename' (GPL).
1859         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1860         (License): Change to LGPLv2+.
1861         * modules/xconcat-filename: New file.
1862         * lib/concat-filename.h (concatenated_filename): Change specification.
1863         (xconcatenated_filename): New declaration.
1864         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1865         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1866         memory situations.
1867         * lib/xconcat-filename.c: New file.
1868         * NEWS: Mention the change.
1869         * lib/findprog.c: Include concat-filename.h, not filename.h.
1870         (find_in_path): Use xconcatenated_filename instead of
1871         concatenated_filename.
1872         * lib/javacomp.c: Include concat-filename.h, not filename.h.
1873         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1874         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1875         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1876         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1877         instead of concatenated_filename.
1878         * lib/javaexec.c: Include concat-filename.h, not filename.h.
1879         (execute_java_class): Use xconcatenated_filename instead of
1880         concatenated_filename.
1881         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1882         * modules/javacomp (Depends-on): Likewise.
1883         * modules/javaexec (Depends-on): Likewise.
1884
1885 2008-09-01  Bruno Haible  <bruno@clisp.org>
1886
1887         Split module 'filename' into 'filename' and 'concat-filename'.
1888         * modules/filename: Keep only lib/filename.h.
1889         (License): Change to LGPLv2+.
1890         * modules/concat-filename: New file, extracted from modules/filename.
1891         * lib/filename.h (concatenated_filename): Remove declaration.
1892         * lib/concat-filename.h: New file, extracted from lib/filename.h.
1893         * lib/concat-filename.c: Include concat-filename.h.
1894         * NEWS: Mention the change.
1895
1896 2008-09-01  Simon Josefsson  <simon@josefsson.org>
1897
1898         * lib/bitrotate.h (rotl8, rotr8): Add.
1899
1900         * modules/bitrotate (configure.ac): Need
1901         AC_REQUIRE([AC_C_INLINE]).
1902         (Description): Mention stdint.h.  Reported by Bruno Haible
1903         <bruno@clisp.org>.
1904
1905         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
1906         Paolo Bonzini <bonzini@gnu.org>.
1907
1908 2008-08-31  Bruno Haible  <bruno@clisp.org>
1909
1910         Assume Solaris specific bi-arch conventions on Solaris systems.
1911         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1912         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1913         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1914         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1915         like acl_libdirstem.
1916         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1917         acl_libdirstem.
1918         * NEWS: Mention the change.
1919         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1920
1921 2008-08-31  Jim Meyering  <meyering@redhat.com>
1922
1923         * lib/strftime.h: Add comments describing the two added arguments.
1924
1925         remove duplicate #include directives
1926         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1927         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1928
1929 2008-08-31  Bruno Haible  <bruno@clisp.org>
1930
1931         New module 'sigpipe-die'.
1932         * modules/sigpipe-die: New file.
1933         * lib/sigpipe-die.h: New file.
1934         * lib/sigpipe-die.c: New file.
1935         * MODULES.html.sh (Signal handling): Add sigpipe-die.
1936
1937 2008-08-31  Bruno Haible  <bruno@clisp.org>
1938
1939         Don't override previously installed signal handlers.
1940         * lib/fatal-signal.c (saved_sigactions): New variable.
1941         (uninstall_handlers): Reset the signal to the saved handler, not
1942         to SIG_DFL (except when ignored).
1943         (install_handlers): Save the previous handlers.
1944
1945 2008-08-30  Bruno Haible  <bruno@clisp.org>
1946
1947         * gnulib-tool (func_reset_sigpipe): New function.
1948         (func_get_automake_snippet, func_modules_transitive_closure,
1949         func_import): Invoke it before a join command that reads from stdin,
1950         to avoid "echo: write error: Broken pipe" error messages on stderr.
1951         Reported by Sam Steingold <sds@gnu.org>.
1952
1953 2008-08-30  Bruno Haible  <bruno@clisp.org>
1954
1955         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1956         Code copied from m4/open.m4.
1957         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1958         access and the filename ends in a slash. Code copied from lib/open.c.
1959         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1960         * tests/test-fopen.c (main): Check against bug with trailing slash.
1961
1962 2008-08-29  Bruno Haible  <bruno@clisp.org>
1963
1964         Avoid some "gcc -pedantic" warnings.
1965         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1966         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1967         * lib/dirent.in.h: Likewise.
1968         * lib/fcntl.in.h: Likewise.
1969         * lib/float.in.h: Likewise.
1970         * lib/iconv.in.h: Likewise.
1971         * lib/inttypes.in.h: Likewise.
1972         * lib/locale.in.h: Likewise.
1973         * lib/math.in.h: Likewise.
1974         * lib/netinet_in.in.h: Likewise.
1975         * lib/search.in.h: Likewise.
1976         * lib/signal.in.h: Likewise.
1977         * lib/stdarg.in.h: Likewise.
1978         * lib/stdint.in.h: Likewise.
1979         * lib/stdio.in.h: Likewise.
1980         * lib/stdlib.in.h: Likewise.
1981         * lib/string.in.h: Likewise.
1982         * lib/strings.in.h: Likewise.
1983         * lib/sys_select.in.h: Likewise.
1984         * lib/sys_socket.in.h: Likewise.
1985         * lib/sys_stat.in.h: Likewise.
1986         * lib/sys_time.in.h: Likewise.
1987         * lib/sysexits.in.h: Likewise.
1988         * lib/time.in.h: Likewise.
1989         * lib/unistd.in.h: Likewise.
1990         * lib/wchar.in.h: Likewise.
1991         * lib/wctype.in.h: Likewise.
1992         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1993         * modules/fchdir (Makefile.am): Likewise.
1994         * modules/fcntl (Makefile.am): Likewise.
1995         * modules/float (Makefile.am): Likewise.
1996         * modules/iconv_open (Makefile.am): Likewise.
1997         * modules/inttypes (Makefile.am): Likewise.
1998         * modules/locale (Makefile.am): Likewise.
1999         * modules/math (Makefile.am): Likewise.
2000         * modules/netinet_in (Makefile.am): Likewise.
2001         * modules/search (Makefile.am): Likewise.
2002         * modules/signal (Makefile.am): Likewise.
2003         * modules/stdarg (Makefile.am): Likewise.
2004         * modules/stdint (Makefile.am): Likewise.
2005         * modules/stdio (Makefile.am): Likewise.
2006         * modules/stdlib (Makefile.am): Likewise.
2007         * modules/string (Makefile.am): Likewise.
2008         * modules/strings (Makefile.am): Likewise.
2009         * modules/sys_select (Makefile.am): Likewise.
2010         * modules/sys_socket (Makefile.am): Likewise.
2011         * modules/sys_stat (Makefile.am): Likewise.
2012         * modules/sys_time (Makefile.am): Likewise.
2013         * modules/sysexits (Makefile.am): Likewise.
2014         * modules/time (Makefile.am): Likewise.
2015         * modules/unistd (Makefile.am): Likewise.
2016         * modules/wchar (Makefile.am): Likewise.
2017         * modules/wctype (Makefile.am): Likewise.
2018         Reported by Reuben Thomas <rrt@sc3d.org>.
2019
2020 2008-08-29  Bruno Haible  <bruno@clisp.org>
2021
2022         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2023         any more.
2024
2025 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2026
2027         * MODULES.html.sh (Misc): Add bitrotate.
2028
2029         * modules/bitrotate: New file.
2030
2031         * lib/bitrotate.h: New file.
2032
2033         * modules/bitrotate-tests: New file.
2034
2035         * tests/test-bitrotate.c: New file.
2036
2037         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2038         on the bitrotate module.
2039
2040         * lib/arctwo.c: Use new bitrotate module.
2041
2042 2008-08-29  Jim Meyering  <meyering@redhat.com>
2043
2044         bootstrap: merge changes from coreutils
2045         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2046         of copied files.  Remove a kludge, now that this is fixed.
2047         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2048         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2049         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2050
2051 2008-08-29  Bruno Haible  <bruno@clisp.org>
2052
2053         * MODULES.html.sh: Remove --cvs-urls option.
2054
2055 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2056
2057         maint.mk: adjust to file name change
2058         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2059
2060 2008-08-28  Jim Meyering  <meyering@redhat.com>
2061
2062         * modules/getndelim2 (License): Relicense to LGPLv2+.
2063         Approved by Richard Stallman for the version of 1995, and by
2064         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2065
2066 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2067
2068         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2069         dummy if one is not available.  Do not touch them if
2070         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2071         (getc_maybe_unlocked): New.
2072         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2073
2074 2008-08-26  Eric Blake  <ebb9@byu.net>
2075
2076         doc/INSTALL: resync from autoconf
2077         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2078         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2079         moving...
2080         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2081         * INSTALL: Regenerate.
2082         * INSTALL.ISO: New file.
2083         * INSTALL.UTF-8: Likewise.
2084
2085 2008-08-26  Jim Meyering  <meyering@redhat.com>
2086
2087         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2088         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2089         these definitions conditional, so that they may be overridden, too.
2090
2091 2008-08-26  Bruno Haible  <bruno@clisp.org>
2092
2093         Generate INSTALL file variants with prettier quotes.
2094         * doc/Makefile (INSTALL_PRELUDE): New macro.
2095         (INSTALL): Use it.
2096         (INSTALL.ISO, INSTALL.UTF-8): New rules.
2097
2098 2008-08-26  Bruno Haible  <bruno@clisp.org>
2099
2100         Run makeinfo in an English locale.
2101         * doc/Makefile (MAKEINFO): New variable.
2102
2103 2008-08-26  Bruno Haible  <bruno@clisp.org>
2104
2105         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2106         Suggested by Eric Blake.
2107
2108 2008-08-25  Bruno Haible  <bruno@clisp.org>
2109
2110         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2111
2112 2008-08-25  Eric Blake  <ebb9@byu.net>
2113
2114         c-stack: test that stack overflow can be caught
2115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2116         that platform allows handling stack overflow; at least OS/2 EMX
2117         has sigaltstack, but crashes before transferring control to
2118         handler on stack overflow.
2119         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2120         check for HAVE_STACK_OVERFLOW_HANDLING.
2121         Reported by Elbert Pol.
2122
2123 2008-08-25  Bruno Haible  <bruno@clisp.org>
2124
2125         * doc/posix-functions/strftime.texi: Fix description of strftime
2126         module.
2127
2128 2008-08-24  Bruno Haible  <bruno@clisp.org>
2129
2130         * tests/uniwidth/test-uc_width2.c: New file.
2131         * tests/uniwidth/test-uc_width2.sh: New file.
2132         * modules/uniwidth/width-tests (Files): Add the new files.
2133         (TESTS): Add uniwidth/test-uc_width2.sh.
2134         (TESTS_ENVIRONMENT): New variable.
2135         (check_PROGRAMS): Add test-uc_width2.
2136         (test_uc_width2_SOURCES): New variable.
2137
2138         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2139         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2140         not 0x00AB.
2141         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2142
2143 2008-08-22  Eric Blake  <ebb9@byu.net>
2144
2145         test-lock, test-tls: mention why a test is skipped
2146         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2147         skipped.
2148         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2149
2150         count-one-bits: relax license
2151         * modules/count-one-bits (License): Relicense to LGPLv2+.
2152         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2153
2154 2008-08-22  Andreas Schwab  <schwab@suse.de>
2155
2156         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2157         Remove spurious space in assignment.
2158
2159 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2160
2161         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2162         Paul Eggert <eggert@CS.UCLA.EDU>.
2163
2164 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2165
2166         * modules/gettext: Add m4/threadlib.m4.
2167
2168 2008-08-19  Eric Blake  <ebb9@byu.net>
2169
2170         test-c-stack: fix compilation failure on FreeBSD 5.0
2171         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2172         headers before <sys/resource.h>.
2173         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2174         the bug.
2175         Reported by Nelson H. F. Beebe.
2176
2177         strverscmp: migrate from "strverscmp.h" to <string.h>
2178         * modules/string (Makefile.am): Add new hooks.
2179         * modules/strverscmp (Files): Remove strverscmp.h.
2180         (Depends-on): Add string.
2181         (configure.ac): Add indicator.
2182         (Include): Mention new header.
2183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2184         defaults.
2185         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2186         results.
2187         * lib/strverscmp.h: Delete.
2188         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2189         * tests/test-strverscmp.c (includes): Adjust client.
2190         * lib/check-version.c (includes): Likewise.
2191         * NEWS: Document the change.
2192
2193         strverscmp: add unit test
2194         * modules/strverscmp-tests: New file.
2195         * tests/test-strverscmp.c: Likewise.
2196
2197 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2198
2199         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2200         regarding Windows crypto stuff, from Mono.
2201
2202 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2203
2204         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2205         if present, for intel RND.  Return error on failures.
2206
2207 2008-08-18  Ben Pfaff  <blp@gnu.org>
2208
2209         gitlog-to-changelog: give better diagnostic for failed pipe-open
2210         * build-aux/gitlog-to-changelog: Improve error message: suggest
2211         that the version of Git may be too old.
2212
2213 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2214
2215         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2216         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2217
2218 2008-08-18  Bruno Haible  <bruno@clisp.org>
2219
2220         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2221         pthread_in_use().
2222
2223 2008-08-18  Bruno Haible  <bruno@clisp.org>
2224
2225         * lib/glthread/threadlib.c: Include <pthread.h>.
2226
2227 2008-08-18  Bruno Haible  <bruno@clisp.org>
2228
2229         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2230         glthread_recursive_lock_* macros.
2231         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2232         Fix syntax error.
2233
2234 2008-08-18  Bruno Haible  <bruno@clisp.org>
2235
2236         * lib/glthread/thread.c: Avoid forcing a context switch right after
2237         thread creation.
2238
2239 2008-08-17  Bruno Haible  <bruno@clisp.org>
2240
2241         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2242         * lib/glthread/thread.h: Provide Win32 specific implementation.
2243         * modules/thread (Files): Add lib/glthread/thread.c.
2244         (Depends-on): Add lock.
2245         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2246
2247 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2248
2249         New module 'yield'.
2250         * modules/yield: New file.
2251         * lib/glthread/yield.h: New file.
2252         * m4/yield.m4: New file.
2253         * MODULES.html.sh (Multithreading): Add yield.
2254
2255 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2256
2257         New module 'thread'.
2258         * modules/thread: New file.
2259         * lib/glthread/thread.h: New file.
2260         * m4/thread.m4: New file.
2261         * MODULES.html.sh (Multithreading): Add thread.
2262
2263 2008-08-17  Bruno Haible  <bruno@clisp.org>
2264
2265         * lib/glthread/lock.h: Include <stdlib.h> always.
2266         * lib/glthread/tls.h: Likewise.
2267         * lib/glthread/cond.h: Likewise.
2268
2269 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2270
2271         New module 'cond'.
2272         * modules/cond: New file.
2273         * lib/glthread/cond.h: New file.
2274         * lib/glthread/cond.c: New file.
2275         * m4/cond.m4: New file.
2276         * MODULES.html.sh (Multithreading): Add cond.
2277
2278 2008-08-16  Eric Blake  <ebb9@byu.net>
2279
2280         c-stack: fix regression on Irix 5.3 from 2008-06-21
2281         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2282         sa_sigaction...
2283         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2284         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2285         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2286         * modules/signal (Makefile.am): Use the value.
2287         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2288         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2289         * doc/posix-headers/signal.texi (signal.h): Document this
2290         portability issue.
2291         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2292         Reported by Tom G. Christensen.
2293
2294 2008-08-17  Bruno Haible  <bruno@clisp.org>
2295
2296         New module 'threadlib'.
2297         * modules/threadlib: New file.
2298         * lib/glthread/threadlib.c: New file, extracted from
2299         lib/glthread/lock.c.
2300         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2301         functions.
2302         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2303         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2304         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2305         macros.
2306         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2307         (gl_DISABLE_THREADS): Remove macro.
2308         * modules/lock (Files): Remove build-aux/config.rpath.
2309         (Depends-on): Remove havelib. Add threadlib.
2310         (configure.ac-early): Remove section.
2311         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2312         * modules/tls (Depends-on): Remove lock. Add threadlib.
2313         (Link): New section, copied from threadlib.
2314         * MODULES.html.sh (Multithreading): Add threadlib.
2315
2316 2008-08-14  Bruno Haible  <bruno@clisp.org>
2317
2318         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2319         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2320         glthread_rwlock_unlock, glthread_rwlock_destroy,
2321         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2322         glthread_recursive_lock_destroy): Define as macros always.
2323         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2324         glthread_lock_lock.
2325         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2326         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2327         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2328         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2329         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2330         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2331         (glthread_recursive_lock_lock_func): Renamed from
2332         glthread_recursive_lock_lock.
2333         (glthread_recursive_lock_unlock_func): Renamed from
2334         glthread_recursive_lock_unlock.
2335         (glthread_recursive_lock_destroy_func): Renamed from
2336         glthread_recursive_lock_destroy.
2337
2338 2008-08-14  Bruno Haible  <bruno@clisp.org>
2339
2340         * lib/glthread/lock.h: Renamed from lib/lock.h.
2341         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2342         * lib/glthread/tls.h: Renamed from lib/tls.h.
2343         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2344         * lib/fstrcmp.c: Update includes.
2345         * lib/strsignal.c: Update includes.
2346         * modules/lock (Files, Makefile.am): Update.
2347         (Include): Change to "glthread/lock.h".
2348         * modules/tls (Files, Makefile.am): Update.
2349         (Include): Change to "glthread/tls.h".
2350         * tests/test-lock.c: Update includes.
2351         * tests/test-tls.c: Update includes.
2352         * NEWS: Mention the renamed header files.
2353
2354 2008-08-11  Jim Meyering  <meyering@redhat.com>
2355
2356         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2357
2358 2008-08-11  Eric Blake  <ebb9@byu.net>
2359
2360         test-c-stack: avoid C99-ism
2361         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2362         before statement.
2363         Reported by Alain Guibert.
2364
2365 2008-08-10  Jim Meyering  <meyering@redhat.com>
2366
2367         ensure that return value of uinttostr et al are not ignored
2368         * lib/inttostr.h (__GNUC_PREREQ): Define.
2369         (__attribute_warn_unused_result__): Define.
2370         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2371
2372 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2373
2374         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2375         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2376
2377 2008-08-07  Jim Meyering  <meyering@redhat.com>
2378
2379         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2380
2381         * modules/mkstemp (License): Relicense under LGPLv2+.
2382         * modules/tempname (License): Likewise.
2383
2384 2008-08-06  Bruno Haible  <bruno@clisp.org>
2385
2386         * lib/poll.c (poll): Further micro-optimization.
2387
2388 2008-08-06  Jim Meyering  <meyering@redhat.com>
2389
2390         inet_pton.c: use locale-independent tolower
2391         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2392         (inet_pton6): Use c_tolower rather than tolower.
2393         * modules/inet_pton (Depends-on): Add c-ctype.
2394
2395 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2396
2397         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2398         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2399
2400 2008-08-06  Jim Meyering  <meyering@redhat.com>
2401
2402         * modules/inet_pton (License): Relicense under LGPLv2+.
2403
2404 2008-08-03  Bruno Haible  <bruno@clisp.org>
2405
2406         Additional non-aborting API for lock and tls.
2407         * lib/lock.h: Include <errno.h>.
2408         (glthread_lock_init): New macro/function.
2409         (gl_lock_init): Define as wrapper around glthread_lock_init.
2410         (glthread_lock_lock): New macro/function.
2411         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2412         (glthread_lock_unlock): New macro/function.
2413         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2414         (glthread_lock_destroy): New macro/function.
2415         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2416         (glthread_rwlock_init): New macro/function.
2417         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2418         (glthread_rwlock_rdlock): New macro/function.
2419         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2420         (glthread_rwlock_wrlock): New macro/function.
2421         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2422         (glthread_rwlock_unlock): New macro/function.
2423         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2424         (glthread_rwlock_destroy): New macro/function.
2425         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2426         (glthread_recursive_lock_init): New macro/function.
2427         (gl_recursive_lock_init): Define as wrapper around
2428         glthread_recursive_lock_init.
2429         (glthread_recursive_lock_lock): New macro/function.
2430         (gl_recursive_lock_lock): Define as wrapper around
2431         glthread_recursive_lock_lock.
2432         (glthread_recursive_lock_unlock): New macro/function.
2433         (gl_recursive_lock_unlock): Define as wrapper around
2434         glthread_recursive_lock_unlock.
2435         (glthread_recursive_lock_destroy): New macro/function.
2436         (gl_recursive_lock_destroy): Define as wrapper around
2437         glthread_recursive_lock_destroy.
2438         (glthread_once): New macro/function.
2439         (gl_once): Define as wrapper around glthread_once.
2440         Update function declarations.
2441         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2442         glthread_rwlock_init. Return error code.
2443         (glthread_rwlock_rdlock_multithreaded): Renamed from
2444         glthread_rwlock_rdlock. Return error code.
2445         (glthread_rwlock_wrlock_multithreaded): Renamed from
2446         glthread_rwlock_wrlock. Return error code.
2447         (glthread_rwlock_unlock_multithreaded): Renamed from
2448         glthread_rwlock_unlock. Return error code.
2449         (glthread_rwlock_destroy_multithreaded): Renamed from
2450         glthread_rwlock_destroy. Return error code.
2451         (glthread_recursive_lock_init_multithreaded): Renamed from
2452         glthread_recursive_lock_init. Return error code.
2453         (glthread_recursive_lock_lock_multithreaded): Renamed from
2454         glthread_recursive_lock_lock. Return error code.
2455         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2456         glthread_recursive_lock_unlock. Return error code.
2457         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2458         glthread_recursive_lock_destroy. Return error code.
2459         (glthread_once_call): Make static.
2460         (glthread_once_multithreaded): Renamed from glthread_once.
2461         * lib/tls.h: Include <errno.h>.
2462         (glthread_tls_key_init): New macro/function.
2463         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2464         (glthread_tls_set): New macro/function.
2465         (gl_tls_set): Define as wrapper around glthread_tls_set.
2466         (glthread_tls_key_destroy): New macro/function.
2467         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2468         Update function declarations.
2469         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2470         glthread_tls_get.
2471         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2472
2473 2008-08-04  Eric Blake  <ebb9@byu.net>
2474
2475         gnumakefile: use space, not TAB, outside of targets
2476         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2477
2478 2008-08-02  Jim Meyering  <meyering@redhat.com>
2479
2480         getdate.y: avoid locale-dependent date parsing failure
2481         In Turkish locales, getdate would fail to recognize keywords
2482         containing a lowercase "i".  The solution is not to rely on
2483         locale-sensitive case-conversion.
2484         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2485         (lookup_word): Use c_toupper in place of toupper.
2486         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2487         Reported by Vefa Bicakci <bicave@superonline.com> in
2488         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2489         * modules/getdate (Depends-on): Add c-ctype.
2490
2491 2008-08-02  Bruno Haible  <bruno@clisp.org>
2492
2493         * gnulib-tool (func_import): When updating or creating a .gitignore
2494         file, prepend each added line with a slash, and ignore leading slashes
2495         from the existing lines.
2496         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2497
2498 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2499
2500         Portability fix for GNU make 3.79.1.
2501         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2502         versions do not understand.
2503
2504 2008-08-01  Bruno Haible  <bruno@clisp.org>
2505
2506         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2507         * tests/test-isnanf.h (zero): New variable.
2508         (main): Avoid literal -0.0f.
2509         * tests/test-isnand.h (zero): New variable.
2510         (main): Avoid literal -0.0.
2511         * tests/test-isnanl.h (zero): New variable.
2512         (main): Avoid literal -0.0L.
2513         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2514         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2515         -0.0, -0.0L.
2516         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2517         (test_signbitd): Avoid literal -0.0.
2518         (test_signbitl): Avoid literal -0.0L.
2519         * tests/test-ceilf1.c (zero): New variable.
2520         (main): Avoid literal -0.0f.
2521         * tests/test-ceill.c (zero): New variable.
2522         (main): Avoid literal -0.0L.
2523         * tests/test-floorf1.c (zero): New variable.
2524         (main): Avoid literal -0.0f.
2525         * tests/test-floorl.c (zero): New variable.
2526         (main): Avoid literal -0.0L.
2527         * tests/test-roundf1.c (zero): New variable.
2528         (main): Avoid literal -0.0f.
2529         * tests/test-round1.c (zero): New variable.
2530         (main): Avoid literal -0.0.
2531         * tests/test-roundl.c (zero): New variable.
2532         (main): Avoid literal -0.0L.
2533         * tests/test-truncf1.c (zero): New variable.
2534         (main): Avoid literal -0.0f.
2535         * tests/test-trunc1.c (zero): New variable.
2536         (main): Avoid literal -0.0.
2537         * tests/test-truncl.c (zero): New variable.
2538         (main): Avoid literal -0.0L.
2539         * tests/test-frexp.c (zero): New variable.
2540         (main): Avoid literal -0.0.
2541         * tests/test-frexpl.c (zero): New variable.
2542         (main): Avoid literal -0.0L.
2543         * tests/test-ldexpl.c (zero): New variable.
2544         (main): Avoid literal -0.0L.
2545         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2546         (zerod, zerol): New variables.
2547         (test_function): Avoid literals -0.0, -0.0L.
2548         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2549         (zerod, zerol): New variables.
2550         (test_function): Avoid literals -0.0, -0.0L.
2551         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2552         (zerod, zerol): New variables.
2553         (test_function): Avoid literals -0.0, -0.0L.
2554         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2555         (zerod, zerol): New variables.
2556         (test_function): Avoid literals -0.0, -0.0L.
2557         * tests/test-strtod.c (zero): New variable.
2558         (main): Avoid literal -0.0.
2559         Reported by Jonathan C. Patschke <jp@centtech.com>.
2560
2561 2008-07-31  Jim Meyering  <meyering@redhat.com>
2562
2563         sha256.h: correct definition of SHA224_DIGEST_SIZE
2564         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2565         Reported by Paulie Pena IV <paulie4@gmail.com>.
2566         Define as 224 / 8, rather than as a literal.
2567         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2568         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2569         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2570
2571 2008-07-31  Bruno Haible  <bruno@clisp.org>
2572
2573         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2574         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2575         Reported by Jonathan Patschke <jp@centtech.com>.
2576
2577 2008-07-31  Bruno Haible  <bruno@clisp.org>
2578
2579         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2580         Reported by Paolo Bonzini <bonzini@gnu.org>.
2581
2582 2008-07-30  Eric Blake  <ebb9@byu.net>
2583
2584         test-strtod: allow compilation without -lm
2585         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2586         Reported by Dennis Clarke <blastwave@gmail.com>.
2587
2588 2008-07-28  Jim Meyering  <meyering@redhat.com>
2589
2590         bootstrap: work also when there are no .po files in po/
2591         * build-aux/bootstrap (update_po_files): Complete the change
2592         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2593
2594 2008-07-27  Jim Meyering  <meyering@redhat.com>
2595
2596         * users.txt: Add zile.
2597
2598 2008-07-26  Ben Pfaff  <blp@gnu.org>
2599
2600         Add missing dependencies on new m4/exponent[fdl].m4 files.
2601         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2602         * modules/isnand-nolibm: Add m4/exponentd.m4.
2603         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2604         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2605         m4/isnan[fdl].m4, because the macros actually used moved.
2606         Reported by Jim Meyering.
2607
2608 2008-07-14  Ben Pfaff  <blp@gnu.org>
2609
2610         Add isinf module.
2611         * lib/isinf.c: New file.
2612         * lib/math.in.h: Define isinf macro if we have decided to replace
2613         it.
2614         * m4/isinf.m4: New file.
2615         * m4/math_h.m4: Initialize and substitute variables for isinf
2616         module.
2617         * modules/isinf: New file.
2618         * modules/isinf-tests: New file.
2619         * modules/math: Add substitutions for new module.
2620         * tests/test-isinf.c: New file.
2621         * doc/posix-functions/isinf.texi: Mention new module.
2622         * MODULES.html.sh: Mention new module.
2623
2624 2008-07-14  Ben Pfaff  <blp@gnu.org>
2625
2626         Factor out some macros for use by additional modules.
2627         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2628         exponentf.m4.
2629         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2630         exponentd.m4.
2631         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2632         file exponentl.m4.
2633         * m4/exponentf.m4: New file.
2634         * m4/exponentd.m4: New file.
2635         * m4/exponentl.m4: New file.
2636         * modules/isnanf: Use new file m4/exponentf.m4.
2637         * modules/isnand: Use new file m4/exponentd.m4.
2638         * modules/isnanl: Use new file m4/exponentl.m4.
2639
2640 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
2641
2642         mktime.c: normalize tp->tm_isdst value to -1/0/1.
2643         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2644         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2645         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2646
2647         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2648         readlink on platforms without PATH_MAX.
2649
2650 2008-07-21  Eric Blake  <ebb9@byu.net>
2651
2652         Warn, not fail, on stale version.
2653         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2654
2655         Don't allow installation with stale devel version number.
2656         * top/GNUmakefile (_is-install-target): New macro.
2657         (_curr-ver): Forbid installation with stale version number.
2658
2659 2008-07-20  Bruno Haible  <bruno@clisp.org>
2660
2661         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2662         TESTS_ENVIRONMENT.
2663         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2664
2665 2008-07-20  Bruno Haible  <bruno@clisp.org>
2666
2667         * lib/c-stack.h (c_stack_action): Add documentation.
2668         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2669
2670 2008-07-20  Bruno Haible  <bruno@clisp.org>
2671
2672         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2673         * modules/readlink (License): Likewise.
2674
2675 2008-07-17  Eric Blake  <ebb9@byu.net>
2676
2677         * modules/c-stack (Link): Fix typo.
2678
2679         Make c-stack use libsigsegv, when available.
2680         * modules/c-stack (Depends-on): Add libsigsegv.
2681         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2682         needed.
2683         * lib/c-stack.c (SIGSTKSZ): Define fallback.
2684         (segv_handler, overflow_handler, c_stack_action)
2685         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2686         implementation when libsigsegv is available, but only when using
2687         the library is necessary.
2688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2689         comment, explaining why XSI check fails on Linux.
2690         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2691         * tests/test-c-stack2.sh: Tweak skip message.
2692         * NEWS: Document new link-time requirements.
2693
2694 2008-07-16  Eric Blake  <ebb9@byu.net>
2695
2696         c-stack: Expose false positives when not using libsigsegv.
2697         * modules/c-stack-tests (Files): Expand test.
2698         * tests/test-c-stack.c (main): Add means to conditionally trigger
2699         non-overflow SIGSEGV.
2700         * tests/test-c-stack2.sh: New file.
2701
2702 2008-07-14  Bruno Haible  <bruno@clisp.org>
2703
2704         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2705         Reported by Eric Blake.
2706
2707 2008-07-14  Sam Steingold  <sds@gnu.org>
2708             Bruno Haible  <bruno@clisp.org>
2709
2710         New module libsigsegv.
2711         * modules/libsigsegv: New file.
2712         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2713         modifications.
2714         * MODULES.html.sh (Signal handling): New section.
2715
2716 2008-07-14  Bruno Haible  <bruno@clisp.org>
2717
2718         * modules/unictype/ctype-* (Description): Add the word "function".
2719         Improves the resulting doc in MODULES.html.
2720
2721 2008-07-12  Ben Pfaff  <blp@gnu.org>
2722
2723         Add longlong module.
2724         * modules/longlong: New file.
2725
2726 2008-07-12  Bruno Haible  <bruno@clisp.org>
2727
2728         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2729         to empty.
2730
2731 2008-07-10  Ben Pfaff  <blp@gnu.org>
2732
2733         Add isnan module.
2734         * doc/posix-functions/isnan.texi: Mention new module.
2735         * lib/math.in.h: Define isnan macro if we have decided to replace
2736         it.
2737         * m4/isnan.m4: New file.
2738         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2739         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2740         also.
2741         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2742         redundancy.
2743         * m4/math_h.m4: Initialize and substitute variables for isnan
2744         module.
2745         * modules/isnan: New file.
2746         * modules/isnan-tests: New file.
2747         * modules/math: Add substitutions for new module.
2748         * tests/test-isnan.c: New file.
2749         * MODULES.html.sh: Mention new module.
2750
2751 2008-07-10  Ben Pfaff  <blp@gnu.org>
2752
2753         Add isnanf module.
2754         * lib/isnanf.m4: New file.
2755         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2756         (gl_HAVE_ISNANF_IN_LIBM): New macro.
2757         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2758         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2759         * modules/isnanf: New file.
2760         * modules/isnanf-tests: New file.
2761         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2762         files.
2763         * tests/test-isnanf-nolibm.c: factored most of its contents into
2764         new file tests/test-isnanf.h.
2765         * tests/test-isnanf.h: New file.
2766         * tests/test-isnanf.c: New file.
2767         * MODULES.html.sh: Mention new module.
2768         * doc/glibc-functions/isnanf.texi: Mention new module.
2769
2770 2008-07-10  Ben Pfaff  <blp@gnu.org>
2771
2772         Add isnand module.
2773         * lib/isnand.h: New file.
2774         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2775         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2776         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2777         functionality also.
2778         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2779         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2780         (gl_HAVE_ISNAND_IN_LIBM): New macro.
2781         * modules/isnand: New file.
2782         * modules/isnand-tests: New file.
2783         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2784         files.
2785         * tests/test-isnand-nolibm.c: factored most of its contents into
2786         new file tests/test-isnand.h.
2787         * tests/test-isnand.h: New file.
2788         * tests/test-isnand.c: New file.
2789         * MODULES.html.sh: Mention new module.
2790
2791 2008-07-10  Ben Pfaff  <blp@gnu.org>
2792
2793         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2794         * lib/isnand.h: Rename lib/isnand-nolibm.h.
2795         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2796         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2797         * modules/isnanf-nolibm: Update references to renamed files.
2798         * modules/isnand-nolibm: Likewise.
2799         * modules/isnanf-nolibm-tests: Likewise.
2800         * modules/isnand-nolibm-tests: Likewise.
2801         * lib/frexp.c: Likewise.
2802         * lib/isfinite.c: Likewise.
2803         * lib/signbitd.c: Likewise.
2804         * lib/signbitf.c: Likewise.
2805         * lib/vasnprintf.c: Likewise.
2806         * tests/test-ceilf1.c: Likewise.
2807         * tests/test-ceilf2.c: Likewise.
2808         * tests/test-floorf1.c: Likewise.
2809         * tests/test-floorf2.c: Likewise.
2810         * tests/test-frexp.c: Likewise.
2811         * tests/test-round1.c: Likewise.
2812         * tests/test-round2.c: Likewise.
2813         * tests/test-roundf1.c: Likewise.
2814         * tests/test-strtod.c: Likewise.
2815         * tests/test-trunc1.c: Likewise.
2816         * tests/test-trunc2.c: Likewise.
2817         * tests/test-truncf1.c: Likewise.
2818         * tests/test-truncf2.c: Likewise.
2819         * NEWS: Mention the renamed header files.
2820
2821 2008-07-11  Jim Meyering  <meyering@redhat.com>
2822
2823         vc-list-files: make the last-resort awk code more portable
2824         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2825         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2826         does not support it.
2827
2828 2008-07-10  Eric Blake  <ebb9@byu.net>
2829
2830         Work with tar's bootstrap.
2831         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2832         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2833         an m4 comment.
2834
2835 2008-07-09  Jim Meyering  <meyering@redhat.com>
2836
2837         posix-shell.m4: fix typo that made this test malfunction
2838         * m4/posix-shell.m4: Remove capitalization in variable name.
2839
2840 2008-07-08  Bruno Haible  <bruno@clisp.org>
2841
2842         * m4/onceonly.m4: Update comments.
2843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2844
2845 2008-07-04  Jim Meyering  <meyering@redhat.com>
2846
2847         * users.txt: Add vc-dwim.
2848         (bison, coreutils): Use the gitweb URL.
2849
2850 2008-07-03  Jim Meyering  <meyering@redhat.com>
2851
2852         * users.txt: Add libffcall.  From Sam Steingold.
2853
2854 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
2855
2856         getdate.y: do not ignore TZ with relative day, month or year offset
2857         * lib/getdate.y (get_date): Move the tz-handling block to follow the
2858         relative-date-handling, since otherwise, the latter would clobber the
2859         sole output (an updated Start value) of the tz-handling block.
2860         * tests/test-getdate.c: Tests for the fix
2861
2862 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2863
2864         Recognize 'foo_LIBRARIES += libgnu.a'.
2865         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2866         makefile snippet has already specified an installation location,
2867         also using '+='.
2868
2869 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
2870
2871         getdate.y: factor out common actions
2872         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2873         Use them in place of open-coded actions.
2874
2875 2008-07-01  Simon Josefsson  <simon@josefsson.org>
2876
2877         Add self-test for getdate module.
2878         * modules/getdate-tests: New file.
2879         * tests/test-getdate.c: New file.
2880
2881 2008-06-29  Bruno Haible  <bruno@clisp.org>
2882
2883         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2884         .gitignore.
2885         Reported by Sylvain Beucler <beuc@beuc.net>.
2886
2887 2008-06-29  Bruno Haible  <bruno@clisp.org>
2888
2889         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2890         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2891
2892 2008-06-29  Bruno Haible  <bruno@clisp.org>
2893
2894         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2895         EXTRA_DIST.
2896         Reported by Sylvain Beucler <beuc@beuc.net>.
2897
2898 2008-06-26  Jim Meyering  <meyering@redhat.com>
2899
2900         make several modules depend on the "open" module
2901         This provides slightly increased consistency when opening-for-write
2902         the name of a non-directory spelled with a trailing slash.
2903         * modules/chdir-safer: Likewise.
2904         * modules/chown: Likewise.
2905         * modules/clean-temp: Likewise.
2906         * modules/copy-file: Likewise.
2907         * modules/fchdir: Likewise.
2908         * modules/fcntl-safer: Likewise.
2909         * modules/pipe: Likewise.
2910         * modules/utime: Likewise.
2911         Prompted by Eric Blake and Bruno Haible.
2912
2913 2008-06-24  Andreas Schwab  <schwab@suse.de>
2914
2915         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2916         literals can be used as initializers for global variables.
2917
2918 2008-06-23  Eric Blake  <ebb9@byu.net>
2919
2920         Make gnulib-cache.m4 easier to diff.
2921         * gnulib-tool (func_import): Allow newlines when reading cached
2922         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2923
2924 2008-06-23  Bruno Haible  <bruno@clisp.org>
2925
2926         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2927         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2928         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2929         m4/signalblocking.m4.
2930         (gl_PREREQ_SIGACTION): Don't invoke it.
2931         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2932         gl_PREREQ_SIG_HANDLER_H.
2933         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2934         Don't check for sigaction here.
2935
2936 2008-06-23  Bruno Haible  <bruno@clisp.org>
2937
2938         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2939         (install_handlers): Don't set the SA_RESETHAND flag.
2940
2941 2008-06-23  Bruno Haible  <bruno@clisp.org>
2942
2943         * m4/sigaction.m4: Comment fixes.
2944         * lib/signal.in.h: Likewise.
2945
2946 2008-06-23  Eric Blake  <ebb9@byu.net>
2947
2948         Fix typo.
2949         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2950
2951         Avoid SA_ namespace.
2952         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2953         Reported by Ralf Wildenhues.
2954
2955         Avoid test failure due to SA_RESTORER.
2956         * tests/test-sigaction.c (SA_MASK): New macro.
2957         (main): Avoid failing due to extension flags being set.
2958         Reported by Jim Meyering.
2959
2960         Revert use of sig-handler.h in sigprocmask.c.
2961         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2962         it requires the existence of struct sigaction.
2963         * lib/sigprocmask.c (handler_t): Restore typedef.
2964         (rpl_signal, old_handlers): Use local type.
2965
2966 2008-06-22  Bruno Haible  <bruno@clisp.org>
2967
2968         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2969         conditionally.
2970         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2971
2972 2008-06-22  Bruno Haible  <bruno@clisp.org>
2973
2974         * doc/posix-functions/siginterrupt.texi: Move note.
2975
2976         * lib/signal.in.h (SA_RESTART): New macro.
2977         * lib/sigaction.c: Update comment.
2978
2979         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2980
2981         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2982         (gl_PREREQ_SIGPROCMASK): Invoke it.
2983         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2984
2985         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2986
2987         * lib/sigprocmask.c: Update a comment.
2988
2989 2008-06-21  Eric Blake  <ebb9@byu.net>
2990
2991         Use sigaction module rather than signal().
2992         * modules/c-stack (Depends-on): Add sigaction.
2993         * modules/fatal-signal (Depends-on): Likewise.
2994         * modules/nanosleep (Depends-on): Likewise.
2995         * modules/sigprocmask (Files): Add sig-handler.h.
2996         * modules/sigaction (Files): Likewise.
2997         * lib/sig-handler.h (get_handler): New file, suggested by Paul
2998         Eggert.
2999         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3000         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3001         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3002         (init_fatal_signals): Likewise.
3003         * lib/nanosleep.c (rpl_nanosleep): Likewise.
3004         (siginterrupt): Delete fallback.
3005         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3006         instead.
3007         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3008         siginterrupt.
3009
3010         New module sigaction, for mingw.
3011         * modules/sigaction: New module...
3012         * modules/sigaction-tests: ...and its test.
3013         * m4/sigaction.m4: New file.
3014         * lib/sigaction.c: Likewise.
3015         * tests/test-sigaction.c: Likewise.
3016         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3017         * modules/signal (Makefile.am): Likewise.
3018         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3019         needed.
3020         * doc/posix-headers/signal.texi (signal.h): Mention provided
3021         types.
3022         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3023         that sigaction is preferable.
3024         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3025         module.
3026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3027         sigaction.
3028
3029         Improve robustness of sigprocmask by overriding signal.
3030         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3031         is in use.
3032         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3033         (SIGKILL, SIGSTOP): Provide fallbacks.
3034         (rpl_signal): Implement.
3035         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3036         signal can be called inside handlers.
3037
3038         Fix nanosleep module on mingw.
3039         * modules/nanosleep (Depends-on): Add sys_select.
3040         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3041
3042         Fix licensing of sigprocmask.
3043         * modules/raise (License): Relicense as LGPL.
3044
3045 2008-06-21  Bruno Haible  <bruno@clisp.org>
3046
3047         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3048         result if it contains question marks.
3049         Reported by Michael Geng <linux@michaelgeng.de>.
3050
3051 2008-06-19  Bruno Haible  <bruno@clisp.org>
3052
3053         Fix CVS-ism.
3054         * doc/gnulib.texi: Include updated-stamp.texi.
3055         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3056         (updated-stamp.texi): New rule.
3057         (gnulib.info): Depend on it.
3058         * doc/.gitignore: Add updated-stamp.texi.
3059         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3060
3061 2008-06-19  Bruno Haible  <bruno@clisp.org>
3062
3063         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3064         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3065
3066 2008-06-19  Eric Blake  <ebb9@byu.net>
3067
3068         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3069         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3070         Reported by Stepan Kasal.
3071
3072 2008-06-18  Bruno Haible  <bruno@clisp.org>
3073
3074         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3075         Reported by Eric Blake.
3076
3077 2008-06-18  Eric Blake  <ebb9@byu.net>
3078
3079         Work around cygwin 1.5.25 strsignal bug.
3080         * tests/test-strsignal.c: Allow for const char *.
3081         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3082
3083 2008-06-18  Simon Josefsson  <simon@josefsson.org>
3084
3085         * users.txt: Update URL to article and add author/date
3086         information.
3087
3088 2008-06-17  Bruno Haible  <bruno@clisp.org>
3089
3090         New macro gl_DISABLE_THREADS.
3091         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3092         if the user did not pass --enable-threads or --disable-threads option.
3093         (gl_DISABLE_THREADS): New macro.
3094         Reported by Eric Blake <ebb9@byu.net>.
3095
3096 2008-06-17  Bruno Haible  <bruno@clisp.org>
3097
3098         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3099         when the macro ignores it.
3100         Based on a patch by Eric Blake <ebb9@byu.net>.
3101
3102 2008-06-17  Bruno Haible  <bruno@clisp.org>
3103
3104         * modules/tls (License): Change to LGPLv2+.
3105         Reported by Eric Blake.
3106
3107 2008-06-17  Eric Blake  <ebb9@byu.net>
3108
3109         Simplify c-stack prerequisites.
3110         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3112         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3113         check.
3114         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3115         <sys/resource.h>.
3116
3117         Move c-stack test into testsuite.
3118         * modules/c-stack-tests: New file.
3119         * lib/c-stack.c [DEBUG]: Move test program...
3120         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3121         fail test if sigaltstack is lacking.
3122         * tests/test-c-stack.sh: New driver file.
3123
3124 2008-06-16  Eric Blake  <ebb9@byu.net>
3125
3126         Use raise module consistently.
3127         * modules/fatal-signal (Depends-on): Add raise.
3128         * modules/sigprocmask (Depends-on): Likewise.
3129         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3130         * lib/sigprocmask.c (sigprocmask): Likewise.
3131         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3132         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3133
3134         Fix compliance bug in sigpending.
3135         * lib/sigprocmask.c (sigpending): Return pending array via
3136         parameter, not return value.
3137
3138 2008-06-14  Eric Blake  <ebb9@byu.net>
3139
3140         Improve obstack-printf test code.
3141         * tests/test-obstack-printf.c (test_function): Fix comment, and
3142         simplify usage of obstack_* in macros.  Add a test for coverage.
3143         Reported by Bruno Haible.
3144
3145 2008-06-14  Bruno Haible  <bruno@clisp.org>
3146
3147         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3148         array size as a constant, not as a const variable.
3149         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3150         AC_USE_SYSTEM_EXTENSIONS.
3151         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3152         Test whether the obstack_printf function actually exists.
3153         * modules/obstack-printf (Depends-on): Add extensions.
3154         (Include): Remove obstack.h.
3155         * modules/obstack-printf-posix (Depends-on): Add extensions.
3156         (Include): Remove obstack.h.
3157
3158 2008-06-13  Eric Blake  <ebb9@byu.net>
3159
3160         Add obstack-printf and obstack-printf-posix modules.
3161         * modules/obstack-printf: New file.
3162         * modules/obstack-printf-posix: Likewise.
3163         * MODULES.html.sh (Misc): Mention them.
3164         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3165         Likewise.
3166         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3167         Likewise.
3168         * modules/stdio (Makefile.am): Accomodate new modules.
3169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3170         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3171         Declare.
3172         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3173         functions.
3174         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3175         (gl_REPLACE_OBSTACK_PRINTF): New macros
3176         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3177         * tests/test-obstack-printf.c: New file.
3178         * modules/obstack-printf-tests: Likewise.
3179         * modules/obstack-printf-posix-tests: Likewise.
3180
3181 2008-06-11  Bruno Haible  <bruno@clisp.org>
3182
3183         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3184         * lib/open.c: Include errno.h.
3185         (open): Fail when attempting to write to a file that has a trailing
3186         slash.
3187         * tests/test-open.c (main): Test against trailing slash bug.
3188         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3189
3190 2008-06-10  Bruno Haible  <bruno@clisp.org>
3191
3192         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3193         for $? to work inside the trap command, with various /bin/sh-s.
3194         * tests/test-vc-list-files-cvs.sh: Likewise.
3195
3196 2008-06-10  Bruno Haible  <bruno@clisp.org>
3197
3198         * lib/acl-internal.h: Don't include gettext.h here.
3199         * lib/set-mode-acl.c: Include gettext.h here.
3200         * lib/copy-acl.c: Likewise.
3201
3202 2008-06-10  Bruno Haible  <bruno@clisp.org>
3203
3204         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3205         * lib/wait-process.c (wait_subprocess): Likewise.
3206         * lib/execute.h (execute): Add termsigp argument.
3207         * lib/execute.c (execute): Likewise.
3208         * lib/csharpcomp.c (compile_csharp_using_pnet,
3209         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3210         * lib/csharpexec.c (execute_csharp_using_pnet,
3211         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3212         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3213         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3214         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3215         is_jikes_present): Update.
3216         * lib/javaexec.c (execute_java_class): Update.
3217         * lib/javaversion.c (execute_and_read_line): Update.
3218         * NEWS: Document the changes.
3219         Reported by Eric Blake.
3220
3221 2008-06-10  Eric Blake  <ebb9@byu.net>
3222
3223         Add missing include.
3224         * tests/test-strstr.c (includes): Add <signal.h>.
3225         * tests/test-strcasestr.c (includes): Likewise.
3226         * tests/test-memmem.c (includes): Likewise.
3227
3228 2008-06-10  Bruno Haible  <bruno@clisp.org>
3229
3230         * lib/wait-process.c (wait_subprocess): Add an assertion.
3231
3232 2008-06-10  Bruno Haible  <bruno@clisp.org>
3233
3234         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3235
3236 2008-06-10  Bruno Haible  <bruno@clisp.org>
3237
3238         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3239         using alarm().
3240         * tests/test-strcasestr.c (main): Likewise.
3241         * tests/test-strstr.c (main): Likewise.
3242
3243 2008-06-09  Bruno Haible  <bruno@clisp.org>
3244
3245         Work around the Solaris 10 ACE ACLs ABI change.
3246         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3247         declare if ACL_NO_TRIVIAL is present.
3248         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3249         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3250         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3251         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3252         define if ACL_NO_TRIVIAL is present.
3253         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3254         and use the current ABI.
3255         (file_has_acl): Use same #if condition as elsewhere.
3256         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3257         in use, and use the current ABI.
3258         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3259         Reported by Jim Meyering.
3260
3261 2008-06-09  Eric Blake  <ebb9@byu.net>
3262
3263         Work around environments that (stupidly) ignore SIGALRM.
3264         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3265         before using alarm().
3266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3268         Reported by Ian Beckwith <ianb@erislabs.net>.
3269
3270         Produce autobuild blurb earlier in log.
3271         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3272
3273 2008-06-09  Jim Meyering  <meyering@redhat.com>
3274         and Ondřej Vašík  <ovasik@redhat.com>
3275
3276         utimens.c: correct kernel bug work-around
3277         Ondřej Vašík found that the invalid return value of 280 indicates
3278         failure, not success, and the kernel bug we're trying to work
3279         around affects not just the utimensat call, but also the fallback
3280         futimens call.
3281         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3282         not success.
3283         [HAVE_FUTIMENS]: Use the same work-around, here.
3284
3285 2008-06-09  Jim Meyering  <meyering@redhat.com>
3286
3287         add more guards around definition of ACE_-related code
3288         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3289         ALLOW and ACE_OWNER are also defined.
3290
3291 2008-06-08  Bruno Haible  <bruno@clisp.org>
3292
3293         * lib/acl-internal.h: Add me as co-author.
3294         * lib/file-has-acl.c: Likewise.
3295         * lib/set-mode-acl.c: Likewise.
3296         * lib/copy-acl.c: Likewise.
3297
3298 2008-06-08  Bruno Haible  <bruno@clisp.org>
3299
3300         Add support for AIX ACLs.
3301         * lib/acl-internal.h (acl_nontrivial): New declaration.
3302         * lib/file-has-acl.c (acl_nontrivial): New function.
3303         (file_has_acl): Add implementation using AIX 4 ACL API.
3304         * lib/set-mode-acl.c (qset_acl): Likewise.
3305         * lib/copy-acl.c (qcopy_acl): Likewise.
3306
3307 2008-06-08  Bruno Haible  <bruno@clisp.org>
3308
3309         Add support for HP-UX ACLs.
3310         * lib/acl-internal.h (acl_nontrivial): New declaration.
3311         * lib/file-has-acl.c (acl_nontrivial): New function.
3312         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3313         * lib/set-mode-acl.c (qset_acl): Likewise.
3314         * lib/copy-acl.c (qcopy_acl): Likewise.
3315
3316 2008-06-08  Bruno Haible  <bruno@clisp.org>
3317
3318         Add support for Cygwin ACLs.
3319         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3320         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3321         the chmod_or_fchmod call.
3322         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3323
3324 2008-06-08  Bruno Haible  <bruno@clisp.org>
3325
3326         Fix bug with setuid modes in Solaris 10+ code.
3327         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3328         succeeded, when the mode contains some special bits.
3329
3330 2008-06-08  Bruno Haible  <bruno@clisp.org>
3331
3332         Add support for Solaris 7..10 ACLs.
3333         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3334         declarations.
3335         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3336         functions.
3337         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3338         * lib/set-mode-acl.c (qset_acl): Likewise.
3339         * lib/copy-acl.c (qcopy_acl): Likewise.
3340
3341 2008-06-08  Bruno Haible  <bruno@clisp.org>
3342
3343         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3344         declaration.
3345         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3346         (acl_access_nontrivial): Remove MacOS X case.
3347         (file_has_acl): Use acl_extended_nontrivial.
3348         * lib/copy-acl.c (qcopy_acl): Likewise.
3349
3350 2008-06-08  Bruno Haible  <bruno@clisp.org>
3351
3352         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3353
3354 2008-06-08  Jim Meyering  <meyering@redhat.com>
3355
3356         * modules/acl (Maintainer): Add Bruno Haible.
3357
3358 2008-06-07  Bruno Haible  <bruno@clisp.org>
3359
3360         Improve support for Tru64 ACLs.
3361         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3362         ACL on OSF/1.
3363
3364 2008-06-07  Bruno Haible  <bruno@clisp.org>
3365
3366         Add support for MacOS X ACLs.
3367         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3368         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3369         * lib/set-mode-acl.c (qset_acl): Likewise.
3370         * lib/copy-acl.c (qcopy_acl): Likewise.
3371
3372 2008-06-07  Bruno Haible  <bruno@clisp.org>
3373
3374         Fix memory leak introduced on 2008-05-22.
3375         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3376         use.
3377
3378 2008-06-07  Bruno Haible  <bruno@clisp.org>
3379
3380         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3381         to construct an empty ACL.
3382
3383 2008-06-07  Bruno Haible  <bruno@clisp.org>
3384
3385         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3386         precisely.
3387         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3388
3389 2008-06-07  Bruno Haible  <bruno@clisp.org>
3390
3391         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3392         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3393
3394 2008-06-07  Bruno Haible  <bruno@clisp.org>
3395
3396         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3397         regardless of POSIX.
3398         * doc/posix-functions/_longjmp.texi: Likewise.
3399         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3400         SystemV platform in this case.
3401
3402 2008-06-06  Eric Blake  <ebb9@byu.net>
3403
3404         Document abort() bugs.
3405         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3406
3407         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3408         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3409         sigsetjmp.
3410         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3411         siglongjmp, but only as a macro.
3412         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3413         is obsolete.
3414         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3415
3416         Tweak documentation to cover cygwin argz bugs.
3417         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3418         argz bug fix; no code change needed since no cygwin releases
3419         occurred between the last fix and the bug being tested.
3420         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3421         module and recently fixed cygwin bugs.
3422         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3423         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3424         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3425         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3426         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3427         Likewise.
3428         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3429         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3430         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3431         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3432         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3433         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3434         Likewise.
3435
3436         Avoid gcc warning on cygwin.
3437         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3438         !ACL_NO_TRIVIAL]: Avoid unused variable.
3439
3440 2008-06-05  Eric Blake  <ebb9@byu.net>
3441
3442         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3443         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3444         git-version-gen fails to come up with a version.
3445         Reported by Simon Josefsson.
3446
3447 2008-06-05  Jim Meyering  <meyering@redhat.com>
3448             Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         utimens.c: work around a probable Linux kernel bug
3451         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3452         appears to be a kernel bug that causes utimensat to return 280
3453         instead of 0, indicating success.
3454
3455 2008-06-04  Bruno Haible  <bruno@clisp.org>
3456
3457         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3458         2008-06-01 commit.
3459
3460 2008-06-04  Bruno Haible  <bruno@clisp.org>
3461
3462         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3463         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3464         (file_has_acl): Use it. Save errno afterwards.
3465         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3466
3467 2008-06-03  Bruno Haible  <bruno@clisp.org>
3468
3469         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3470         draft code. Simplify #ifs.
3471         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3472         Put Solaris code after POSIX-draft code. Fix comments regarding
3473         Solaris 10, HP-UX. Mention Cygwin.
3474         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3475
3476 2008-06-03  Eric Blake  <ebb9@byu.net>
3477
3478         Provide fallback for older kernels.
3479         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3480         Provide runtime fallback if kernel lacks support.
3481         Reported by Mike Frysinger.
3482
3483 2008-06-02  Bruno Haible  <bruno@clisp.org>
3484
3485         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3486         it exists.
3487
3488 2008-06-02  Bruno Haible  <bruno@clisp.org>
3489
3490         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3491         * lib/copy-acl.c (qcopy_acl): Update comment.
3492
3493 2008-06-02  Bruno Haible  <bruno@clisp.org>
3494
3495         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3496         like ACL APIs.
3497
3498 2008-06-02  Bruno Haible  <bruno@clisp.org>
3499
3500         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3501         * tests/test-set-mode-acl.sh: Likewise.
3502         * tests/test-copy-acl.sh: Likewise.
3503         * tests/test-copy-file.sh: Likewise.
3504
3505 2008-06-02  Bruno Haible  <bruno@clisp.org>
3506
3507         * tests/test-file-has-acl.sh: Remove unused code.
3508
3509 2008-06-01  Bruno Haible  <bruno@clisp.org>
3510
3511         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3512         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3513         messages.
3514         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3515
3516 2008-06-01  Bruno Haible  <bruno@clisp.org>
3517
3518         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3519         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3520         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3521         APIs.
3522         * modules/acl-tests (configure.ac): Remove tests now contained in
3523         m4/acl.m4.
3524
3525 2008-06-02  Jim Meyering  <meyering@redhat.com>
3526
3527         announce-gen: use a better key-server host name
3528         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3529         it may be more consistently reliable.  Suggested by Werner Koch
3530         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3531
3532 2008-06-01  Bruno Haible  <bruno@clisp.org>
3533
3534         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3535         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3536
3537 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3538
3539         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3540
3541 2008-06-01  Bruno Haible  <bruno@clisp.org>
3542
3543         New ACL tests.
3544         * tests/test-file-has-acl.sh: New file.
3545         * tests/test-file-has-acl.c: New file.
3546         * tests/test-set-mode-acl.sh: New file.
3547         * tests/test-set-mode-acl.c: New file.
3548         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3549         * tests/test-copy-acl.c: New file.
3550         * modules/acl-tests: New file, based on modules/copy-file-tests.
3551         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3552         (Depends-on): Add acl-tests.
3553         (configure.ac): Remove checks.
3554         (Makefile.am): Don't create test-sameacls program here any more.
3555
3556 2008-06-01  Bruno Haible  <bruno@clisp.org>
3557
3558         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3559         * tests/test-sameacls.c: Include progname.h.
3560         (main): Invoke set_program_name. Portability fixes for MacOS X,
3561         Solaris, HP-UX.
3562
3563 2008-06-01  Bruno Haible  <bruno@clisp.org>
3564
3565         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3566         function.
3567         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3568
3569 2008-06-01  Bruno Haible  <bruno@clisp.org>
3570
3571         * modules/rpmatch (Depends-on): Add strdup.
3572
3573 2008-06-01  Bruno Haible  <bruno@clisp.org>
3574
3575         * lib/pipe.c: Include unistd-safer.h.
3576         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3577         * modules/pipe (Depends-on): Add unistd-safer.
3578
3579 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3580
3581         * modules/autobuild (configure.ac): Call AB_INIT.
3582
3583 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3584
3585         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3586         Suggested by Bruno Haible <bruno@clisp.org>.
3587
3588 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3589
3590         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3591         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3592         <bruno@clisp.org>.
3593
3594 2008-05-29  Eric Blake  <ebb9@byu.net>
3595
3596         Prefer new POSIX 200x interfaces over futimesat.
3597         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3598         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3599         when available.
3600         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3601
3602 2008-05-28  Bruno Haible  <bruno@clisp.org>
3603
3604         * modules/stpcpy (License): Change to LGPLv2+.
3605         Requested by David Lutterkort <dlutter@redhat.com>.
3606
3607 2008-05-27  Bruno Haible  <bruno@clisp.org>
3608
3609         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3610         current mingw.
3611         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3612
3613 2008-05-27  Bruno Haible  <bruno@clisp.org>
3614
3615         * modules/iconv_open (Link): New section, from module 'iconv'.
3616         * modules/striconv (Link): Likewise.
3617         * modules/striconveh (Link): Likewise.
3618         * modules/xstriconv (Link): Likewise.
3619         * modules/unicodeio (Link): Likewise.
3620         * modules/propername (Link): Likewise.
3621         Reported by Jim Meyering.
3622
3623 2008-05-26  Jim Meyering  <meyering@redhat.com>
3624
3625         sha256: do not artificially restrict buffer length to be < 2^32
3626         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3627         uint32_t to size_t.
3628         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3629         to match.
3630
3631         avoid unaligned access errors, e.g., on sparc
3632         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3633         direct access through a possibly-unaligned uint64* pointer.
3634         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3635         direct access through a possibly-unaligned uint32* pointer.
3636         Prompted by this patch from Tom "spot" Callaway:
3637         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3638
3639         sha512.c: fix typo in comment
3640         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3641
3642 2008-05-25  Bruno Haible  <bruno@clisp.org>
3643
3644         * lib/set-mode-acl.c: Renamed from lib/acl.c.
3645         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3646         (Makefile.am): Update lib_SOURCES.
3647
3648 2008-05-25  Bruno Haible  <bruno@clisp.org>
3649
3650         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3651
3652 2008-05-25  Jim Meyering  <meyering@redhat.com>
3653
3654         useless-if-before-free: freed expr may have white-space differences
3655         * build-aux/useless-if-before-free: Recognize cases in which the
3656         freed expression differs from the tested one in embedded white
3657         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3658         $1 was used, so we can't make any regexp shy.  Improved tests now
3659         detect this.
3660
3661         useless-if-before-free: accept white space in the expression.
3662         * build-aux/useless-if-before-free: For now, any white space
3663         in the expression must be identical in the free argument.
3664
3665         useless-if-before-free: efficiency tweak
3666         * build-aux/useless-if-before-free: Make the expression-matching
3667         regexp "shy".
3668         Make the *outer* regexp shy, not the expr-matching one.
3669
3670         update code-in-comment to accept cast of free arg
3671         * build-aux/useless-if-before-free: Update regexp.
3672
3673 2008-05-25  Bruno Haible  <bruno@clisp.org>
3674
3675         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3676         * modules/copy-file-tests (Files, Makefile.am): Update.
3677         * tests/test-copy-file.c (func_test_copy): Update.
3678
3679 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
3680
3681         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3682
3683 2008-05-23  Bruno Haible  <bruno@clisp.org>
3684
3685         Improve support for ACLs on OSF/1.
3686         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3687         Remove fallback for unknown flavors of ACLs.
3688
3689 2008-05-22  Bruno Haible  <bruno@clisp.org>
3690
3691         Add support for ACLs on OSF/1.
3692         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3693         replacements.
3694         (acl_free_text): New macro fallback.
3695         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3696         acl_free.
3697         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3698         acl_free_text function. Require AC_C_INLINE.
3699
3700 2008-05-22  Bruno Haible  <bruno@clisp.org>
3701
3702         Make copy_acl work on MacOS X 10.5.
3703         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3704         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3705         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3706         If MODE_INSIDE_ACL, don't assume that every system has the same text
3707         representation for ACLs as FreeBSD.
3708         * lib/copy-acl.c (copy_acl): Add support for platforms with
3709         !MODE_INSIDE_ACL.
3710         * lib/file-has-acl.c (file_has_acl): Likewise.
3711         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3712         FreeBSD, MacOS X, or IRIX, respectively.
3713
3714 2008-05-22  Bruno Haible  <bruno@clisp.org>
3715
3716         * lib/acl.h: Don't include <sys/acl.h>.
3717         (GETACLCNT): Move fallback to lib/acl-internal.h.
3718         * lib/acl-internal.h: Include <sys/acl.h> here.
3719         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3720
3721 2008-05-22  Bruno Haible  <bruno@clisp.org>
3722
3723         Split off copy_acl function to separate file.
3724         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3725         * lib/acl.c (copy_acl): Moved function to separate file.
3726         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3727         * modules/acl (Files): Add lib/copy-acl.c.
3728         (Makefiles.am): Augment lib_SOURCES.
3729
3730 2008-05-22  Bruno Haible  <bruno@clisp.org>
3731
3732         * modules/copy-file-tests: New file.
3733         * tests/test-copy-file.sh: New file.
3734         * tests/test-copy-file.c: New file.
3735         * tests/test-copy-file-sameacls.c: New file.
3736
3737 2008-05-22  Eric Blake  <ebb9@byu.net>
3738
3739         Avoid gcc warning.
3740         * tests/test-memcmp.c (main): Pass NULL indirectly.
3741
3742 2008-05-21  Bruno Haible  <bruno@clisp.org>
3743
3744         Add reference doc about ACLs.
3745         * doc/acl-resources.txt: New file.
3746         * doc/acl-cygwin.txt: New file.
3747
3748 2008-05-21  Bruno Haible  <bruno@clisp.org>
3749
3750         Avoid one more warning from gcc.
3751         * lib/vasnprintf.c (IF_LINT): Update comments.
3752         (VASNPRINTF): Use it also for the 'prefix' array initializer.
3753
3754 2008-05-21  Jim Meyering  <meyering@redhat.com>
3755
3756         avoid a warning from gcc
3757         * lib/vasnprintf.c (IF_LINT): Define.
3758         (scale10_round_decimal_long_double):
3759         Use it to avoid a "may be used uninitialized" warning.
3760         (scale10_round_decimal_double): Likewise.
3761
3762 2008-05-21  Simon Josefsson  <simon@josefsson.org>
3763
3764         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3765         declared.
3766
3767 2008-05-20  Bruno Haible  <bruno@clisp.org>
3768
3769         * tests/test-memcmp.c (main): Test also the sign of the result. Test
3770         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3771
3772 2008-05-20  Simon Josefsson  <simon@josefsson.org>
3773
3774         * modules/memcmp-tests: New file.
3775         * tests/test-memcmp.c: New file.
3776
3777 2008-05-19  Bruno Haible  <bruno@clisp.org>
3778
3779         * modules/propername (Notice, configure.ac): Put quoted "..." into
3780         --keyword option.
3781         * lib/propername.h: Update comments accordingly.
3782         Reported by Eric Blake.
3783
3784 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
3785
3786         * modules/getpass-gnu (Depends-on): Add fseeko.
3787
3788 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3789
3790         * modules/base64-tests: New file.
3791
3792 2008-05-19  Bo Borgerson <gigabo@gmail.com>
3793
3794         * lib/base64.c (base64_decode_ctx): If a decode context structure
3795         was passed in use it to ignore newlines.  If a context structure
3796         was _not_ passed in, continue to treat newlines as garbage (this
3797         is the historical behavior).  Formerly base64_decode.
3798         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3799         takes a decode context structure.
3800         * lib/base64.h (base64_decode): Macro for four-argument calls.
3801         (base64_decode_alloc): Likewise.
3802         * lib/base64.c (base64_decode_ctx): If a decode context structure
3803         was passed in use it to ignore newlines.  If a context structure
3804         was _not_ passed in, continue to treat newlines as garbage (this
3805         is the historical behavior).  Formerly base64_decode.
3806         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3807         takes a decode context structure.
3808         * lib/base64.h (base64_decode): Macro for four-argument calls.
3809         (base64_decode_alloc): Likewise.
3810
3811 2008-05-19  Jim Meyering  <meyering@redhat.com>
3812
3813         avoid a warning from gcc
3814         * lib/trim.c (IF_LINT): Define.
3815         (trim2): Use it to avoid a "may be used uninitialized" warning.
3816
3817         Fix doc typo.
3818         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3819
3820 2008-05-19  Bruno Haible  <bruno@clisp.org>
3821
3822         * doc/glibc-functions/getpass.texi: Document limits of other
3823         implementations.
3824
3825 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3826             Bruno Haible <bruno@clisp.org>
3827
3828         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3829
3830 2008-05-18  Bruno Haible  <bruno@clisp.org>
3831
3832         * modules/propername: New file, from GNU gettext.
3833         * lib/propername.h: New file, from GNU gettext.
3834         * lib/propername.c: New file, from GNU gettext.
3835         * MODULES.html.sh (Internationalization functions): Add propername.
3836
3837 2008-05-16  Jim Meyering  <meyering@redhat.com>
3838             Bruno Haible  <bruno@clisp.org>
3839
3840         Avoid some warnings from "gcc -Wshadow".
3841         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3842
3843 2008-05-15  Eric Blake  <ebb9@byu.net>
3844
3845         Extend previous patch to cygwin 1.7.0.
3846         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3847         fast implementation in cygwin >= 1.7.0.
3848         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3850
3851 2008-05-15  Bruno Haible  <bruno@clisp.org>
3852
3853         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3854         implementation in glibc >= 2.9.
3855         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3857
3858 2008-05-15  Bruno Haible  <bruno@clisp.org>
3859
3860         * MODULES.html.sh (Internationalization functions): Remove linebreak.
3861         (Unicode string functions): Add unilbrk/*.
3862         Reported by Karl Berry.
3863
3864 2008-05-15  Eric Blake  <ebb9@byu.net>
3865
3866         Fix violation of <stdbool.h> replacement in regex.
3867         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3868         * lib/regexec.c (re_search_internal): Likewise.
3869         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3870
3871 2008-05-15  Jim Meyering  <meyering@redhat.com>
3872
3873         avoid distracting test output when git or cvs is not found
3874         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3875         * tests/test-vc-list-files-git.sh: Likewise.
3876
3877 2008-05-15  Eric Blake  <ebb9@byu.net>
3878
3879         Glibc finally accepted the memmem speedup code, bugzilla #5514.
3880         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3881         glibc version.
3882         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3883         * doc/posix-functions/strstr.texi (strstr): Likewise.
3884         * lib/str-two-way.h (MAX): Sychronize with glibc.
3885
3886 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
3887
3888         * lib/regcomp.c (optimize_utf8): Add a note on why we test
3889         opr.ctx_type.
3890         (calc_first): Initialize constraint field.
3891         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3892         Fix grammar.
3893         (duplicate_node): Merge constraint field for all node types.
3894         (calc_eclosure_iter): Look at constraint field for all node types.
3895         * lib/regex_internal.c (create_cd_newstate): Don't look at
3896         opr.ctx_type.
3897
3898 2008-05-14  Bruno Haible  <bruno@clisp.org>
3899
3900         Help GCC to do better code generation.
3901         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3902         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3903         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3904         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3905         Declare with attribute 'malloc' if supported.
3906
3907 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
3908
3909         use "echo STR|wc -c" rather than unportable "expr length STR"
3910         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3911         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3912
3913 2008-05-14  Jim Meyering  <meyering@redhat.com>
3914
3915         use dd ibs=$n count=1 ... rather than less-portable head -c$n
3916         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3917         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3918         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3919         via Collin Lasse.
3920
3921 2008-05-14  Eric Blake  <ebb9@byu.net>
3922
3923         Avoid quadratic growth in gl_LIBSOURCES.
3924         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3925         Suggested by Bruno Haible.
3926
3927         Test xmemdup0.
3928         * modules/xmemdup0-tests: New file.
3929         * tests/test-xmemdup0.c: Likewise.
3930
3931 2008-05-13  Eric Blake  <ebb9@byu.net>
3932
3933         Split xmemdup0 into its own module.
3934         * modules/xmemdup0: New file.
3935         * lib/xmemdup0.h: Likewise.
3936         * lib/xmemdup0.c: Likewise.
3937         * MODULES.html.sh (Memory management functions): Add xmemdup0.
3938         * lib/xalloc.h (xmemdup0): Remove.
3939         * lib/xmalloc.c (xmemdup0): Likewise.
3940
3941 2008-05-13  Eric Blake  <ebb9@byu.net>
3942             Bruno Haible  <bruno@clisp.org>
3943
3944         Reduce number of forks required during autoconf.
3945         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3946         and gl_LIBSOURCES_DIR.
3947         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3948         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3949         m4_syscmd per file.
3950         <m4_foreach_w>: Move...
3951         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3952
3953 2008-05-13  Eric Blake  <ebb9@byu.net>
3954
3955         * gnulib-tool: Fix various comment typos.
3956
3957 2008-05-12  Bruno Haible  <bruno@clisp.org>
3958
3959         Tailor the linebreaking algorithm.
3960         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3961
3962 2008-05-12  Bruno Haible  <bruno@clisp.org>
3963
3964         Update to Unicode 5.0.0.
3965         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3966         LBP_JV, LBP_JT. Redistribute values.
3967         (unilbrk_table): Change size.
3968         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3969         Unicode TR#14 rev. 22.
3970         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3971         LBP_JV, LBP_JT. Redistribute values.
3972         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3973         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3974         Update.
3975         * lib/unilbrk/lbrkprop1.h: Regenerated.
3976         * lib/unilbrk/lbrkprop2.h: Regenerated.
3977         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3978         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3979         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3980         Likewise.
3981         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3982         Likewise.
3983         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3984         result.
3985         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3986         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3987         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3988         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3989         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3990         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3991
3992 2008-05-11  Bruno Haible  <bruno@clisp.org>
3993
3994         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3995
3996 2008-05-11  Bruno Haible  <bruno@clisp.org>
3997
3998         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3999         * modules/unilbrk/gen-lbrk: New file.
4000
4001 2008-05-11  Bruno Haible  <bruno@clisp.org>
4002
4003         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4004         * m4/sha512.m4 (gl_SHA512): Likewise.
4005
4006 2008-05-11  Jim Meyering  <meyering@redhat.com>
4007
4008         New modules: crypto/sha256, crypto/sha512 (from coreutils)
4009         * modules/crypto/sha256: New file.
4010         * modules/crypto/sha512: Likewise.
4011         * lib/sha256.c: Likewise.
4012         * lib/sha256.h: Likewise.
4013         * lib/sha512.c: Likewise.
4014         * lib/sha512.h: Likewise.
4015         * lib/u64.h: Likewise.
4016         * m4/sha256.m4: Likewise.
4017         * m4/sha512.m4: Likewise.
4018         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4019
4020 2008-05-10  Bruno Haible  <bruno@clisp.org>
4021
4022         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4023         (Input/Output <stdio.h>): Add xprintf.
4024         (Signal handling <signal.h>): Add strsignal.
4025         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4026         (Core language properties): Add func.
4027         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4028         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4029         strings.
4030         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4031         (Input/output): New section.
4032         (File system functions): Add openat-die, stat-macros.
4033         (Networking functions): Add sockets.
4034         (Unicode string functions): Add unictype/*.
4035         (Support for building libraries and executables): Add gperf.
4036         (Support for building documentation): Add agpl-3.0.
4037         (Misc): Add nocrash.
4038
4039 2008-05-10  Bruno Haible  <bruno@clisp.org>
4040
4041         * modules/unictype/gen-ctype: New file.
4042
4043 2008-05-10  Jim Meyering  <meyering@redhat.com>
4044
4045         Make chdir-safer.c more efficient on a system with no symlinks.
4046         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4047         also if ELOOP is zero.  Suggested by Bruno Haible.
4048
4049         Make chdir-safer.c slightly safer.
4050         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4051         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4052
4053         Avoid compile failure on systems without ELOOP (like mingw).
4054         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4055         Reported by Bruno Haible.
4056
4057 2008-05-10  Bruno Haible  <bruno@clisp.org>
4058
4059         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4060         (is_utf8_encoding): Use a case-insensitive comparison.
4061         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4062         streq.
4063
4064 2008-05-10  Bruno Haible  <bruno@clisp.org>
4065
4066         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4067         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4068         * lib/unilbrk/ulc-common.h (iconv_string_length,
4069         iconv_string_keeping_offsets): Remove declarations.
4070         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4071         Don't include <iconv.h>, streq.h, xsize.h.
4072         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4073         conversion.
4074         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4075         <iconv.h>, streq.h, xsize.h.
4076         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4077         conversion.
4078         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4079         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4080         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4081         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4082
4083 2008-05-10  Bruno Haible  <bruno@clisp.org>
4084
4085         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4086         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4087
4088         * modules/unilbrk/u32-width-linebreaks-tests: New file.
4089         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4090
4091         * modules/unilbrk/u16-width-linebreaks-tests: New file.
4092         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4093
4094         * modules/unilbrk/u8-width-linebreaks-tests: New file.
4095         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4096
4097         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4098         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4099
4100         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4101         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4102
4103         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4104         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4105
4106         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4107         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4108
4109 2008-05-10  Bruno Haible  <bruno@clisp.org>
4110
4111         Split up 'linebreak' module.
4112         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4113         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4114         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4115         modifications.
4116         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4117         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4118         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4119         lib/linebreak.c.
4120         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4121         lib/linebreak.c.
4122         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4123         lib/linebreak.c.
4124         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4125         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4126         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4127         lib/linebreak.c.
4128         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4129         lib/linebreak.c.
4130         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4131         lib/linebreak.c.
4132         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4133         lib/linebreak.c.
4134         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4135         lib/linebreak.c.
4136         * modules/unilbrk/base: New file.
4137         * modules/unilbrk/tables: New file.
4138         * modules/unilbrk/u8-possible-linebreaks: New file.
4139         * modules/unilbrk/u16-possible-linebreaks: New file.
4140         * modules/unilbrk/u32-possible-linebreaks: New file.
4141         * modules/unilbrk/ulc-common: New file.
4142         * modules/unilbrk/ulc-possible-linebreaks: New file.
4143         * modules/unilbrk/u8-width-linebreaks: New file.
4144         * modules/unilbrk/u16-width-linebreaks: New file.
4145         * modules/unilbrk/u32-width-linebreaks: New file.
4146         * modules/unilbrk/ulc-width-linebreaks: New file.
4147         * lib/linebreak.h: Remove file.
4148         * lib/linebreak.c: Remove file.
4149         * m4/linebreak.m4: Remove file.
4150         * modules/linebreak: Remove file.
4151         * NEWS: Mention the changes.
4152
4153 2008-05-09  Eric Blake  <ebb9@byu.net>
4154
4155         Add xmemdup0.
4156         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4157         implementation.
4158         * lib/xmalloc.c (xmemdup0): New C implementation.
4159
4160 2008-05-08  Bruno Haible  <bruno@clisp.org>
4161
4162         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4163
4164 2008-05-07  Eric Blake  <ebb9@byu.net>
4165
4166         Support cross-compilation of <wctype.h>.
4167         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4168         AC_CACHE_CHECK.
4169
4170 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4171
4172         * build-aux/vc-list-files: Add support for bzr.
4173
4174 2008-05-03  Jim Meyering  <meyering@redhat.com>
4175
4176         avoid failed assertion with tight malloc
4177         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4178
4179 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4180
4181         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4182         are needed from arpa/inet.h.
4183         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4184         Reported by Bruno Haible.
4185
4186 2008-05-02  Jim Meyering  <meyering@redhat.com>
4187
4188         avoid compilation error on FreeBSD 6
4189         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4190
4191 2008-05-01  Jim Meyering  <meyering@redhat.com>
4192
4193         useless-if-before-free: correct --help's exit status description
4194         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4195         for one or more matches, etc.  Reported by Bruno Haible.
4196
4197         vc-list-files: make the stand-alone gnulib test work
4198         * modules/vc-list-files-tests (configure.ac):
4199         Define and AC_SUBST abs_aux_dir.
4200         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4201         $(abs_top_srcdir) to each script and having each of them
4202         duplicate the work of setting PATH, set PATH here, using
4203         the new variable, abs_aux_dir instead.
4204         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4205         * tests/test-vc-list-files-git.sh: Likewise.
4206         Reported by Bruno Haible.
4207
4208 2008-05-01  Bruno Haible  <bruno@clisp.org>
4209
4210         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4211         reallocation. Rename 'done' to 'found_delimiter'.
4212
4213 2008-05-01  Jim Meyering  <meyering@redhat.com>
4214
4215         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4216         * build-aux/vc-list-files: Use `...`, not $(...).
4217
4218 2008-04-30  Jim Meyering  <meyering@redhat.com>
4219
4220         add tests for vc-list-files
4221         * modules/vc-list-files-tests: New module.
4222         * tests/test-vc-list-files-cvs.sh: New file.
4223         * tests/test-vc-list-files-git.sh: New file.
4224
4225         avoid a warning from gcc
4226         * lib/getndelim2.c (IF_LINT): Define.
4227         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4228
4229         vc-list-files: work properly with build-aux/cvsu, too
4230         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4231         to all cvs-based clauses.
4232
4233         vc-list-files: work properly in the CVS+awk case, too
4234         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4235
4236         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4237         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4238         take more than one file argument, so .  Add quotes, just in case $dir
4239         ever contains a shell meta-character.  Prompted by Soren Hansen in
4240         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4241
4242 2008-04-29  Eric Blake  <ebb9@byu.net>
4243
4244         Optimize getndelim2 to use block operations when possible.
4245         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4246         freadseek, and memchr2.
4247         * lib/getndelim2.c (getndelim2): Use them for block reads.
4248
4249 2008-04-29  Bruno Haible  <bruno@clisp.org>
4250
4251         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4252         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4253         * modules/inet_ntop (Depends-on): Add extensions.
4254         * modules/inet_pton (Depends-on): Likewise.
4255         Reported by Simon Josefsson.
4256
4257 2008-04-29  Jim Meyering  <meyering@redhat.com>
4258
4259         When the is more than one match in a block, match all of them.
4260         * build-aux/useless-if-before-free: Iterate through each block
4261         until there are no more matches.
4262
4263         Fix broken useless-if-before-free script.
4264         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4265         the expression to match cast of argument to free-like function.
4266
4267 2008-04-29  Eric Blake  <ebb9@byu.net>
4268
4269         Use new header.
4270         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4271
4272 2008-04-29  Jim Meyering  <meyering@redhat.com>
4273
4274         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4275         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4276         by gnulib to exist and to declare e.g., inet_ntop.
4277         Don't include "inet_ntop.h", now removed.
4278
4279         * m4/arpa_inet_h.m4: Remove trailing blanks.
4280
4281 2008-04-29  Eric Blake  <ebb9@byu.net>
4282
4283         Silence valgrind on safe reads beyond potential array bounds.
4284         * lib/rawmemchr.valgrind: New file.
4285         * lib/strchrnul.valgrind: Likewise.
4286         * modules/rawmemchr (Files): Distribute new file.
4287         * modules/strchrnul (Files): Likewise.
4288         Suggested by Bruno Haible.
4289
4290 2008-04-29  Bruno Haible  <bruno@clisp.org>
4291
4292         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4293         (inet_ntop, inet_pton): Change portability warning's wording.
4294         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4295         Invoke gl_CHECK_NEXT_HEADERS.
4296         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4297         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4298         set ARPA_INET_H.
4299         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4300         * modules/arpa_inet (Description): No longer only for systems that
4301         lack it.
4302         (Depends-on): Add include_next.
4303         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4304         HAVE_ARPA_INET_H.
4305
4306 2008-04-29  Jim Meyering  <meyering@redhat.com>
4307
4308         * modules/mkdir (License): Re-license as LGPLv2+.
4309
4310 2008-04-29  Bruno Haible  <bruno@clisp.org>
4311
4312         * modules/rawmemchr (Maintainer): Set to Eric.
4313         * modules/strchrnul (Maintainer): Likewise.
4314
4315 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4316
4317         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4318         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4319
4320         * modules/arpa_inet (arpa/inet.h): Use them.
4321
4322 2008-04-28  Eric Blake  <ebb9@byu.net>
4323
4324         Test getndelim2.
4325         * modules/getndelim2-tests: New file.
4326         * tests/test-getndelim2.c: Likewise.
4327         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4328         stream.
4329         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4330
4331         * MODULES.html.sh: Document new module.
4332
4333 2008-04-20  Bruno Haible  <bruno@clisp.org>
4334
4335         * lib/c-stack.c (die): Use raise.
4336         * modules/c-stack (Depends-on): Add raise.
4337
4338 2008-04-28  Bruno Haible  <bruno@clisp.org>
4339
4340         Expect rpmatch to be declared.
4341         * lib/yesno.c (rpmatch): Remove declaration.
4342
4343         Declare rpmatch.
4344         * lib/stdlib.in.h (rpmatch): New declaration.
4345         * lib/rpmatch.c: Include <stdlib.h> first.
4346         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4347         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4349         HAVE_RPMATCH.
4350         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4351         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4352         (Include): Set to <stdlib.h>.
4353         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4354         HAVE_RPMATCH.
4355         * NEWS: Document the change.
4356
4357 2008-04-28  Bruno Haible  <bruno@clisp.org>
4358
4359         Change rpmatch to use nl_langinfo when appropriate.
4360         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4361         (N_): New macro.
4362         (localized_pattern): New function/macro.
4363         (try): Remove match, nomatch arguments. Copy the pattern into safe
4364         memory before caching it.
4365         (rpmatch): Use localized_pattern. Add translator comments.
4366         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4367         Suggested by Eric Blake.
4368         * modules/rpmatch (Depends-on): Add stdbool.
4369
4370 2008-04-28  Eric Blake  <ebb9@byu.net>
4371
4372         Add rawmemchr module, matching glibc.
4373         * modules/string (Makefile.am): New indicator.
4374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4375         * lib/string.in.h (rawmemchr): Declare when appropriate.
4376         * modules/rawmemchr: New file.
4377         * m4/rawmemchr.m4: Likewise.
4378         * lib/rawmemchr.c: Likewise.
4379         * modules/rawmemchr-tests: Likewise.
4380         * tests/test-rawmemchr.c: Likewise.
4381         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4382         module.
4383         * modules/strchrnul (Depends-on): Add rawmemchr.
4384         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4385
4386         Whitespace cleanup.
4387         * tests/test-strchrnul.c: Reindent.
4388         * lib/strchrnul.c: Likewise.
4389
4390         Optimize and test strchrnul.
4391         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4392         * modules/strchrnul-tests: New file.
4393         * tests/test-strchrnul.c: Likewise.
4394
4395         Remove intprops dependency.
4396         * modules/memchr (Depends-on): Remove intprops.
4397         * modules/memrchr (Depends-on): Likewise.
4398         * modules/memchr2 (Depends-on): Likewise.
4399         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4400         * lib/memrchr.c (__memrchr): Likewise.
4401         * lib/memrchr2.c (memchr2): Likewise.
4402         Reported by Simon Josefsson.
4403
4404 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4405
4406         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4407         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4408
4409 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4410
4411         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4412
4413         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4414
4415         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4416
4417         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4418         declarations.
4419         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4420
4421         * m4/inet_pton.m4: Don't check for header files.
4422
4423         * m4/inet_ntop.m4: Don't check for header files.
4424
4425 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4426
4427         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4428         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4429         trigger for cygwin).
4430         Reported by Bruno Haible  <bruno@clisp.org>.
4431
4432 2008-04-28  Bruno Haible  <bruno@clisp.org>
4433
4434         * doc/posix-functions/strdup.texi: Mention mingw problem.
4435
4436 2008-04-27  Bruno Haible  <bruno@clisp.org>
4437
4438         * modules/stat-time-tests (Depends-on): Add sleep.
4439         * tests/test-stat-time.c (force_unlink): New function.
4440         (cleanup): Use it.
4441         (test_mtime): Remove the ctime related tests.
4442         (test_ctime): New function, containing the ctime related tests.
4443         (main): Call test_ctime, except on native Windows platforms.
4444
4445 2008-04-27  Bruno Haible  <bruno@clisp.org>
4446
4447         * lib/rpmatch.c (rpmatch): Add some comments.
4448         Reported by James Youngman <jay@gnu.org>.
4449
4450 2008-04-27  Bruno Haible  <bruno@clisp.org>
4451
4452         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4453         quiet NaNs.
4454
4455 2008-04-27  Bruno Haible  <bruno@clisp.org>
4456
4457         Make test-yesno.sh work on mingw.
4458         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4459         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4460         (main): Set stdin to binary mode.
4461         * modules/yesno-tests (Depends-on): Add binary-io.
4462
4463 2008-04-27  Bruno Haible  <bruno@clisp.org>
4464
4465         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4466         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4467         argument that lie outside the IEEE 854 domain.
4468         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4469         (gl_ISFINITE): Use it.
4470         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4471
4472 2008-04-27  Bruno Haible  <bruno@clisp.org>
4473
4474         Allow local renaming in config.h.
4475         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4476
4477 2008-04-27  Bruno Haible  <bruno@clisp.org>
4478
4479         * lib/memchr.c (__memchr): Change type of 'i'.
4480         * lib/memchr2.c (memchr2): Likewise.
4481
4482 2008-04-26  Eric Blake  <ebb9@byu.net>
4483         and Bruno Haible  <bruno@clisp.org>
4484
4485         Optimize and test memrchr.
4486         * modules/memrchr (Depends-on): Add intprops.
4487         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4488         * modules/memrchr-tests: New file.
4489         * tests/test-memrchr.c: New file.
4490
4491 2008-04-26  Bruno Haible  <bruno@clisp.org>
4492
4493         Add tentative support for DragonFly BSD.
4494         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4495         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4496         fp.
4497         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4498         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4499         * lib/fpurge.c (fpurge): Likewise.
4500         * lib/freadable.c (freaadable): Likewise.
4501         * lib/freadahead.c (freadahead): Likewise.
4502         * lib/freading.c (freading): Likewise.
4503         * lib/freadptr.c (freadptr): Likewise.
4504         * lib/freadseek.c (freadptrinc): Likewise.
4505         * lib/fseeko.c (fseeko): Likewise.
4506         * lib/fseterr.c (fseterr): Likewise.
4507         * lib/fwritable.c (fwritable): Likewise.
4508         * lib/fwriting.c (fwriting): Likewise.
4509
4510 2008-04-26  Bruno Haible  <bruno@clisp.org>
4511
4512         * lib/stdio-impl.h: New file.
4513         * lib/fbufmode.c: Include stdio-impl.h.
4514         (fbufmode): Use fp_, remove redundant #defines.
4515         * lib/fflush.c: Include stdio-impl.h.
4516         (clear_ungetc_buffer): Remove redundant #defines.
4517         * lib/fpurge.c: Include stdio-impl.h.
4518         (fpurge): Remove redundant #defines.
4519         * lib/freadable.c: Include stdio-impl.h.
4520         (freadable): Remove redundant #defines.
4521         * lib/freadahead.c: Include stdio-impl.h.
4522         (freadahead): Remove redundant #defines.
4523         * lib/freading.c: Include stdio-impl.h.
4524         (freading): Remove redundant #defines.
4525         * lib/freadptr.c: Include stdio-impl.h.
4526         (freadptr): Remove redundant #defines.
4527         * lib/freadseek.c: Include stdio-impl.h.
4528         (freadptrinc): Remove redundant #defines.
4529         * lib/fseeko.c: Include stdio-impl.h.
4530         (rpl_fseeko): Remove redundant #defines.
4531         * lib/fseterr.c: Include stdio-impl.h.
4532         (fseterr): Remove redundant #defines.
4533         * lib/fwritable.c: Include stdio-impl.h.
4534         (fwritable: Remove redundant #defines.
4535         * lib/fwriting.c: Include stdio-impl.h.
4536         (fwriting): Remove redundant #defines.
4537         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4538         * modules/fflush (Files): Likewise.
4539         * modules/fpurge (Files): Likewise.
4540         * modules/freadable (Files): Likewise.
4541         * modules/freadahead (Files): Likewise.
4542         * modules/freading (Files): Likewise.
4543         * modules/freadptr (Files): Likewise.
4544         * modules/freadseek (Files): Likewise.
4545         * modules/fseeko (Files): Likewise.
4546         * modules/fseterr (Files): Likewise.
4547         * modules/fwritable (Files): Likewise.
4548         * modules/fwriting (Files): Likewise.
4549
4550 2008-04-26  Bruno Haible  <bruno@clisp.org>
4551
4552         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4553         restore_seek_optimization, update_fpos_cache): New functions, extracted
4554         from rpl_fflush.
4555         (rpl_fflush): Use them.
4556         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4557         (gl_REPLACE_FFLUSH): Use it.
4558
4559 2008-04-26  Bruno Haible  <bruno@clisp.org>
4560
4561         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4562         on Solaris.
4563         * tests/test-xstrtoimax.sh: Likewise.
4564         * tests/test-xstrtoumax.sh: Likewise.
4565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4566
4567 2008-04-26  Bruno Haible  <bruno@clisp.org>
4568
4569         * modules/memchr-tests: New file.
4570         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4571
4572 2008-04-26  Eric Blake  <ebb9@byu.net>
4573             Bruno Haible  <bruno@clisp.org>
4574
4575         * lib/memchr.c: Include intprops.h.
4576         (__memchr): Optimize parallel detection of matching bytes. Rename local
4577         variables. Add explanatory comments.
4578
4579 2008-04-26  Bruno Haible  <bruno@clisp.org>
4580
4581         Fix module 'memchr', broken since 2000-10-28.
4582         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4583
4584 2008-04-26  Bruno Haible  <bruno@clisp.org>
4585
4586         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4587         comments.
4588
4589 2008-04-25  Eric Blake  <ebb9@byu.net>
4590
4591         Use native fstatat on cygwin 1.7.0.
4592         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4593         first.
4594
4595 2008-04-23  Eric Blake  <ebb9@byu.net>
4596
4597         Improve memchr2 performance.
4598         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4599         NUL bytes.
4600         * modules/memchr2 (Depends-on): Use intprops.h.
4601
4602 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4603
4604         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4605         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4606         <blp@cs.stanford.edu>.
4607
4608 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4609
4610         * lib/arpa_inet.in.h: New file.
4611
4612         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4613         (Makefile.am): Sed in substitute header file.
4614
4615         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4616         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4617
4618         * modules/inet_ntop (configure.ac): Use
4619         gl_ARPA_INET_MODULE_INDICATOR.
4620
4621         * modules/inet_pton (configure.ac): Use
4622         gl_ARPA_INET_MODULE_INDICATOR.
4623
4624 2008-04-22  Jim Meyering  <meyering@redhat.com>
4625
4626         * modules/verify (License): Re-license as LGPLv2+.
4627
4628 2008-04-22  Simon Josefsson  <simon@josefsson.org>
4629
4630         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4631         parameter to void* as per POSIX standard (MinGW uses char*).
4632
4633 2008-04-21  Bruno Haible  <bruno@clisp.org>
4634
4635         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4636         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4637         Define to replacements if REPLACE_ISWCNTRL is 1.
4638         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4639         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4640         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4641         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4642         what it fixes.
4643         * doc/posix-functions/iswalpha.texi: Likewise.
4644         * doc/posix-functions/iswblank.texi: Likewise.
4645         * doc/posix-functions/iswcntrl.texi: Likewise.
4646         * doc/posix-functions/iswdigit.texi: Likewise.
4647         * doc/posix-functions/iswgraph.texi: Likewise.
4648         * doc/posix-functions/iswlower.texi: Likewise.
4649         * doc/posix-functions/iswprint.texi: Likewise.
4650         * doc/posix-functions/iswpunct.texi: Likewise.
4651         * doc/posix-functions/iswspace.texi: Likewise.
4652         * doc/posix-functions/iswupper.texi: Likewise.
4653         * doc/posix-functions/iswxdigit.texi: Likewise.
4654         Reported by Alain Guibert.
4655
4656 2008-04-21  Bruno Haible  <bruno@clisp.org>
4657
4658         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4659         Patch by Alain Guibert.
4660
4661 2008-04-21  Bruno Haible  <bruno@clisp.org>
4662
4663         Fix test failures on mingw.
4664         * tests/test-xstrtol.c (print_no_progname): New function.
4665         (main): Install it in error_print_progname hook.
4666         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4667         * tests/test-xstrtoimax.sh: Likewise.
4668         * tests/test-xstrtoumax.sh: Likewise.
4669
4670 2008-04-21  Bruno Haible  <bruno@clisp.org>
4671
4672         Fix test failure on mingw.
4673         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4674
4675 2008-04-21  Bruno Haible  <bruno@clisp.org>
4676
4677         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4678         Actually assign a value.
4679
4680 2008-04-20  Bruno Haible  <bruno@clisp.org>
4681
4682         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4683         take 2.
4684         * lib/canonicalize.c (canonicalize_file_name): Elide if the
4685         'canonicalize-lgpl' module is also used.
4686         * lib/canonicalize-lgpl.c: Undo last change.
4687         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4688
4689 2008-04-20  Bruno Haible  <bruno@clisp.org>
4690
4691         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4692         config.h. Provide _mkdir based fallback for mingw.
4693         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4694         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4695         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4696         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4697         rather than defining mkdir in config.h.
4698         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4699         (gl_SYS_STAT_H_DEFAULTS): New macro.
4700         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4701         HAVE_IO_H any more.
4702         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4703         HAVE_DECL_MKDIR and HAVE_IO_H.
4704
4705 2008-04-20  Bruno Haible  <bruno@clisp.org>
4706
4707         * lib/isapipe.c: Port to native Windows platforms.
4708
4709 2008-04-20  Bruno Haible  <bruno@clisp.org>
4710
4711         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4712
4713 2008-04-21  Eric Blake  <ebb9@byu.net>
4714
4715         Work around preprocessors that don't handle UINTMAX_MAX.
4716         * lib/memchr2.c (memchr2): Avoid embedded #if.
4717         Reported by Alain Guibert, fix suggested by Bruno Haible.
4718
4719 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4720
4721         * doc/posix-functions/strftime.texi (strftime): Explain better
4722         Windows incompatibility.  Suggested by Micah Cowan
4723         <micah@cowan.name>.
4724
4725 2008-04-20  Bruno Haible  <bruno@clisp.org>
4726
4727         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4728         unistr/u8-mblen.
4729
4730 2008-04-20  Bruno Haible  <bruno@clisp.org>
4731
4732         Fix test failure on platforms with non-GNU iconv.
4733         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4734         (U_TO_U8): Use it, rather than u16_to_u8.
4735         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4736         units at the end of the input string.
4737         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4738
4739 2008-04-20  Bruno Haible  <bruno@clisp.org>
4740
4741         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4742         when the resulting length is 0.
4743         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4744
4745 2008-04-20  Bruno Haible  <bruno@clisp.org>
4746
4747         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4748         works.
4749         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4750
4751 2008-04-20  Bruno Haible  <bruno@clisp.org>
4752
4753         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4754         * modules/tsearch-tests (configure.ac): Test for initstate function.
4755
4756 2008-04-20  Bruno Haible  <bruno@clisp.org>
4757
4758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4759         for nlink_t if missing.
4760         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4761
4762 2008-04-19  Bruno Haible  <bruno@clisp.org>
4763
4764         Work around snprintf bug on Linux libc5.
4765         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4767         gl_SNPRINTF_SIZE1.
4768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4769         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4770         that test failed.
4771         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4772         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4773         * modules/snprintf (Files): Add m4/printf.m4.
4774         * modules/vsnprintf (Files): Likewise.
4775         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4776         * doc/posix-functions/vsnprintf.texi: Likewise.
4777
4778 2008-04-19  Bruno Haible  <bruno@clisp.org>
4779
4780         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4781         from 0.0058 to less than 10^-7.
4782
4783 2008-04-19  Bruno Haible  <bruno@clisp.org>
4784
4785         Fix rounding when a precision is given.
4786         * lib/vasnprintf.c (is_borderline): New function.
4787         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4788         9...9x.
4789         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4790         %e, %g.
4791         * tests/test-vasprintf-posix.c (test_function): Likewise.
4792         * tests/test-snprintf-posix.h (test_function): Likewise.
4793         * tests/test-sprintf-posix.h (test_function): Likewise.
4794         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4795         * tests/test-printf-posix.h (test_function): Likewise.
4796         * tests/test-printf-posix.output: Update.
4797         Reported by John Darrington <john@darrington.wattle.id.au> via
4798         Ben Pfaff <blp@cs.stanford.edu>.
4799
4800 2008-04-18  Simon Josefsson  <simon@josefsson.org>
4801
4802         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4803         Suggested by Bruno Haible <bruno@clisp.org>.
4804
4805 2008-04-17  Bruno Haible  <bruno@clisp.org>
4806
4807         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4808         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4809         implementation.
4810         Patch by Bruce Merry <bmerry@gmail.com>.
4811
4812 2008-04-17  Simon Josefsson  <simon@josefsson.org>
4813
4814         * doc/posix-functions/strftime.texi (strftime): Mention that %e
4815         doesn't work under Windows.
4816
4817 2008-04-16  Bruno Haible  <bruno@clisp.org>
4818
4819         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4820         New macros.
4821         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4822         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4823         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4824         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4825         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4826         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4827         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4828         macros.
4829         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4830         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4831         Northern Sotho, Uighur.
4832
4833 2008-04-16  Bruno Haible  <bruno@clisp.org>
4834
4835         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4836         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4837         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4838         Reported by Daniel Bergström <daniel@octocode.com>.
4839
4840 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
4841             Bruno Haible  <bruno@clisp.org>
4842
4843         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4844         function.
4845         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4846         New functions, mostly extracted from gl_locale_name_default.
4847         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4848
4849 2008-04-16  Eric Blake  <ebb9@byu.net>
4850
4851         Adjust strtod detection to catch glibc 2.7 bug.
4852         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4853         Reported by John Gatewood Ham.
4854
4855 2008-04-16  Bruno Haible  <bruno@clisp.org>
4856
4857         Add tentative support for Linux libc5.
4858         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4859         * lib/fpurge.c (fpurge): Likewise.
4860         * lib/freadable.c (freadable): Likewise.
4861         * lib/freadahead.c (freadahead): Likewise.
4862         * lib/freading.c (freading): Likewise.
4863         * lib/freadptr.c (freadptr): Likewise.
4864         * lib/freadseek.c (freadptrinc): Likewise.
4865         * lib/fseeko.c (rpl_fseeko): Likewise.
4866         * lib/fseterr.c (fseterr): Likewise.
4867         * lib/fwritable.c (fwritable): Likewise.
4868         * lib/fwriting.c (fwriting): Likewise.
4869         Reported by Alain Guibert <alguibert+bts@free.fr>.
4870
4871 2008-04-15  Bruno Haible  <bruno@clisp.org>
4872
4873         * modules/mathl (configure.ac): Define module indicator.
4874
4875 2008-04-15  Bruno Haible  <bruno@clisp.org>
4876
4877         * lib/logl.c (logl): Remove unused variables.
4878
4879 2008-04-15  Bruno Haible  <bruno@clisp.org>
4880
4881         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4882         fails.
4883
4884 2008-04-15  Bruno Haible  <bruno@clisp.org>
4885
4886         * lib/trim.c (trim2): Fix argument of isspace() macro.
4887
4888 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
4889
4890         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4891         to 0.
4892         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4893
4894 2008-04-14  Bruno Haible  <bruno@clisp.org>
4895
4896         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4897         AC_LANG_PROGRAM argument.
4898         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4899         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4901         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4902         * m4/math_h.m4 (gl_MATH_H): Likewise.
4903         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4904         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4905         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4906         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4907         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4908         * m4/regex.m4 (gl_REGEX): Likewise.
4909         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4910         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4912         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4913         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4914         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4916         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4917
4918 2008-04-14  Jim Meyering  <meyering@redhat.com>
4919
4920         test-strtod: fix typos: s/abs/fabs/
4921         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4922
4923 2008-04-13  Bruno Haible  <bruno@clisp.org>
4924
4925         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4926         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4927         module is also used and while not building the reloc-wrapper.
4928
4929 2008-04-13  Bruno Haible  <bruno@clisp.org>
4930
4931         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4932
4933 2008-04-13  Bruno Haible  <bruno@clisp.org>
4934
4935         Fix AIX compilation failure introduced on 2008-04-02.
4936         * tests/test-frexp.c (exp): Undefine before redefining.
4937         * tests/test-frexpl.c (exp): Likewise.
4938
4939 2008-04-13  Bruno Haible  <bruno@clisp.org>
4940
4941         Work around a HP-UX stdio bug.
4942         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4943         * tests/test-ftello.c (main): Likewise.
4944         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4945         * doc/posix-functions/ftello.texi: Likewise.
4946
4947 2008-04-13  Bruno Haible  <bruno@clisp.org>
4948
4949         Make test-signbit pass on HP-UX/hppa.
4950         * tests/test-signbit.c (minus_zerol): New variable.
4951         (test_signbitl): Use it.
4952
4953 2008-04-13  Bruno Haible  <bruno@clisp.org>
4954
4955         Make truncl work on OSF/1 4.0.
4956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4957         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4958         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4960         HAVE_DECL_TRUNCL.
4961         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4962         HAVE_DECL_TRUNCL.
4963         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4964
4965 2008-04-13  Bruno Haible  <bruno@clisp.org>
4966
4967         * lib/unictype.h: Remove trailing comma from enumeration definitions.
4968
4969 2008-04-13  Bruno Haible  <bruno@clisp.org>
4970
4971         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4972         expression, so as to avoid HP-UX 11 cc compiler bug.
4973
4974 2008-04-13  Bruno Haible  <bruno@clisp.org>
4975
4976         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4977
4978 2008-04-13  Bruno Haible  <bruno@clisp.org>
4979
4980         * lib/git-merge-changelog.c: Remove empty declaration outside of
4981         functions.
4982
4983 2008-04-13  Bruno Haible  <bruno@clisp.org>
4984
4985         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4986
4987 2008-04-13  Bruno Haible  <bruno@clisp.org>
4988
4989         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4990         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4991         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4992         also if it exists but lacks definitions of the SHUT_* macros.
4993         * modules/sys_socket (Description): Update.
4994         Reported by Elbert Pol <e.pol@chello.nl>.
4995
4996 2008-04-13  Bruno Haible  <bruno@clisp.org>
4997
4998         * lib/localcharset.c (OS2): Don't redefine if already defined.
4999         Reported by Elbert Pol <e.pol@chello.nl>.
5000
5001 2008-04-13  Bruno Haible  <bruno@clisp.org>
5002
5003         * lib/binary-io.h [__EMX__]: Include <io.h>.
5004         Reported by Elbert Pol <e.pol@chello.nl>.
5005
5006 2008-04-12  Bruno Haible  <bruno@clisp.org>
5007
5008         * lib/fpucw.h: Enable the definitions also for x86_64.
5009         Needed for NetBSD/x86_64.
5010         Reported by Thomas Klausner <tk@giga.or.at>.
5011
5012 2008-04-12  Bruno Haible  <bruno@clisp.org>
5013
5014         * tests/test-strtod.c: Include isnand.h.
5015         (main): Use isnand instead of isnan.
5016         Reported by Jim Meyering.
5017
5018 2008-04-12  Bruno Haible  <bruno@clisp.org>
5019
5020         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5021         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5022
5023 2008-04-12  Jim Meyering  <meyering@redhat.com>
5024
5025         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5026
5027 2008-04-12  Bruno Haible  <bruno@clisp.org>
5028
5029         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5030         Reported by Elbert Pol <e.pol@chello.nl>.
5031
5032 2008-04-12  Eric Blake  <ebb9@byu.net>
5033
5034         Work around Solaris 10 math.h bug.
5035         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5036         (gl_MATH_H_DEFAULTS): Set up default.
5037         * modules/math (Makefile.am): Replace new indicators.
5038         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5039         * tests/test-math.c (main): Test this.
5040         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5041         * doc/posix-headers/math.texi (math.h): Mention bug.
5042         Reported by Nelson H. F. Beebe and Jim Meyering.
5043
5044 2008-04-11  Bruno Haible  <bruno@clisp.org>
5045
5046         Adapt to future versions of Apple GCC.
5047         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5048         Reported by Peter O'Gorman <peter@pogma.com>.
5049
5050 2008-04-11  Bruno Haible  <bruno@clisp.org>
5051
5052         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5053
5054 2008-04-11  Bruno Haible  <bruno@clisp.org>
5055
5056         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5057
5058         * modules/getaddrinfo-tests (Makefile.am): Define
5059         test_getaddrinfo_LDADD.
5060
5061 2008-04-11  Bruno Haible  <bruno@clisp.org>
5062
5063         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5064         (init): Fix syntax error.
5065         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5066         is declared.
5067
5068 2008-04-11  Bruno Haible  <bruno@clisp.org>
5069
5070         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5071         * modules/glob (Depends-on): Add stdbool.
5072
5073 2008-04-11  Bruno Haible  <bruno@clisp.org>
5074
5075         * lib/trim.c: Include <string.h>.
5076
5077 2008-04-11  Eric Blake  <ebb9@byu.net>
5078
5079         Avoid compile failure on OS/2.
5080         * lib/regex_internal.h (internal_function): Disable optimization
5081         on OS/2 (__EMX__), where it caused compiler error.
5082         Reported by Elbert Pol.
5083
5084 2008-04-11  Bruno Haible  <bruno@clisp.org>
5085
5086         Flush the standard error stream before aborting. Needed on mingw.
5087         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5088         * tests/test-array_list.c (ASSERT): Likewise.
5089         * tests/test-array_oset.c (ASSERT): Likewise.
5090         * tests/test-avltree_list.c (ASSERT): Likewise.
5091         * tests/test-avltree_oset.c (ASSERT): Likewise.
5092         * tests/test-avltreehash_list.c (ASSERT): Likewise.
5093         * tests/test-binary-io.c (ASSERT): Likewise.
5094         * tests/test-byteswap.c (ASSERT): Likewise.
5095         * tests/test-c-ctype.c (ASSERT): Likewise.
5096         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5097         * tests/test-c-strcasestr.c (ASSERT): Likewise.
5098         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5099         * tests/test-c-strstr.c (ASSERT): Likewise.
5100         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5101         * tests/test-canonicalize.c (ASSERT): Likewise.
5102         * tests/test-carray_list.c (ASSERT): Likewise.
5103         * tests/test-ceilf1.c (ASSERT): Likewise.
5104         * tests/test-ceilf2.c (ASSERT): Likewise.
5105         * tests/test-ceill.c (ASSERT): Likewise.
5106         * tests/test-count-one-bits.c (ASSERT): Likewise.
5107         * tests/test-fbufmode.c (ASSERT): Likewise.
5108         * tests/test-fflush2.c (ASSERT): Likewise.
5109         * tests/test-floorf1.c (ASSERT): Likewise.
5110         * tests/test-floorf2.c (ASSERT): Likewise.
5111         * tests/test-floorl.c (ASSERT): Likewise.
5112         * tests/test-fopen.c (ASSERT): Likewise.
5113         * tests/test-fpending.c (ASSERT): Likewise.
5114         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5115         * tests/test-fpurge.c (ASSERT): Likewise.
5116         * tests/test-freadable.c (ASSERT): Likewise.
5117         * tests/test-freadahead.c (ASSERT): Likewise.
5118         * tests/test-freading.c (ASSERT): Likewise.
5119         * tests/test-freadptr.c (ASSERT): Likewise.
5120         * tests/test-freadptr2.c (ASSERT): Likewise.
5121         * tests/test-freadseek.c (ASSERT): Likewise.
5122         * tests/test-freopen.c (ASSERT): Likewise.
5123         * tests/test-frexp.c (ASSERT): Likewise.
5124         * tests/test-frexpl.c (ASSERT): Likewise.
5125         * tests/test-fseek.c (ASSERT): Likewise.
5126         * tests/test-fseeko.c (ASSERT): Likewise.
5127         * tests/test-fstrcmp.c (ASSERT): Likewise.
5128         * tests/test-ftell.c (ASSERT): Likewise.
5129         * tests/test-ftello.c (ASSERT): Likewise.
5130         * tests/test-func.c (ASSERT): Likewise.
5131         * tests/test-fwritable.c (ASSERT): Likewise.
5132         * tests/test-fwriting.c (ASSERT): Likewise.
5133         * tests/test-getdelim.c (ASSERT): Likewise.
5134         * tests/test-getline.c (ASSERT): Likewise.
5135         * tests/test-i-ring.c (ASSERT): Likewise.
5136         * tests/test-iconv-utf.c (ASSERT): Likewise.
5137         * tests/test-iconv.c (ASSERT): Likewise.
5138         * tests/test-isfinite.c (ASSERT): Likewise.
5139         * tests/test-isnand.c (ASSERT): Likewise.
5140         * tests/test-isnanf.c (ASSERT): Likewise.
5141         * tests/test-isnanl.h (ASSERT): Likewise.
5142         * tests/test-ldexpl.c (ASSERT): Likewise.
5143         * tests/test-linked_list.c (ASSERT): Likewise.
5144         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5145         * tests/test-localename.c (ASSERT): Likewise.
5146         * tests/test-lseek.c (ASSERT): Likewise.
5147         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5148         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5149         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5150         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5151         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5152         * tests/test-mbschr.c (ASSERT): Likewise.
5153         * tests/test-mbscspn.c (ASSERT): Likewise.
5154         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5155         * tests/test-mbspbrk.c (ASSERT): Likewise.
5156         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5157         * tests/test-mbsrchr.c (ASSERT): Likewise.
5158         * tests/test-mbsspn.c (ASSERT): Likewise.
5159         * tests/test-mbsstr1.c (ASSERT): Likewise.
5160         * tests/test-mbsstr2.c (ASSERT): Likewise.
5161         * tests/test-mbsstr3.c (ASSERT): Likewise.
5162         * tests/test-memchr2.c (ASSERT): Likewise.
5163         * tests/test-memmem.c (ASSERT): Likewise.
5164         * tests/test-open.c (ASSERT): Likewise.
5165         * tests/test-printf-frexp.c (ASSERT): Likewise.
5166         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5167         * tests/test-printf-posix.c (ASSERT): Likewise.
5168         * tests/test-quotearg.c (ASSERT): Likewise.
5169         * tests/test-rbtree_list.c (ASSERT): Likewise.
5170         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5171         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5172         * tests/test-round1.c (ASSERT): Likewise.
5173         * tests/test-roundf1.c (ASSERT): Likewise.
5174         * tests/test-roundl.c (ASSERT): Likewise.
5175         * tests/test-signbit.c (ASSERT): Likewise.
5176         * tests/test-sleep.c (ASSERT): Likewise.
5177         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5178         * tests/test-snprintf.c (ASSERT): Likewise.
5179         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5180         * tests/test-stat-time.c (ASSERT): Likewise.
5181         * tests/test-strcasestr.c (ASSERT): Likewise.
5182         * tests/test-strerror.c (ASSERT): Likewise.
5183         * tests/test-striconv.c (ASSERT): Likewise.
5184         * tests/test-striconveh.c (ASSERT): Likewise.
5185         * tests/test-striconveha.c (ASSERT): Likewise.
5186         * tests/test-strsignal.c (ASSERT): Likewise.
5187         * tests/test-strstr.c (ASSERT): Likewise.
5188         * tests/test-strtod.c (ASSERT): Likewise.
5189         * tests/test-trunc1.c (ASSERT): Likewise.
5190         * tests/test-trunc2.c (ASSERT): Likewise.
5191         * tests/test-truncf1.c (ASSERT): Likewise.
5192         * tests/test-truncf2.c (ASSERT): Likewise.
5193         * tests/test-truncl.c (ASSERT): Likewise.
5194         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5195         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5196         * tests/test-vasnprintf.c (ASSERT): Likewise.
5197         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5198         * tests/test-vasprintf.c (ASSERT): Likewise.
5199         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5200         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5201         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5202         * tests/test-vsnprintf.c (ASSERT): Likewise.
5203         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5204         * tests/test-wcwidth.c (ASSERT): Likewise.
5205         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5206         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5207         * tests/test-xvasprintf.c (ASSERT): Likewise.
5208         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5209         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5210         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5211         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5212         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5213         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5214         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5215         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5216         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5217         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5218         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5219         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5220         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5221         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5222         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5223         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5224         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5225         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5226         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5227         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5228         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5229         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5230         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5231         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5232         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5233         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5234         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5235         * tests/unictype/test-combining.c (ASSERT): Likewise.
5236         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5237         * tests/unictype/test-digit.c (ASSERT): Likewise.
5238         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5239         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5240         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5241         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5242         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5243         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5244         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5245         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5246         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5247         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5248         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5249         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5250         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5251         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5252         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5253         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5254         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5255         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5256         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5257         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5258         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5259         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5260         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5261         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5262         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5263         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5264         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5265         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5266         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5267         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5268         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5269         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5270         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5271         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5272         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5273         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5274         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5275         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5276         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5277         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5278         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5279         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5280         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5281         Reported by Eric Blake.
5282
5283 2008-04-11  Bruno Haible  <bruno@clisp.org>
5284
5285         * lib/wchar.in.h: Tweak comment.
5286
5287 2008-04-11  Bruno Haible  <bruno@clisp.org>
5288
5289         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5290         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5291         gl_COMMON.
5292         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5293
5294 2008-04-11  Bruno Haible  <bruno@clisp.org>
5295
5296         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5297
5298 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5299
5300         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5301         of attempting to use non-existing /dev/*random.  Based on patch
5302         from Adam Strzelecki <ono@java.pl> in
5303         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5304
5305 2008-04-08  Bruno Haible  <bruno@clisp.org>
5306
5307         Add tentative support for emx+gcc.
5308         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5309         * lib/fpurge.c (fpurge): Likewise.
5310         * lib/freadable.c (freadable): Likewise.
5311         * lib/freadahead.c (freadahead): Likewise.
5312         * lib/freading.c (freading): Likewise.
5313         * lib/freadptr.c (freadptr): Likewise.
5314         * lib/freadseek.c (freadptrinc): Likewise.
5315         * lib/fseeko.c (rpl_fseeko): Likewise.
5316         * lib/fseterr.c (fseterr): Likewise.
5317         * lib/fwritable.c (fwritable): Likewise.
5318         * lib/fwriting.c (fwriting): Likewise.
5319         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5320
5321 2008-04-09  Eric Blake  <ebb9@byu.net>
5322
5323         Avoid some autoconf warnings.
5324         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5325         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5326         * m4/afs.m4 (gl_AFS): Likewise.
5327         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5328         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5330         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5331         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5332         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5333         (AC_CHECK_DECLS_ONCE): Likewise.
5334         Rename file...
5335         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5336         gnulib-tool requires autoconf 2.59 or better.
5337         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5338
5339 2008-04-08  Eric Blake  <ebb9@byu.net>
5340
5341         Use 'git describe --match' if present (added in git 1.5.5).
5342         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5343         if possible.
5344
5345 2008-04-08  Bruno Haible  <bruno@clisp.org>
5346
5347         Add tentative support for OpenServer.
5348         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5349         _ptr, _cnt.
5350         * lib/fpurge.c (fpurge): Likewise.
5351         * lib/freadable.c (freadable): Likewise.
5352         * lib/freadahead.c (freadahead): Likewise.
5353         * lib/freading.c (freading): Likewise.
5354         * lib/freadptr.c (freadptr): Likewise.
5355         * lib/freadseek.c (freadptrinc): Likewise.
5356         * lib/fseeko.c (rpl_fseeko): Likewise.
5357         * lib/fseterr.c (fseterr): Likewise.
5358         * lib/fwritable.c (fwritable): Likewise.
5359         * lib/fwriting.c (fwriting): Likewise.
5360         Reported by Roger Cornelius <rac@tenzing.org> and
5361         Brian K. White <brian@aljex.com>.
5362
5363 2008-04-06  Jim Meyering  <meyering@redhat.com>
5364
5365         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5366
5367 2008-04-06  Bruno Haible  <bruno@clisp.org>
5368
5369         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5370         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5371         * tests/test-printf-posix.sh: Likewise.
5372         * tests/test-vfprintf-posix.sh: Likewise.
5373         * tests/test-vprintf-posix.sh: Likewise.
5374         * tests/test-xprintf-posix.sh: Likewise.
5375
5376 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5377
5378         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5379         hide error from 'ls', needed on OS/2.
5380         Report by Elbert Pol <elbert.pol@gmail.com>.
5381
5382 2008-04-04  Eric Blake  <ebb9@byu.net>
5383
5384         Make test-fseeko.c failures meaningful.
5385         * tests/test-fseeko.c: Print line number on failure.
5386         * tests/test-fseek.c: Likewise.
5387         Reported by Nelson H. F. Beebe.
5388
5389         Improve strtod bug detection check.
5390         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5391         required for Solaris 10.
5392         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5393
5394 2008-04-04  Bruno Haible  <bruno@clisp.org>
5395
5396         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5397         by m4/setenv.m4.
5398
5399 2008-04-03  Eric Blake  <ebb9@byu.net>
5400
5401         Ensure sane .version contents.
5402         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5403         version string.
5404         * build-aux/git-version-gen: Improve documentation.
5405
5406         Make GNU make output nicer.
5407         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5408         MAKECMDGOALS to enforce message for all command line targets.  Set
5409         srcdir for use in maint.mk.
5410
5411         Another maintainer tweak.
5412         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5413         a target that regenerates version.
5414
5415 2008-04-03  Jim Meyering  <meyering@redhat.com>
5416
5417         vc-list-files: don't cause coreutils "make po-check" failure
5418         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5419
5420 2008-04-03  Eric Blake  <ebb9@byu.net>
5421
5422         Allow VPATH usage of vc-list-files.
5423         * build-aux/vc-list-files (scriptversion): Add timestamp.
5424         (options): Add --help, --version, -C.
5425         (CVS): Support installed cvsu.
5426
5427 2008-04-02  Bruno Haible  <bruno@clisp.org>
5428
5429         Avoid some "statement with no effect" warnings from gcc.
5430         * tests/test-wctype.c (main): Explicitly ignore unused values.
5431         Reported by Jim Meyering.
5432
5433 2008-04-02  Jim Meyering  <meyering@redhat.com>
5434
5435         Avoid some warnings from "gcc -Wshadow".
5436         * tests/test-frexp.c (exp): Define to a different identifier.
5437         * tests/test-frexpl.c (exp): Likewise.
5438
5439 2008-04-03  Jim Meyering  <meyering@redhat.com>
5440
5441         bootstrap: remove dangling *.[ch] symlinks from lib
5442         * build-aux/bootstrap [dangling symlink removal]: Move find's
5443         -depth option to precede all others, to avoid a warning.
5444         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5445
5446 2008-04-02  Bruno Haible  <bruno@clisp.org>
5447
5448         Avoid some warnings from "gcc -Wshadow".
5449         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5450         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5451         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5452         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5453         Reported by Jim Meyering.
5454
5455 2008-04-01  Bruno Haible  <bruno@clisp.org>
5456
5457         Fix test to work on IRIX 6.5 with cc.
5458         * tests/test-math.c (numeric_equal): New function.
5459         (main): Use it.
5460
5461 2008-04-01  Bruno Haible  <bruno@clisp.org>
5462
5463         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5464
5465 2008-04-01  Bruno Haible  <bruno@clisp.org>
5466
5467         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5468         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5469         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5470         (Depends-on): Remove math.
5471
5472         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5473         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5474         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5475         (Depends-on): Remove math.
5476
5477         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5478         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5479         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5480         (Depends-on): Remove math.
5481         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5482         (Depends-on): Remove math.
5483
5484         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5485         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5486         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5487         (Depends-on): Remove math.
5488         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5489         (Depends-on): Remove math.
5490
5491         * tests/test-round1.c: Include nan.h.
5492         (main): Use NaNd instead of NAN.
5493         * modules/round-tests (Files): Add tests/nan.h.
5494
5495         * tests/test-trunc1.c: Include nan.h.
5496         (main): Use NaNd instead of NAN.
5497         * modules/trunc-tests (Files): Add tests/nan.h.
5498
5499         * tests/test-roundf1.c: Include nan.h.
5500         (main): Use NaNf instead of NAN.
5501         * modules/roundf-tests (Files): Add tests/nan.h.
5502
5503         * tests/test-truncf1.c: Include nan.h.
5504         (main): Use NaNf instead of NAN.
5505         * modules/truncf-tests (Files): Add tests/nan.h.
5506
5507         * tests/test-ceilf1.c: Include nan.h.
5508         (main): Use NaNf instead of NAN.
5509         * modules/ceilf-tests (Files): Add tests/nan.h.
5510
5511         * tests/test-floorf1.c: Include nan.h.
5512         (main): Use NaNf instead of NAN.
5513         * modules/floorf-tests (Files): Add tests/nan.h.
5514
5515         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5516         (main): Use NaNf instead of NAN.
5517         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5518
5519         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5520         (main): Use NaNd instead of NAN.
5521         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5522
5523         * tests/test-frexp.c: Include nan.h.
5524         (main): Use NaNd instead of NAN.
5525         * modules/frexp-tests (Files): Add tests/nan.h.
5526
5527         * lib/isnan.c: Don't include <math.h>.
5528         (FUNC): Don't use NAN macro.
5529         * modules/isnand-nolibm (Depends-on): Remove math.
5530         * modules/isnanf-nolibm (Depends-on): Remove math.
5531         * modules/isnanl (Depends-on): Remove math.
5532         * modules/isnanl-nolibm (Depends-on): Remove math.
5533
5534         * tests/nan.h: New file.
5535
5536 2008-04-01  Eric Blake  <ebb9@byu.net>
5537
5538         Fix typos.
5539         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5540         values to be the right type.
5541
5542         For now, cater to gnulib strtod inaccuracies.
5543         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5544         fractional results.  While not as nice from a QoI perspective, it
5545         is a quicker patch than correctly implementing decimal to binary
5546         rounding.
5547
5548 2008-03-31  Eric Blake  <ebb9@byu.net>
5549
5550         Guarantee a definition of NAN.
5551         * lib/math.in.h (NAN): Define if missing.
5552         * tests/test-math.c (main): Test it.
5553         * doc/posix-headers/math.texi (math.h): Document this.
5554         * lib/isnan.c (rpl_isnand): Use it.
5555         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5556         * tests/test-floorf1.c (NaN): Likewise.
5557         * tests/test-frexp.c (NaN): Likewise.
5558         * tests/test-isnand.c (NaN): Likewise.
5559         * tests/test-isnanf.c (NaN): Likewise.
5560         * tests/test-round1.c (NaN): Likewise.
5561         * tests/test-roundf1.c (NaN): Likewise.
5562         * tests/test-snprintf-posix.h (NaN): Likewise.
5563         * tests/test-sprintf-posix.h (NaN): Likewise.
5564         * tests/test-trunc1.c (NaN): Likewise.
5565         * tests/test-truncf1.c (NaN): Likewise.
5566         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5567         * tests/test-vasprintf-posix.c (NaN): Likewise.
5568         * modules/isnand-nolibm (Depends-on): Add math.
5569         * modules/isnanf-nolibm (Depends-on): Likewise.
5570         * modules/isnanl (Depends-on): Likewise.
5571         * modules/isnanl-nolibm (Depends-on): Likewise.
5572         * modules/snprintf-posix-tests (Depends-on): Likewise.
5573         * modules/sprintf-posix-tests (Depends-on): Likewise.
5574         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5575         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5576         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5577         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5578
5579 2008-03-31  Bruno Haible  <bruno@clisp.org>
5580
5581         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5582         * doc/posix-functions/strtod.texi: Likewise.
5583
5584 2008-03-31  Bruno Haible  <bruno@clisp.org>
5585
5586         * tests/test-strtod.c (main): Don't use C99 syntax.
5587
5588 2008-03-31  Bruno Haible  <bruno@clisp.org>
5589
5590         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5591         Reported by Eric Blake.
5592
5593 2008-03-31  Jim Meyering  <meyering@redhat.com>
5594
5595         Don't compare actual signbit return values.
5596         * tests/test-strtod.c (main): Rather, compare only their
5597         zero/non-zero nature.
5598
5599 2008-03-31  Eric Blake  <ebb9@byu.net>
5600
5601         More strtod documentation.
5602         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5603         failures as distinct bugs.
5604
5605 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5606
5607         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5608         Problem reported by Erik Benada in
5609         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5610
5611 2008-03-30  Bruno Haible  <bruno@clisp.org>
5612
5613         * tests/test-strtod.c: Add comments about which assertion fails on which
5614         platform.
5615         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5616
5617 2008-03-30  Eric Blake  <ebb9@byu.net>
5618
5619         Test signbit behavior on zeros.
5620         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5621         (test_signbitd, test_signbitl): Likewise.
5622
5623         More strtod touchups.
5624         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5625         sign of negative underflow, for now.  Use .5, not .1.
5626         * doc/posix-functions/strtod.texi (strtod): Mention these
5627         limitations.
5628         Reported by Jim Meyering.
5629
5630 2008-03-30  Bruno Haible  <bruno@clisp.org>
5631
5632         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5633         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5634
5635 2008-03-30  Bruno Haible  <bruno@clisp.org>
5636
5637         Avoid failure when attempting to return empty iconv results on some
5638         platforms.
5639         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5640         allocation, don't report ENOMEM when the resulting string is empty.
5641
5642 2008-03-30  Bruno Haible  <bruno@clisp.org>
5643
5644         Fix buffer overrun.
5645         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5646         Don't consider the width for tmp_length. Check count against tmp_length
5647         before doing the padding. Ensure enough allocation during padding.
5648
5649 2008-03-30  Eric Blake  <ebb9@byu.net>
5650
5651         strtod touchups.
5652         * lib/strtod.c (strtod): Avoid compiler warnings.
5653         Reported by Jim Meyering.
5654
5655 2008-03-30  Bruno Haible  <bruno@clisp.org>
5656
5657         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5658         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5659         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5660         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5661         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5662         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5663         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5664         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5665
5666         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5667         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5668         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5669         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5670         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5671         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5672         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5673         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5674
5675         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5676         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5677         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5678         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5679         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5680         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5681         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5682         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5683
5684         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5685         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5686
5687         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5688         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5689
5690         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5691         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5692
5693         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5695         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5696
5697         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5699         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5700
5701         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5703         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5704
5705         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5707         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5708
5709         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5710         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5712         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5713         (Depends-on): Add EOVERFLOW.
5714         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5715         (Depends-on): Add EOVERFLOW.
5716         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5717         (Depends-on): Add EOVERFLOW.
5718         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5719         (Depends-on): Add EOVERFLOW.
5720         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5721         (Depends-on): Add EOVERFLOW.
5722         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5723         (Depends-on): Add EOVERFLOW.
5724         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5725         (Depends-on): Add EOVERFLOW.
5726         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5727         (Depends-on): Add EOVERFLOW.
5728
5729         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5731         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5732
5733         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5735         * modules/snprintf (Depends-on): Add EOVERFLOW.
5736
5737         * lib/poll.c (EOVERFLOW): Remove fallback.
5738         * modules/poll (Depends-on): Add EOVERFLOW.
5739
5740         * lib/getugroups.c (EOVERFLOW): Remove fallback.
5741         * modules/getugroups (Depends-on): Add EOVERFLOW.
5742
5743         * lib/getdelim.c (EOVERFLOW): Remove fallback.
5744         * modules/getdelim (Depends-on): Add EOVERFLOW.
5745
5746         * lib/ftell.c (EOVERFLOW): Remove fallback.
5747         * modules/ftell (Depends-on): Add EOVERFLOW.
5748
5749         * lib/fprintf.c (EOVERFLOW): Remove fallback.
5750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5751         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5752
5753         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5754
5755         * modules/EOVERFLOW-tests: New file.
5756         * tests/test-EOVERFLOW.c: New file.
5757
5758         * modules/EOVERFLOW: New file.
5759         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5760
5761 2008-03-30  Bruno Haible  <bruno@clisp.org>
5762
5763         Fix bug introduced on 2007-06-10.
5764         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5765         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5766
5767 2008-03-30  Bruno Haible  <bruno@clisp.org>
5768
5769         Improve freadseek's efficiency after ungetc.
5770         * lib/freadseek.c: Include freadahead.h.
5771         (freadptrinc): New function, extracted from freadseek.
5772         (freadseek): Use it in a loop. Use freadahead to determine the number
5773         of loop iterations.
5774         * modules/freadseek (Depends-on): Add freadahead.
5775         (configure.ac): Require AC_C_INLINE.
5776
5777 2008-03-30  Bruno Haible  <bruno@clisp.org>
5778
5779         * lib/freadseek.c (freadseek): Don't ignore the return value of
5780         freadptr.
5781
5782 2008-03-29  Eric Blake  <ebb9@byu.net>
5783
5784         Add hex float support.
5785         * modules/strtod (Depends-on): Add c-ctype.
5786         (Link): Mention POW_LIB.
5787         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
5788         whitespace between 'e' and exponent.
5789         * tests/test-strtod.c (main): Enable hex float tests.
5790         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5791         now provides.
5792
5793         Document various strtod bugs, with some fixes.
5794         * doc/posix-functions/strtod.texi (strtod): Document bugs with
5795         "-0x", "inf", "nan", and hex constants.
5796         * doc/posix-functions/atof.texi (atof): Likewise.
5797         * modules/stdlib (Makefile.am): Support strtod.
5798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5799         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5800         detect additional strtod bugs.
5801         * lib/stdlib.in.h (rpl_strtod): Add declarations.
5802         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
5803         bool where appropriate.  Parse 'inf' and 'nan'.
5804         * tests/test-strtod.c: New file.
5805         * modules/strtod (Depends-on): Add stdbool, stdlib.
5806         (configure.ac): Turn on module indicator.
5807         * modules/strtod-tests: New module.
5808
5809 2008-03-29  Eric Blake  <ebb9@byu.net>
5810
5811         Fix ftell on mingw.
5812         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5813         * modules/ftell-tests (Depends-on): Add binary-io.
5814         * modules/ftello-tests (Depends-on): Likewise.
5815         * tests/test-ftell.c (main): Enhance test to cover behavior after
5816         ungetc.  Enforce binary mode.
5817         * tests/test-ftello.c (main): Likewise.
5818
5819         Pass test-freadseek on cygwin.
5820         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5821         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5822         ungetc buffer.
5823
5824         * tests/test-fflush2.c (main): Fix typo.
5825
5826 2008-03-29  Bruno Haible  <bruno@clisp.org>
5827
5828         * tests/test-fflush2.c (main): Temporarily disable the contents of
5829         this test.
5830         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5831         Reported by Eric Blake.
5832
5833 2008-03-28  Simon Josefsson  <simon@josefsson.org>
5834
5835         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5836         (GC_SHA224_DIGEST_SIZE): Add.
5837
5838         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5839         (gc_hash_digest_length): Likewise.
5840         (gc_hash_buffer): Likewise.
5841
5842 2008-03-25  Bruno Haible  <bruno@clisp.org>
5843
5844         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5845         detail which gettext release to use.
5846         Reported by Simon Josefsson.
5847
5848 2008-03-26  Jim Meyering  <meyering@redhat.com>
5849
5850         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5851         * modules/gnumakefile (clean-GNUmakefile): Also, use
5852         test ... && ... || : syntax rather than if-then ... fi.
5853
5854         gnumakefile: Don't double-quote-expand $(VPATH) value.
5855         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5856
5857 2008-03-24  Eric Blake  <ebb9@byu.net>
5858
5859         Alter GNUmakefile to install into top directory.
5860         * modules/maintainer-makefile: Split, and add dependency...
5861         * modules/gnumakefile: to this new module.
5862         * build-aux/GNUmakefile: Move...
5863         * top/GNUmakefile: ...here.
5864         * build-aux/maint.mk: Move...
5865         * top/maint.mk: ...here.
5866         * MODULES.html.sh (Support for maintaining...): Document new
5867         module.
5868
5869 2008-03-23  Bruno Haible  <bruno@clisp.org>
5870
5871         * gnulib-tool: New options --vc-files, --no-vc-files.
5872         (func_usage): Document them.
5873         (vc_files): New variable.
5874         (func_import): Consider vc_files.
5875         (func_create_testdir): Set vc_files to empty.
5876         Suggested by Jim Meyering and Karl Berry.
5877
5878 2008-03-23  Bruno Haible  <bruno@clisp.org>
5879
5880         Fix regex compilation error on HP-UX 11.
5881         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5882         * modules/regex (Files): Add m4/mbstate_t.m4.
5883         Reported by Ton Voon <ton.voon@altinity.com>.
5884
5885 2008-03-23  Bruno Haible  <bruno@clisp.org>
5886
5887         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5888
5889 2008-03-23  Eric Blake  <ebb9@byu.net>
5890             Bruno Haible  <bruno@clisp.org>
5891
5892         Install files from top/ in the destination directory.
5893         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5894         augmentation also for the files from top/.
5895         (func_import, func_create_testdir): Rewrite file names:
5896         top/filename -> filename.
5897
5898 2008-03-23  Bruno Haible  <bruno@clisp.org>
5899
5900         Tweak "gnulib --version" output.
5901         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5902
5903 2008-03-23  Bruno Haible  <bruno@clisp.org>
5904
5905         Tweak "gnulib --version" output.
5906         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5907         rather than contents of ChangeLog, when possible.
5908
5909 2008-03-21  Eric Blake  <ebb9@byu.net>
5910
5911         More --version tweaks.
5912         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
5913         date of last ChangeLog entry.
5914
5915 2008-03-21  Jim Meyering  <meyering@redhat.com>
5916
5917         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5918
5919 2008-03-20  Eric Blake  <ebb9@byu.net>
5920
5921         VPATH fix.
5922         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5923
5924 2008-03-20  Simon Josefsson  <simon@josefsson.org>
5925
5926         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
5927         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
5928
5929 2008-03-20  Eric Blake  <ebb9@byu.net>
5930
5931         Sync GNUmakefile with coreutils.
5932         * build-aux/GNUmakefile (have-Makefile): Rename...
5933         (_have-Makefile): ...to this, for namespace consideration.
5934         (GNUmakefile.cfg): Include, if present.
5935         (_autoreconf): Define a default.
5936         (_is-dist-target): New rule for rebuilds to pick up intra-release
5937         version.
5938         (maint-cfg.mk): Rename...
5939         (cfg.mk): ...to this.
5940
5941 2008-03-18  Jim Meyering  <meyering@redhat.com>
5942
5943         New script and module: mktempd
5944         * MODULES.html.sh (maint+release support): Add mktempd.
5945         * build-aux/mktempd: New file.
5946         * modules/mktempd: New file.
5947
5948 2008-03-15  Jim Meyering  <meyering@redhat.com>
5949
5950         Undo last change.
5951         * lib/sha1.c, lib/md5.c: 63 != ~63.
5952         Reported by Andreas Schwab.
5953
5954         sha1.c, md5.c: Hoist a redundant expression.
5955         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5956         "ctx->buflen" only once, before calling *_process_block.
5957         * lib/md5.c (md5_process_bytes): Likewise.
5958
5959 2008-03-14  Eric Blake  <ebb9@byu.net>
5960
5961         Bump copyright year in files generated by gnulib-tool.
5962         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5963         gnulib-tool, rather than hard-coding it.
5964
5965         Fix 'gnulib-tool --version' output to work with git.
5966         * gnulib-tool (func_gnulib_dir): New function, extracted from...
5967         (startup): ...here.
5968         (func_version): Use it to invoke git-version-gen, rather than
5969         relying on CVS keyword expansion.  Modernize wording.
5970         (cvsdatestamp, last_checkin_date, version): Kill unused
5971         variables.
5972
5973 2008-03-12  Jim Meyering  <meyering@redhat.com>
5974
5975         Recognize optional cast of the argument to free.
5976         * build-aux/useless-if-before-free: Update regexps.
5977
5978         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5979
5980 2008-03-11  Bruno Haible  <bruno@clisp.org>
5981
5982         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5983         by a single package.
5984         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5985         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5986         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5987         Reported by Sam Steingold <sds@gnu.org>.
5988
5989 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5990
5991         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5992         repositories.
5993
5994 2008-03-11  Bruno Haible  <bruno@clisp.org>
5995
5996         Avoid conflicts between local macro definitions.
5997         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5998         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5999
6000 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
6001             Bruno Haible  <bruno@clisp.org>
6002
6003         Make va_copy work with some version of xlc on AIX 5.1.
6004         * lib/stdarg.in.h: New file.
6005         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6006         On AIX, use a <stdarg.h> file substitute.
6007         * modules/stdarg (Files): Add lib/stdarg.in.h.
6008         (Depends-on): Add include_next.
6009         (Makefile.am): Build a stdarg.h substitute if requested.
6010         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6011
6012 2008-03-10  Bruno Haible  <bruno@clisp.org>
6013
6014         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6016         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6017
6018 2008-03-10  Bruno Haible  <bruno@clisp.org>
6019
6020         * modules/stdlib (Depends-on): Add include_next, remove
6021         absolute-header.
6022
6023 2008-03-09  Bruno Haible  <bruno@clisp.org>
6024
6025         * lib/freadahead.h (freadahead): Document more precisely.
6026         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6027         the sum of both buffer sizes.
6028         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6029         * NEWS: Document the change.
6030
6031 2008-03-09  Bruno Haible  <bruno@clisp.org>
6032
6033         Extend freadptr to return also the buffer size.
6034         * lib/freadptr.h (freadptr): Add sizep argument.
6035         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6036         (freadptr): Add sizep argument. Determine buffer size like freadahead
6037         does.
6038         * tests/test-freadptr.c: Don't include freadahead.h.
6039         (main): Adapt for new calling convention of freadptr.
6040         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6041         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6042         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6043         tests/test-freadptr2.sh.
6044         (Depends): Remove freadahead.
6045         (TESTS): Add test-freadptr2.sh.
6046         (check_PROGRAMS): Add test-freadptr2.
6047
6048 2008-03-09  Bruno Haible  <bruno@clisp.org>
6049
6050         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6051         Report and solution by Simon Josefsson.
6052
6053 2008-03-06  Bruno Haible  <bruno@clisp.org>
6054
6055         Make fflush after ungetc work on BSD platforms.
6056         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6057         * tests/test-fflush2.c: New file.
6058         * tests/test-fflush2.sh: New file.
6059         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6060         tests/test-fflush2.c.
6061         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6062         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6063
6064 2008-03-06  Eric Blake  <ebb9@byu.net>
6065
6066         Likewise for ftello.
6067         * modules/ftello (Dependencies): Add extensions.
6068         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6069
6070 2008-03-06  Bruno Haible  <bruno@clisp.org>
6071
6072         * modules/fseeko (Dependencies): Add extensions.
6073         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6074         Needed on glibc systems.
6075
6076 2008-03-06  Bruno Haible  <bruno@clisp.org>
6077
6078         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6079         email address.
6080         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6081
6082 2008-03-06  Bruno Haible  <bruno@clisp.org>
6083
6084         * users.txt: Add libgnupdf.
6085
6086 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6087
6088         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6089         (Header File Substitutes, Function Substitutes,
6090         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6091         (Build robot for gnulib): Fix typo.
6092
6093 2008-03-06  Bruno Haible  <bruno@clisp.org>
6094
6095         * doc/gnulib-tool.texi (VCS Issues): Small updates.
6096         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6097
6098 2008-03-06  Bruno Haible  <bruno@clisp.org>
6099
6100         * doc/func.texi: New file, extracted from doc/gnulib.texi.
6101         * doc/gnulib.texi: Include it.
6102
6103 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6104
6105         * modules/func (License): Change license to unlimited; there was
6106         no LGPL parts in the module anyway.
6107
6108 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6109
6110         * modules/__func__: Renamed to modules/func.
6111         * modules/__func__-tests: Renamed to modules/func-tests.
6112         * tests/test-__func__.c: Renamed to tests/test-func.c.
6113         * m4/__func__.m4: Renamed to m4/func.m4.
6114         * doc/gnulib.texi (__func__): Section renamed to func.
6115         Suggested by Eric Blake <ebb9@byu.net>.
6116
6117 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6118
6119         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6120         about __func__.  Make example self-contained.  Suggested by Eric
6121         Blake <ebb9@byu.net>.
6122
6123         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6124         Suggested by Eric Blake <ebb9@byu.net>.
6125
6126 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6127
6128         * modules/__func__: New file.
6129         * modules/__func__-tests: New file.
6130         * tests/test-__func__.c: New file.
6131         * m4/__func__.m4: New file.
6132         * doc/gnulib.texi (__func__): Document __func__ module.
6133
6134 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6135
6136         * modules/byteswap (License): Re-license as LGPLv2+.
6137
6138 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6139
6140         * doc/Makefile: Add pdf target.
6141
6142 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6143
6144         * modules/inline (License): Use 'unlimited', since there are only
6145         *.m4 files in this module.
6146
6147 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6148             Bruno Haible  <bruno@clisp.org>
6149
6150         Add support for HP C 7.1 on OpenVMS 8.3.
6151         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6152
6153 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6154
6155         Update VMS specifics.
6156         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6157
6158 2008-03-02  Jim Meyering  <meyering@redhat.com>
6159
6160         Remove the last dependency on the "free" module.
6161         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6162         Reported by Bob Proulx.
6163
6164         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6165
6166         Remove useless "if" tests before free.  Deprecate "free" module.
6167         * doc/posix-functions/free.texi: Mention that this
6168         module is no longer useful.
6169         * modules/free (Notice): Say this module is obsolete.
6170         * modules/readutmp (Depends-on): Remove free.
6171         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6172         * lib/putenv.c (putenv): Likewise.
6173         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6174         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6175         * tests/test-c-strcasestr.c (main): Likewise.
6176         * tests/test-c-strstr.c (main): Likewise.
6177         * tests/test-mbscasestr1.c (main): Likewise.
6178         * tests/test-mbscasestr2.c (main): Likewise.
6179         * tests/test-mbsstr1.c (main): Likewise.
6180         * tests/test-mbsstr2.c (main): Likewise.
6181         * tests/test-memmem.c (main): Likewise.
6182         * tests/test-strcasestr.c (main): Likewise.
6183         * tests/test-striconv.c (main): Likewise.
6184         * tests/test-striconveh.c (main): Likewise.
6185         * tests/test-striconveha.c (main): Likewise.
6186         * tests/test-strstr.c (main): Likewise.
6187
6188         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6189
6190         bootstrap: sync from coreutils again
6191         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6192
6193 2008-03-01  Jim Meyering  <meyering@redhat.com>
6194
6195         bootstrap: sync from coreutils
6196         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6197         also when the target doesn't exist.
6198
6199 2008-03-01  Eric Blake  <ebb9@byu.net>
6200
6201         Fix bugs in last patch.
6202         * lib/memchr2.c (memchr2): Fix typo.
6203         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6204         extension.
6205         Reported by Bruce Korb.
6206
6207         New module 'memchr2'.
6208         * modules/memchr2: New file.
6209         * modules/memchr2-tests: Likewise.
6210         * lib/memchr2.h: Likewise.
6211         * lib/memchr2.c: Likewise, based on memchr.c.
6212         * tests/test-memchr2.c: New test.
6213         * MODULES.html.sh (String handling): Add memchr2.
6214
6215 2008-02-29  Bruno Haible  <bruno@clisp.org>
6216
6217         * modules/freadseek-tests: New file.
6218         * tests/test-freadseek.sh: New file.
6219         * tests/test-freadseek.c: New file.
6220
6221         New module 'freadseek'.
6222         * modules/freadseek: New file.
6223         * lib/freadseek.h: New file.
6224         * lib/freadseek.c: New file.
6225         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6226
6227 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6228
6229         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6230         wydawca.
6231
6232         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6233         program_invocation_name and program_invocation_short_name are
6234         present.
6235
6236 2008-02-28  Bruno Haible  <bruno@clisp.org>
6237
6238         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6239         * tests/test-freadptr.sh: Also test non-seekable stdin.
6240
6241 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6242
6243         * build-aux/bootstrap (source_base, m4_base)
6244         (doc_base, tests_base): New variables.
6245         (gnulib_tool_options): Do not hardcode base directories, use
6246         the above variables instead.
6247
6248 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6249
6250         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6251
6252 2008-02-28  Bruno Haible  <bruno@clisp.org>
6253
6254         * modules/freadptr-tests: New file.
6255         * tests/test-freadptr.sh: New file.
6256         * tests/test-freadptr.c: New file.
6257
6258         New module 'freadptr'.
6259         * modules/freadptr: New file.
6260         * lib/freadptr.h: New file.
6261         * lib/freadptr.c: New file.
6262         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6263
6264 2008-02-26  Karl Berry  <karl@freefriends.org>
6265
6266         Sync from Libtool:
6267         * libltdl/argz.c (argz_add, argz_count): New functions.
6268         * libltdl/argz.in.h: Declare them.
6269         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6270
6271 2008-02-22  Bruno Haible  <bruno@clisp.org>
6272
6273         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6274         is a pointer type.  Needed for HP-UX 10.
6275         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6276         * doc/posix-functions/gmtime_r.texi: Likewise.
6277         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6278
6279 2008-02-24  Bruno Haible  <bruno@clisp.org>
6280
6281         * modules/environ-tests: New file.
6282         * tests/test-environ.c: New file.
6283
6284         New module 'environ'.
6285         * modules/environ: New file.
6286         * lib/unistd.in.h (environ): New declaration.
6287         * m4/environ.m4: New file.
6288         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6289         after use.
6290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6291         HAVE_DECL_ENVIRON.
6292         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6293         HAVE_DECL_ENVIRON.
6294         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6295         wrong claim that 'environ' is missing on some systems.
6296         * modules/execute (Depends-on): Add environ.
6297         * lib/execute.c (environ): Remove fallback declaration.
6298         * modules/pipe (Depends-on): Add environ.
6299         * lib/pipe.c (environ): Remove fallback declaration.
6300         * modules/setenv (Depends-on): Add environ.
6301         * lib/setenv.c (environ): Remove fallback declaration.
6302         * modules/unsetenv (Depends-on): Add environ.
6303         * lib/unsetenv.c (environ): Remove fallback declaration.
6304         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6305         m4/environ.m4.
6306         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6307         (gl_PREREQ_UNSETENV): Likewise.
6308
6309 2008-02-24  Bruno Haible  <bruno@clisp.org>
6310
6311         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6312
6313 2008-02-20  Bob Proulx  <bob@proulx.com>
6314
6315         Enable use of older two part flavor 'git describe'.
6316         * build-aux/git-version-gen: If using the older two part flavor of
6317         git version then recreate the third part now present in the
6318         newer three part flavor of git describe.
6319
6320 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6321
6322         * lib/fts.c (fts_build): Typo correction to comment.
6323
6324 2008-02-17  Bruno Haible  <bruno@clisp.org>
6325
6326         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6327         generating no-op conflicts.
6328
6329 2008-02-17  Bruno Haible  <bruno@clisp.org>
6330
6331         Speed up by 10%.
6332         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6333         result_entries, rather than an index-based loop.
6334
6335 2008-02-17  Bruno Haible  <bruno@clisp.org>
6336
6337         Speed up by 25%.
6338         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6339         'hashcode_cached'.
6340         (entry_create): New function.
6341         (entry_hashcode): Use the cached hashcode if possible.
6342         (read_changelog_file, try_split_merged_entry): Use entry_create.
6343
6344 2008-02-17  Bruno Haible  <bruno@clisp.org>
6345
6346         Speed up from O(n^2) to O(n) for long ChangeLog files.
6347         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6348         (read_changelog_file): Change implementation of entries_reversed list
6349         to rbtreehash.
6350         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6351
6352 2008-02-17  Bruno Haible  <bruno@clisp.org>
6353
6354         New option --split-merged-entry.
6355         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6356         (find_paragraph_end, try_split_merged_entry): New functions.
6357         (long_options): Add option --split-merged-entry.
6358         (usage): Document option --split-merged-entry.
6359         (main): Implement option --split-merged-entry.
6360         Reported by Eric Blake.
6361
6362 2008-02-17  Bruno Haible  <bruno@clisp.org>
6363
6364         * lib/git-merge-changelog.c: Include c-strstr.h.
6365         (main): Support the "git pull --rebase" situation.
6366         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6367         Reported by Eric Blake.
6368
6369 2008-02-16  Eric Blake  <ebb9@byu.net>
6370
6371         Avoid doubling \ in common case of "c-maybe" quoting style.
6372         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6373         eliding outer quotes.
6374         * lib/quotearg.h: Document this.
6375         * tests/test-quotearg.c (result_strings, inputs, results_g)
6376         (flag_results, locale_results): Test it by adding a new string to
6377         each test group.
6378         (compare_strings): Test new string.
6379
6380 2008-02-13  Eric Blake  <ebb9@byu.net>
6381
6382         Avoid trigraph quoting in default output.
6383         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6384         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6385         unless explicitly requested.
6386         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6387
6388 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6389
6390         Don't rely on signed integer overflowing to negative value.
6391         * lib/getugroups.c (getugroups): Include <limits.h>.
6392         Instead, compare against INT_MAX, and increment only if the test passes.
6393
6394 2008-02-13  Jim Meyering  <meyering@redhat.com>
6395         and Eric Blake  <ebb9@byu.net>
6396
6397         Avoid shadowing warning and compile errors on Linux.
6398         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6399         forwarding macros on Linux.
6400         (dcgettext): Define a stub, for Linux.
6401         (results_g, main): Avoid warnings.
6402
6403 2008-02-12  Eric Blake  <ebb9@byu.net>
6404
6405         Silence warning in last patch.
6406         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6407
6408         Quotearg part 4: add tests, fix c-maybe colon quoting.
6409         * lib/quotearg.h: Improve documentation.
6410         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6411         escapes when adding outer quotes.  When quoting trigraphs, use
6412         valid C notation.  When quoting NUL, omit extra characters if next
6413         character is not digit.  Alter prototype.
6414         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6415         callers.
6416         * modules/quotearg-tests: New module.
6417         * tests/test-quotearg.c: New test.
6418
6419 2008-02-07  Eric Blake  <ebb9@byu.net>
6420
6421         Quotearg part 3: add flag to control outer quote elision.
6422         * lib/quotearg.h (c_maybe_quoting_style): New style.
6423         (enum quoting_flags): Better documentation of flags.
6424         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6425         c-maybe style.
6426         (quotearg_buffer_restyled): Handle new flag to elide outer
6427         quotes.
6428
6429         Quotearg part 2: add flag that can control NUL elision.
6430         * lib/quotearg.h (set_quoting_flags): New prototype.
6431         * lib/quotearg.c (struct quoting_options): Add flag field.
6432         (set_quoting_flags): New function.
6433         (quotearg_buffer_restyled): Add flags parameter.
6434         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6435         (quotearg_n_options): Set the flag, since length cannot be
6436         returned.
6437         (quoting_options_from_style): Default flags correctly.
6438
6439         Quotearg part 1: more wrappers, restore quotearg_char state.
6440         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6441         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6442         (quotearg_colon_mem): New wrappers.
6443         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6444         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6445         functions.
6446         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6447         (quotearg_colon_mem): New functions.
6448
6449 2008-02-11  Bruno Haible  <bruno@clisp.org>
6450
6451         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6452         library in the current directory: it does not work with parallel make.
6453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6454
6455 2008-02-11  Bruno Haible  <bruno@clisp.org>
6456
6457         * .gitattributes: New file.
6458
6459 2008-02-11  Jim Meyering  <meyering@redhat.com>
6460
6461         useless-if-before-free: Fix reversed exit values.
6462         * build-aux/useless-if-before-free: Use correct values
6463         for EXIT_MATCH and EXIT_NO_MATCH.
6464
6465         * build-aux/useless-if-before-free: Close stdout carefully.
6466
6467 2008-02-10  Bruno Haible  <bruno@clisp.org>
6468
6469         New module 'git-merge-changelog'.
6470         * modules/git-merge-changelog: New file.
6471         * lib/git-merge-changelog.c: New file.
6472
6473 2008-02-10  Jim Meyering  <meyering@redhat.com>
6474
6475         useless-if-before-free: New option: --list (-l).
6476
6477         useless-if-before-free: Don't exit immediately upon open failure.
6478         * build-aux/useless-if-before-free: Exit 2 for errors.
6479         Upon failure to open a file, don't exit immediately.
6480         Rather, just warn and continue with any remaining files.
6481
6482 2008-02-10  Bruno Haible  <bruno@clisp.org>
6483
6484         New abstract list operation 'node_set_value'.
6485         * lib/gl_list.h (gl_list_node_set_value): New function.
6486         (struct gl_list_implementation): New field node_set_value.
6487         * lib/gl_list.c (gl_list_node_set_value): New function.
6488         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6489         (gl_array_list_implementation): Update.
6490         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6491         (gl_carray_list_implementation): Update.
6492         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6493         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6494         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6495         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6496         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6497         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6498         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6499         Update.
6500         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6501         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6502         (gl_sublist_list_implementation): Update.
6503
6504 2008-02-10  Bruno Haible  <bruno@clisp.org>
6505
6506         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6507         Needed when ELEMENT is #defined to 'some_type *'.
6508
6509 2008-02-10  Jim Meyering  <meyering@redhat.com>
6510
6511         New script and module: useless-if-before-free
6512         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6513         * build-aux/useless-if-before-free: New file.
6514         * modules/useless-if-before-free: New file.
6515
6516         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6517
6518         xstrtol_error: Fix typo.
6519         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6520         s/exit_failure/exit_status/.
6521
6522 2008-02-09  Jim Meyering  <meyering@redhat.com>
6523
6524         New script and module: gitlog-to-changelog
6525         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6526         * modules/gitlog-to-changelog: New file.
6527         * build-aux/gitlog-to-changelog: New file.
6528
6529 2008-02-08  Jim Meyering  <meyering@redhat.com>
6530
6531         Avoid two "parameter unused" warnings.
6532         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6533         Mark "st" as used.
6534
6535         Use "git COMMAND", not "git-COMMAND".
6536         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6537         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6538         * build-aux/git-version-gen: Use "git status", not "git-status".
6539
6540 2008-02-07  Bruno Haible  <bruno@clisp.org>
6541
6542         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6543         Avoids a crash on Windows Vista.
6544         Reported by Adam Strzelecki <ono@java.pl> via
6545         Simon Josefsson <simon@josefsson.org>.
6546
6547 2008-02-06  Bruno Haible  <bruno@clisp.org>
6548
6549         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6550         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6551         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6553         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6554         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6555         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6556         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6557         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6558         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6564         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6565         left-adjust flag.
6566         * tests/test-snprintf-posix.h (test_function): Likewise.
6567         * tests/test-sprintf-posix.h (test_function): Likewise.
6568         * tests/test-vasprintf-posix.c (test_function): Likewise.
6569         * doc/posix-functions/fprintf.texi: Update.
6570         * doc/posix-functions/printf.texi: Update.
6571         * doc/posix-functions/snprintf.texi: Update.
6572         * doc/posix-functions/sprintf.texi: Update.
6573         * doc/posix-functions/vfprintf.texi: Update.
6574         * doc/posix-functions/vprintf.texi: Update.
6575         * doc/posix-functions/vsnprintf.texi: Update.
6576         * doc/posix-functions/vsprintf.texi: Update.
6577         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6578
6579 2008-02-06  Bruno Haible  <bruno@clisp.org>
6580
6581         Fix bug introduced on 2008-01-26.
6582         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6583
6584 2008-02-06  Bruno Haible  <bruno@clisp.org>
6585
6586         Fix bug introduced on 2007-06-10.
6587         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6588         !NEED_PRINTF_FLAG_ZERO.
6589
6590 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6591
6592         getloadavg: use libperfstat on AIX5
6593         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6594
6595 2008-02-03  Bruno Haible  <bruno@clisp.org>
6596
6597         * lib/diffseq.h: Add comments about required #includes.
6598         Reported by Michael Biggs <gnulib@doubleplum.net>.
6599
6600 2008-02-01  Bruno Haible  <bruno@clisp.org>
6601
6602         * users.txt: Add gnuit.
6603
6604 2008-01-31  Bruno Haible  <bruno@clisp.org>
6605
6606         * lib/md4.c (set_uint32): Mark as inline.
6607         * lib/md5.c (set_uint32): Likewise.
6608         * lib/sha1.c (set_uint32): Likewise.
6609         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6610         * m4/md5.m4 (gl_MD5): Likewise.
6611         * m4/sha1.m4 (gl_SHA1): Likewise.
6612
6613 2008-01-31  Jim Meyering  <meyering@redhat.com>
6614
6615         Use "sizeof VAR", rather than a literal "4".
6616         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6617         * lib/md4.c (md4_read_ctx): Likewise.
6618         * lib/sha1.c (sha1_read_ctx): Likewise.
6619
6620 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6621
6622         * tests/test-sha1.c: New file, based on test-md5.c.
6623
6624         * modules/crypto/sha1-tests: New file.
6625
6626 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6627
6628         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6629
6630 2008-01-31  Jim Meyering  <meyering@redhat.com>
6631
6632         Prefer "sizeof v" over the equivalent "4".
6633         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6634         * lib/md5.c (set_uint32): Likewise.
6635         * lib/sha1.c (set_uint32): Likewise.
6636
6637 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6638
6639         * lib/sha1.c (set_uint32): Mark function as static.
6640
6641 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6642
6643         md2: clarify comments to say that alignment is not required.
6644         * lib/md2.h: Remove warning about alignment in comment.
6645         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6646         never been required.
6647
6648 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6649
6650         md4: adapt alignment constraint fix from sha1.
6651         * lib/md4.c (set_uint32): New function, from sha1.c
6652         (md4_read_ctx): Use it.
6653         (md4_finish_ctx): Doc fix.
6654         * lib/md4.h: Doc fix.
6655
6656 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6657
6658         md5: adapt alignment constraint fix from sha1.
6659         * lib/md5.c (set_uint32): New function, from sha1.c
6660         (md5_read_ctx): Use it.
6661         (md5_finish_ctx): Doc fix.
6662         * lib/md5.h: Doc fix.
6663
6664 2008-01-30  Peter Palfrader  <weasel@debian.org>
6665
6666         sha1: remove the result buffer alignment constraint
6667         * lib/sha1.c (set_uint32): New function.
6668         (sha1_read_ctx): Rewrite to remove the result buffer alignment
6669         constraint.
6670         (sha1_finish_ctx): Remove comment warning about alignment constraint.
6671         * lib/sha1.h: Likewise.
6672
6673 2008-01-30  Andreas Schwab  <schwab@suse.de>
6674             Bruno Haible  <bruno@clisp.org>
6675
6676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6677         correct definition of LDBL_MIN_EXP.
6678
6679 2008-01-30  Karl Berry  <karl@gnu.org>
6680
6681         * config/srclist-update: try to preserve x bit on updates.
6682         * config/srclistvars.sh: update for karl.
6683
6684 2008-01-29  Jim Meyering  <meyering@redhat.com>
6685
6686         vasnprintf.c: Avoid warning about unused label
6687         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6688         "overflow" label definition and associated code with the
6689         same cpp condition that guards the sole use of that label.
6690
6691 2008-01-26  Bruno Haible  <bruno@clisp.org>
6692
6693         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6694         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6695         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6696         * lib/isnanl-nolibm.h (isnanl): Likewise.
6697         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6698
6699 2008-01-26  Bruno Haible  <bruno@clisp.org>
6700
6701         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6702         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6703
6704 2008-01-26  Bruno Haible  <bruno@clisp.org>
6705
6706         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6707         GCC >= 4.0 built-in.
6708         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6709
6710 2008-01-26  Bruno Haible  <bruno@clisp.org>
6711
6712         Rename isnan, applicable to 'double' only, to isnand.
6713         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6714         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6715         (configure.ac): Update.
6716         (Include): Replace "isnan.h" with "isnand.h".
6717         * m4/isnand.m4: Renamed from m4/isnan.m4.
6718         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6719         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6720         instead of isnan.c.
6721         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6722         instead of HAVE_ISNAN_IN_LIBC.
6723         (isnand): Renamed from isnan.
6724         * lib/isnand.c: New file.
6725         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6726         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6727         (Makefile.am): Update.
6728         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6729         Include isnand.h instead of isnan.h.
6730         (main): Test isnand instead of isnan.
6731         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6732         isnan-nolibm.
6733         * modules/frexp (Depends-on): Likewise.
6734         * modules/frexp-tests (Depends-on): Likewise.
6735         * modules/frexp-nolibm (Depends-on): Likewise.
6736         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6737         * modules/isfinite (Depends-on): Likewise.
6738         * modules/round-tests (Depends-on): Likewise.
6739         * modules/signbit (Depends-on): Likewise.
6740         * modules/signbit-tests (Depends-on): Likewise.
6741         * modules/snprintf-posix (Depends-on): Likewise.
6742         * modules/sprintf-posix (Depends-on): Likewise.
6743         * modules/trunc-tests (Depends-on): Likewise.
6744         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6745         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6746         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6747         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6748         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6749         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6750         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6751         * modules/vasnprintf-posix (Depends-on): Likewise.
6752         * modules/vasprintf-posix (Depends-on): Likewise.
6753         * modules/vfprintf-posix (Depends-on): Likewise.
6754         * modules/vsnprintf-posix (Depends-on): Likewise.
6755         * modules/vsprintf-posix (Depends-on): Likewise.
6756         * lib/frexp.c: Include isnand.h instead of isnan.h.
6757         (ISNAN): Set to isnand instead of isnan.
6758         * lib/isfinite.c: Include isnand.h instead of isnan.h.
6759         (gl_isfinited): Use isnand instead of isnan.
6760         * lib/signbitd.c: Include isnand.h instead of isnan.h.
6761         (gl_signbitd): Use isnand instead of isnan.
6762         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6763         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6764         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6765         (main): Use isnand instead of isnan.
6766         * tests/test-round1.c: Include isnand.h.
6767         (main): Use isnand instead of isnan.
6768         * tests/test-round2.c: Include isnand.h instead of isnan.h.
6769         (ISNAN): Set to isnand instead of isnan.
6770         * tests/test-trunc1.c: Include isnand.h.
6771         (main): Use isnand instead of isnan.
6772         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6773         (equal): Use isnand instead of isnan.
6774         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6775         isnand-nolibm.
6776         * NEWS: Mention the change.
6777
6778 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6779             Bruno Haible  <bruno@clisp.org>
6780
6781         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6782         the GCC builtins for signbits are present and set
6783         REPLACE_SIGNBIT_USING_GCC if so.
6784         * lib/math.in.h (signbit): Define using GCC builtins if
6785         REPLACE_SIGNBIT_USING_GCC is set.
6786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6787         REPLACE_SIGNBIT_USING_GCC.
6788         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6789
6790 2008-01-25  Jim Meyering  <meyering@redhat.com>
6791
6792         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
6793         * lib/poll.c: Include <config.h>, not "config.h".
6794         * tests/test-getaddrinfo.c: Likewise.
6795
6796 2008-01-25  Simon Josefsson  <simon@josefsson.org>
6797
6798         * modules/sockets-tests: New file.
6799
6800 2008-01-24  Simon Josefsson  <simon@josefsson.org>
6801
6802         * modules/sockets: New module, can be used to call WSA_Startup and
6803         WSA_Cleanup when needed.
6804
6805         * lib/sockets.h, lib/sockets.c: New files.
6806
6807         * m4/sockets.m4: New file.
6808
6809         * tests/test-sockets.c: New file.
6810
6811 2008-01-19  Bruno Haible  <bruno@clisp.org>
6812
6813         * doc/posix-headers: Renamed from doc/headers.
6814         * doc/posix-functions: Renamed from doc/functions.
6815         * doc/gnulib.texi: Update.
6816
6817 2008-01-19  Bruno Haible  <bruno@clisp.org>
6818
6819         * doc/glibc-functions/strcasestr.texi: Include contents of
6820         doc/functions/strcasestr.texi, fixing the list of platforms.
6821         * doc/functions/strcasestr.texi: Remove file.
6822
6823 2008-01-19  Bruno Haible  <bruno@clisp.org>
6824
6825         * doc/glibc-functions/memmem.texi: Include contents of
6826         doc/functions/memmem.texi.
6827         * doc/functions/memmem.texi: Remove file.
6828
6829 2008-01-18  Bruno Haible  <bruno@clisp.org>
6830
6831         * doc/glibc-functions/*.texi: New files.
6832         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6833         to use the new files.
6834
6835 2008-01-17  Bruno Haible  <bruno@clisp.org>
6836
6837         * tests/test-gethostname.c (main): Fix printf statement.
6838
6839 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6840
6841         * modules/gethostname-tests: New file.
6842
6843         * tests/test-gethostname.c: New file.
6844
6845 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6846
6847         * lib/gethostname.c: Include string.h unconditionally, strncpy is
6848         used by the UNAME case.  Reported by Bruno Haible
6849         <bruno@clisp.org>.
6850
6851 2008-01-17  Eric Blake  <ebb9@byu.net>
6852
6853         Convert c-strcasestr to be more efficient.
6854         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6855         (Depends-on): Add c-strcase, remove malloca, strnlen.
6856         * tests/test-c-strcasestr.c (main): Enhance test.
6857         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6858
6859 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6860
6861         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6862         Use it in creating po/Makevars.
6863
6864 2008-01-15  Simon Josefsson  <simon@josefsson.org>
6865
6866         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6867         Applications that requires it should initialize libgcrypt
6868         manually.
6869
6870 2008-01-16  Simon Josefsson  <simon@josefsson.org>
6871
6872         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6873
6874 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6875
6876         Fix problem with getdate on mingw32 reported by Simon Josefsson
6877         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6878         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6879         tzname", when deciding whether to declare tzname.
6880         * lib/strftime.c (tzname): Likewise.
6881
6882 2008-01-15  Bruno Haible  <bruno@clisp.org>
6883
6884         Work around a MacOS X 10.5 bug in frexpl().
6885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6886         * doc/functions/frexpl.texi: Document the bug.
6887         Reported by Elias Pipping <pipping@gentoo.org>.
6888
6889 2008-01-14  Eric Blake  <ebb9@byu.net>
6890
6891         Touch up previous patch.
6892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6893         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6894
6895         Convert strcasestr module to use Two-Way algorithm.
6896         * modules/strcasestr-simple: New module, based on the old
6897         strcasestr, but with Two-Way rather than KMP.
6898         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6899         * lib/string.in.h (rpl_strcasestr): Declare.
6900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6901         performance.
6902         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6903         * modules/string (Makefile.am): Support strcasestr.
6904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6905         * modules/strcasestr-tests (Depends-on): Check for alarm.
6906         * tests/test-strcasestr.c: Augment test.
6907         * lib/str-two-way.h: Clean up stray macro.
6908         * NEWS: Document new module.
6909         * MODULES.html.sh (string handling): Likewise.
6910         * doc/functions/strcasestr.texi: New file.
6911         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
6912         here, since it is not a POSIX function.
6913
6914 2008-01-14  Colin Watson  <cjwatson@debian.org>
6915             Bruno Haible  <bruno@clisp.org>
6916
6917         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6918         works fine; if not, set REPLACE_STRSIGNAL.
6919         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6921         REPLACE_STRSIGNAL.
6922         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6923         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6924         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6925
6926 2008-01-14  Bruno Haible  <bruno@clisp.org>
6927
6928         * modules/strsignal (Include): Change to <string.h>.
6929
6930 2008-01-14  Colin Watson  <cjwatson@debian.org>
6931
6932         * modules/argp (Notice): Add a notice recommending to change
6933         XGETTEXT_OPTIONS.
6934         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6935
6936 2008-01-13  Colin Watson  <cjwatson@debian.org>
6937
6938         * modules/strsignal-tests: New file.
6939         * tests/test-strsignal.c: New file.
6940
6941         * lib/strsignal.c: New file, from glibc with modifications.
6942         * lib/siglist.h: New file, from glibc with modifications.
6943         * lib/string.in.h (strsignal): New declaration.
6944         * m4/strsignal.m4: New file.
6945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6946         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6947         * modules/strsignal: New file.
6948         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6949         HAVE_DECL_STRSIGNAL.
6950
6951 2008-01-13  Bruno Haible  <bruno@clisp.org>
6952
6953         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6954         locale encoding is not ASCII. Needed for OpenBSD 4.0.
6955         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6956         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6957
6958 2008-01-13  Bruno Haible  <bruno@clisp.org>
6959
6960         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6961         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6962         * lib/argp.h (__attribute__): Likewise.
6963         * lib/c-stack.c (__attribute__): Likewise.
6964         * lib/error.h (__attribute__): Likewise.
6965         * lib/fts.c (__attribute__): Likewise.
6966         * lib/openat.h (__attribute__): Likewise.
6967         * lib/stdio.in.h (__attribute__): Likewise.
6968         * lib/string.in.h (__attribute__): Likewise.
6969         * lib/utimens.c (__attribute__): Likewise.
6970         * lib/vasnprintf.h (__attribute__): Likewise.
6971         * lib/xalloc.h (__attribute__): Likewise.
6972         * lib/xprintf.h (__attribute__): Likewise.
6973         * lib/xstrtol.h (__attribute__): Likewise.
6974         * lib/xvasprintf.h (__attribute__): Likewise.
6975
6976 2008-01-12  Bruno Haible  <bruno@clisp.org>
6977
6978         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6979         * doc/glibc-headers/a.out.texi: New file.
6980         * doc/glibc-headers/aliases.texi: New file.
6981         * doc/glibc-headers/alloca.texi: New file.
6982         * doc/glibc-headers/ar.texi: New file.
6983         * doc/glibc-headers/argp.texi: New file.
6984         * doc/glibc-headers/argz.texi: New file.
6985         * doc/glibc-headers/byteswap.texi: New file.
6986         * doc/glibc-headers/crypt.texi: New file.
6987         * doc/glibc-headers/endian.texi: New file.
6988         * doc/glibc-headers/envz.texi: New file.
6989         * doc/glibc-headers/err.texi: New file.
6990         * doc/glibc-headers/error.texi: New file.
6991         * doc/glibc-headers/execinfo.texi: New file.
6992         * doc/glibc-headers/fpu_control.texi: New file.
6993         * doc/glibc-headers/fstab.texi: New file.
6994         * doc/glibc-headers/fts.texi: New file.
6995         * doc/glibc-headers/getopt.texi: New file.
6996         * doc/glibc-headers/ieee754.texi: New file.
6997         * doc/glibc-headers/ifaddrs.texi: New file.
6998         * doc/glibc-headers/libintl.texi: New file.
6999         * doc/glibc-headers/mcheck.texi: New file.
7000         * doc/glibc-headers/mntent.texi: New file.
7001         * doc/glibc-headers/obstack.texi: New file.
7002         * doc/glibc-headers/paths.texi: New file.
7003         * doc/glibc-headers/printf.texi: New file.
7004         * doc/glibc-headers/pty.texi: New file.
7005         * doc/glibc-headers/resolv.texi: New file.
7006         * doc/glibc-headers/shadow.texi: New file.
7007         * doc/glibc-headers/sysexits.texi: New file.
7008         * doc/glibc-headers/ttyent.texi: New file.
7009
7010 2008-01-12  Jim Meyering  <meyering@redhat.com>
7011
7012         announce-gen: emit Gnulib's git-based version string.
7013         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7014         New option --gnulib-version=V, where V is expected to be
7015         the output of running git describe in the gnulib directory.
7016         (get_tool_versions): Request feedback on xdelta.  I suspect it's
7017         not useful, and plan to stop publishing an xdelta file with each
7018         coreutils release.
7019
7020         * build-aux/announce-gen: Also check for lzma-compressed files.
7021
7022 2008-01-11  Bruno Haible  <bruno@clisp.org>
7023
7024         * tests/test-memmem.c (main): Increase maximum allowed time.
7025         * tests/test-strstr.c (main): Likewise.
7026
7027 2008-01-11  Bruno Haible  <bruno@clisp.org>
7028
7029         * doc/functions/memmem.texi: Add more precisions about platforms.
7030         * doc/functions/strstr.texi: Likewise.
7031
7032 2008-01-10  Eric Blake  <ebb9@byu.net>
7033
7034         * m4/strstr.m4: Delete cruft from copy-n-paste.
7035         Reported by Bruno Haible.
7036
7037 2008-01-10  Bruno Haible  <bruno@clisp.org>
7038
7039         Make c-strstr rely on strstr.
7040         * lib/c-strstr.c: Don't include str-kmp.h.
7041         (c_strstr): Define in terms of strstr.
7042         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7043         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7044
7045 2008-01-10  Bruno Haible  <bruno@clisp.org>
7046
7047         * doc/gnulib.texi (String Functions in C Locale): New section.
7048         * doc/c-ctype.texi: New file.
7049         * doc/c-strcase.texi: New file.
7050         * doc/c-strcaseeq.texi: New file.
7051         * doc/c-strcasestr.texi: New file.
7052         * doc/c-strstr.texi: New file.
7053         * doc/c-strtod.texi: New file.
7054         * doc/c-strtold.texi: New file.
7055
7056 2008-01-10  Eric Blake  <ebb9@byu.net>
7057
7058         * lib/relocatable.h: Fix a comment.
7059
7060 2008-01-10  Eric Blake  <ebb9@byu.net>
7061
7062         Share two-way algorithm.
7063         * lib/str-two-way.h: New file, merged from...
7064         * lib/memmem.c: ...here...
7065         * lib/strstr.c: ...and here.
7066         * modules/memmem (Files): Use it.
7067         * modules/strstr (Files): Likewise.
7068
7069         Avoid quadratic strstr implementations.
7070         * lib/strstr.c: New file.
7071         * m4/strstr.m4: Likewise.
7072         * modules/strstr: Likewise.
7073         * modules/strstr-tests: Likewise.
7074         * tests/test-strstr.c: Likewise.
7075         * lib/string.in.h (rpl_strstr): Declare.
7076         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7078         * modules/string (Makefile.am): Likewise.
7079         * MODULES.html.sh (string handling): Mention new module.
7080         * doc/functions/strstr.texi (strstr): Document the bug.
7081
7082 2008-01-10  Bruno Haible  <bruno@clisp.org>
7083
7084         * lib/relocatable.h (relocate): State whether result is freshly
7085         allocated or not.
7086         * lib/relocatable.c (relocate): Return a freshly allocated string
7087         instead of a pointer to a privately held string.
7088         Reported by Sylvain Beucler <beuc@gnu.org>.
7089
7090 2008-01-10  Colin Watson  <cjwatson@debian.org>
7091
7092         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7093         s/S_ISNLK/S_ISLNK/.
7094
7095 2008-01-09  Bruno Haible  <bruno@clisp.org>
7096
7097         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7098         and other files.
7099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7100         if it's only a guess.
7101         * modules/memmem: Simplify by depending on memmem-simple.
7102
7103 2008-01-09  Bruno Haible  <bruno@clisp.org>
7104
7105         Work around OpenBSD 4.0 tdelete() bug.
7106         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7107         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7108         macros and don't redefine the enum values.
7109         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7110         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7111         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7112
7113 2008-01-09  Bruno Haible  <bruno@clisp.org>
7114
7115         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7116         (main): Don't perform the tests if setlocale did not install a UTF-8
7117         locale. Needed on OpenBSD 4.0.
7118         * modules/wcwidth-tests (Depends-on): Add localcharset.
7119
7120 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7121
7122         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7123         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7124         * NEWS: announce this.
7125         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7126
7127 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7128         and Eric Blake  <ebb9@byu.net>
7129
7130         Add memmem-simple module.
7131         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7132         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7133         * modules/memmem-simple: New file.
7134         * modules/memmem (Description): Tweak.
7135         * MODULES.html.sh (string handling): Mention new module.
7136         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7137         addressed by memmem-simple.
7138         * NEWS: Document the difference.
7139
7140 2008-01-09  Eric Blake  <ebb9@byu.net>
7141
7142         Give gcc some memmem optimization hints.
7143         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7144         (strcasestr): Declare as pure.
7145         * modules/memmem (Maintainer): Claim my implementation.
7146
7147 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7148
7149         Support AIX 6.1 and higher.
7150         * build-aux/config.libpath: Likewise.
7151         * build-aux/config.rpath: Likewise.
7152
7153 2008-01-08  Jim Meyering  <meyering@redhat.com>
7154             Bruno Haible  <bruno@clisp.org>
7155
7156         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7157         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7158         Reported by Peter Fales in
7159         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7160
7161 2008-01-08  Bruno Haible  <bruno@clisp.org>
7162
7163         * modules/unictype/category-of (Depends-on): Add
7164         unictype/category-none.
7165         * modules/unictype/category-and-tests (Depends-on): Add
7166         unictype/category-{L,N,Lu,Nd}.
7167         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7168         * modules/unictype/category-or-tests (Depends-on): Add
7169         unictype/category-{L,N}.
7170         * modules/unictype/category-name-tests (Depends-on): Add
7171         unictype/category-{Z,Nl}.
7172         Reported by Simon Josefsson.
7173
7174 2008-01-08  Bruno Haible  <bruno@clisp.org>
7175
7176         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7177         convention better.
7178         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7179         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7180         Reported by Peter Miller <millerp@canb.auug.org.au>.
7181
7182 2008-01-08  Eric Blake  <ebb9@byu.net>
7183
7184         Rewrite memmem to guarantee linear complexity without malloc.
7185         * lib/memmem.c (memmem): Use Two-Way rather than
7186         Knuth-Morris-Pratt, to allow O(1) space usage.
7187         (critical_factorization, two_way_short_needle)
7188         (two_way_long_needle): New functions.
7189         (knuth_morris_pratt): Delete.
7190         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7191         Add stdint.
7192         * tests/test-memmem.c (main): Add tests for periodic needle and
7193         sublinear performance.
7194         * doc/functions/memmem.texi (memmem): Document other deficiencies
7195         in cygwin and older glibc.
7196
7197 2008-01-08  Bruno Haible  <bruno@clisp.org>
7198
7199         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7200         augmentation.
7201
7202 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7203
7204         Add a configure time option: --disable-acl.
7205         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7206         AC_ARG_ENABLE(acl).
7207
7208 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7209
7210         * tests/test-localename.c: Don't include obsolete "setenv.h".
7211
7212         * modules/localename-tests (Depends-on): Need unsetenv.
7213
7214 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7215
7216         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7217
7218 2008-01-06  Colin Watson  <cjwatson@debian.org>
7219
7220         * users.txt: Add man-db.
7221
7222 2008-01-07  Bruno Haible  <bruno@clisp.org>
7223
7224         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7225         previous section name.
7226
7227 2008-01-07  Bruno Haible  <bruno@clisp.org>
7228
7229         * lib/progname.c (set_program_name): Don't strip off a leading
7230         "lt-" prefix outside a .libs directory.
7231         Suggested by Paul Eggert.
7232
7233 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7234             Bruno Haible  <bruno@clisp.org>
7235
7236         Improve memory cleanup in 'relocatable' module.
7237         * lib/relocatable.h (compute_curr_prefix): Change return type to
7238         'char *'.
7239         * lib/relocatable.c (compute_curr_prefix): Change return type to
7240         'char *'. Free curr_installdir after use.
7241         (relocate): Free curr_prefix_better after use.
7242         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7243
7244 2008-01-01  Bruno Haible  <bruno@clisp.org>
7245
7246         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7247         failure on older glibc systems.
7248         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7249
7250 2008-01-05  Eric Blake  <ebb9@byu.net>
7251
7252         Avoid quadratic system memmem.
7253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7254         Reported by Ralf Wildenhues.
7255
7256         Fix memmem test for mingw.
7257         * modules/memmem-tests (configure.ac): Check for alarm.
7258         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7259         it.
7260         * doc/functions/memmem.texi: New file.
7261         * doc/gnulib.texi (Function Substitutes): Add memmem.
7262         Reported by Bruno Haible.
7263
7264 2008-01-04  Bruno Haible  <bruno@clisp.org>
7265
7266         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7267         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7268         gl_HEADER_STRING_H_DEFAULTS.
7269
7270 2008-01-04  Eric Blake  <ebb9@byu.net>
7271
7272         Shorten duration of memmem test.
7273         * tests/test-memmem.c (main): Use alarm to declare failure if test
7274         is taking too long.
7275         Reported by Ralf Wildenhues.
7276
7277 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7278
7279         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7280         string, needed by strerror.
7281
7282 2008-01-03  Colin Watson  <cjwatson@debian.org>
7283             Bruno Haible  <bruno@clisp.org>
7284
7285         * doc/gnulib-tool.texi (Localization): New section.
7286
7287 2008-01-02  Bruno Haible  <bruno@clisp.org>
7288
7289         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7290         variables to 'unsigned char *' type.
7291         Reported by Paul Eggert.
7292
7293 2008-01-02  Jim Meyering  <jim@meyering.net>
7294
7295         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7296
7297 2007-12-31  Jim Meyering  <jim@meyering.net>
7298
7299         Avoid use of private FTS type name.
7300         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7301
7302 2007-12-30  Karl Berry  <karl@gnu.org>
7303
7304         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7305         work around defect in Texinfo and/or the standalone Info browser.
7306
7307 2007-12-30  Bruno Haible  <bruno@clisp.org>
7308
7309         Unify 5 copies of the KMP code.
7310         * lib/str-kmp.h: New file.
7311         * lib/c-strcasestr.c: Include str-kmp.h.
7312         (knuth_morris_pratt): Remove function.
7313         (c_strcasestr): Update.
7314         * lib/c-strstr.c: Include str-kmp.h.
7315         (knuth_morris_pratt): Remove function.
7316         (c_strcasestr): Update.
7317         * lib/mbscasestr.c: Include str-kmp.h.
7318         (knuth_morris_pratt_unibyte): Remove function.
7319         * lib/mbsstr.c: Include str-kmp.h.
7320         (knuth_morris_pratt_unibyte): Remove function.
7321         * lib/strcasestr.c: Include str-kmp.h.
7322         (knuth_morris_pratt): Remove function.
7323         (strcasestr): Update.
7324         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7325         * modules/c-strstr (Files): Likewise.
7326         * modules/mbscasestr (Files): Likewise.
7327         * modules/mbsstr (Files): Likewise.
7328         * modules/strcasestr (Files): Likewise.
7329         Suggested by Paul Eggert.
7330
7331 2007-12-30  Bruno Haible  <bruno@clisp.org>
7332
7333         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7334         defined.
7335
7336 2007-12-30  Bruno Haible  <bruno@clisp.org>
7337
7338         * lib/xmalloca.h: Include xalloc.h.
7339         (xnmalloca): New macro.
7340
7341 2007-12-30  Bruno Haible  <bruno@clisp.org>
7342
7343         * lib/malloca.h (nmalloca): New macro.
7344         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7345         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7346         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7347         knuth_morris_pratt_multibyte): Likewise.
7348         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7349         knuth_morris_pratt_multibyte): Likewise.
7350         * lib/memmem.c (knuth_morris_pratt): Likewise.
7351         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7352
7353 2007-12-25  Bruno Haible  <bruno@clisp.org>
7354
7355         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7356         * lib/glob.c: Don't include openat.h.
7357         (link_exists2_p): Add back the code that deals with the
7358         !GLOB_ALTDIRFUNC case.
7359         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7360         let it do the filename concatenation.
7361         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7362         * modules/glob (Depends-on): Remove openat.
7363
7364 2007-12-31  Bruno Haible  <bruno@clisp.org>
7365
7366         * modules/dirfd (License): Change to LGPLv2+.
7367         Approved by Jim Meyering.
7368
7369 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7372         when multiplying M by sizeof (size_t).
7373
7374 2007-12-10  Martin Lambers  <marlam@marlam.de>
7375
7376         Override getpagesize on mingw.
7377         * lib/getpagesize.c: New file.
7378         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7379         * modules/getpagesize (Files): Add lib/getpagesize.c.
7380         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7382         REPLACE_GETPAGESIZE.
7383         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7384
7385 2007-12-25  Bruno Haible  <bruno@clisp.org>
7386
7387         * modules/localcharset (Notice): New field.
7388         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7389         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7390
7391 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7392             Bruno Haible  <bruno@clisp.org>
7393
7394         Avoid using the syntax symbol() in formatted documentation.
7395         * MODULES.html.sh (func_module): When replacing symbol() with a
7396         hyperlink, remove the parentheses. Show an error if some remain.
7397         Recognize and render the '...' syntax.
7398         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7399         Rework. Add paragraph about GCC's inlining.
7400         * doc/alloca.texi: Likewise.
7401         * doc/error.texi: Remove parentheses from symbol reference.
7402         * doc/gnulib-intro.texi: Likewise.
7403         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7404         * modules/fnmatch (Description): Reword to say "the ... function".
7405         * modules/full-read (Description): Likewise.
7406         * modules/full-write (Description): Likewise.
7407         * modules/safe-read (Description): Likewise.
7408         * modules/safe-write (Description): Likewise.
7409         * modules/strchrnul (Description): Likewise.
7410         * modules/trim (Description): Likewise.
7411         * modules/error (Description): Remove parentheses from symbol
7412         references.
7413         * modules/verror (Description): Likewise.
7414         Reported by Karl Berry.
7415
7416 2007-12-25  Bruno Haible  <bruno@clisp.org>
7417
7418         Fixup after 2007-10-16 commit.
7419         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7420
7421 2007-12-24  Bruno Haible  <bruno@clisp.org>
7422
7423         Make --enable-relocatable work with DESTDIR.
7424         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7425         to compute installdir from destprog.
7426         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7427         also set the RELOC_DESTDIR variable.
7428         Reported by Левашев Иван <octagram@bluebottle.com>.
7429
7430 2007-12-24  Bruno Haible  <bruno@clisp.org>
7431
7432         Fix link error due to xalloc_die().
7433         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7434         of xreadlink.
7435         * lib/relocwrapper.c: Update comments.
7436         * build-aux/install-reloc: Remove xreadlink.c from file list.
7437         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7438         xreadlink.c.
7439         Reported by Левашев Иван <octagram@bluebottle.com>.
7440
7441 2007-12-24  Bruno Haible  <bruno@clisp.org>
7442
7443         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7444         * lib/setenv.h: Remove file.
7445         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7446         lib/setenv.h.
7447         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7448         (Depends-on): Add stdlib.
7449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7450         gl_FUNC_UNSETENV.
7451         (Include): Replace setenv.h with <stdlib.h>.
7452         * modules/unsetenv: New file.
7453         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7454         * lib/unsetenv.c: Include <stdlib.h> first.
7455         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7456         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7457         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7458         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7459         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7460         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7462         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7463         * doc/functions/unsetenv.texi: Update.
7464         * modules/xsetenv (Depends-on): Add unsetenv.
7465         * modules/getdate (Depends-on): Likewise.
7466         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7467         * lib/xsetenv.c: Don't include setenv.h.
7468         * lib/getdate.y: Likewise.
7469         * lib/relocwrapper.c: Likewise.
7470         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7471         (Depends-on): Add stdlib.
7472         * NEWS: Mention the changes.
7473         Reported by Левашев Иван <octagram@bluebottle.com>.
7474
7475 2007-12-23  Bruno Haible  <bruno@clisp.org>
7476
7477         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7478         indentation.
7479
7480 2007-12-23  Bruno Haible  <bruno@clisp.org>
7481
7482         * lib/c-strcasestr.c: Add more comments.
7483         * lib/c-strstr.c: Likewise.
7484         * lib/mbscasestr.c: Likewise.
7485         * lib/mbsstr.c: Likewise.
7486         * lib/strcasestr.c: Likewise.
7487         * lib/memmem.c: Likewise.
7488
7489 2007-12-23  Bruno Haible  <bruno@clisp.org>
7490
7491         * tests/test-memmem.c: Include <string.h> first.
7492
7493 2007-12-22  Bruno Haible  <bruno@clisp.org>
7494
7495         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7496         the contents of $testsbase.
7497         Reported by Ralf Wildenhues.
7498
7499 2007-12-22  Bruno Haible  <bruno@clisp.org>
7500
7501         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7502         two variables local_ldadd_before, local_ldadd_last.
7503
7504 2007-12-20  Eric Blake  <ebb9@byu.net>
7505
7506         Work around circular library issue when cross-compiling.
7507         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7508         that progname.o does not need to pull in rpl_memcmp.
7509
7510 2007-12-19  Eric Blake  <ebb9@byu.net>
7511
7512         Fix memmem to avoid O(n^2) worst-case complexity.
7513         * lib/memmem.c (knuth_morris_pratt): New function.
7514         (memmem): Use it if first few naive iterations fail.
7515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7516         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7517         * modules/memchr (License): Likewise.
7518         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7519         malloca.
7520         * tests/test-memmem.c: Rewrite, borrowing ideas from
7521         test-mbsstr1.c; the old version wouldn't even compile!
7522         * modules/memmem-tests: New file.
7523         * lib/string.in.h (rpl_memmem): Add declaration.
7524         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7526         REPLACE_MEMMEM.
7527
7528 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7531         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7532         before any system include files, and undef after them all.  This
7533         should fix a problem on VMS reported by John E. Malmberg in
7534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7535
7536 2007-12-17  Eric Blake  <ebb9@byu.net>
7537
7538         Revert addition of verify, for BSD/OS.
7539         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7540         can't handle large files, for the sake of obsolete platforms.
7541         * modules/fseeko (Depends-on): Remove verify.
7542         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7543         * doc/functions/ftello.texi (ftello): Likewise.
7544         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7545         Reported by Larry Jones.
7546
7547 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7548
7549         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7550         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7551
7552 2007-12-17  Jim Meyering  <meyering@redhat.com>
7553
7554         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7555         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7556         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7557         * modules/getcwd (Depends-on): Add openat.
7558         Reported by Petr Salinger.
7559
7560 2007-12-17  Bruno Haible  <bruno@clisp.org>
7561
7562         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7563         avoid a segmentation fault of the configure test on x86_64 systems.
7564
7565 2007-12-15  Jim Meyering  <meyering@redhat.com>
7566
7567         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7568
7569 2007-12-13  Eric Blake  <ebb9@byu.net>
7570
7571         Another fseek test.
7572         * tests/test-fseek.c (main): Also test ungetc handling.
7573         * tests/test-fseeko.c (main): Likewise.
7574         * modules/fseeko (Depends-on): Add verify.
7575         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7576         large.
7577         Reported by Larry Jones.
7578
7579         Fix fseeko on mingw.
7580         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7581         seek.
7582
7583         Beef up fseek tests.
7584         * tests/test-fseek.c (main): Also test eof handling.
7585         * tests/test-fseeko.c (main): Likewise.
7586         Reported by Larry Jones.
7587
7588 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7589
7590         Fix fseeko on BSD-based platforms.
7591         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7592         successful seek.
7593
7594 2007-12-12  Eric Blake  <ebb9@byu.net>
7595
7596         Allow circular dependency of separate libtests.a
7597         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7598         when use_libtests.
7599
7600 2007-12-11  Eric Blake  <ebb9@byu.net>
7601
7602         Fix bug with -0.0L in previous patch.
7603         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7604         * tests/test-isnan.c (main): Also test on zeroes.
7605         * tests/test-isnanf.c (main): Likewise.
7606         * tests/test-isnanl.h (main): Likewise.
7607
7608         Detect pseudo-denormals on x86 even when cross-compiling.
7609         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7610         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7611         invalid bit patterns that happen to satisfy ==.
7612
7613         Avoid link failures with separate libtests.a.
7614         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7615         last, to satisfy circular dependencies.
7616
7617 2007-12-11  Eric Blake  <ebb9@byu.net>
7618         and Bruno Haible  <bruno@clisp.org>
7619
7620         Fix OpenBSD 4.0 <float.h> handling of long double.
7621         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7622         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7623         * doc/headers/float.texi (float.h): Document OpenBSD bug.
7624
7625 2007-12-11  Jim Meyering  <meyering@redhat.com>
7626
7627         * users.txt: Add libvirt.
7628
7629         Support versions of autoconf prior to 2.59c.
7630         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7631         if it is not already defined.
7632
7633 2007-12-09  Bruno Haible  <bruno@clisp.org>
7634
7635         Let 'gnulib-tool --import' collect sources needed for the tests in
7636         tests/ rather than in lib/.
7637         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7638         argument. If true, add rules to generate libtests.a, and put libtests.a
7639         into $(LDADD). Consider source files in subdirectories and set
7640         uses_subdirs.
7641         (func_emit_initmacro_start, func_emit_initmacro_end,
7642         func_emit_initmacro_done): Pass all arguments explicitly.
7643         (func_import): Determine two module lists main_modules,
7644         testsrelated_modules. Determine use_libtests. Determine two variables
7645         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7646         instead of just sed_transform_lib_file. Determine two variables
7647         main_files and testsrelated_files. Compute 'files' as the union of
7648         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7649         func_add_or_update. In the generated gnulib-comp.m4, collect the
7650         object files for tests/ in different variables than those for lib/.
7651         Substitute LIBTESTS_LIBDEPS.
7652         (func_create_testdir): Combine the uses_subdirs results from
7653         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7654
7655 2007-12-09  Bruno Haible  <bruno@clisp.org>
7656
7657         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7658         the build-aux directory.
7659
7660 2007-12-09  Bruno Haible  <bruno@clisp.org>
7661
7662         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7663         introduced on 2006-09-09.
7664
7665 2007-12-07  Jim Meyering  <meyering@redhat.com>
7666
7667         Let these macros work also with autoconf-2.59.
7668         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
7669         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7670         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7671
7672 2007-12-06  Jim Meyering  <meyering@redhat.com>
7673
7674         Avoid a configure-time syntax error in gl_FUNC_ACL.
7675         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7676         function in each branch, before testing the cache variable.
7677
7678 2007-12-04  Eric Blake  <ebb9@byu.net>
7679
7680         Make scripts executable.
7681         * build-aux/config.guess: Add execute permissions.
7682         * build-aux/config.sub: Likewise.
7683         * build-aux/gendocs.sh: Likewise.
7684
7685         Fix frexp on mingw.
7686         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7687         cross-compiling.
7688         * doc/functions/frexp.texi (frexp): Document the bug.
7689
7690         Make cygwin fseeko check more reliable.
7691         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7692         version numbers, rather than unrelated feature check.
7693         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7694         * doc/functions/ftello.texi (ftello): Likewise.
7695         Reported by Bruno Haible.
7696
7697         * m4/strerror.m4: Bump version number.
7698
7699 2007-12-03  Bruno Haible  <bruno@clisp.org>
7700
7701         * doc/functions/mprotect.texi: Mention the mingw problem.
7702
7703 2007-12-03  Eric Blake  <ebb9@byu.net>
7704
7705         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7706         REPLACE_STRERROR is initialized before this macro.
7707
7708 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7709
7710         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7711         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7712         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7713         put -lsec in even for programs other than 'ls'.  This fixes a problem
7714         for gettext reported by Bruno Haible in
7715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7716         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7717         Add support for Solaris 10.  This isn't efficient, but should get the
7718         job done for now.
7719
7720 2007-12-03  James Youngman  <jay@gnu.org>
7721
7722         * doc/regexprops-generic.texi: change "an close-group" to "a
7723         close-group" and "illegal" to "not allowed".
7724
7725 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7726
7727         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7728         pr_byname.h. Needed for the rare case when the maintainer has done
7729         "make maintainer-clean" in the source directory and then attempts a
7730         build outside the source directory.
7731         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7732         scripts_byname.h.
7733
7734 2007-12-02  Martin Lambers <marlam@marlam.de>
7735             Bruno Haible  <bruno@clisp.org>
7736
7737         * lib/getpagesize.h: Remove file.
7738         * lib/unistd.in.h: Include declaration of getpagesize here.
7739         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7740         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7741         HAVE_SYS_PARAM_H.
7742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7743         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7744         * modules/getpagesize (Files): Remove lib/getpagesize.h.
7745         (Depends-on): Add unistd.
7746         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7747         (Include): Use <unistd.h> instead of getpagesize.h.
7748         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7749         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7750         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7751         gl_GETPAGESIZE invocation, already handled by module dependency.
7752         * lib/pagealign_alloc.c: Don't include getpagesize.h.
7753
7754 2007-12-02  Bruno Haible  <bruno@clisp.org>
7755
7756         * modules/strings-tests: New file.
7757         * tests/test-strings.c: New file.
7758
7759         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7760         * lib/strings.in.h: New file.
7761         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7762         * m4/strings_h.m4: New file.
7763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7764         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7765         * modules/strings: New file.
7766         * modules/string (Makefile.am): Update.
7767         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7768         Reported by Karl Berry.
7769
7770 2007-12-01  Eric Blake  <ebb9@byu.net>
7771
7772         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7773         accomodate fix in cygwin 1.5.25.
7774
7775 2007-12-01  Jim Meyering  <meyering@redhat.com>
7776
7777         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7778         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7779         that would inhibit utf8-optimization of a regexp containing line-
7780         or buffer-anchors, e.g., `^', `$'.
7781
7782 2007-11-30  Bruno Haible  <bruno@clisp.org>
7783
7784         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7785         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7786         glthread_recursive_lock_init.
7787         * lib/lock.c (glthread_recursive_lock_init)
7788         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7789         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7790
7791 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
7792
7793         New function qset_acl, like set_acl but with syscall semantics.
7794         * lib/acl.h (qset_acl): New decl.
7795         * lib/acl.c (qset_acl): New function.
7796         (set_acl): Use new function.  Use more-consistent diagnostics.
7797
7798 2007-11-28  Jim Meyering  <meyering@redhat.com>
7799
7800         * modules/physmem (License): Change from GPL to LGPLv2+.
7801
7802 2007-11-26  Bruno Haible  <bruno@clisp.org>
7803
7804         * lib/vasnprintf.c (decode_long_double): Don't abort if the
7805         'long double' type has excess precision.
7806         Reported by Jim Meyering in
7807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7808
7809 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7810
7811         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7812         Sync from <http://gnu.org/licenses>.
7813         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7814         with license text from same location.
7815         * doc/maintain.texi, doc/standards.texi:  Sync from
7816         <http://savannah.gnu.org/projects/gnustandards>.
7817
7818 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
7819         and Jim Meyering  <meyering@redhat.com>
7820
7821         Adjust getdate' grammar to accept a slightly more regular language.
7822         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7823         Before, the former was rejected.
7824         * lib/getdate.y (digits_to_date_time): New function, factored
7825         out of ...
7826         (number): ...here.  Just call digits_to_date_time.
7827         (hybrid): New non-terminal to handle an <unsigned number,
7828         signed relative offset> sequence consistently.
7829
7830 2007-11-18  Jim Meyering  <meyering@redhat.com>
7831
7832         Pull my changes from coreutils:
7833         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7834         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7835         use of $gnulib_tool_option_extras, so that it's separated from the
7836         preceding argument.
7837
7838         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7839         * build-aux/bootstrap (cp_mark_as_generated): Create any required
7840         parent destination directories before copying a file into place.
7841
7842 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
7843
7844         bootstrap: work also with 4-argument variant of AC_INIT
7845         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7846
7847 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         Port test-getaddrinfo to Solaris.
7850         Problem reported by Bruno Haible in
7851         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7852         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7853         explanation of setting 'hints'.
7854         Don't reject an implementation merely because it returns EAI_SERVICE.
7855         (EAI_SERVICE): Define to 0 if not defined.
7856
7857 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7858
7859         The license of gnu-make and posix-shell is now "GPLed build tool".
7860         * modules/gnu-make (License): Likewise.
7861         * modules/posix-shell (License): Likewise.
7862
7863         New module posix-shell, for determining a POSIX shell
7864         or perhaps something that is close enough to a POSIX shell.
7865         * m4/posix-shell.m4: New file.
7866         * modules/posix-shell: New file.
7867
7868         * MODULES.html.sh: Mention new module.
7869
7870         New module gnu-make, for determining whether we're using GNU Make.
7871         * m4/gnu-make.m4: New file.
7872         * modules/gnu-make: New file.
7873         * MODULES.html.sh: Mention new module.
7874
7875 2007-11-14  Jim Meyering  <meyering@redhat.com>
7876
7877         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7878         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7879         use this macro to create a function _definition_.
7880         Remove useless "#undef ARGMATCH_DIE".
7881
7882 2007-11-14  Bruno Haible  <bruno@clisp.org>
7883
7884         * lib/config.charset: Update for OpenBSD 4.1.
7885         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7886
7887 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7888
7889         Document 64-bit #if problems in stdint.texi.
7890         * doc/headers/stdint.texi (stdint.h): Mention problems with
7891         64-bit-#if, and how to work around them.
7892
7893         Don't insist on 'long long int' support in the preprocessor.  It
7894         breaks too many things.  For example, PRIdMAX still uses a 'long
7895         long int' format with the latest Sun compiler, even though
7896         HAVE_LONG_LONG_INT isn't defined due to that compiler's
7897         preprocessor problem.  This causes the latest coreutils to dump
7898         core on Solaris 10 sparc with the Sun C compiler.
7899         Instead, fix the 2007-10-16 problem in a different way, by evaluating
7900         the troublesome expressions at configure-time, not at #if-time.
7901         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7902         preprocessor.
7903         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7904         compile-time C checks, done at 'configure'-time.
7905         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7906         * modules/inttypes (Makefile): Substitute the new symbols that
7907         gl_INTTYPES_H now generates.
7908         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7909
7910 2007-11-12  Bruno Haible  <bruno@clisp.org>
7911
7912         Tests for Unicode character classification functions.
7913
7914         * modules/unictype/bidicategory-byname-tests: New file.
7915         * modules/unictype/bidicategory-name-tests: New file.
7916         * modules/unictype/bidicategory-of-tests: New file.
7917         * modules/unictype/bidicategory-test-tests: New file.
7918         * modules/unictype/block-list-tests: New file.
7919         * modules/unictype/block-of-tests: New file.
7920         * modules/unictype/block-test-tests: New file.
7921         * modules/unictype/category-C-tests: New file.
7922         * modules/unictype/category-Cc-tests: New file.
7923         * modules/unictype/category-Cf-tests: New file.
7924         * modules/unictype/category-Cn-tests: New file.
7925         * modules/unictype/category-Co-tests: New file.
7926         * modules/unictype/category-Cs-tests: New file.
7927         * modules/unictype/category-L-tests: New file.
7928         * modules/unictype/category-Ll-tests: New file.
7929         * modules/unictype/category-Lm-tests: New file.
7930         * modules/unictype/category-Lo-tests: New file.
7931         * modules/unictype/category-Lt-tests: New file.
7932         * modules/unictype/category-Lu-tests: New file.
7933         * modules/unictype/category-M-tests: New file.
7934         * modules/unictype/category-Mc-tests: New file.
7935         * modules/unictype/category-Me-tests: New file.
7936         * modules/unictype/category-Mn-tests: New file.
7937         * modules/unictype/category-N-tests: New file.
7938         * modules/unictype/category-Nd-tests: New file.
7939         * modules/unictype/category-Nl-tests: New file.
7940         * modules/unictype/category-No-tests: New file.
7941         * modules/unictype/category-P-tests: New file.
7942         * modules/unictype/category-Pc-tests: New file.
7943         * modules/unictype/category-Pd-tests: New file.
7944         * modules/unictype/category-Pe-tests: New file.
7945         * modules/unictype/category-Pf-tests: New file.
7946         * modules/unictype/category-Pi-tests: New file.
7947         * modules/unictype/category-Po-tests: New file.
7948         * modules/unictype/category-Ps-tests: New file.
7949         * modules/unictype/category-S-tests: New file.
7950         * modules/unictype/category-Sc-tests: New file.
7951         * modules/unictype/category-Sk-tests: New file.
7952         * modules/unictype/category-Sm-tests: New file.
7953         * modules/unictype/category-So-tests: New file.
7954         * modules/unictype/category-Z-tests: New file.
7955         * modules/unictype/category-Zl-tests: New file.
7956         * modules/unictype/category-Zp-tests: New file.
7957         * modules/unictype/category-Zs-tests: New file.
7958         * modules/unictype/category-and-not-tests: New file.
7959         * modules/unictype/category-and-tests: New file.
7960         * modules/unictype/category-byname-tests: New file.
7961         * modules/unictype/category-name-tests: New file.
7962         * modules/unictype/category-none-tests: New file.
7963         * modules/unictype/category-of-tests: New file.
7964         * modules/unictype/category-or-tests: New file.
7965         * modules/unictype/category-test-withtable-tests: New file.
7966         * modules/unictype/combining-class-tests: New file.
7967         * modules/unictype/ctype-alnum-tests: New file.
7968         * modules/unictype/ctype-alpha-tests: New file.
7969         * modules/unictype/ctype-blank-tests: New file.
7970         * modules/unictype/ctype-cntrl-tests: New file.
7971         * modules/unictype/ctype-digit-tests: New file.
7972         * modules/unictype/ctype-graph-tests: New file.
7973         * modules/unictype/ctype-lower-tests: New file.
7974         * modules/unictype/ctype-print-tests: New file.
7975         * modules/unictype/ctype-punct-tests: New file.
7976         * modules/unictype/ctype-space-tests: New file.
7977         * modules/unictype/ctype-upper-tests: New file.
7978         * modules/unictype/ctype-xdigit-tests: New file.
7979         * modules/unictype/decimal-digit-tests: New file.
7980         * modules/unictype/digit-tests: New file.
7981         * modules/unictype/mirror-tests: New file.
7982         * modules/unictype/numeric-tests: New file.
7983         * modules/unictype/property-alphabetic-tests: New file.
7984         * modules/unictype/property-ascii-hex-digit-tests: New file.
7985         * modules/unictype/property-bidi-arabic-digit-tests: New file.
7986         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7987         * modules/unictype/property-bidi-block-separator-tests: New file.
7988         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7989         * modules/unictype/property-bidi-common-separator-tests: New file.
7990         * modules/unictype/property-bidi-control-tests: New file.
7991         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7992         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7993         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7994         * modules/unictype/property-bidi-european-digit-tests: New file.
7995         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7996         * modules/unictype/property-bidi-left-to-right-tests: New file.
7997         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7998         * modules/unictype/property-bidi-other-neutral-tests: New file.
7999         * modules/unictype/property-bidi-pdf-tests: New file.
8000         * modules/unictype/property-bidi-segment-separator-tests: New file.
8001         * modules/unictype/property-bidi-whitespace-tests: New file.
8002         * modules/unictype/property-byname-tests: New file.
8003         * modules/unictype/property-combining-tests: New file.
8004         * modules/unictype/property-composite-tests: New file.
8005         * modules/unictype/property-currency-symbol-tests: New file.
8006         * modules/unictype/property-dash-tests: New file.
8007         * modules/unictype/property-decimal-digit-tests: New file.
8008         * modules/unictype/property-default-ignorable-code-point-tests: New file.
8009         * modules/unictype/property-deprecated-tests: New file.
8010         * modules/unictype/property-diacritic-tests: New file.
8011         * modules/unictype/property-extender-tests: New file.
8012         * modules/unictype/property-format-control-tests: New file.
8013         * modules/unictype/property-grapheme-base-tests: New file.
8014         * modules/unictype/property-grapheme-extend-tests: New file.
8015         * modules/unictype/property-grapheme-link-tests: New file.
8016         * modules/unictype/property-hex-digit-tests: New file.
8017         * modules/unictype/property-hyphen-tests: New file.
8018         * modules/unictype/property-id-continue-tests: New file.
8019         * modules/unictype/property-id-start-tests: New file.
8020         * modules/unictype/property-ideographic-tests: New file.
8021         * modules/unictype/property-ids-binary-operator-tests: New file.
8022         * modules/unictype/property-ids-trinary-operator-tests: New file.
8023         * modules/unictype/property-ignorable-control-tests: New file.
8024         * modules/unictype/property-iso-control-tests: New file.
8025         * modules/unictype/property-join-control-tests: New file.
8026         * modules/unictype/property-left-of-pair-tests: New file.
8027         * modules/unictype/property-line-separator-tests: New file.
8028         * modules/unictype/property-logical-order-exception-tests: New file.
8029         * modules/unictype/property-lowercase-tests: New file.
8030         * modules/unictype/property-math-tests: New file.
8031         * modules/unictype/property-non-break-tests: New file.
8032         * modules/unictype/property-not-a-character-tests: New file.
8033         * modules/unictype/property-numeric-tests: New file.
8034         * modules/unictype/property-other-alphabetic-tests: New file.
8035         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8036         * modules/unictype/property-other-grapheme-extend-tests: New file.
8037         * modules/unictype/property-other-id-continue-tests: New file.
8038         * modules/unictype/property-other-id-start-tests: New file.
8039         * modules/unictype/property-other-lowercase-tests: New file.
8040         * modules/unictype/property-other-math-tests: New file.
8041         * modules/unictype/property-other-uppercase-tests: New file.
8042         * modules/unictype/property-paired-punctuation-tests: New file.
8043         * modules/unictype/property-paragraph-separator-tests: New file.
8044         * modules/unictype/property-pattern-syntax-tests: New file.
8045         * modules/unictype/property-pattern-white-space-tests: New file.
8046         * modules/unictype/property-private-use-tests: New file.
8047         * modules/unictype/property-punctuation-tests: New file.
8048         * modules/unictype/property-quotation-mark-tests: New file.
8049         * modules/unictype/property-radical-tests: New file.
8050         * modules/unictype/property-sentence-terminal-tests: New file.
8051         * modules/unictype/property-soft-dotted-tests: New file.
8052         * modules/unictype/property-space-tests: New file.
8053         * modules/unictype/property-terminal-punctuation-tests: New file.
8054         * modules/unictype/property-test-tests: New file.
8055         * modules/unictype/property-titlecase-tests: New file.
8056         * modules/unictype/property-unassigned-code-value-tests: New file.
8057         * modules/unictype/property-unified-ideograph-tests: New file.
8058         * modules/unictype/property-uppercase-tests: New file.
8059         * modules/unictype/property-variation-selector-tests: New file.
8060         * modules/unictype/property-white-space-tests: New file.
8061         * modules/unictype/property-xid-continue-tests: New file.
8062         * modules/unictype/property-xid-start-tests: New file.
8063         * modules/unictype/property-zero-width-tests: New file.
8064         * modules/unictype/scripts-tests: New file.
8065         * modules/unictype/syntax-c-ident-tests: New file.
8066         * modules/unictype/syntax-c-whitespace-tests: New file.
8067         * modules/unictype/syntax-java-ident-tests: New file.
8068         * modules/unictype/syntax-java-whitespace-tests: New file.
8069         * tests/unictype/test-bidi_byname.c: New file.
8070         * tests/unictype/test-bidi_name.c: New file.
8071         * tests/unictype/test-bidi_of.c: New file.
8072         * tests/unictype/test-bidi_test.c: New file.
8073         * tests/unictype/test-block_list.c: New file.
8074         * tests/unictype/test-block_of.c: New file.
8075         * tests/unictype/test-block_test.c: New file.
8076         * tests/unictype/test-categ_and.c: New file.
8077         * tests/unictype/test-categ_and_not.c: New file.
8078         * tests/unictype/test-categ_byname.c: New file.
8079         * tests/unictype/test-categ_name.c: New file.
8080         * tests/unictype/test-categ_none.c: New file.
8081         * tests/unictype/test-categ_of.c: New file.
8082         * tests/unictype/test-categ_or.c: New file.
8083         * tests/unictype/test-categ_test_withtable.c: New file.
8084         * tests/unictype/test-combining.c: New file.
8085         * tests/unictype/test-decdigit.c: New file.
8086         * tests/unictype/test-digit.c: New file.
8087         * tests/unictype/test-mirror.c: New file.
8088         * tests/unictype/test-numeric.c: New file.
8089         * tests/unictype/test-pr_byname.c: New file.
8090         * tests/unictype/test-pr_test.c: New file.
8091         * tests/unictype/test-predicate-part1.h: New file.
8092         * tests/unictype/test-predicate-part2.h: New file.
8093         * tests/unictype/test-scripts.c: New file.
8094         * tests/unictype/test-sy_c_ident.c: New file.
8095         * tests/unictype/test-sy_java_ident.c: New file.
8096
8097         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8098         for Unicode 5.0.0.
8099         * tests/unictype/test-categ_Cc.c: Likewise.
8100         * tests/unictype/test-categ_Cf.c: Likewise.
8101         * tests/unictype/test-categ_Cn.c: Likewise.
8102         * tests/unictype/test-categ_Co.c: Likewise.
8103         * tests/unictype/test-categ_Cs.c: Likewise.
8104         * tests/unictype/test-categ_L.c: Likewise.
8105         * tests/unictype/test-categ_Ll.c: Likewise.
8106         * tests/unictype/test-categ_Lm.c: Likewise.
8107         * tests/unictype/test-categ_Lo.c: Likewise.
8108         * tests/unictype/test-categ_Lt.c: Likewise.
8109         * tests/unictype/test-categ_Lu.c: Likewise.
8110         * tests/unictype/test-categ_M.c: Likewise.
8111         * tests/unictype/test-categ_Mc.c: Likewise.
8112         * tests/unictype/test-categ_Me.c: Likewise.
8113         * tests/unictype/test-categ_Mn.c: Likewise.
8114         * tests/unictype/test-categ_N.c: Likewise.
8115         * tests/unictype/test-categ_Nd.c: Likewise.
8116         * tests/unictype/test-categ_Nl.c: Likewise.
8117         * tests/unictype/test-categ_No.c: Likewise.
8118         * tests/unictype/test-categ_P.c: Likewise.
8119         * tests/unictype/test-categ_Pc.c: Likewise.
8120         * tests/unictype/test-categ_Pd.c: Likewise.
8121         * tests/unictype/test-categ_Pe.c: Likewise.
8122         * tests/unictype/test-categ_Pf.c: Likewise.
8123         * tests/unictype/test-categ_Pi.c: Likewise.
8124         * tests/unictype/test-categ_Po.c: Likewise.
8125         * tests/unictype/test-categ_Ps.c: Likewise.
8126         * tests/unictype/test-categ_S.c: Likewise.
8127         * tests/unictype/test-categ_Sc.c: Likewise.
8128         * tests/unictype/test-categ_Sk.c: Likewise.
8129         * tests/unictype/test-categ_Sm.c: Likewise.
8130         * tests/unictype/test-categ_So.c: Likewise.
8131         * tests/unictype/test-categ_Z.c: Likewise.
8132         * tests/unictype/test-categ_Zl.c: Likewise.
8133         * tests/unictype/test-categ_Zp.c: Likewise.
8134         * tests/unictype/test-categ_Zs.c: Likewise.
8135         * tests/unictype/test-ctype_alnum.c: Likewise.
8136         * tests/unictype/test-ctype_alpha.c: Likewise.
8137         * tests/unictype/test-ctype_blank.c: Likewise.
8138         * tests/unictype/test-ctype_cntrl.c: Likewise.
8139         * tests/unictype/test-ctype_digit.c: Likewise.
8140         * tests/unictype/test-ctype_graph.c: Likewise.
8141         * tests/unictype/test-ctype_lower.c: Likewise.
8142         * tests/unictype/test-ctype_print.c: Likewise.
8143         * tests/unictype/test-ctype_punct.c: Likewise.
8144         * tests/unictype/test-ctype_space.c: Likewise.
8145         * tests/unictype/test-ctype_upper.c: Likewise.
8146         * tests/unictype/test-ctype_xdigit.c: Likewise.
8147         * tests/unictype/test-decdigit.h: Likewise.
8148         * tests/unictype/test-digit.h: Likewise.
8149         * tests/unictype/test-numeric.h: Likewise.
8150         * tests/unictype/test-pr_alphabetic.c: Likewise.
8151         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8152         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8153         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8154         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8155         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8156         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8157         * tests/unictype/test-pr_bidi_control.c: Likewise.
8158         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8159         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8160         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8161         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8162         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8163         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8164         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8165         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8166         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8167         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8168         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8169         * tests/unictype/test-pr_combining.c: Likewise.
8170         * tests/unictype/test-pr_composite.c: Likewise.
8171         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8172         * tests/unictype/test-pr_dash.c: Likewise.
8173         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8174         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8175         * tests/unictype/test-pr_deprecated.c: Likewise.
8176         * tests/unictype/test-pr_diacritic.c: Likewise.
8177         * tests/unictype/test-pr_extender.c: Likewise.
8178         * tests/unictype/test-pr_format_control.c: Likewise.
8179         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8180         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8181         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8182         * tests/unictype/test-pr_hex_digit.c: Likewise.
8183         * tests/unictype/test-pr_hyphen.c: Likewise.
8184         * tests/unictype/test-pr_id_continue.c: Likewise.
8185         * tests/unictype/test-pr_id_start.c: Likewise.
8186         * tests/unictype/test-pr_ideographic.c: Likewise.
8187         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8188         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8189         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8190         * tests/unictype/test-pr_iso_control.c: Likewise.
8191         * tests/unictype/test-pr_join_control.c: Likewise.
8192         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8193         * tests/unictype/test-pr_line_separator.c: Likewise.
8194         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8195         * tests/unictype/test-pr_lowercase.c: Likewise.
8196         * tests/unictype/test-pr_math.c: Likewise.
8197         * tests/unictype/test-pr_non_break.c: Likewise.
8198         * tests/unictype/test-pr_not_a_character.c: Likewise.
8199         * tests/unictype/test-pr_numeric.c: Likewise.
8200         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8201         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8202         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8203         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8204         * tests/unictype/test-pr_other_id_start.c: Likewise.
8205         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8206         * tests/unictype/test-pr_other_math.c: Likewise.
8207         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8208         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8209         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8210         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8211         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8212         * tests/unictype/test-pr_private_use.c: Likewise.
8213         * tests/unictype/test-pr_punctuation.c: Likewise.
8214         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8215         * tests/unictype/test-pr_radical.c: Likewise.
8216         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8217         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8218         * tests/unictype/test-pr_space.c: Likewise.
8219         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8220         * tests/unictype/test-pr_titlecase.c: Likewise.
8221         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8222         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8223         * tests/unictype/test-pr_uppercase.c: Likewise.
8224         * tests/unictype/test-pr_variation_selector.c: Likewise.
8225         * tests/unictype/test-pr_white_space.c: Likewise.
8226         * tests/unictype/test-pr_xid_continue.c: Likewise.
8227         * tests/unictype/test-pr_xid_start.c: Likewise.
8228         * tests/unictype/test-pr_zero_width.c: Likewise.
8229         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8230         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8231
8232 2007-11-12  Bruno Haible  <bruno@clisp.org>
8233
8234         Unicode character classification functions.
8235         * lib/unictype.h: New file.
8236         * modules/unictype/base: New file.
8237         * modules/unictype/category-L: New file.
8238         * modules/unictype/category-Lu: New file.
8239         * modules/unictype/category-Ll: New file.
8240         * modules/unictype/category-Lt: New file.
8241         * modules/unictype/category-Lm: New file.
8242         * modules/unictype/category-Lo: New file.
8243         * modules/unictype/category-M: New file.
8244         * modules/unictype/category-Mn: New file.
8245         * modules/unictype/category-Mc: New file.
8246         * modules/unictype/category-Me: New file.
8247         * modules/unictype/category-N: New file.
8248         * modules/unictype/category-Nd: New file.
8249         * modules/unictype/category-Nl: New file.
8250         * modules/unictype/category-No: New file.
8251         * modules/unictype/category-P: New file.
8252         * modules/unictype/category-Pc: New file.
8253         * modules/unictype/category-Pd: New file.
8254         * modules/unictype/category-Ps: New file.
8255         * modules/unictype/category-Pe: New file.
8256         * modules/unictype/category-Pi: New file.
8257         * modules/unictype/category-Pf: New file.
8258         * modules/unictype/category-Po: New file.
8259         * modules/unictype/category-S: New file.
8260         * modules/unictype/category-Sm: New file.
8261         * modules/unictype/category-Sc: New file.
8262         * modules/unictype/category-Sk: New file.
8263         * modules/unictype/category-So: New file.
8264         * modules/unictype/category-Z: New file.
8265         * modules/unictype/category-Zs: New file.
8266         * modules/unictype/category-Zl: New file.
8267         * modules/unictype/category-Zp: New file.
8268         * modules/unictype/category-C: New file.
8269         * modules/unictype/category-Cc: New file.
8270         * modules/unictype/category-Cf: New file.
8271         * modules/unictype/category-Cs: New file.
8272         * modules/unictype/category-Co: New file.
8273         * modules/unictype/category-Cn: New file.
8274         * modules/unictype/category-or: New file.
8275         * modules/unictype/category-of: New file.
8276         * modules/unictype/category-test: New file.
8277         * modules/unictype/category-test-withtable: New file.
8278         * modules/unictype/category-byname: New file.
8279         * modules/unictype/category-none: New file.
8280         * modules/unictype/category-and: New file.
8281         * modules/unictype/category-and-not: New file.
8282         * modules/unictype/category-name: New file.
8283         * modules/unictype/combining-class: New file.
8284         * modules/unictype/category-all: New file.
8285         * modules/unictype/bidicategory-all: New file.
8286         * modules/unictype/bidicategory-byname: New file.
8287         * modules/unictype/bidicategory-name: New file.
8288         * modules/unictype/bidicategory-of: New file.
8289         * modules/unictype/bidicategory-test: New file.
8290         * modules/unictype/decimal-digit: New file.
8291         * modules/unictype/digit: New file.
8292         * modules/unictype/numeric: New file.
8293         * modules/unictype/mirror: New file.
8294         * modules/unictype/property-white-space: New file.
8295         * modules/unictype/property-alphabetic: New file.
8296         * modules/unictype/property-other-alphabetic: New file.
8297         * modules/unictype/property-not-a-character: New file.
8298         * modules/unictype/property-default-ignorable-code-point: New file.
8299         * modules/unictype/property-other-default-ignorable-code-point: New
8300         file.
8301         * modules/unictype/property-deprecated: New file.
8302         * modules/unictype/property-logical-order-exception: New file.
8303         * modules/unictype/property-variation-selector: New file.
8304         * modules/unictype/property-private-use: New file.
8305         * modules/unictype/property-unassigned-code-value: New file.
8306         * modules/unictype/property-uppercase: New file.
8307         * modules/unictype/property-other-uppercase: New file.
8308         * modules/unictype/property-lowercase: New file.
8309         * modules/unictype/property-other-lowercase: New file.
8310         * modules/unictype/property-titlecase: New file.
8311         * modules/unictype/property-soft-dotted: New file.
8312         * modules/unictype/property-id-start: New file.
8313         * modules/unictype/property-other-id-start: New file.
8314         * modules/unictype/property-id-continue: New file.
8315         * modules/unictype/property-other-id-continue: New file.
8316         * modules/unictype/property-xid-start: New file.
8317         * modules/unictype/property-xid-continue: New file.
8318         * modules/unictype/property-pattern-white-space: New file.
8319         * modules/unictype/property-pattern-syntax: New file.
8320         * modules/unictype/property-join-control: New file.
8321         * modules/unictype/property-grapheme-base: New file.
8322         * modules/unictype/property-grapheme-extend: New file.
8323         * modules/unictype/property-other-grapheme-extend: New file.
8324         * modules/unictype/property-grapheme-link: New file.
8325         * modules/unictype/property-bidi-control: New file.
8326         * modules/unictype/property-bidi-left-to-right: New file.
8327         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8328         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8329         * modules/unictype/property-bidi-european-digit: New file.
8330         * modules/unictype/property-bidi-eur-num-separator: New file.
8331         * modules/unictype/property-bidi-eur-num-terminator: New file.
8332         * modules/unictype/property-bidi-arabic-digit: New file.
8333         * modules/unictype/property-bidi-common-separator: New file.
8334         * modules/unictype/property-bidi-block-separator: New file.
8335         * modules/unictype/property-bidi-segment-separator: New file.
8336         * modules/unictype/property-bidi-whitespace: New file.
8337         * modules/unictype/property-bidi-non-spacing-mark: New file.
8338         * modules/unictype/property-bidi-boundary-neutral: New file.
8339         * modules/unictype/property-bidi-pdf: New file.
8340         * modules/unictype/property-bidi-embedding-or-override: New file.
8341         * modules/unictype/property-bidi-other-neutral: New file.
8342         * modules/unictype/property-hex-digit: New file.
8343         * modules/unictype/property-ascii-hex-digit: New file.
8344         * modules/unictype/property-ideographic: New file.
8345         * modules/unictype/property-unified-ideograph: New file.
8346         * modules/unictype/property-radical: New file.
8347         * modules/unictype/property-ids-binary-operator: New file.
8348         * modules/unictype/property-ids-trinary-operator: New file.
8349         * modules/unictype/property-zero-width: New file.
8350         * modules/unictype/property-space: New file.
8351         * modules/unictype/property-non-break: New file.
8352         * modules/unictype/property-iso-control: New file.
8353         * modules/unictype/property-format-control: New file.
8354         * modules/unictype/property-dash: New file.
8355         * modules/unictype/property-hyphen: New file.
8356         * modules/unictype/property-punctuation: New file.
8357         * modules/unictype/property-line-separator: New file.
8358         * modules/unictype/property-paragraph-separator: New file.
8359         * modules/unictype/property-quotation-mark: New file.
8360         * modules/unictype/property-sentence-terminal: New file.
8361         * modules/unictype/property-terminal-punctuation: New file.
8362         * modules/unictype/property-currency-symbol: New file.
8363         * modules/unictype/property-math: New file.
8364         * modules/unictype/property-other-math: New file.
8365         * modules/unictype/property-paired-punctuation: New file.
8366         * modules/unictype/property-left-of-pair: New file.
8367         * modules/unictype/property-combining: New file.
8368         * modules/unictype/property-composite: New file.
8369         * modules/unictype/property-decimal-digit: New file.
8370         * modules/unictype/property-numeric: New file.
8371         * modules/unictype/property-diacritic: New file.
8372         * modules/unictype/property-extender: New file.
8373         * modules/unictype/property-ignorable-control: New file.
8374         * modules/unictype/property-test: New file.
8375         * modules/unictype/property-byname: New file.
8376         * modules/unictype/property-all: New file.
8377         * modules/unictype/scripts: New file.
8378         * modules/unictype/scripts-all: New file.
8379         * modules/unictype/block-of: New file.
8380         * modules/unictype/block-test: New file.
8381         * modules/unictype/block-list: New file.
8382         * modules/unictype/block-all: New file.
8383         * modules/unictype/syntax-c-whitespace: New file.
8384         * modules/unictype/syntax-java-whitespace: New file.
8385         * modules/unictype/syntax-c-ident: New file.
8386         * modules/unictype/syntax-java-ident: New file.
8387         * modules/unictype/ctype-alnum: New file.
8388         * modules/unictype/ctype-alpha: New file.
8389         * modules/unictype/ctype-cntrl: New file.
8390         * modules/unictype/ctype-digit: New file.
8391         * modules/unictype/ctype-graph: New file.
8392         * modules/unictype/ctype-lower: New file.
8393         * modules/unictype/ctype-print: New file.
8394         * modules/unictype/ctype-punct: New file.
8395         * modules/unictype/ctype-space: New file.
8396         * modules/unictype/ctype-upper: New file.
8397         * modules/unictype/ctype-xdigit: New file.
8398         * modules/unictype/ctype-blank: New file.
8399         * lib/unictype/bidi_byname.c: New file.
8400         * lib/unictype/bidi_name.c: New file.
8401         * lib/unictype/bidi_of.c: New file.
8402         * lib/unictype/bidi_test.c: New file.
8403         * lib/unictype/bitmap.h: New file.
8404         * lib/unictype/block_test.c: New file.
8405         * lib/unictype/blocks.c: New file.
8406         * lib/unictype/categ_C.c: New file.
8407         * lib/unictype/categ_Cc.c: New file.
8408         * lib/unictype/categ_Cf.c: New file.
8409         * lib/unictype/categ_Cn.c: New file.
8410         * lib/unictype/categ_Co.c: New file.
8411         * lib/unictype/categ_Cs.c: New file.
8412         * lib/unictype/categ_L.c: New file.
8413         * lib/unictype/categ_Ll.c: New file.
8414         * lib/unictype/categ_Lm.c: New file.
8415         * lib/unictype/categ_Lo.c: New file.
8416         * lib/unictype/categ_Lt.c: New file.
8417         * lib/unictype/categ_Lu.c: New file.
8418         * lib/unictype/categ_M.c: New file.
8419         * lib/unictype/categ_Mc.c: New file.
8420         * lib/unictype/categ_Me.c: New file.
8421         * lib/unictype/categ_Mn.c: New file.
8422         * lib/unictype/categ_N.c: New file.
8423         * lib/unictype/categ_Nd.c: New file.
8424         * lib/unictype/categ_Nl.c: New file.
8425         * lib/unictype/categ_No.c: New file.
8426         * lib/unictype/categ_P.c: New file.
8427         * lib/unictype/categ_Pc.c: New file.
8428         * lib/unictype/categ_Pd.c: New file.
8429         * lib/unictype/categ_Pe.c: New file.
8430         * lib/unictype/categ_Pf.c: New file.
8431         * lib/unictype/categ_Pi.c: New file.
8432         * lib/unictype/categ_Po.c: New file.
8433         * lib/unictype/categ_Ps.c: New file.
8434         * lib/unictype/categ_S.c: New file.
8435         * lib/unictype/categ_Sc.c: New file.
8436         * lib/unictype/categ_Sk.c: New file.
8437         * lib/unictype/categ_Sm.c: New file.
8438         * lib/unictype/categ_So.c: New file.
8439         * lib/unictype/categ_Z.c: New file.
8440         * lib/unictype/categ_Zl.c: New file.
8441         * lib/unictype/categ_Zp.c: New file.
8442         * lib/unictype/categ_Zs.c: New file.
8443         * lib/unictype/categ_and.c: New file.
8444         * lib/unictype/categ_and_not.c: New file.
8445         * lib/unictype/categ_byname.c: New file.
8446         * lib/unictype/categ_name.c: New file.
8447         * lib/unictype/categ_none.c: New file.
8448         * lib/unictype/categ_of.c: New file.
8449         * lib/unictype/categ_or.c: New file.
8450         * lib/unictype/categ_test.c: New file.
8451         * lib/unictype/combining.c: New file.
8452         * lib/unictype/ctype_alnum.c: New file.
8453         * lib/unictype/ctype_alpha.c: New file.
8454         * lib/unictype/ctype_blank.c: New file.
8455         * lib/unictype/ctype_cntrl.c: New file.
8456         * lib/unictype/ctype_digit.c: New file.
8457         * lib/unictype/ctype_graph.c: New file.
8458         * lib/unictype/ctype_lower.c: New file.
8459         * lib/unictype/ctype_print.c: New file.
8460         * lib/unictype/ctype_punct.c: New file.
8461         * lib/unictype/ctype_space.c: New file.
8462         * lib/unictype/ctype_upper.c: New file.
8463         * lib/unictype/ctype_xdigit.c: New file.
8464         * lib/unictype/decdigit.c: New file.
8465         * lib/unictype/digit.c: New file.
8466         * lib/unictype/identsyntaxmap.h: New file.
8467         * lib/unictype/mirror.c: New file.
8468         * lib/unictype/numeric.c: New file.
8469         * lib/unictype/pr_alphabetic.c: New file.
8470         * lib/unictype/pr_ascii_hex_digit.c: New file.
8471         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8472         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8473         * lib/unictype/pr_bidi_block_separator.c: New file.
8474         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8475         * lib/unictype/pr_bidi_common_separator.c: New file.
8476         * lib/unictype/pr_bidi_control.c: New file.
8477         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8478         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8479         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8480         * lib/unictype/pr_bidi_european_digit.c: New file.
8481         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8482         * lib/unictype/pr_bidi_left_to_right.c: New file.
8483         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8484         * lib/unictype/pr_bidi_other_neutral.c: New file.
8485         * lib/unictype/pr_bidi_pdf.c: New file.
8486         * lib/unictype/pr_bidi_segment_separator.c: New file.
8487         * lib/unictype/pr_bidi_whitespace.c: New file.
8488         * lib/unictype/pr_byname.c: New file.
8489         * lib/unictype/pr_byname.gperf: New file.
8490         * lib/unictype/pr_combining.c: New file.
8491         * lib/unictype/pr_composite.c: New file.
8492         * lib/unictype/pr_currency_symbol.c: New file.
8493         * lib/unictype/pr_dash.c: New file.
8494         * lib/unictype/pr_decimal_digit.c: New file.
8495         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8496         * lib/unictype/pr_deprecated.c: New file.
8497         * lib/unictype/pr_diacritic.c: New file.
8498         * lib/unictype/pr_extender.c: New file.
8499         * lib/unictype/pr_format_control.c: New file.
8500         * lib/unictype/pr_grapheme_base.c: New file.
8501         * lib/unictype/pr_grapheme_extend.c: New file.
8502         * lib/unictype/pr_grapheme_link.c: New file.
8503         * lib/unictype/pr_hex_digit.c: New file.
8504         * lib/unictype/pr_hyphen.c: New file.
8505         * lib/unictype/pr_id_continue.c: New file.
8506         * lib/unictype/pr_id_start.c: New file.
8507         * lib/unictype/pr_ideographic.c: New file.
8508         * lib/unictype/pr_ids_binary_operator.c: New file.
8509         * lib/unictype/pr_ids_trinary_operator.c: New file.
8510         * lib/unictype/pr_ignorable_control.c: New file.
8511         * lib/unictype/pr_iso_control.c: New file.
8512         * lib/unictype/pr_join_control.c: New file.
8513         * lib/unictype/pr_left_of_pair.c: New file.
8514         * lib/unictype/pr_line_separator.c: New file.
8515         * lib/unictype/pr_logical_order_exception.c: New file.
8516         * lib/unictype/pr_lowercase.c: New file.
8517         * lib/unictype/pr_math.c: New file.
8518         * lib/unictype/pr_non_break.c: New file.
8519         * lib/unictype/pr_not_a_character.c: New file.
8520         * lib/unictype/pr_numeric.c: New file.
8521         * lib/unictype/pr_other_alphabetic.c: New file.
8522         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8523         * lib/unictype/pr_other_grapheme_extend.c: New file.
8524         * lib/unictype/pr_other_id_continue.c: New file.
8525         * lib/unictype/pr_other_id_start.c: New file.
8526         * lib/unictype/pr_other_lowercase.c: New file.
8527         * lib/unictype/pr_other_math.c: New file.
8528         * lib/unictype/pr_other_uppercase.c: New file.
8529         * lib/unictype/pr_paired_punctuation.c: New file.
8530         * lib/unictype/pr_paragraph_separator.c: New file.
8531         * lib/unictype/pr_pattern_syntax.c: New file.
8532         * lib/unictype/pr_pattern_white_space.c: New file.
8533         * lib/unictype/pr_private_use.c: New file.
8534         * lib/unictype/pr_punctuation.c: New file.
8535         * lib/unictype/pr_quotation_mark.c: New file.
8536         * lib/unictype/pr_radical.c: New file.
8537         * lib/unictype/pr_sentence_terminal.c: New file.
8538         * lib/unictype/pr_soft_dotted.c: New file.
8539         * lib/unictype/pr_space.c: New file.
8540         * lib/unictype/pr_terminal_punctuation.c: New file.
8541         * lib/unictype/pr_test.c: New file.
8542         * lib/unictype/pr_titlecase.c: New file.
8543         * lib/unictype/pr_unassigned_code_value.c: New file.
8544         * lib/unictype/pr_unified_ideograph.c: New file.
8545         * lib/unictype/pr_uppercase.c: New file.
8546         * lib/unictype/pr_variation_selector.c: New file.
8547         * lib/unictype/pr_white_space.c: New file.
8548         * lib/unictype/pr_xid_continue.c: New file.
8549         * lib/unictype/pr_xid_start.c: New file.
8550         * lib/unictype/pr_zero_width.c: New file.
8551         * lib/unictype/scripts.c: New file.
8552         * lib/unictype/sy_c_ident.c: New file.
8553         * lib/unictype/sy_c_whitespace.c: New file.
8554         * lib/unictype/sy_java_ident.c: New file.
8555         * lib/unictype/sy_java_whitespace.c: New file.
8556
8557         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8558         Unicode 5.0.0.
8559         * lib/unictype/blocks.h: Likewise.
8560         * lib/unictype/categ_C.h: Likewise.
8561         * lib/unictype/categ_Cc.h: Likewise.
8562         * lib/unictype/categ_Cf.h: Likewise.
8563         * lib/unictype/categ_Cn.h: Likewise.
8564         * lib/unictype/categ_Co.h: Likewise.
8565         * lib/unictype/categ_Cs.h: Likewise.
8566         * lib/unictype/categ_L.h: Likewise.
8567         * lib/unictype/categ_Ll.h: Likewise.
8568         * lib/unictype/categ_Lm.h: Likewise.
8569         * lib/unictype/categ_Lo.h: Likewise.
8570         * lib/unictype/categ_Lt.h: Likewise.
8571         * lib/unictype/categ_Lu.h: Likewise.
8572         * lib/unictype/categ_M.h: Likewise.
8573         * lib/unictype/categ_Mc.h: Likewise.
8574         * lib/unictype/categ_Me.h: Likewise.
8575         * lib/unictype/categ_Mn.h: Likewise.
8576         * lib/unictype/categ_N.h: Likewise.
8577         * lib/unictype/categ_Nd.h: Likewise.
8578         * lib/unictype/categ_Nl.h: Likewise.
8579         * lib/unictype/categ_No.h: Likewise.
8580         * lib/unictype/categ_P.h: Likewise.
8581         * lib/unictype/categ_Pc.h: Likewise.
8582         * lib/unictype/categ_Pd.h: Likewise.
8583         * lib/unictype/categ_Pe.h: Likewise.
8584         * lib/unictype/categ_Pf.h: Likewise.
8585         * lib/unictype/categ_Pi.h: Likewise.
8586         * lib/unictype/categ_Po.h: Likewise.
8587         * lib/unictype/categ_Ps.h: Likewise.
8588         * lib/unictype/categ_S.h: Likewise.
8589         * lib/unictype/categ_Sc.h: Likewise.
8590         * lib/unictype/categ_Sk.h: Likewise.
8591         * lib/unictype/categ_Sm.h: Likewise.
8592         * lib/unictype/categ_So.h: Likewise.
8593         * lib/unictype/categ_Z.h: Likewise.
8594         * lib/unictype/categ_Zl.h: Likewise.
8595         * lib/unictype/categ_Zp.h: Likewise.
8596         * lib/unictype/categ_Zs.h: Likewise.
8597         * lib/unictype/categ_of.h: Likewise.
8598         * lib/unictype/combining.h: Likewise.
8599         * lib/unictype/ctype_alnum.h: Likewise.
8600         * lib/unictype/ctype_alpha.h: Likewise.
8601         * lib/unictype/ctype_blank.h: Likewise.
8602         * lib/unictype/ctype_cntrl.h: Likewise.
8603         * lib/unictype/ctype_digit.h: Likewise.
8604         * lib/unictype/ctype_graph.h: Likewise.
8605         * lib/unictype/ctype_lower.h: Likewise.
8606         * lib/unictype/ctype_print.h: Likewise.
8607         * lib/unictype/ctype_punct.h: Likewise.
8608         * lib/unictype/ctype_space.h: Likewise.
8609         * lib/unictype/ctype_upper.h: Likewise.
8610         * lib/unictype/ctype_xdigit.h: Likewise.
8611         * lib/unictype/decdigit.h: Likewise.
8612         * lib/unictype/digit.h: Likewise.
8613         * lib/unictype/mirror.h: Likewise.
8614         * lib/unictype/numeric.h: Likewise.
8615         * lib/unictype/pr_alphabetic.h: Likewise.
8616         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8617         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8618         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8619         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8620         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8621         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8622         * lib/unictype/pr_bidi_control.h: Likewise.
8623         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8624         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8625         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8626         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8627         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8628         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8629         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8630         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8631         * lib/unictype/pr_bidi_pdf.h: Likewise.
8632         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8633         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8634         * lib/unictype/pr_combining.h: Likewise.
8635         * lib/unictype/pr_composite.h: Likewise.
8636         * lib/unictype/pr_currency_symbol.h: Likewise.
8637         * lib/unictype/pr_dash.h: Likewise.
8638         * lib/unictype/pr_decimal_digit.h: Likewise.
8639         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8640         * lib/unictype/pr_deprecated.h: Likewise.
8641         * lib/unictype/pr_diacritic.h: Likewise.
8642         * lib/unictype/pr_extender.h: Likewise.
8643         * lib/unictype/pr_format_control.h: Likewise.
8644         * lib/unictype/pr_grapheme_base.h: Likewise.
8645         * lib/unictype/pr_grapheme_extend.h: Likewise.
8646         * lib/unictype/pr_grapheme_link.h: Likewise.
8647         * lib/unictype/pr_hex_digit.h: Likewise.
8648         * lib/unictype/pr_hyphen.h: Likewise.
8649         * lib/unictype/pr_id_continue.h: Likewise.
8650         * lib/unictype/pr_id_start.h: Likewise.
8651         * lib/unictype/pr_ideographic.h: Likewise.
8652         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8653         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8654         * lib/unictype/pr_ignorable_control.h: Likewise.
8655         * lib/unictype/pr_iso_control.h: Likewise.
8656         * lib/unictype/pr_join_control.h: Likewise.
8657         * lib/unictype/pr_left_of_pair.h: Likewise.
8658         * lib/unictype/pr_line_separator.h: Likewise.
8659         * lib/unictype/pr_logical_order_exception.h: Likewise.
8660         * lib/unictype/pr_lowercase.h: Likewise.
8661         * lib/unictype/pr_math.h: Likewise.
8662         * lib/unictype/pr_non_break.h: Likewise.
8663         * lib/unictype/pr_not_a_character.h: Likewise.
8664         * lib/unictype/pr_numeric.h: Likewise.
8665         * lib/unictype/pr_other_alphabetic.h: Likewise.
8666         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8667         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8668         * lib/unictype/pr_other_id_continue.h: Likewise.
8669         * lib/unictype/pr_other_id_start.h: Likewise.
8670         * lib/unictype/pr_other_lowercase.h: Likewise.
8671         * lib/unictype/pr_other_math.h: Likewise.
8672         * lib/unictype/pr_other_uppercase.h: Likewise.
8673         * lib/unictype/pr_paired_punctuation.h: Likewise.
8674         * lib/unictype/pr_paragraph_separator.h: Likewise.
8675         * lib/unictype/pr_pattern_syntax.h: Likewise.
8676         * lib/unictype/pr_pattern_white_space.h: Likewise.
8677         * lib/unictype/pr_private_use.h: Likewise.
8678         * lib/unictype/pr_punctuation.h: Likewise.
8679         * lib/unictype/pr_quotation_mark.h: Likewise.
8680         * lib/unictype/pr_radical.h: Likewise.
8681         * lib/unictype/pr_sentence_terminal.h: Likewise.
8682         * lib/unictype/pr_soft_dotted.h: Likewise.
8683         * lib/unictype/pr_space.h: Likewise.
8684         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8685         * lib/unictype/pr_titlecase.h: Likewise.
8686         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8687         * lib/unictype/pr_unified_ideograph.h: Likewise.
8688         * lib/unictype/pr_uppercase.h: Likewise.
8689         * lib/unictype/pr_variation_selector.h: Likewise.
8690         * lib/unictype/pr_white_space.h: Likewise.
8691         * lib/unictype/pr_xid_continue.h: Likewise.
8692         * lib/unictype/pr_xid_start.h: Likewise.
8693         * lib/unictype/pr_zero_width.h: Likewise.
8694         * lib/unictype/scripts.h: Likewise.
8695         * lib/unictype/scripts_byname.gperf: Likewise.
8696         * lib/unictype/sy_c_ident.h: Likewise.
8697         * lib/unictype/sy_c_whitespace.h: Likewise.
8698         * lib/unictype/sy_java_ident.h: Likewise.
8699         * lib/unictype/sy_java_whitespace.h: Likewise.
8700
8701         * lib/unictype/Makefile: New file.
8702         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8703         glibc.
8704         * lib/unictype/3level.h: New file, copied from glibc.
8705         * lib/unictype/3levelbit.h: New file.
8706
8707 2007-11-11  Bruno Haible  <bruno@clisp.org>
8708
8709         * modules/gperf: New file.
8710         * modules/iconv_open (Depends-on): Add it.
8711         (Makefile.am): Remove the GPERF definition.
8712
8713 2007-11-11  Bruno Haible  <bruno@clisp.org>
8714
8715         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8716         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8717
8718 2007-11-11  Bruno Haible  <bruno@clisp.org>
8719
8720         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8721         (usage): Remove function.
8722
8723 2007-11-11  Bruno Haible  <bruno@clisp.org>
8724
8725         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8726         gl_FUNC_CEILF_LIBS.
8727         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8728         gl_FUNC_CEIL_LIBS.
8729         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8730         gl_FUNC_CEILL_LIBS.
8731         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8732         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8733         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8734
8735 2007-11-11  Bruno Haible  <bruno@clisp.org>
8736
8737         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8738         roundf were declared but do not exist on functions.
8739         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8740         roundl were declared but do not exist on functions.
8741         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8742         HAVE_FLOORL_AND_CEILL, respectively.
8743         Needed for Sun C on Solaris 10.
8744
8745 2007-11-11  Bruno Haible  <bruno@clisp.org>
8746
8747         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8748         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8749         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8750         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8752         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8753         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8754         HAVE_DECL_ROUNDF.
8755         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8756         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8758         of HAVE_DECL_ROUND*.
8759         * modules/math (Makefile.am): Update.
8760
8761 2007-11-10  Bruno Haible  <bruno@clisp.org>
8762
8763         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8764         ptrdiff_t as m4/intl.m4.
8765
8766 2007-11-10  Jim Meyering  <meyering@redhat.com>
8767
8768         Avoid link failure for the argmatch test.
8769         * tests/test-argmatch.c (usage): Define function to avoid a link
8770         failure: argmatch_die requires a usage function.
8771
8772 2007-11-09  Bruno Haible  <bruno@clisp.org>
8773
8774         * doc/functions/snprintf.texi: Mention BeOS deficiency.
8775         * doc/functions/vsnprintf.texi: Likewise.
8776         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8777         with a size argument < 2.
8778
8779 2007-11-09  Bruno Haible  <bruno@clisp.org>
8780
8781         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8782         buffer. Fixes an inefficiency introduced on 2007-11-03.
8783
8784 2007-11-09  Bruno Haible  <bruno@clisp.org>
8785
8786         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8787         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8788
8789 2007-11-08  Jim Meyering  <meyering@redhat.com>
8790
8791         Change cache variable name prefix "jm_" to "gl_" everywhere.
8792         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8793         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8794         * m4/uptime.m4: s/gl_/jm_/
8795
8796 2007-11-07  Bruno Haible  <bruno@clisp.org>
8797
8798         Update to GNU gettext 0.17.
8799         * m4/intl.m4: Update to GNU gettext 0.17.
8800         * m4/po.m4: Likewise.
8801         * modules/gettext (Files): Remove m4/ulonglong.m4.
8802         (configure.ac): Require gettext infrastructure from version 0.17.
8803
8804 2007-11-06  Bruno Haible  <bruno@clisp.org>
8805
8806         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8807         symbolic values are not defined in a public header.
8808         * lib/freadable.c (freadable) [QNX]: Likewise.
8809         * lib/freadahead.c (freadahead) [QNX]: Likewise.
8810         * lib/freading.c (freading) [QNX]: Likewise.
8811         * lib/fseterr.c (fseterr) [QNX]: Likewise.
8812         * lib/fwritable.c (fwritable) [QNX]: Likewise.
8813         * lib/fwriting.c (fwriting) [QNX]: Likewise.
8814         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8815         Reported by Alain Magloire.
8816
8817         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8818
8819 2007-11-05  Bruno Haible  <bruno@clisp.org>
8820
8821         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8822         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8823         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8824         Reported by Eric Blake.
8825
8826 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8827             Bruno Haible  <bruno@clisp.org>
8828
8829         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8830         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8831         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8832         (malloc): Undefine also before including <stdlib.h>.
8833         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8834         Needed on OSF/1 4.0.
8835
8836 2007-11-05  Jim Meyering  <meyering@redhat.com>
8837
8838         git-version-gen: sync from coreutils.
8839         * build-aux/git-version-gen: Add comments.
8840         Change the first '-' to '.' in the snapshot version string,
8841         e.g., 6.9-377-08144 -> 6.9.377-08144
8842         Remove first parameter.
8843         Don't declare a version "-dirty" merely because a time
8844         stamp has changed.
8845
8846 2007-11-04  Bruno Haible  <bruno@clisp.org>
8847
8848         * lib/lock.h: Protect all macro definitions containing an 'if'
8849         statement through a "do { ... } while (0)".
8850         * lib/tls.h: Likewise.
8851
8852 2007-11-04  Bruno Haible  <bruno@clisp.org>
8853
8854         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8855
8856 2007-11-04  Bruno Haible  <bruno@clisp.org>
8857
8858         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8859         * modules/fprintf-posix (Depends-on): Add nocrash.
8860         * modules/snprintf-posix (Depends-on): Likewise.
8861         * modules/sprintf-posix (Depends-on): Likewise.
8862         * modules/vasnprintf-posix (Depends-on): Likewise.
8863         * modules/vasprintf-posix (Depends-on): Likewise.
8864         * modules/vfprintf-posix (Depends-on): Likewise.
8865         * modules/vsnprintf-posix (Depends-on): Likewise.
8866         * modules/vsprintf-posix (Depends-on): Likewise.
8867         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8868         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8869         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8870         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8871         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8872         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8873         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8874
8875 2007-11-04  Bruno Haible  <bruno@clisp.org>
8876
8877         * modules/nocrash: New file.
8878         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8879         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8880
8881 2007-11-04  Bruno Haible  <bruno@clisp.org>
8882
8883         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8884         precision handling.
8885         * tests/test-vasprintf-posix.c (test_function): Likewise.
8886         * tests/test-snprintf-posix.h (test_function): Likewise.
8887         * tests/test-sprintf-posix.h (test_function): Likewise.
8888
8889         Fix *printf behaviour for large precisions on mingw and BeOS.
8890         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8891         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8893         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8895         gl_PRINTF_PRECISION and test its result. Invoke
8896         gl_PREREQ_VASNPRINTF_PRECISION.
8897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8904         * doc/functions/fprintf.texi: Update.
8905         * doc/functions/printf.texi: Update.
8906         * doc/functions/snprintf.texi: Update.
8907         * doc/functions/sprintf.texi: Update.
8908         * doc/functions/vfprintf.texi: Update.
8909         * doc/functions/vprintf.texi: Update.
8910         * doc/functions/vsnprintf.texi: Update.
8911         * doc/functions/vsprintf.texi: Update.
8912
8913 2007-11-04  Bruno Haible  <bruno@clisp.org>
8914
8915         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8916
8917 2007-11-04  Bruno Haible  <bruno@clisp.org>
8918
8919         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8920         Reported by Sylvain Beucler <beuc@gnu.org>.
8921
8922 2007-11-03  Bruno Haible  <bruno@clisp.org>
8923
8924         * tests/test-fprintf-posix2.sh: New file.
8925         * tests/test-fprintf-posix2.c: New file.
8926         * modules/fprintf-posix-tests (Files): Add them.
8927         (TESTS): Add test-fprintf-posix2.sh.
8928         (configure.ac): Check for getrlimit and setrlimit.
8929         (check_PROGRAMS): Add test-fprintf-posix2.
8930
8931         * tests/test-printf-posix2.sh: New file.
8932         * tests/test-printf-posix2.c: New file.
8933         * modules/printf-posix-tests (Files): Add them.
8934         (TESTS): Add test-printf-posix2.sh.
8935         (configure.ac): Check for getrlimit and setrlimit.
8936         (check_PROGRAMS): Add test-printf-posix2.
8937
8938         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8939         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8940         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8941         (decode_double): New function, copied from decode_long_double.
8942         (scale10_round_decimal_decoded): New function, extracted from
8943         scale10_round_decimal_long_double.
8944         (scale10_round_decimal_long_double): Use it.
8945         (scale10_round_decimal_double): New function.
8946         (floorlog10): New function.
8947         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8949         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8951         gl_PRINTF_ENOMEM and test its result. Invoke
8952         gl_PREREQ_VASNPRINTF_ENOMEM.
8953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8960         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8961         * modules/snprintf-posix (Depends-on): Likewise.
8962         * modules/sprintf-posix (Depends-on): Likewise.
8963         * modules/vasnprintf-posix (Depends-on): Likewise.
8964         * modules/vasprintf-posix (Depends-on): Likewise.
8965         * modules/vfprintf-posix (Depends-on): Likewise.
8966         * modules/vsnprintf-posix (Depends-on): Likewise.
8967         * modules/vsprintf-posix (Depends-on): Likewise.
8968         * doc/functions/fprintf.texi: Update.
8969         * doc/functions/printf.texi: Update.
8970         * doc/functions/snprintf.texi: Update.
8971         * doc/functions/sprintf.texi: Update.
8972         * doc/functions/vfprintf.texi: Update.
8973         * doc/functions/vprintf.texi: Update.
8974         * doc/functions/vsnprintf.texi: Update.
8975         * doc/functions/vsprintf.texi: Update.
8976
8977 2007-11-03  Bruno Haible  <bruno@clisp.org>
8978
8979         * modules/frexp-nolibm-tests: New file.
8980
8981         * modules/frexp-nolibm: New file.
8982         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8983
8984 2007-11-03  Bruno Haible  <bruno@clisp.org>
8985
8986         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8987         value is C99 compliant.
8988         Needed for OSF/1 5.1.
8989
8990 2007-11-03  Bruno Haible  <bruno@clisp.org>
8991
8992         Fix out-of-memory handling of vasnprintf.
8993         * lib/printf-parse.c: Include <errno.h>.
8994         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8995         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8996         is already set.
8997
8998 2007-11-02  Eric Blake  <ebb9@byu.net>
8999
9000         Fix tests on cygwin.
9001         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9002
9003 2007-11-01  Bruno Haible  <bruno@clisp.org>
9004
9005         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9006         warning.
9007         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9008         needed for POSIX compatibility.
9009
9010 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9011
9012         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9013         for compatibility with GNU.
9014
9015 2007-11-01  Bruno Haible  <bruno@clisp.org>
9016
9017         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9018         (putenv): Renamed from rpl_putenv. Change argument type from
9019         'const char *' to 'char *'.
9020         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9021         of defining putenv in config.h, just set REPLACE_PUTENV.
9022         * modules/putenv (Depends-on): Add stdlib.
9023         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9024         (Include): Use <stdlib.h>.
9025         * lib/stdlib.in.h (putenv): New declaration.
9026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9027         REPLACE_PUTENV.
9028         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9029         REPLACE_PUTENV.
9030         Needed for MacOS X 10.5.0.
9031         Reported by Peter O'Gorman <peter@pogma.com>.
9032
9033 2007-11-01  Jim Meyering  <meyering@redhat.com>
9034
9035         Treat an empty date string exactly like "0".
9036         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9037         if the remaining date string (to be parsed) is empty, use "0".
9038         Reported by Mischa Molhoek and discussed in this thread:
9039         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9040
9041 2007-10-31  Bruno Haible  <bruno@clisp.org>
9042
9043         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9044         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9045         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9046         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9047         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9048         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9049
9050 2007-10-31  Bruno Haible  <bruno@clisp.org>
9051
9052         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9053         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9054         (AC_TYPE_LONG_LONG_INT): Use it.
9055         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9056         it as well.
9057         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9058         to m4/longlong.m4.
9059         * modules/stdint (Files): Remove m4/ulonglong.m4.
9060         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9061         m4/ulonglong.m4.
9062         * modules/strtoumax (Files): Likewise.
9063
9064 2007-10-30  Bruno Haible  <bruno@clisp.org>
9065
9066         * modules/xvasprintf-posix: New file.
9067         Suggested by Eric Blake.
9068
9069 2007-10-30  Bruno Haible  <bruno@clisp.org>
9070
9071         * modules/xprintf-posix-tests: New file.
9072         * tests/test-xprintf-posix.sh: New file.
9073         * tests/test-xprintf-posix.c: New file.
9074         * tests/test-xfprintf-posix.c: New file.
9075
9076         * modules/xprintf-posix: New file.
9077
9078 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9079
9080         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9081         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9082         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9083
9084 2007-10-29  Bruno Haible  <bruno@clisp.org>
9085
9086         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9087         contain the special marker '_cv_'.
9088         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9089         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9090         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9091         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9092         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9093         Reported by Ralf Wildenhues.
9094
9095 2007-10-29  Bruno Haible  <bruno@clisp.org>
9096
9097         * gnulib-tool (func_import): When --lgpl is not specified, set
9098         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9099         GPLv3.
9100         Reported by Simon Josefsson.
9101
9102 2007-10-28  Bruno Haible  <bruno@clisp.org>
9103
9104         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9105         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9106         HAVE_DECL_ISFINITE.
9107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9108         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9109         HAVE_DECL_ISFINITE.
9110
9111 2007-10-28  Bruno Haible  <bruno@clisp.org>
9112
9113         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9114         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9115
9116 2007-10-28  Bruno Haible  <bruno@clisp.org>
9117
9118         Fix link errors with Sun C 5.0 on Solaris 10.
9119         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9120         function is declared but not present in the compiler's libm.
9121         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9122         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9123         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9124         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9125         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9126         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9127         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9129         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9130         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9131         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9132         HAVE_DECL_FLOORL.
9133
9134 2007-10-28  Bruno Haible  <bruno@clisp.org>
9135
9136         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9137         gl_FUNC_FLOORL. Cache the result.
9138         (gl_FUNC_FLOORL): Use it.
9139         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9140         gl_FUNC_CEILL. Cache the result.
9141         (gl_FUNC_CEILL): Use it.
9142
9143         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9144         gl_FUNC_FLOOR. Cache the result.
9145         (gl_FUNC_FLOOR): Use it.
9146         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9147         gl_FUNC_CEIL. Cache the result.
9148         (gl_FUNC_CEIL): Use it.
9149
9150         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9151         gl_FUNC_FLOORF. Cache the result.
9152         (gl_FUNC_FLOORF): Use it.
9153         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9154         gl_FUNC_CEILF. Cache the result.
9155         (gl_FUNC_CEILF): Use it.
9156
9157 2007-10-28  Bruno Haible  <bruno@clisp.org>
9158
9159         * gnulib-tool: Allow specifying the LGPL version number through
9160         --lgpl=2 or --lgpl=3.
9161         (func_usage): Document --lgpl with argument.
9162         Handle --lgpl=... arguments.
9163         (func_import): Recognize also gl_LGPL calls with an argument. When
9164         --lgpl=2 is used and the module's license is just LGPL, report an
9165         error. Set sed_transform_lib_file according to the lgpl variable. In
9166         the generated files, use --lgpl or gl_LGPL invocations with argument,
9167         if necessary.
9168         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9169         an LGPv2+ license.
9170         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9171         gl_LGPL macro.
9172
9173 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9174             Bruno Haible  <bruno@clisp.org>
9175
9176         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9177         (u16_uctomb_aux): Likewise.
9178         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9179         !HAVE_INLINE.
9180         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9181
9182 2007-10-28  Bruno Haible  <bruno@clisp.org>
9183
9184         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9185         Invoke AM_GETTEXT_OPTION if it exists.
9186         * modules/vasprintf: Likewise.
9187         * modules/verror: Likewise.
9188         * modules/xprintf: Likewise.
9189         * modules/xvasprintf: Likewise.
9190
9191 2007-10-27  Ben Pfaff  <blp@gnu.org>
9192
9193         * lib/math.in.h: Define isfinite macro and prototypes for
9194         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9195         implementations.
9196         * m4/math_h.m4: New substitutions for isfinite module.
9197         * lib/isfinite.c: New file.
9198         * m4/isfinite.m4: New file.
9199         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9200         * modules/isfinite: New file.
9201         * modules/isfinite-tests: New file.
9202         * tests/tests-isfinite.c: New file.
9203         * doc/functions/isfinite.texi: Mention isfinite module.
9204         * MODULES.html.sh: Mention new module.
9205
9206 2007-10-27  Ben Pfaff  <blp@gnu.org>
9207
9208         Ralf Wildenhues reported that Tru64 4.0D declares the round
9209         functions but does not have definitions.
9210         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9211         cannot be found in any library, set the output variable to
9212         "missing" instead of "".
9213         * m4/round.m4: Also use our substitute if we cannot find round in
9214         any library, even if it is declared.
9215         * m4/roundf.m4: Likewise for roundf.
9216         * m4/roundl.m4: Likewise for roundl.
9217         * lib/math.in.h: Undefine roundf, round, roundl before defining
9218         their replacements, to allow for hypothetical systems where these
9219         may be defined as macros but not available in libraries.
9220
9221 2007-10-27  Bruno Haible  <bruno@clisp.org>
9222
9223         * doc/gnulib.texi: Invoke @firstparagraphindent.
9224         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9225         changes in gnulib.
9226         (Source changes): New section.
9227
9228 2007-10-26  Bruno Haible  <bruno@clisp.org>
9229
9230         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9231         borrowed from autoconf.
9232
9233 2007-10-26  Bruno Haible  <bruno@clisp.org>
9234
9235         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9236         strerror returned the empty string. Needed on HP-UX 11.00.
9237
9238 2007-10-24  Micah Cowan  <micah@cowan.name>
9239
9240         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9241         * build-aux/bootstrap: Remove support for now-unnecessary option,
9242         --cvs-user, and envvars CVS_USER, CVS_RSH.
9243
9244 2007-10-24  Jim Meyering  <meyering@redhat.com>
9245
9246         Avoid diagnostics from sha1sum when there is no cached checksum.
9247         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9248         if the po.s1 file hasn't been created yet.
9249
9250         * build-aux/bootstrap: Sync from coreutils:
9251         2007-10-24  Jim Meyering  <meyering@redhat.com>
9252         Get gnulib from the git repository, not from an obsolete cvs one.
9253         * build-aux/bootstrap: Suggestion from Micah Cowan.
9254         2007-10-04  Jim Meyering  <jim@meyering.net>
9255         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9256         (update_po_files): Work also when there are no .po files in po/.
9257
9258 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9259
9260         * README: Append ".git" to git and cg examples.
9261         Problem reported by Benoit Sigoure.
9262
9263 2007-10-23  Micah Cowan  <micah@cowan.name>
9264
9265         * users.txt: Add wget.
9266
9267 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9268
9269         Fix linking of some unistdio tests on FreeBSD.
9270         * modules/unistdio/u16-vsnprintf-tests
9271         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9272         * modules/unistdio/u16-vsprintf-tests
9273         (test_u16_vsnprintf1_LDADD): Likewise.
9274         * modules/unistdio/u32-vsnprintf-tests
9275         (test_u32_vsnprintf1_LDADD): Likewise.
9276         * modules/unistdio/u32-vsprintf-tests
9277         (test_u32_vsprintf1_LDADD): Likewise.
9278         * modules/unistdio/u8-vsnprintf-tests
9279         (test_u8_vsnprintf1_LDADD): Likewise.
9280         * modules/unistdio/u8-vsprintf-tests
9281         (test_u8_vsprintf1_LDADD): Likewise.
9282         * modules/unistdio/ulc-vsnprintf-tests
9283         (test_ulc_vsnprintf1_LDADD): Likewise.
9284         * modules/unistdio/ulc-vsprintf-tests
9285         (test_ulc_vsprintf1_LDADD): Likewise.
9286
9287         Fix linking of some uniconv tests on FreeBSD.
9288         * modules/uniconv/u16-conv-from-enc-tests
9289         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9290         * modules/uniconv/u16-conv-to-enc-tests
9291         (test_u16_conv_to_enc_LDADD): Likewise.
9292         * modules/uniconv/u16-strconv-from-enc-tests
9293         (test_u16_strconv_from_enc_LDADD): Likewise.
9294         * modules/uniconv/u16-strconv-to-enc-tests
9295         (test_u16_strconv_to_enc_LDADD): Likewise.
9296         * modules/uniconv/u32-conv-from-enc-tests
9297         (test_u32_conv_from_enc_LDADD): Likewise.
9298         * modules/uniconv/u32-conv-to-enc-tests
9299         (test_u32_conv_to_enc_LDADD): Likewise.
9300         * modules/uniconv/u32-strconv-from-enc-tests
9301         (test_u32_strconv_from_enc_LDADD): Likewise.
9302         * modules/uniconv/u32-strconv-to-enc-tests
9303         (test_u32_strconv_to_enc_LDADD): Likewise.
9304         * modules/uniconv/u8-conv-from-enc-tests
9305         (test_u8_conv_from_enc_LDADD): Likewise.
9306         * modules/uniconv/u8-conv-to-enc-tests
9307         (test_u8_conv_to_enc_LDADD): Likewise.
9308         * modules/uniconv/u8-strconv-from-enc-tests
9309         (test_u8_strconv_from_enc_LDADD): Likewise.
9310         * modules/uniconv/u8-strconv-to-enc-tests
9311         (test_u8_strconv_to_enc_LDADD): Likewise.
9312
9313 2007-10-22  Bruno Haible  <bruno@clisp.org>
9314
9315         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9316         size.
9317
9318 2007-10-22  Eric Blake  <ebb9@byu.net>
9319
9320         Tweak x*printf documentation.
9321         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9322         variable name and comments.
9323         Suggested by Bruno Haible.
9324
9325 2007-10-22  Bruno Haible  <bruno@clisp.org>
9326
9327         * lib/acl.c (copy_acl): Fix file name in comment.
9328
9329 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9330
9331         Fix Tru64 problem with stdbool.h.
9332         * lib/stdbool.in.h (false, true):
9333         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9334         Don't declare as an enum in this situation; it runs afoul of Tru64.
9335         Problem reported by Steven M. Schweda in
9336         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9337
9338 2007-10-22  Eric Blake  <ebb9@byu.net>
9339
9340         Also wrap vf?printf.
9341         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9342         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9343         (xvprintf, xvfprintf): New functions.
9344
9345 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9346
9347         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9348         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9349
9350         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9351         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9352
9353 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9356         by Bruno Haible.
9357
9358 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9359
9360         * lib/getloadavg.c
9361         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9362         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9363
9364         * tests/test-i-ring.c: Work for C89.
9365
9366 2007-10-22  Bruno Haible  <bruno@clisp.org>
9367
9368         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9369         -1u, in preprocessor expression, so that we don't test for the bug
9370         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9372
9373 2007-10-22  Eric Blake  <ebb9@byu.net>
9374
9375         * tests/test-yesno.sh: Silence stderr during test.
9376
9377 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9378
9379         * modules/crypto/gc-camellia: New file.
9380
9381         * m4/gc-camellia.m4: New file.
9382
9383         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9384
9385         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9386
9387 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9388
9389         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9390         --help to stdout.  Reported by sms@antinode.org (Steven
9391         M. Schweda).
9392
9393 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9394
9395         * users.txt: Fix link to libksba.
9396
9397 2007-10-21  Ben Pfaff  <blp@gnu.org>
9398
9399         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9400         round.c roundf implementation that depends on floorf and ceilf to
9401         be tested unconditionally.
9402
9403 2007-10-21  Ben Pfaff  <blp@gnu.org>
9404
9405         * m4/check-libm-func.m4: Removed.
9406         * m4/check-math-lib.m4: New file.
9407         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9408         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9409         definition and lack of AC_LIBOBJ([roundf]).
9410         * m4/roundl.m4: Ditto, and similarly for roundl.
9411         * modules/round: Reference new m4 file.
9412         * modules/roundf: Ditto.
9413         * modules/roundl: Ditto.
9414         * tests/test-round2.c (main): Use ROUND instead of round.
9415         Bug report from Bruno Haible.
9416
9417 2007-10-21  Bruno Haible  <bruno@clisp.org>
9418
9419         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9420         context.
9421
9422 2007-10-21  Bruno Haible  <bruno@clisp.org>
9423
9424         * tests/test-wcwidth.c (main): Allow negative result for some control
9425         characters.
9426
9427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9428         Needed on OSF/1 5.1.
9429
9430 2007-10-21  Bruno Haible  <bruno@clisp.org>
9431
9432         * tests/test-floorf1.c: Include isnanf.h.
9433         (main): Use isnanf() instead of isnan().
9434         * tests/test-ceilf1.c: Include isnanf.h.
9435         (main): Use isnanf() instead of isnan().
9436         * tests/test-truncf1.c: Include isnanf.h.
9437         (main): Use isnanf() instead of isnan().
9438         * tests/test-roundf1.c: Include isnanf.h.
9439         (main): Use isnanf() instead of isnan().
9440
9441 2007-10-21  Eric Blake  <ebb9@byu.net>
9442
9443         * users.txt: Update URL for m4.
9444
9445 2007-10-21  Bruno Haible  <bruno@clisp.org>
9446
9447         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9448
9449 2007-10-21  Bruno Haible  <bruno@clisp.org>
9450
9451         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9452         Git's management files if the CVS files are not present.
9453
9454 2007-10-20  Bruno Haible  <bruno@clisp.org>
9455
9456         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9457         gcc-3.4.x.
9458
9459 2007-10-20  Ben Pfaff  <blp@gnu.org>
9460
9461         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9462         implementations.
9463         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9464         * lib/round.c: New file.
9465         * lib/roundf.c: New file.
9466         * lib/roundl.c: New file.
9467         * m4/round.m4: New file.
9468         * m4/roundf.m4: New file.
9469         * m4/roundl.m4: New file.
9470         * m4/check-libm-func-m4: New file.
9471         * modules/math: Replace round, roundf, roundl related @VARS@ in
9472         math.in.h.
9473         * modules/round: New file.
9474         * modules/round-tests: New file.
9475         * modules/roundf: New file.
9476         * modules/roundf-tests: New file.
9477         * modules/roundl: New file.
9478         * modules/roundl-tests: New file.
9479         * tests/test-round1.c: New file.
9480         * tests/test-round2.c: New file.
9481         * tests/test-roundf1.c: New file.
9482         * tests/test-roundf2.c: New file.
9483         * tests/test-roundl.c: New file.
9484         * doc/functions/round.texi: Mention round module.
9485         * doc/functions/roundf.texi: Mention roundf module.
9486         * doc/functions/roundl.texi: Mention roundl module.
9487         * MODULES.html.sh: Mention new modules.
9488         Thanks to Bruno Haible for suggestions.
9489
9490 2007-10-20  Jim Meyering  <meyering@redhat.com>
9491
9492         * lib/xprintf.c: Include <config.h> unconditionally.
9493
9494         Change xprintf's license to GPL.
9495         * modules/xprintf (License): s/LGPL/GPL/, since this module
9496         depends on modules (exit and exitfail) which are GPL.
9497         Suggestion from Bruno Haible.
9498
9499         xprintf fixes.
9500         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9501         Use a clearer diagnostic.
9502         Patch from Bruno Haible.
9503
9504 2007-10-20  Bruno Haible  <bruno@clisp.org>
9505
9506         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9507         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9509
9510 2007-10-20  Bruno Haible  <bruno@clisp.org>
9511
9512         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9513         precision in the comparison result > x - 1 or similar.
9514         * tests/test-ceilf2.c (correct_result_p): Likewise.
9515         * tests/test-truncf2.c (correct_result_p): Likewise.
9516         * tests/test-trunc2.c (correct_result_p): Likewise.
9517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9518
9519 2007-10-20  Bruno Haible  <bruno@clisp.org>
9520
9521         * modules/ceil: New file.
9522         * m4/ceil.m4: New file.
9523         * doc/functions/ceil.texi: Mention the 'ceil' module.
9524
9525 2007-10-20  Bruno Haible  <bruno@clisp.org>
9526
9527         * modules/floor: New file.
9528         * m4/floor.m4: New file.
9529         * doc/functions/floor.texi: Mention the 'floor' module.
9530
9531 2007-10-20  Bruno Haible  <bruno@clisp.org>
9532
9533         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9534         of %a.
9535         * modules/floorf-tests (Depends-on): Likewise.
9536         * modules/truncf-tests (Depends-on): Likewise.
9537         * modules/trunc-tests (Depends-on): Likewise.
9538         Reported by Ben Pfaff.
9539
9540 2007-10-19  Jim Meyering  <meyering@redhat.com>
9541
9542         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9543         Don't bother testing specific errno values.  Just test ferror.
9544
9545         New module: xprintf
9546         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9547
9548 2007-10-19  Bruno Haible  <bruno@clisp.org>
9549
9550         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9551         syntax.
9552         * modules/javaexec (Makefile.am): Likewise.
9553         * modules/relocatable-prog (Makefile.am): Likewise.
9554         Suggested by Jim Meyering.
9555
9556 2007-10-18  Bruno Haible  <bruno@clisp.org>
9557
9558         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9559         Reported by Jim Meyering.
9560
9561 2007-10-18  Eric Blake  <ebb9@byu.net>
9562
9563         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9564
9565 2007-10-18  Bruno Haible  <bruno@clisp.org>
9566
9567         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9568         the format string into writable memory. Needed in Fortify conditions.
9569
9570 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9571             Bruno Haible  <bruno@clisp.org>
9572
9573         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9574         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9575         * modules/trim (Depends-on): Add mbchar.
9576         (configure.ac): Add gl_FUNC_MBRTOWC.
9577         (Makefile.am): Augment lib_SOURCES.
9578
9579 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         Modify glob.c to use fstatat and dirfd, to simplify it.
9582         Suggested by Eric Blake.
9583         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9584         Don't include <stdbool.h>; not used.
9585         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9586         (link_exists_p): Simplify implementation, since we can now assume
9587         dirfd and fstatat.
9588         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9589
9590 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9591
9592         * gnulib-tool (func_get_dependencies): Fix sed script to
9593         match only tests.
9594
9595 2007-10-17  Bruno Haible  <bruno@clisp.org>
9596
9597         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9598         allow locale names without encoding suffix.
9599         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9600         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9601
9602 2007-10-16  Bruno Haible  <bruno@clisp.org>
9603
9604         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9605         * lib/getgroups.c (getgroups): Likewise.
9606         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9607
9608 2007-10-16  Bruno Haible  <bruno@clisp.org>
9609
9610         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9611         * modules/malloc-posix (License): Likewise.
9612         * modules/realloc-posix (License): Likewise.
9613         * modules/calloc-posix (License): Likewise.
9614         * modules/intprops (License): Change from GPL to LGPL, with
9615         Paul Eggert's approval.
9616
9617 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9618
9619         Merge glibc changes into lib/glob.c.
9620
9621         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9622         2007-10-15 04:59:03 UTC.  Here are the changes:
9623
9624         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
9625
9626         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9627
9628         * lib/glob.c: Add some branch prediction throughout.
9629
9630         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
9631
9632         [BZ #5103]
9633         * lib/glob.c (glob): Recognize patterns starting \/.
9634
9635         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9636
9637         [BZ #3996]
9638         * lib/glob.c (attribute_hidden): Define if not defined.
9639         (glob): Unescape dirname, filename or username when needed and not
9640         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9641         is NULL.  Handle unescaped [ in pattern without closing ].
9642         Don't pass GLOB_CHECK down to recursive glob for directories.
9643         (__glob_pattern_type): New function.
9644         (__glob_pattern_p): Implement using __glob_pattern_type.
9645         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9646         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9647         Remove unreachable code.
9648
9649         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9650
9651         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9652         explain why there are no leaks.
9653
9654         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9655
9656         [BZ #3253]
9657         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9658         time, rather allocate increasingly bigger arrays of pointers, if
9659         possible with alloca, if too large with malloc.
9660
9661 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9662
9663         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9664         Problem reported by H.Merijn Brand in
9665         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9666         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9667         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9668
9669 2007-10-15  Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9672         with explicit rpl_ prefix.
9673         * lib/fopen.c (fopen): Likewise.
9674         * lib/freopen.c (freopen): Likewise.
9675         * lib/iconv.c (iconv): Likewise.
9676         * lib/iconv_close.c (iconv_close): Likewise.
9677
9678 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9679
9680         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9681
9682 2007-10-15  Bruno Haible  <bruno@clisp.org>
9683
9684         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9685         <stddef.h> instead of <stdlib.h> since we only need NULL.
9686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9687
9688 2007-10-15  Bruno Haible  <bruno@clisp.org>
9689
9690         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9691         Replace paragraph talking about LIBOBJS.
9692         Reported by Colin Watson <cjwatson@debian.org>.
9693
9694 2007-10-15  Bruno Haible  <bruno@clisp.org>
9695
9696         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9697         <stdlib.h> before using NULL.
9698
9699 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9700
9701         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9702         Reported by Albert Chin <china@thewrittenword.com>.
9703
9704 2007-10-14  Bruno Haible  <bruno@clisp.org>
9705
9706         * modules/iconv_open-utf-tests: New file.
9707         * tests/test-iconv-utf.c: New file.
9708
9709         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9710         * modules/iconv_open-utf: New file.
9711         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9712         (iconv, iconv_close): New declarations.
9713         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9714         be defined.
9715         (iconv_open): Add special handling of conversion between UTF-8 and
9716         UTF-{16,32}{BE,LE}.
9717         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9718         * lib/iconv_close.c: New file.
9719         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9720         gl_FUNC_ICONV_OPEN.
9721         (gl_FUNC_ICONV_OPEN): Use it.
9722         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9723         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9724         and REPLACE_ICONV_UTF.
9725         * modules/iconv_open (Depends-on): Add c-strcase.
9726         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9727         ICONV_CONST.
9728         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9729
9730 2007-10-13  Albert Chin  <china@thewrittenword.com>
9731             Bruno Haible  <bruno@clisp.org>
9732
9733         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9734         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9735
9736 2007-10-13  Bruno Haible  <bruno@clisp.org>
9737
9738         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9739         defined, use the ISO C99 inline semantics.
9740         * lib/argp.h (ARGP_EI): Likewise.
9741
9742 2007-10-13  Bruno Haible  <bruno@clisp.org>
9743
9744         Handle 'inline' change in gcc 4.3.0.
9745         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9746         argp_fmtstream_write, argp_fmtstream_set_lmargin,
9747         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9748         argp_fmtstream_point): Disable 'extern' declaration if the function
9749         definition is going to be provided inline.
9750         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9751         semantics, not the ISO C99 inline semantics.
9752         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9753         'extern' declaration if the function definition is going to be provided
9754         inline.
9755         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9756         the GNU C inline semantics, not the ISO C99 inline semantics. With
9757         GCC 4.2, avoid a warning.
9758
9759 2007-10-13  Bruno Haible  <bruno@clisp.org>
9760
9761         * lib/freading.h (freading): Enable the use of __freading for
9762         glibc >= 2.7.
9763         * lib/freading.c (freading): Likewise.
9764
9765 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9766
9767         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9768         "warning: C99 inline functions are not supported; using GNU89".
9769
9770 2007-10-12  Bruno Haible  <bruno@clisp.org>
9771
9772         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9773         of 2.
9774         * tests/test-ceilf2.c: New file.
9775         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9776
9777         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9778         * modules/ceilf-tests: Update.
9779
9780 2007-10-12  Bruno Haible  <bruno@clisp.org>
9781
9782         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9783         of 2.
9784         * tests/test-floorf2.c: New file.
9785         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9786
9787         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9788         * modules/floorf-tests: Update.
9789
9790 2007-10-12  Bruno Haible  <bruno@clisp.org>
9791
9792         * tests/test-trunc2.c: New file.
9793         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9794
9795         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9796         * modules/trunc-tests: Update.
9797
9798 2007-10-12  Bruno Haible  <bruno@clisp.org>
9799
9800         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9801         of 2.
9802         * tests/test-truncf2.c: New file.
9803         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9804
9805         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9806         * modules/truncf-tests: Update.
9807
9808 2007-10-11  Eric Blake  <ebb9@byu.net>
9809
9810         Don't claim strerror is broken on Interix.
9811         * doc/functions/strerror.texi (strerror): Known broken systems are
9812         now Solaris 8, and not Interix.
9813         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9814         Interix on cross-compile.
9815         Reported by Martin Koeppe in
9816         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9817
9818 2007-10-11  Bruno Haible  <bruno@clisp.org>
9819
9820         * modules/i-ring-tests: New file.
9821         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9822         instead of assert.
9823
9824 2007-10-11  Bruno Haible  <bruno@clisp.org>
9825
9826         * modules/filenamecat-tests: New file.
9827         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9828         * lib/filenamecat.c: Remove test code.
9829
9830 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9831
9832         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9833
9834         * lib/strerror.c: Include <string.h> always, to test interface,
9835         and to remove the need for the dummy.
9836         Include intprops.h to compute width instead of doing it ourselves
9837         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9838         (strerror): Define it to return NULL if there's no system strerror.
9839         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9840         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
9841         ancient pre-strerror Unix systems well any more.  Saying "unknown
9842         system error" is enough.
9843         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9844         simpler strerror.c implementation.
9845         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9846         Simplify the tests to reflect the simpler strerror implementation.
9847         * modules/strerror (Depends-on): Add intprops.
9848
9849 2007-10-09  Eric Blake  <ebb9@byu.net>
9850
9851         Silence test-fpending.
9852         * modules/fpending-tests (Files): Add wrapper script.
9853         * tests/test-fpending.sh: New file.
9854
9855 2007-10-09  Bruno Haible  <bruno@clisp.org>
9856
9857         * MODULES.html.sh (func_module): Don't create a hyperlink for
9858         function names like 'printf_frexp'.
9859         (Misc): Add crc, memxor.
9860         (Characteristics of floating types): New section.
9861         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9862         isnanf-nolibm, signbit, trunc, truncf, truncl.
9863         (Enhancements for ISO C 99 functions): New subsection Input/output.
9864         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9865         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9866         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9867         (Compatibility checks for POSIX:2001 functions): Add clock-time.
9868         (Enhancements for POSIX:2001 functions): Add chdir-long.
9869         (File system functions): Add areadlink, chdir-safer, read-file.
9870         Remove cycle-check.
9871         (File system as inode set): New section.
9872         (Date and time): Add gethrxtime.
9873         (Multithreading): Add openmp.
9874         (Internationalization functions): Add localename.
9875         (Unicode string functions): Add unistr/u*-mbsnlen.
9876         (Support for maintaining and releasing projects): Add git-version-gen.
9877         (Lone files): Remove directories.
9878
9879 2007-10-08  Ben Pfaff  <blp@gnu.org>
9880
9881         * lib/xmalloca.h: Fix typo in comment.
9882
9883 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9884
9885         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9886         when avoiding problems with integer overflow.  Use a portable test
9887         instead.
9888
9889 2007-10-08  Simon Josefsson  <simon@josefsson.org>
9890
9891         * modules/dummy (License): Change to LGPLv2+.
9892         * modules/float (License): Likewise
9893         * modules/realloc (License): Likewise
9894         * modules/stdlib (License): Likewise
9895
9896 2007-10-07  Bruno Haible  <bruno@clisp.org>
9897
9898         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9899         * floor.c (TWO_MANT_DIG): Likewise.
9900         * ceil.c (TWO_MANT_DIG): Likewise.
9901         Reported by Ben Pfaff.
9902
9903 2007-10-07  Bruno Haible  <bruno@clisp.org>
9904
9905         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9906         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9907         * lib/frexp.c (FUNC): Likewise.
9908         * lib/printf-frexp.h (printf_frexp): Likewise.
9909         * lib/printf-frexpl.h (printf_frexpl): Likewise.
9910         * lib/printf-frexp.c (FUNC): Likewise.
9911         Suggested by Jim Meyering.
9912
9913 2007-10-07  Jim Meyering  <meyering@redhat.com>
9914
9915         Make xnanosleep's integer overflow test more robust.
9916         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9917         so that gcc-4.3.0 doesn't optimize away this test for overflow.
9918
9919 2007-10-07  Bruno Haible  <bruno@clisp.org>
9920
9921         * NEWS: Mention the license change.
9922
9923         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9924         abbreviations in the modules files.
9925
9926         Change copyright notice from GPLv2+ to GPLv3+.
9927         * README: Change copyright notice.
9928         * MODULES.html.sh: Likewise.
9929         * build-aux/bootstrap.conf: Likewise.
9930         * build-aux/config.libpath: Likewise.
9931         * build-aux/csharpcomp.sh.in: Likewise.
9932         * build-aux/csharpexec.sh.in: Likewise.
9933         * build-aux/install-reloc: Likewise.
9934         * build-aux/javacomp.sh.in: Likewise.
9935         * build-aux/javaexec.sh.in: Likewise.
9936         * build-aux/ldd.sh.in: Likewise.
9937         * build-aux/reloc-ldflags: Likewise.
9938         * build-aux/relocatable.sh.in: Likewise.
9939         * build-aux/x-to-1.in: Likewise.
9940         * check-module: Likewise.
9941         * config/srclistvars.sh: Likewise.
9942         * gnulib-tool: Likewise.
9943         * lib/acl-internal.h: Likewise.
9944         * lib/acl.c: Likewise.
9945         * lib/acl.h: Likewise.
9946         * lib/acl_entries.c: Likewise.
9947         * lib/areadlink-with-size.c: Likewise.
9948         * lib/areadlink.c: Likewise.
9949         * lib/areadlink.h: Likewise.
9950         * lib/argmatch.c: Likewise.
9951         * lib/argmatch.h: Likewise.
9952         * lib/argp-ba.c: Likewise.
9953         * lib/argp-eexst.c: Likewise.
9954         * lib/argp-fmtstream.c: Likewise.
9955         * lib/argp-fmtstream.h: Likewise.
9956         * lib/argp-fs-xinl.c: Likewise.
9957         * lib/argp-help.c: Likewise.
9958         * lib/argp-namefrob.h: Likewise.
9959         * lib/argp-parse.c: Likewise.
9960         * lib/argp-pin.c: Likewise.
9961         * lib/argp-pv.c: Likewise.
9962         * lib/argp-pvh.c: Likewise.
9963         * lib/argp-xinl.c: Likewise.
9964         * lib/argp.h: Likewise.
9965         * lib/at-func.c: Likewise.
9966         * lib/atanl.c: Likewise.
9967         * lib/backupfile.c: Likewise.
9968         * lib/backupfile.h: Likewise.
9969         * lib/basename.c: Likewise.
9970         * lib/binary-io.h: Likewise.
9971         * lib/byteswap.in.h: Likewise.
9972         * lib/c-stack.c: Likewise.
9973         * lib/c-stack.h: Likewise.
9974         * lib/c-strcasestr.c: Likewise.
9975         * lib/c-strcasestr.h: Likewise.
9976         * lib/c-strstr.c: Likewise.
9977         * lib/c-strstr.h: Likewise.
9978         * lib/c-strtod.c: Likewise.
9979         * lib/calloc.c: Likewise.
9980         * lib/canon-host.c: Likewise.
9981         * lib/canon-host.h: Likewise.
9982         * lib/canonicalize-lgpl.c: Likewise.
9983         * lib/canonicalize.c: Likewise.
9984         * lib/canonicalize.h: Likewise.
9985         * lib/ceil.c: Likewise.
9986         * lib/ceilf.c: Likewise.
9987         * lib/ceill.c: Likewise.
9988         * lib/chdir-long.c: Likewise.
9989         * lib/chdir-long.h: Likewise.
9990         * lib/chdir-safer.c: Likewise.
9991         * lib/chdir-safer.h: Likewise.
9992         * lib/chown.c: Likewise.
9993         * lib/classpath.c: Likewise.
9994         * lib/classpath.h: Likewise.
9995         * lib/clean-temp.c: Likewise.
9996         * lib/clean-temp.h: Likewise.
9997         * lib/cloexec.c: Likewise.
9998         * lib/close-stream.c: Likewise.
9999         * lib/closein.c: Likewise.
10000         * lib/closein.h: Likewise.
10001         * lib/closeout.c: Likewise.
10002         * lib/closeout.h: Likewise.
10003         * lib/concat-filename.c: Likewise.
10004         * lib/copy-file.c: Likewise.
10005         * lib/copy-file.h: Likewise.
10006         * lib/count-one-bits.h: Likewise.
10007         * lib/crc.c: Likewise.
10008         * lib/crc.h: Likewise.
10009         * lib/creat-safer.c: Likewise.
10010         * lib/csharpcomp.c: Likewise.
10011         * lib/csharpcomp.h: Likewise.
10012         * lib/csharpexec.c: Likewise.
10013         * lib/csharpexec.h: Likewise.
10014         * lib/cycle-check.c: Likewise.
10015         * lib/cycle-check.h: Likewise.
10016         * lib/diacrit.c: Likewise.
10017         * lib/diacrit.h: Likewise.
10018         * lib/diffseq.h: Likewise.
10019         * lib/dirchownmod.c: Likewise.
10020         * lib/dirent.in.h: Likewise.
10021         * lib/dirfd.c: Likewise.
10022         * lib/dirfd.h: Likewise.
10023         * lib/dirname.c: Likewise.
10024         * lib/dirname.h: Likewise.
10025         * lib/dummy.c: Likewise.
10026         * lib/dup-safer.c: Likewise.
10027         * lib/dup2.c: Likewise.
10028         * lib/eealloc.h: Likewise.
10029         * lib/error.c: Likewise.
10030         * lib/error.h: Likewise.
10031         * lib/euidaccess.c: Likewise.
10032         * lib/exclude.c: Likewise.
10033         * lib/exclude.h: Likewise.
10034         * lib/execute.c: Likewise.
10035         * lib/execute.h: Likewise.
10036         * lib/exitfail.c: Likewise.
10037         * lib/exitfail.h: Likewise.
10038         * lib/expl.c: Likewise.
10039         * lib/fatal-signal.c: Likewise.
10040         * lib/fatal-signal.h: Likewise.
10041         * lib/fbufmode.c: Likewise.
10042         * lib/fbufmode.h: Likewise.
10043         * lib/fchdir.c: Likewise.
10044         * lib/fchmodat.c: Likewise.
10045         * lib/fchownat.c: Likewise.
10046         * lib/fcntl--.h: Likewise.
10047         * lib/fcntl-safer.h: Likewise.
10048         * lib/fcntl.in.h: Likewise.
10049         * lib/fd-safer.c: Likewise.
10050         * lib/fflush.c: Likewise.
10051         * lib/file-has-acl.c: Likewise.
10052         * lib/file-set.c: Likewise.
10053         * lib/file-type.c: Likewise.
10054         * lib/file-type.h: Likewise.
10055         * lib/fileblocks.c: Likewise.
10056         * lib/filemode.c: Likewise.
10057         * lib/filemode.h: Likewise.
10058         * lib/filename.h: Likewise.
10059         * lib/filenamecat.c: Likewise.
10060         * lib/filenamecat.h: Likewise.
10061         * lib/findprog.c: Likewise.
10062         * lib/findprog.h: Likewise.
10063         * lib/float.in.h: Likewise.
10064         * lib/floor.c: Likewise.
10065         * lib/floorf.c: Likewise.
10066         * lib/floorl.c: Likewise.
10067         * lib/fopen-safer.c: Likewise.
10068         * lib/fopen.c: Likewise.
10069         * lib/fpending.c: Likewise.
10070         * lib/fpending.h: Likewise.
10071         * lib/fprintf.c: Likewise.
10072         * lib/fprintftime.h: Likewise.
10073         * lib/fpucw.h: Likewise.
10074         * lib/fpurge.c: Likewise.
10075         * lib/fpurge.h: Likewise.
10076         * lib/freadable.c: Likewise.
10077         * lib/freadable.h: Likewise.
10078         * lib/freadahead.c: Likewise.
10079         * lib/freadahead.h: Likewise.
10080         * lib/freading.c: Likewise.
10081         * lib/freading.h: Likewise.
10082         * lib/free.c: Likewise.
10083         * lib/freopen.c: Likewise.
10084         * lib/frexp.c: Likewise.
10085         * lib/frexpl.c: Likewise.
10086         * lib/fseek.c: Likewise.
10087         * lib/fseterr.c: Likewise.
10088         * lib/fseterr.h: Likewise.
10089         * lib/fstatat.c: Likewise.
10090         * lib/fstrcmp.c: Likewise.
10091         * lib/fstrcmp.h: Likewise.
10092         * lib/fsusage.c: Likewise.
10093         * lib/fsusage.h: Likewise.
10094         * lib/ftell.c: Likewise.
10095         * lib/ftello.c: Likewise.
10096         * lib/fts-cycle.c: Likewise.
10097         * lib/fts.c: Likewise.
10098         * lib/fts_.h: Likewise.
10099         * lib/full-read.c: Likewise.
10100         * lib/full-read.h: Likewise.
10101         * lib/full-write.c: Likewise.
10102         * lib/full-write.h: Likewise.
10103         * lib/fwritable.c: Likewise.
10104         * lib/fwritable.h: Likewise.
10105         * lib/fwriteerror.c: Likewise.
10106         * lib/fwriteerror.h: Likewise.
10107         * lib/fwriting.c: Likewise.
10108         * lib/fwriting.h: Likewise.
10109         * lib/gcd.c: Likewise.
10110         * lib/gcd.h: Likewise.
10111         * lib/getcwd.c: Likewise.
10112         * lib/getdate.h: Likewise.
10113         * lib/getdate.y: Likewise.
10114         * lib/getdomainname.c: Likewise.
10115         * lib/getdomainname.h: Likewise.
10116         * lib/getgroups.c: Likewise.
10117         * lib/gethostname.c: Likewise.
10118         * lib/gethrxtime.c: Likewise.
10119         * lib/gethrxtime.h: Likewise.
10120         * lib/getloadavg.c: Likewise.
10121         * lib/getndelim2.c: Likewise.
10122         * lib/getndelim2.h: Likewise.
10123         * lib/getnline.c: Likewise.
10124         * lib/getnline.h: Likewise.
10125         * lib/getopt.c: Likewise.
10126         * lib/getopt.in.h: Likewise.
10127         * lib/getopt1.c: Likewise.
10128         * lib/getopt_int.h: Likewise.
10129         * lib/getpagesize.h: Likewise.
10130         * lib/getsubopt.c: Likewise.
10131         * lib/gettime.c: Likewise.
10132         * lib/getugroups.c: Likewise.
10133         * lib/getugroups.h: Likewise.
10134         * lib/getusershell.c: Likewise.
10135         * lib/gl_anyavltree_list1.h: Likewise.
10136         * lib/gl_anyavltree_list2.h: Likewise.
10137         * lib/gl_anyhash_list1.h: Likewise.
10138         * lib/gl_anyhash_list2.h: Likewise.
10139         * lib/gl_anylinked_list1.h: Likewise.
10140         * lib/gl_anylinked_list2.h: Likewise.
10141         * lib/gl_anyrbtree_list1.h: Likewise.
10142         * lib/gl_anyrbtree_list2.h: Likewise.
10143         * lib/gl_anytree_list1.h: Likewise.
10144         * lib/gl_anytree_list2.h: Likewise.
10145         * lib/gl_anytree_oset.h: Likewise.
10146         * lib/gl_anytreehash_list1.h: Likewise.
10147         * lib/gl_anytreehash_list2.h: Likewise.
10148         * lib/gl_array_list.c: Likewise.
10149         * lib/gl_array_list.h: Likewise.
10150         * lib/gl_array_oset.c: Likewise.
10151         * lib/gl_array_oset.h: Likewise.
10152         * lib/gl_avltree_list.c: Likewise.
10153         * lib/gl_avltree_list.h: Likewise.
10154         * lib/gl_avltree_oset.c: Likewise.
10155         * lib/gl_avltree_oset.h: Likewise.
10156         * lib/gl_avltreehash_list.c: Likewise.
10157         * lib/gl_avltreehash_list.h: Likewise.
10158         * lib/gl_carray_list.c: Likewise.
10159         * lib/gl_carray_list.h: Likewise.
10160         * lib/gl_linked_list.c: Likewise.
10161         * lib/gl_linked_list.h: Likewise.
10162         * lib/gl_linkedhash_list.c: Likewise.
10163         * lib/gl_linkedhash_list.h: Likewise.
10164         * lib/gl_list.c: Likewise.
10165         * lib/gl_list.h: Likewise.
10166         * lib/gl_oset.c: Likewise.
10167         * lib/gl_oset.h: Likewise.
10168         * lib/gl_rbtree_list.c: Likewise.
10169         * lib/gl_rbtree_list.h: Likewise.
10170         * lib/gl_rbtree_oset.c: Likewise.
10171         * lib/gl_rbtree_oset.h: Likewise.
10172         * lib/gl_rbtreehash_list.c: Likewise.
10173         * lib/gl_rbtreehash_list.h: Likewise.
10174         * lib/gl_sublist.c: Likewise.
10175         * lib/gl_sublist.h: Likewise.
10176         * lib/group-member.c: Likewise.
10177         * lib/group-member.h: Likewise.
10178         * lib/hard-locale.c: Likewise.
10179         * lib/hard-locale.h: Likewise.
10180         * lib/hash-pjw.c: Likewise.
10181         * lib/hash-pjw.h: Likewise.
10182         * lib/hash-triple.c: Likewise.
10183         * lib/hash.c: Likewise.
10184         * lib/hash.h: Likewise.
10185         * lib/human.c: Likewise.
10186         * lib/human.h: Likewise.
10187         * lib/i-ring.c: Likewise.
10188         * lib/i-ring.h: Likewise.
10189         * lib/idcache.c: Likewise.
10190         * lib/imaxabs.c: Likewise.
10191         * lib/imaxdiv.c: Likewise.
10192         * lib/inet_pton.c: Likewise.
10193         * lib/inet_pton.h: Likewise.
10194         * lib/intprops.h: Likewise.
10195         * lib/inttostr.c: Likewise.
10196         * lib/inttostr.h: Likewise.
10197         * lib/inttypes.in.h: Likewise.
10198         * lib/isapipe.c: Likewise.
10199         * lib/isdir.c: Likewise.
10200         * lib/isnan.c: Likewise.
10201         * lib/isnan.h: Likewise.
10202         * lib/isnanf.c: Likewise.
10203         * lib/isnanf.h: Likewise.
10204         * lib/isnanl-nolibm.h: Likewise.
10205         * lib/isnanl.c: Likewise.
10206         * lib/isnanl.h: Likewise.
10207         * lib/javacomp.c: Likewise.
10208         * lib/javacomp.h: Likewise.
10209         * lib/javaexec.c: Likewise.
10210         * lib/javaexec.h: Likewise.
10211         * lib/javaversion.c: Likewise.
10212         * lib/javaversion.h: Likewise.
10213         * lib/javaversion.java: Likewise.
10214         * lib/lbrkprop.h: Likewise.
10215         * lib/lchmod.h: Likewise.
10216         * lib/lchown.c: Likewise.
10217         * lib/ldexpl.c: Likewise.
10218         * lib/linebreak.c: Likewise.
10219         * lib/linebreak.h: Likewise.
10220         * lib/linebuffer.c: Likewise.
10221         * lib/linebuffer.h: Likewise.
10222         * lib/locale.in.h: Likewise.
10223         * lib/logl.c: Likewise.
10224         * lib/long-options.c: Likewise.
10225         * lib/long-options.h: Likewise.
10226         * lib/lstat.c: Likewise.
10227         * lib/lstat.h: Likewise.
10228         * lib/math.in.h: Likewise.
10229         * lib/mbchar.c: Likewise.
10230         * lib/mbchar.h: Likewise.
10231         * lib/mbfile.h: Likewise.
10232         * lib/mbiter.h: Likewise.
10233         * lib/mbscasecmp.c: Likewise.
10234         * lib/mbscasestr.c: Likewise.
10235         * lib/mbschr.c: Likewise.
10236         * lib/mbscspn.c: Likewise.
10237         * lib/mbslen.c: Likewise.
10238         * lib/mbsncasecmp.c: Likewise.
10239         * lib/mbsnlen.c: Likewise.
10240         * lib/mbspbrk.c: Likewise.
10241         * lib/mbspcasecmp.c: Likewise.
10242         * lib/mbsrchr.c: Likewise.
10243         * lib/mbssep.c: Likewise.
10244         * lib/mbsspn.c: Likewise.
10245         * lib/mbsstr.c: Likewise.
10246         * lib/mbstok_r.c: Likewise.
10247         * lib/mbswidth.c: Likewise.
10248         * lib/mbswidth.h: Likewise.
10249         * lib/mbuiter.h: Likewise.
10250         * lib/memcasecmp.c: Likewise.
10251         * lib/memcasecmp.h: Likewise.
10252         * lib/memchr.c: Likewise.
10253         * lib/memcmp.c: Likewise.
10254         * lib/memcoll.c: Likewise.
10255         * lib/memcoll.h: Likewise.
10256         * lib/memcpy.c: Likewise.
10257         * lib/memrchr.c: Likewise.
10258         * lib/mkancesdirs.c: Likewise.
10259         * lib/mkdir-p.c: Likewise.
10260         * lib/mkdir-p.h: Likewise.
10261         * lib/mkdir.c: Likewise.
10262         * lib/mkdirat.c: Likewise.
10263         * lib/mkdtemp.c: Likewise.
10264         * lib/mkstemp-safer.c: Likewise.
10265         * lib/mkstemp.c: Likewise.
10266         * lib/modechange.c: Likewise.
10267         * lib/modechange.h: Likewise.
10268         * lib/mountlist.c: Likewise.
10269         * lib/mountlist.h: Likewise.
10270         * lib/mpsort.c: Likewise.
10271         * lib/nanosleep.c: Likewise.
10272         * lib/obstack.c: Likewise.
10273         * lib/obstack.h: Likewise.
10274         * lib/open-safer.c: Likewise.
10275         * lib/open.c: Likewise.
10276         * lib/openat-die.c: Likewise.
10277         * lib/openat-priv.h: Likewise.
10278         * lib/openat-proc.c: Likewise.
10279         * lib/openat.c: Likewise.
10280         * lib/openat.h: Likewise.
10281         * lib/pagealign_alloc.c: Likewise.
10282         * lib/pagealign_alloc.h: Likewise.
10283         * lib/physmem.c: Likewise.
10284         * lib/physmem.h: Likewise.
10285         * lib/pipe-safer.c: Likewise.
10286         * lib/pipe.c: Likewise.
10287         * lib/pipe.h: Likewise.
10288         * lib/posixtm.c: Likewise.
10289         * lib/posixtm.h: Likewise.
10290         * lib/posixver.c: Likewise.
10291         * lib/printf-frexp.c: Likewise.
10292         * lib/printf-frexp.h: Likewise.
10293         * lib/printf-frexpl.c: Likewise.
10294         * lib/printf-frexpl.h: Likewise.
10295         * lib/printf.c: Likewise.
10296         * lib/progname.c: Likewise.
10297         * lib/progname.h: Likewise.
10298         * lib/progreloc.c: Likewise.
10299         * lib/putenv.c: Likewise.
10300         * lib/quote.c: Likewise.
10301         * lib/quote.h: Likewise.
10302         * lib/quotearg.c: Likewise.
10303         * lib/quotearg.h: Likewise.
10304         * lib/raise.c: Likewise.
10305         * lib/readline.c: Likewise.
10306         * lib/readline.h: Likewise.
10307         * lib/readlink.c: Likewise.
10308         * lib/readtokens.c: Likewise.
10309         * lib/readtokens.h: Likewise.
10310         * lib/readtokens0.c: Likewise.
10311         * lib/readtokens0.h: Likewise.
10312         * lib/readutmp.c: Likewise.
10313         * lib/readutmp.h: Likewise.
10314         * lib/realloc.c: Likewise.
10315         * lib/relocwrapper.c: Likewise.
10316         * lib/rename-dest-slash.c: Likewise.
10317         * lib/rename.c: Likewise.
10318         * lib/rmdir.c: Likewise.
10319         * lib/rpmatch.c: Likewise.
10320         * lib/safe-read.c: Likewise.
10321         * lib/safe-read.h: Likewise.
10322         * lib/safe-write.c: Likewise.
10323         * lib/safe-write.h: Likewise.
10324         * lib/same-inode.h: Likewise.
10325         * lib/same.c: Likewise.
10326         * lib/same.h: Likewise.
10327         * lib/save-cwd.c: Likewise.
10328         * lib/save-cwd.h: Likewise.
10329         * lib/savedir.c: Likewise.
10330         * lib/savedir.h: Likewise.
10331         * lib/savewd.c: Likewise.
10332         * lib/savewd.h: Likewise.
10333         * lib/search.in.h: Likewise.
10334         * lib/setenv.c: Likewise.
10335         * lib/setenv.h: Likewise.
10336         * lib/settime.c: Likewise.
10337         * lib/sh-quote.c: Likewise.
10338         * lib/sh-quote.h: Likewise.
10339         * lib/sig2str.c: Likewise.
10340         * lib/sig2str.h: Likewise.
10341         * lib/signal.in.h: Likewise.
10342         * lib/signbitd.c: Likewise.
10343         * lib/signbitf.c: Likewise.
10344         * lib/signbitl.c: Likewise.
10345         * lib/sigprocmask.c: Likewise.
10346         * lib/sincosl.c: Likewise.
10347         * lib/sleep.c: Likewise.
10348         * lib/sprintf.c: Likewise.
10349         * lib/sqrtl.c: Likewise.
10350         * lib/stat-time.h: Likewise.
10351         * lib/stdio--.h: Likewise.
10352         * lib/stdio-safer.h: Likewise.
10353         * lib/stdlib--.h: Likewise.
10354         * lib/stdlib-safer.h: Likewise.
10355         * lib/stdlib.in.h: Likewise.
10356         * lib/stpcpy.c: Likewise.
10357         * lib/stpncpy.c: Likewise.
10358         * lib/strchrnul.c: Likewise.
10359         * lib/strcspn.c: Likewise.
10360         * lib/strerror.c: Likewise.
10361         * lib/strftime.c: Likewise.
10362         * lib/strftime.h: Likewise.
10363         * lib/striconveh.c: Likewise.
10364         * lib/striconveh.h: Likewise.
10365         * lib/striconveha.c: Likewise.
10366         * lib/striconveha.h: Likewise.
10367         * lib/stripslash.c: Likewise.
10368         * lib/strnlen1.c: Likewise.
10369         * lib/strnlen1.h: Likewise.
10370         * lib/strtod.c: Likewise.
10371         * lib/strtoimax.c: Likewise.
10372         * lib/strtok_r.c: Likewise.
10373         * lib/strtol.c: Likewise.
10374         * lib/strtoll.c: Likewise.
10375         * lib/strtoul.c: Likewise.
10376         * lib/strtoull.c: Likewise.
10377         * lib/sysexits.in.h: Likewise.
10378         * lib/tempname.c: Likewise.
10379         * lib/tempname.h: Likewise.
10380         * lib/timespec.h: Likewise.
10381         * lib/tls.c: Likewise.
10382         * lib/tls.h: Likewise.
10383         * lib/tmpdir.c: Likewise.
10384         * lib/tmpdir.h: Likewise.
10385         * lib/tmpfile-safer.c: Likewise.
10386         * lib/tmpfile.c: Likewise.
10387         * lib/trigl.c: Likewise.
10388         * lib/trigl.h: Likewise.
10389         * lib/trim.c: Likewise.
10390         * lib/trim.h: Likewise.
10391         * lib/trunc.c: Likewise.
10392         * lib/truncf.c: Likewise.
10393         * lib/truncl.c: Likewise.
10394         * lib/tsearch.c: Likewise.
10395         * lib/unicodeio.c: Likewise.
10396         * lib/unicodeio.h: Likewise.
10397         * lib/unistd--.h: Likewise.
10398         * lib/unistd-safer.h: Likewise.
10399         * lib/unistdio/ulc-fprintf.c: Likewise.
10400         * lib/unistdio/ulc-vfprintf.c: Likewise.
10401         * lib/unlinkdir.c: Likewise.
10402         * lib/unlinkdir.h: Likewise.
10403         * lib/unlocked-io.h: Likewise.
10404         * lib/unsetenv.c: Likewise.
10405         * lib/userspec.c: Likewise.
10406         * lib/utime.c: Likewise.
10407         * lib/utimecmp.c: Likewise.
10408         * lib/utimecmp.h: Likewise.
10409         * lib/utimens.c: Likewise.
10410         * lib/verify.h: Likewise.
10411         * lib/verror.c: Likewise.
10412         * lib/verror.h: Likewise.
10413         * lib/version-etc-fsf.c: Likewise.
10414         * lib/version-etc.c: Likewise.
10415         * lib/version-etc.h: Likewise.
10416         * lib/vfprintf.c: Likewise.
10417         * lib/vprintf.c: Likewise.
10418         * lib/vsprintf.c: Likewise.
10419         * lib/w32spawn.h: Likewise.
10420         * lib/wait-process.c: Likewise.
10421         * lib/wait-process.h: Likewise.
10422         * lib/wcwidth.c: Likewise.
10423         * lib/write-any-file.c: Likewise.
10424         * lib/xalloc-die.c: Likewise.
10425         * lib/xalloc.h: Likewise.
10426         * lib/xasprintf.c: Likewise.
10427         * lib/xgetcwd.c: Likewise.
10428         * lib/xgetcwd.h: Likewise.
10429         * lib/xgetdomainname.c: Likewise.
10430         * lib/xgetdomainname.h: Likewise.
10431         * lib/xgethostname.c: Likewise.
10432         * lib/xmalloc.c: Likewise.
10433         * lib/xmalloca.c: Likewise.
10434         * lib/xmalloca.h: Likewise.
10435         * lib/xmemcoll.c: Likewise.
10436         * lib/xnanosleep.c: Likewise.
10437         * lib/xreadlink.c: Likewise.
10438         * lib/xreadlink.h: Likewise.
10439         * lib/xsetenv.c: Likewise.
10440         * lib/xsetenv.h: Likewise.
10441         * lib/xstriconv.c: Likewise.
10442         * lib/xstriconv.h: Likewise.
10443         * lib/xstrndup.c: Likewise.
10444         * lib/xstrndup.h: Likewise.
10445         * lib/xstrtod.c: Likewise.
10446         * lib/xstrtod.h: Likewise.
10447         * lib/xstrtol-error.c: Likewise.
10448         * lib/xstrtol.c: Likewise.
10449         * lib/xstrtol.h: Likewise.
10450         * lib/xtime.h: Likewise.
10451         * lib/xvasprintf.c: Likewise.
10452         * lib/xvasprintf.h: Likewise.
10453         * lib/yesno.c: Likewise.
10454         * lib/yesno.h: Likewise.
10455         * posix-modules: Likewise.
10456         * tests/test-alloca-opt.c: Likewise.
10457         * tests/test-arcfour.c: Likewise.
10458         * tests/test-arctwo.c: Likewise.
10459         * tests/test-argmatch.c: Likewise.
10460         * tests/test-argp-2.sh: Likewise.
10461         * tests/test-argp.c: Likewise.
10462         * tests/test-arpa_inet.c: Likewise.
10463         * tests/test-array_list.c: Likewise.
10464         * tests/test-array_oset.c: Likewise.
10465         * tests/test-atexit.c: Likewise.
10466         * tests/test-avltree_list.c: Likewise.
10467         * tests/test-avltree_oset.c: Likewise.
10468         * tests/test-avltreehash_list.c: Likewise.
10469         * tests/test-base64.c: Likewise.
10470         * tests/test-binary-io.c: Likewise.
10471         * tests/test-byteswap.c: Likewise.
10472         * tests/test-c-ctype.c: Likewise.
10473         * tests/test-c-strcasecmp.c: Likewise.
10474         * tests/test-c-strcasestr.c: Likewise.
10475         * tests/test-c-strncasecmp.c: Likewise.
10476         * tests/test-c-strstr.c: Likewise.
10477         * tests/test-canonicalize-lgpl.c: Likewise.
10478         * tests/test-canonicalize.c: Likewise.
10479         * tests/test-carray_list.c: Likewise.
10480         * tests/test-ceilf.c: Likewise.
10481         * tests/test-ceill.c: Likewise.
10482         * tests/test-count-one-bits.c: Likewise.
10483         * tests/test-crc.c: Likewise.
10484         * tests/test-dirname.c: Likewise.
10485         * tests/test-fbufmode.c: Likewise.
10486         * tests/test-fcntl.c: Likewise.
10487         * tests/test-fflush.c: Likewise.
10488         * tests/test-floorf.c: Likewise.
10489         * tests/test-floorl.c: Likewise.
10490         * tests/test-fopen.c: Likewise.
10491         * tests/test-fprintf-posix.c: Likewise.
10492         * tests/test-fprintf-posix.h: Likewise.
10493         * tests/test-fpurge.c: Likewise.
10494         * tests/test-freadable.c: Likewise.
10495         * tests/test-freadahead.c: Likewise.
10496         * tests/test-freading.c: Likewise.
10497         * tests/test-freopen.c: Likewise.
10498         * tests/test-frexp.c: Likewise.
10499         * tests/test-frexpl.c: Likewise.
10500         * tests/test-fseek.c: Likewise.
10501         * tests/test-fseeko.c: Likewise.
10502         * tests/test-fseterr.c: Likewise.
10503         * tests/test-fstrcmp.c: Likewise.
10504         * tests/test-ftell.c: Likewise.
10505         * tests/test-ftello.c: Likewise.
10506         * tests/test-fwritable.c: Likewise.
10507         * tests/test-fwriting.c: Likewise.
10508         * tests/test-getaddrinfo.c: Likewise.
10509         * tests/test-getpass.c: Likewise.
10510         * tests/test-gettimeofday.c: Likewise.
10511         * tests/test-hmac-md5.c: Likewise.
10512         * tests/test-hmac-sha1.c: Likewise.
10513         * tests/test-iconv.c: Likewise.
10514         * tests/test-iconvme.c: Likewise.
10515         * tests/test-inttypes.c: Likewise.
10516         * tests/test-isnan.c: Likewise.
10517         * tests/test-isnanf.c: Likewise.
10518         * tests/test-isnanl-nolibm.c: Likewise.
10519         * tests/test-isnanl.c: Likewise.
10520         * tests/test-isnanl.h: Likewise.
10521         * tests/test-ldexpl.c: Likewise.
10522         * tests/test-linked_list.c: Likewise.
10523         * tests/test-linkedhash_list.c: Likewise.
10524         * tests/test-locale.c: Likewise.
10525         * tests/test-localename.c: Likewise.
10526         * tests/test-lock.c: Likewise.
10527         * tests/test-lseek.c: Likewise.
10528         * tests/test-malloca.c: Likewise.
10529         * tests/test-math.c: Likewise.
10530         * tests/test-mbscasecmp.c: Likewise.
10531         * tests/test-mbscasestr1.c: Likewise.
10532         * tests/test-mbscasestr2.c: Likewise.
10533         * tests/test-mbscasestr3.c: Likewise.
10534         * tests/test-mbscasestr4.c: Likewise.
10535         * tests/test-mbschr.c: Likewise.
10536         * tests/test-mbscspn.c: Likewise.
10537         * tests/test-mbsncasecmp.c: Likewise.
10538         * tests/test-mbspbrk.c: Likewise.
10539         * tests/test-mbspcasecmp.c: Likewise.
10540         * tests/test-mbsrchr.c: Likewise.
10541         * tests/test-mbsspn.c: Likewise.
10542         * tests/test-mbsstr1.c: Likewise.
10543         * tests/test-mbsstr2.c: Likewise.
10544         * tests/test-mbsstr3.c: Likewise.
10545         * tests/test-md5.c: Likewise.
10546         * tests/test-memmem.c: Likewise.
10547         * tests/test-netinet_in.c: Likewise.
10548         * tests/test-open.c: Likewise.
10549         * tests/test-printf-frexp.c: Likewise.
10550         * tests/test-printf-frexpl.c: Likewise.
10551         * tests/test-printf-posix.c: Likewise.
10552         * tests/test-printf-posix.h: Likewise.
10553         * tests/test-rbtree_list.c: Likewise.
10554         * tests/test-rbtree_oset.c: Likewise.
10555         * tests/test-rbtreehash_list.c: Likewise.
10556         * tests/test-read-file.c: Likewise.
10557         * tests/test-rijndael.c: Likewise.
10558         * tests/test-search.c: Likewise.
10559         * tests/test-signbit.c: Likewise.
10560         * tests/test-sleep.c: Likewise.
10561         * tests/test-snprintf-posix.c: Likewise.
10562         * tests/test-snprintf-posix.h: Likewise.
10563         * tests/test-snprintf.c: Likewise.
10564         * tests/test-sprintf-posix.c: Likewise.
10565         * tests/test-sprintf-posix.h: Likewise.
10566         * tests/test-stat-time.c: Likewise.
10567         * tests/test-stdbool.c: Likewise.
10568         * tests/test-stdint.c: Likewise.
10569         * tests/test-stdio.c: Likewise.
10570         * tests/test-stdlib.c: Likewise.
10571         * tests/test-stpncpy.c: Likewise.
10572         * tests/test-strcasestr.c: Likewise.
10573         * tests/test-striconv.c: Likewise.
10574         * tests/test-striconveh.c: Likewise.
10575         * tests/test-striconveha.c: Likewise.
10576         * tests/test-string.c: Likewise.
10577         * tests/test-sys_select.c: Likewise.
10578         * tests/test-sys_socket.c: Likewise.
10579         * tests/test-sys_stat.c: Likewise.
10580         * tests/test-sys_time.c: Likewise.
10581         * tests/test-sysexits.c: Likewise.
10582         * tests/test-time.c: Likewise.
10583         * tests/test-tls.c: Likewise.
10584         * tests/test-trunc.c: Likewise.
10585         * tests/test-truncf.c: Likewise.
10586         * tests/test-truncl.c: Likewise.
10587         * tests/test-unistd.c: Likewise.
10588         * tests/test-vasnprintf-posix.c: Likewise.
10589         * tests/test-vasnprintf-posix2.c: Likewise.
10590         * tests/test-vasnprintf.c: Likewise.
10591         * tests/test-vasprintf-posix.c: Likewise.
10592         * tests/test-vasprintf.c: Likewise.
10593         * tests/test-verify.c: Likewise.
10594         * tests/test-vfprintf-posix.c: Likewise.
10595         * tests/test-vprintf-posix.c: Likewise.
10596         * tests/test-vsnprintf-posix.c: Likewise.
10597         * tests/test-vsnprintf.c: Likewise.
10598         * tests/test-vsprintf-posix.c: Likewise.
10599         * tests/test-wchar.c: Likewise.
10600         * tests/test-wctype.c: Likewise.
10601         * tests/test-wcwidth.c: Likewise.
10602         * tests/test-xstrtol.c: Likewise.
10603         * tests/test-xvasprintf.c: Likewise.
10604         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10605         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10606         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10607         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10608         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10609         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10610         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10611         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10612         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10613         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10614         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10615         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10616         * tests/uniname/test-uninames.c: Likewise.
10617         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10618         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10619         * tests/unistdio/test-u16-printf1.h: Likewise.
10620         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10621         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10622         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10623         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10624         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10625         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10626         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10627         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10628         * tests/unistdio/test-u32-printf1.h: Likewise.
10629         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10630         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10631         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10632         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10633         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10634         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10635         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10636         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10637         * tests/unistdio/test-u8-printf1.h: Likewise.
10638         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10639         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10640         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10641         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10642         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10643         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10644         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10645         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10646         * tests/unistdio/test-ulc-printf1.h: Likewise.
10647         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10648         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10649         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10650         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10651         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10652         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10653         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10654         * tests/uniwidth/test-u16-width.c: Likewise.
10655         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10656         * tests/uniwidth/test-u32-width.c: Likewise.
10657         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10658         * tests/uniwidth/test-u8-width.c: Likewise.
10659         * tests/uniwidth/test-uc_width.c: Likewise.
10660         * config/srclist-update: Likewise.
10661         (fixlicense): Update to GPLv3+.
10662
10663         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10664         * tests/test-tsearch.c: Change copyright notice.
10665
10666         Change copyright notice from LGPLv2.0+ to LGPLv3+.
10667         * lib/c-strcaseeq.h: Change copyright notice.
10668         * lib/streq.h: Likewise.
10669         * lib/uniconv.h: Likewise.
10670         * lib/uniconv/u-conv-from-enc.h: Likewise.
10671         * lib/uniconv/u-conv-to-enc.h: Likewise.
10672         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10673         * lib/uniconv/u-strconv-to-enc.h: Likewise.
10674         * lib/uniconv/u16-conv-from-enc.c: Likewise.
10675         * lib/uniconv/u16-conv-to-enc.c: Likewise.
10676         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10677         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10678         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10679         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10680         * lib/uniconv/u32-conv-from-enc.c: Likewise.
10681         * lib/uniconv/u32-conv-to-enc.c: Likewise.
10682         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10683         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10684         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10685         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10686         * lib/uniconv/u8-conv-from-enc.c: Likewise.
10687         * lib/uniconv/u8-conv-to-enc.c: Likewise.
10688         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10689         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10690         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10691         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10692         * lib/uniname.h: Likewise.
10693         * lib/uniname/uniname.c: Likewise.
10694         * lib/unistdio.h: Likewise.
10695         * lib/unistdio/u-asnprintf.h: Likewise.
10696         * lib/unistdio/u-asprintf.h: Likewise.
10697         * lib/unistdio/u-printf-args.c: Likewise.
10698         * lib/unistdio/u-printf-args.h: Likewise.
10699         * lib/unistdio/u-printf-parse.h: Likewise.
10700         * lib/unistdio/u-snprintf.h: Likewise.
10701         * lib/unistdio/u-sprintf.h: Likewise.
10702         * lib/unistdio/u-vasprintf.h: Likewise.
10703         * lib/unistdio/u-vsnprintf.h: Likewise.
10704         * lib/unistdio/u-vsprintf.h: Likewise.
10705         * lib/unistdio/u16-asnprintf.c: Likewise.
10706         * lib/unistdio/u16-asprintf.c: Likewise.
10707         * lib/unistdio/u16-printf-parse.c: Likewise.
10708         * lib/unistdio/u16-snprintf.c: Likewise.
10709         * lib/unistdio/u16-sprintf.c: Likewise.
10710         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10711         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10712         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10713         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10714         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10715         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10716         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10717         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10718         * lib/unistdio/u16-vasnprintf.c: Likewise.
10719         * lib/unistdio/u16-vasprintf.c: Likewise.
10720         * lib/unistdio/u16-vsnprintf.c: Likewise.
10721         * lib/unistdio/u16-vsprintf.c: Likewise.
10722         * lib/unistdio/u32-asnprintf.c: Likewise.
10723         * lib/unistdio/u32-asprintf.c: Likewise.
10724         * lib/unistdio/u32-printf-parse.c: Likewise.
10725         * lib/unistdio/u32-snprintf.c: Likewise.
10726         * lib/unistdio/u32-sprintf.c: Likewise.
10727         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10728         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10729         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10730         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10731         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10732         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10733         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10734         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10735         * lib/unistdio/u32-vasnprintf.c: Likewise.
10736         * lib/unistdio/u32-vasprintf.c: Likewise.
10737         * lib/unistdio/u32-vsnprintf.c: Likewise.
10738         * lib/unistdio/u32-vsprintf.c: Likewise.
10739         * lib/unistdio/u8-asnprintf.c: Likewise.
10740         * lib/unistdio/u8-asprintf.c: Likewise.
10741         * lib/unistdio/u8-printf-parse.c: Likewise.
10742         * lib/unistdio/u8-snprintf.c: Likewise.
10743         * lib/unistdio/u8-sprintf.c: Likewise.
10744         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10745         * lib/unistdio/u8-u8-asprintf.c: Likewise.
10746         * lib/unistdio/u8-u8-snprintf.c: Likewise.
10747         * lib/unistdio/u8-u8-sprintf.c: Likewise.
10748         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10749         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10750         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10751         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10752         * lib/unistdio/u8-vasnprintf.c: Likewise.
10753         * lib/unistdio/u8-vasprintf.c: Likewise.
10754         * lib/unistdio/u8-vsnprintf.c: Likewise.
10755         * lib/unistdio/u8-vsprintf.c: Likewise.
10756         * lib/unistdio/ulc-asnprintf.c: Likewise.
10757         * lib/unistdio/ulc-asprintf.c: Likewise.
10758         * lib/unistdio/ulc-printf-parse.c: Likewise.
10759         * lib/unistdio/ulc-snprintf.c: Likewise.
10760         * lib/unistdio/ulc-sprintf.c: Likewise.
10761         * lib/unistdio/ulc-vasnprintf.c: Likewise.
10762         * lib/unistdio/ulc-vasprintf.c: Likewise.
10763         * lib/unistdio/ulc-vsnprintf.c: Likewise.
10764         * lib/unistdio/ulc-vsprintf.c: Likewise.
10765         * lib/unistr.h: Likewise.
10766         * lib/unistr/u-cpy-alloc.h: Likewise.
10767         * lib/unistr/u-cpy.h: Likewise.
10768         * lib/unistr/u-endswith.h: Likewise.
10769         * lib/unistr/u-move.h: Likewise.
10770         * lib/unistr/u-set.h: Likewise.
10771         * lib/unistr/u-startswith.h: Likewise.
10772         * lib/unistr/u-stpcpy.h: Likewise.
10773         * lib/unistr/u-stpncpy.h: Likewise.
10774         * lib/unistr/u-strcat.h: Likewise.
10775         * lib/unistr/u-strcpy.h: Likewise.
10776         * lib/unistr/u-strcspn.h: Likewise.
10777         * lib/unistr/u-strdup.h: Likewise.
10778         * lib/unistr/u-strlen.h: Likewise.
10779         * lib/unistr/u-strncat.h: Likewise.
10780         * lib/unistr/u-strncpy.h: Likewise.
10781         * lib/unistr/u-strnlen.h: Likewise.
10782         * lib/unistr/u-strpbrk.h: Likewise.
10783         * lib/unistr/u-strspn.h: Likewise.
10784         * lib/unistr/u-strstr.h: Likewise.
10785         * lib/unistr/u-strtok.h: Likewise.
10786         * lib/unistr/u16-check.c: Likewise.
10787         * lib/unistr/u16-chr.c: Likewise.
10788         * lib/unistr/u16-cmp.c: Likewise.
10789         * lib/unistr/u16-cpy-alloc.c: Likewise.
10790         * lib/unistr/u16-cpy.c: Likewise.
10791         * lib/unistr/u16-endswith.c: Likewise.
10792         * lib/unistr/u16-mblen.c: Likewise.
10793         * lib/unistr/u16-mbsnlen.c: Likewise.
10794         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10795         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10796         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10797         * lib/unistr/u16-mbtouc.c: Likewise.
10798         * lib/unistr/u16-mbtoucr.c: Likewise.
10799         * lib/unistr/u16-move.c: Likewise.
10800         * lib/unistr/u16-next.c: Likewise.
10801         * lib/unistr/u16-prev.c: Likewise.
10802         * lib/unistr/u16-set.c: Likewise.
10803         * lib/unistr/u16-startswith.c: Likewise.
10804         * lib/unistr/u16-stpcpy.c: Likewise.
10805         * lib/unistr/u16-stpncpy.c: Likewise.
10806         * lib/unistr/u16-strcat.c: Likewise.
10807         * lib/unistr/u16-strchr.c: Likewise.
10808         * lib/unistr/u16-strcmp.c: Likewise.
10809         * lib/unistr/u16-strcpy.c: Likewise.
10810         * lib/unistr/u16-strcspn.c: Likewise.
10811         * lib/unistr/u16-strdup.c: Likewise.
10812         * lib/unistr/u16-strlen.c: Likewise.
10813         * lib/unistr/u16-strmblen.c: Likewise.
10814         * lib/unistr/u16-strmbtouc.c: Likewise.
10815         * lib/unistr/u16-strncat.c: Likewise.
10816         * lib/unistr/u16-strncmp.c: Likewise.
10817         * lib/unistr/u16-strncpy.c: Likewise.
10818         * lib/unistr/u16-strnlen.c: Likewise.
10819         * lib/unistr/u16-strpbrk.c: Likewise.
10820         * lib/unistr/u16-strrchr.c: Likewise.
10821         * lib/unistr/u16-strspn.c: Likewise.
10822         * lib/unistr/u16-strstr.c: Likewise.
10823         * lib/unistr/u16-strtok.c: Likewise.
10824         * lib/unistr/u16-to-u32.c: Likewise.
10825         * lib/unistr/u16-to-u8.c: Likewise.
10826         * lib/unistr/u16-uctomb-aux.c: Likewise.
10827         * lib/unistr/u16-uctomb.c: Likewise.
10828         * lib/unistr/u32-check.c: Likewise.
10829         * lib/unistr/u32-chr.c: Likewise.
10830         * lib/unistr/u32-cmp.c: Likewise.
10831         * lib/unistr/u32-cpy-alloc.c: Likewise.
10832         * lib/unistr/u32-cpy.c: Likewise.
10833         * lib/unistr/u32-endswith.c: Likewise.
10834         * lib/unistr/u32-mblen.c: Likewise.
10835         * lib/unistr/u32-mbsnlen.c: Likewise.
10836         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10837         * lib/unistr/u32-mbtouc.c: Likewise.
10838         * lib/unistr/u32-mbtoucr.c: Likewise.
10839         * lib/unistr/u32-move.c: Likewise.
10840         * lib/unistr/u32-next.c: Likewise.
10841         * lib/unistr/u32-prev.c: Likewise.
10842         * lib/unistr/u32-set.c: Likewise.
10843         * lib/unistr/u32-startswith.c: Likewise.
10844         * lib/unistr/u32-stpcpy.c: Likewise.
10845         * lib/unistr/u32-stpncpy.c: Likewise.
10846         * lib/unistr/u32-strcat.c: Likewise.
10847         * lib/unistr/u32-strchr.c: Likewise.
10848         * lib/unistr/u32-strcmp.c: Likewise.
10849         * lib/unistr/u32-strcpy.c: Likewise.
10850         * lib/unistr/u32-strcspn.c: Likewise.
10851         * lib/unistr/u32-strdup.c: Likewise.
10852         * lib/unistr/u32-strlen.c: Likewise.
10853         * lib/unistr/u32-strmblen.c: Likewise.
10854         * lib/unistr/u32-strmbtouc.c: Likewise.
10855         * lib/unistr/u32-strncat.c: Likewise.
10856         * lib/unistr/u32-strncmp.c: Likewise.
10857         * lib/unistr/u32-strncpy.c: Likewise.
10858         * lib/unistr/u32-strnlen.c: Likewise.
10859         * lib/unistr/u32-strpbrk.c: Likewise.
10860         * lib/unistr/u32-strrchr.c: Likewise.
10861         * lib/unistr/u32-strspn.c: Likewise.
10862         * lib/unistr/u32-strstr.c: Likewise.
10863         * lib/unistr/u32-strtok.c: Likewise.
10864         * lib/unistr/u32-to-u16.c: Likewise.
10865         * lib/unistr/u32-to-u8.c: Likewise.
10866         * lib/unistr/u32-uctomb.c: Likewise.
10867         * lib/unistr/u8-check.c: Likewise.
10868         * lib/unistr/u8-chr.c: Likewise.
10869         * lib/unistr/u8-cmp.c: Likewise.
10870         * lib/unistr/u8-cpy-alloc.c: Likewise.
10871         * lib/unistr/u8-cpy.c: Likewise.
10872         * lib/unistr/u8-endswith.c: Likewise.
10873         * lib/unistr/u8-mblen.c: Likewise.
10874         * lib/unistr/u8-mbsnlen.c: Likewise.
10875         * lib/unistr/u8-mbtouc-aux.c: Likewise.
10876         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10877         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10878         * lib/unistr/u8-mbtouc.c: Likewise.
10879         * lib/unistr/u8-mbtoucr.c: Likewise.
10880         * lib/unistr/u8-move.c: Likewise.
10881         * lib/unistr/u8-next.c: Likewise.
10882         * lib/unistr/u8-prev.c: Likewise.
10883         * lib/unistr/u8-set.c: Likewise.
10884         * lib/unistr/u8-startswith.c: Likewise.
10885         * lib/unistr/u8-stpcpy.c: Likewise.
10886         * lib/unistr/u8-stpncpy.c: Likewise.
10887         * lib/unistr/u8-strcat.c: Likewise.
10888         * lib/unistr/u8-strchr.c: Likewise.
10889         * lib/unistr/u8-strcmp.c: Likewise.
10890         * lib/unistr/u8-strcpy.c: Likewise.
10891         * lib/unistr/u8-strcspn.c: Likewise.
10892         * lib/unistr/u8-strdup.c: Likewise.
10893         * lib/unistr/u8-strlen.c: Likewise.
10894         * lib/unistr/u8-strmblen.c: Likewise.
10895         * lib/unistr/u8-strmbtouc.c: Likewise.
10896         * lib/unistr/u8-strncat.c: Likewise.
10897         * lib/unistr/u8-strncmp.c: Likewise.
10898         * lib/unistr/u8-strncpy.c: Likewise.
10899         * lib/unistr/u8-strnlen.c: Likewise.
10900         * lib/unistr/u8-strpbrk.c: Likewise.
10901         * lib/unistr/u8-strrchr.c: Likewise.
10902         * lib/unistr/u8-strspn.c: Likewise.
10903         * lib/unistr/u8-strstr.c: Likewise.
10904         * lib/unistr/u8-strtok.c: Likewise.
10905         * lib/unistr/u8-to-u16.c: Likewise.
10906         * lib/unistr/u8-to-u32.c: Likewise.
10907         * lib/unistr/u8-uctomb-aux.c: Likewise.
10908         * lib/unistr/u8-uctomb.c: Likewise.
10909         * lib/unitypes.h: Likewise.
10910         * lib/uniwidth.h: Likewise.
10911         * lib/uniwidth/cjk.h: Likewise.
10912         * lib/uniwidth/u16-strwidth.c: Likewise.
10913         * lib/uniwidth/u16-width.c: Likewise.
10914         * lib/uniwidth/u32-strwidth.c: Likewise.
10915         * lib/uniwidth/u32-width.c: Likewise.
10916         * lib/uniwidth/u8-strwidth.c: Likewise.
10917         * lib/uniwidth/u8-width.c: Likewise.
10918         * lib/uniwidth/width.c: Likewise.
10919
10920 2007-10-07  Bruno Haible  <bruno@clisp.org>
10921
10922         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10923         The file is still under LGPL (see modules/inttypes).
10924
10925 2007-10-06  Bruno Haible  <bruno@clisp.org>
10926
10927         * modules/trunc (Dependencies): Add 'extensions'.
10928         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10929         Reported by Ben Pfaff <blp@gnu.org>.
10930
10931 2007-10-06  Bruno Haible  <bruno@clisp.org>
10932
10933         * modules/freopen-tests: New file.
10934         * tests/test-freopen.c: New file.
10935
10936         * modules/fopen-tests: New file.
10937         * tests/test-fopen.c: New file.
10938
10939         * modules/fopen: New file.
10940         * lib/fopen.c: New file.
10941         * m4/fopen.m4: New file.
10942         * modules/freopen: New file.
10943         * lib/freopen.c: New file.
10944         * m4/freopen.m4: New file.
10945         * lib/stdio.in.h (fopen, freopen): New declarations.
10946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10947         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10948         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10949         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10950         * doc/functions/fopen.texi: Mention the 'fopen' module.
10951         * doc/functions/freopen.texi: Mention the 'freopen' module.
10952
10953 2007-10-06  Bruno Haible  <bruno@clisp.org>
10954
10955         * modules/open-tests: New file.
10956         * tests/test-open.c: New file.
10957
10958         * modules/open: New file.
10959         * lib/open.c: New file.
10960         * m4/open.m4: New file.
10961         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10962         lib/open.c does.
10963         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10964         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10965         macros.
10966         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10967         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10968         REPLACE_OPEN.
10969         * doc/functions/open.texi: Mention the 'open' module.
10970
10971 2007-10-04  Bruno Haible  <bruno@clisp.org>
10972
10973         * modules/ceill-tests: New file.
10974         * tests/test-ceill.c: New file.
10975
10976         * modules/ceill: New file.
10977         * lib/ceill.c: Replace entire file.
10978         * m4/ceill.m4: New file.
10979         * lib/math.in.h (ceill): Replace declaration.
10980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10981         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10982         * doc/functions/ceill.texi: Mention the 'ceill' module.
10983         * modules/mathl (Files): Remove lib/ceill.c.
10984         (Depends-on): Add ceill.
10985
10986 2007-10-04  Bruno Haible  <bruno@clisp.org>
10987
10988         * modules/ceilf-tests: New file.
10989         * tests/test-ceilf.c: New file.
10990
10991         * modules/ceilf: New file.
10992         * lib/ceil.c: New file.
10993         * lib/ceilf.c: New file.
10994         * m4/ceilf.m4: New file.
10995         * lib/math.in.h (ceilf): New declaration.
10996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10997         HAVE_DECL_CEILF.
10998         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10999         HAVE_DECL_CEILF.
11000         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11001
11002 2007-10-04  Bruno Haible  <bruno@clisp.org>
11003
11004         * modules/floorl-tests: New file.
11005         * tests/test-floorl.c: New file.
11006
11007         * modules/floorl: New file.
11008         * lib/floorl.c: Replace entire file.
11009         * m4/floorl.m4: New file.
11010         * lib/math.in.h (floorl): Replace declaration.
11011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11012         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11013         * doc/functions/floorl.texi: Mention the 'floorl' module.
11014         * modules/mathl (Files): Remove lib/floorl.c.
11015         (Depends-on): Add floorl.
11016
11017 2007-10-04  Bruno Haible  <bruno@clisp.org>
11018
11019         * modules/floorf-tests: New file.
11020         * tests/test-floorf.c: New file.
11021
11022         * modules/floorf: New file.
11023         * lib/floor.c: New file.
11024         * lib/floorf.c: New file.
11025         * m4/floorf.m4: New file.
11026         * lib/math.in.h (floorf): New declaration.
11027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11028         HAVE_DECL_FLOORF.
11029         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11030         HAVE_DECL_FLOORF.
11031         * doc/functions/floorf.texi: Mention the 'floorf' module.
11032
11033 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11034             Bruno Haible  <bruno@clisp.org>
11035
11036         Advertise for the Git server instead of the CVS server.
11037         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11038         repository instead of the CVS one.
11039         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11040         about all VCS systems generically.
11041         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11042
11043 2007-10-04  Bruno Haible  <bruno@clisp.org>
11044
11045         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11046         means.
11047         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11048
11049 2007-10-04  Bruno Haible  <bruno@clisp.org>
11050
11051         * modules/truncl-tests: New file.
11052         * tests/test-truncl.c: New file.
11053
11054         * modules/truncl: New file.
11055         * lib/truncl.c: New file.
11056         * m4/truncl.m4: New file.
11057         * lib/math.in.h (truncl): New declaration.
11058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11059         HAVE_DECL_TRUNCL.
11060         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11061         HAVE_DECL_TRUNCL.
11062         * doc/functions/truncl.texi: Mention the 'truncl' module.
11063
11064 2007-10-04  Bruno Haible  <bruno@clisp.org>
11065
11066         * modules/truncf-tests: New file.
11067         * tests/test-truncf.c: New file.
11068
11069         * modules/truncf: New file.
11070         * lib/trunc.c: Make paramerizable through USE_* macros.
11071         * lib/truncf.c: New file.
11072         * m4/truncf.m4: New file.
11073         * lib/math.in.h (truncf): New declaration.
11074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11075         HAVE_DECL_TRUNCF.
11076         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11077         HAVE_DECL_TRUNCF.
11078         * doc/functions/truncf.texi: Mention the 'truncf' module.
11079
11080 2007-10-03  Bruno Haible  <bruno@clisp.org>
11081
11082         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11083         augmentation also for tests modules.
11084         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11085         * modules/atexit-tests (Makefile.am): Likewise.
11086         * modules/binary-io-tests (Makefile.am): Likewise.
11087         * modules/c-strcase-tests (Makefile.am): Likewise.
11088         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11089         * modules/canonicalize-tests (Makefile.am): Likewise.
11090         * modules/closein-tests (Makefile.am): Likewise.
11091         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11092         * modules/freadahead-tests (Makefile.am): Likewise.
11093         * modules/fseek-tests (Makefile.am): Likewise.
11094         * modules/fseeko-tests (Makefile.am): Likewise.
11095         * modules/ftell-tests (Makefile.am): Likewise.
11096         * modules/ftello-tests (Makefile.am): Likewise.
11097         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11098         * modules/isnanl-tests (Makefile.am): Likewise.
11099         * modules/lseek-tests (Makefile.am): Likewise.
11100         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11101         * modules/mbscasestr-tests (Makefile.am): Likewise.
11102         * modules/mbschr-tests (Makefile.am): Likewise.
11103         * modules/mbscspn-tests (Makefile.am): Likewise.
11104         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11105         * modules/mbspbrk-tests (Makefile.am): Likewise.
11106         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11107         * modules/mbsrchr-tests (Makefile.am): Likewise.
11108         * modules/mbsspn-tests (Makefile.am): Likewise.
11109         * modules/mbsstr-tests (Makefile.am): Likewise.
11110         * modules/printf-posix-tests (Makefile.am): Likewise.
11111         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11112         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11113         * modules/tsearch-tests (Makefile.am): Likewise.
11114         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11115         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11116         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11117         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11118         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11119         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11120         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11121         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11122         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11123         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11124         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11125         * modules/xstrtol-tests (Makefile.am): Likewise.
11126         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11127         * modules/yesno-tests (Makefile.am): Likewise.
11128
11129 2007-10-03  Bruno Haible  <bruno@clisp.org>
11130
11131         * modules/trunc-tests: New file.
11132         * tests/test-trunc.c: New file.
11133
11134         * modules/trunc: New file.
11135         * lib/trunc.c: New file.
11136         * m4/trunc.m4: New file.
11137         * lib/math.in.h (trunc): New declaration.
11138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11139         HAVE_DECL_TRUNC.
11140         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11141         HAVE_DECL_TRUNC.
11142         * doc/functions/trunc.texi: Mention the 'trunc' module.
11143
11144 2007-10-03  Bruno Haible  <bruno@clisp.org>
11145
11146         * tests/test-fpending.c: New file, mostly copied
11147         from coreutils/lib/t-fpending.c.
11148         * modules/fpending-tests: New file.
11149
11150 2007-10-03  Bruno Haible  <bruno@clisp.org>
11151
11152         Port the stdio extensions to QNX (untested).
11153         * lib/fseterr.c (fseterr): Add support for QNX.
11154         * lib/fbufmode.c (fbufmode): Likewise.
11155         * lib/freadable.c (freadable): Likewise.
11156         * lib/fwritable.c (fwritable): Likewise.
11157         * lib/freading.c (freading): Likewise.
11158         * lib/fwriting.c (fwriting): Likewise.
11159         * lib/freadahead.c (freadahed): Likewise.
11160         * lib/fpurge.c (fpurge): Likewise.
11161         * lib/fseeko.c (rpl_fseeko): Likewise.
11162
11163 2007-10-03  Bruno Haible  <bruno@clisp.org>
11164             Jim Meyering  <jim@meyering.net>
11165             Eric Blake  <ebb9@byu.net>
11166
11167         * doc/relocatable.texi: Use @command instead of @program.
11168
11169 2007-10-02  Jim Meyering  <jim@meyering.net>
11170
11171         Perform one more "_.h" -> ".in.h" substitution.
11172         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11173         instead of unistd_.h here, too.
11174
11175 2007-10-01  Bruno Haible  <bruno@clisp.org>
11176
11177         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11178         Needed for the alloca-opt module.
11179
11180 2007-09-30  Bruno Haible  <bruno@clisp.org>
11181
11182         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11183         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11184         alloca_.h.
11185         * lib/argz.in.h: Renamed from lib/argz_.h.
11186         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11187         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11188         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11189         byteswap_.h.
11190         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11191         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11192         dirent_.h.
11193         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11194         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11195         fcntl_.h.
11196         * lib/float.in.h: Renamed from lib/float_.h.
11197         * modules/float (Files, Makefile.am): Use float.in.h instead of
11198         float_.h.
11199         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11200         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11201         fnmatch_.h.
11202         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11203         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11204         getopt_.h.
11205         * lib/glob.in.h: Renamed from lib/glob_.h.
11206         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11207         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11208         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11209         iconv_.h.
11210         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11211         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11212         inttypes_.h.
11213         * lib/locale.in.h: Renamed from lib/locale_.h.
11214         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11215         locale_.h.
11216         * lib/math.in.h: Renamed from lib/math_.h.
11217         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11218         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11219         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11220         of netinet_in_.h. Add dependency.
11221         * lib/poll.in.h: Renamed from lib/poll_.h.
11222         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11223         * lib/search.in.h: Renamed from lib/search_.h.
11224         * modules/search (Files, Makefile.am): Use search.in.h instead of
11225         search_.h.
11226         * lib/signal.in.h: Renamed from lib/signal_.h.
11227         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11228         _signal.h.
11229         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11230         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11231         stdbool_.h.
11232         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11233         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11234         stdint_.h.
11235         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11236         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11237         stdio_.h.
11238         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11239         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11240         stdlib_.h.
11241         * lib/string.in.h: Renamed from lib/string_.h.
11242         * modules/string (Files, Makefile.am): Use string.in.h instead of
11243         string_.h.
11244         * doc/gnulib-tool.texi (Initial import): Update.
11245         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11246         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11247         of sys_select_.h. Add dependency.
11248         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11249         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11250         of sys_socket_.h.
11251         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11252         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11253         sys_stat_.h.
11254         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11255         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11256         sys_time_.h.
11257         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11258         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11259         sysexits_.h.
11260         * lib/time.in.h: Renamed from lib/time_.h.
11261         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11262         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11263         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11264         unistd_.h.
11265         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11266         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11267         wchar_.h.
11268         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11269         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11270         wctype_.h.
11271         * build-aux/bootstrap (slurp): Update.
11272         * lib/.cppi-disable: Update.
11273
11274 2007-09-30  Bruno Haible  <bruno@clisp.org>
11275
11276         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11277         Needed on BeOS.
11278
11279 2007-09-30  Bruno Haible  <bruno@clisp.org>
11280
11281         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11282
11283 2007-09-29  Bruno Haible  <bruno@clisp.org>
11284
11285         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11286
11287 2007-09-29  Bruno Haible  <bruno@clisp.org>
11288
11289         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11290         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11291         * build-aux/install-reloc: Compile also areadlink.c.
11292         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11293
11294 2007-09-29  Bruno Haible  <bruno@clisp.org>
11295
11296         * gnulib-tool (func_emit_initmacro_done): Indentation.
11297
11298 2007-09-29  Bruno Haible  <bruno@clisp.org>
11299
11300         * README: Add CVS checkout update instructions.
11301         Info from Bob Proulx <bob@proulx.com>.
11302
11303 2007-09-28  Eric Blake  <ebb9@byu.net>
11304
11305         Provide move-if-change.
11306         * build-aux/move-if-change: New file, based on best practice
11307         rather than any canonical upstream location.
11308
11309 2007-09-28  Jim Meyering  <jim@meyering.net>
11310
11311         Fix canonicalize loop-detection corner case.
11312         Do not attempt to stat the symlink values stored via seen_triple.
11313         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11314         on linux-2.6.18, (but not 2.6.22).
11315         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11316         triple_compare.  The former compares dev,ino,filename, while the latter
11317         would actually stat dirname(filename) when dev and ino were equal.
11318         * lib/hash-triple.c: Install <string.h>.
11319         (STREQ): Define.
11320         (triple_compare_ino_str): New function.
11321         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11322
11323 2007-09-28  Eric Blake  <ebb9@byu.net>
11324
11325         Enforce that AC_REPLACE_FUNCS files exist.
11326         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11327         override check for typos.
11328
11329         Fix test-closein on Solaris 10.
11330         * tests/test-closein.c (main): Don't assume stdin can be inherited
11331         closed on all systems.
11332         * tests/test-closein.sh: Likewise.
11333         Reported by Piotr Tarnowski.
11334
11335 2007-09-28  Jim Meyering  <jim@meyering.net>
11336
11337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11338
11339 2007-09-27  Jim Meyering  <jim@meyering.net>
11340
11341         canonicalize: Avoid a false-positive cycle failure.
11342         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11343         Sort.  Remove cycle-check.
11344         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11345         not cycle-check.h.
11346         (seen_triple): New function.
11347         (canonicalize_filename_mode): Use it instead of cycle-check.
11348         * tests/test-canonicalize.c: Add a test for this bug.
11349         * tests/test-canonicalize.sh: Set up and run the test.
11350
11351         New module, file-set, from coreutils.
11352         * modules/file-set: Define it.
11353         * lib/file-set.c, lib/file-set.h: Implement.
11354
11355         New module, hash-triple, from coreutils.
11356         * modules/hash-triple: Define it.
11357         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11358
11359 2007-09-25  Eric Blake  <ebb9@byu.net>
11360
11361         Fix strerror on Interix.
11362         * lib/string_.h (strerror): Declare replacement.
11363         * doc/functions/strerror.texi (strerror): Document the Interix
11364         shortcoming.
11365         * modules/string (Makefile.am): Support new hooks.
11366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11367         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11368         gl_FUNC_STRERROR_SEPARATE.
11369         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11370         * lib/strerror.c (rpl_strerror): Provide replacement.
11371         * modules/strerror (Depends-on): Add string.
11372         (configure.ac): Detect use of module.
11373         * tests/test-strerror.c: New file.
11374         * modules/strerror-tests: New test module.
11375         * modules/argp (Depends-on): Add strerror.
11376         * modules/error (Depends-on): Likewise.
11377         Reported by Martin Koeppe.
11378
11379 2007-09-24  Bruno Haible  <bruno@clisp.org>
11380
11381         * README: Update git instructions.
11382
11383 2007-09-24  Eric Blake  <ebb9@byu.net>
11384
11385         Revert fpending breakage from 2007-09-08.
11386         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11387         __fpending.c.
11388
11389 2007-09-24  Jim Meyering  <jim@meyering.net>
11390
11391         filenamecat.c: Add a test.
11392         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11393         showing how the function works when DIR is the empty string.
11394
11395 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11396
11397         * tests/test-canonicalize.sh: Turn on executable bit.
11398
11399 2007-09-19  Eric Blake  <ebb9@byu.net>
11400
11401         * README: Update CVS instructions.
11402
11403 2007-09-18  Bruno Haible  <bruno@clisp.org>
11404
11405         * modules/areadlink: New file.
11406         * lib/areadlink.h (areadlink): New declaration.
11407         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11408
11409 2007-09-17  Jim Meyering  <jim@meyering.net>
11410
11411         * lib/savewd.c (ESTALE) [!defined]: Define.
11412         Reported to be required on Interix by Martin Koeppe.
11413
11414 2007-09-17  Bruno Haible  <bruno@clisp.org>
11415
11416         * gnulib-tool (func_version): Use $version.
11417
11418 2007-09-16  Bruno Haible  <bruno@clisp.org>
11419
11420         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11421         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11422         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11423         Reported by Greg Schafer <gschafer@zip.com.au>.
11424
11425 2007-09-15  Bruno Haible  <bruno@clisp.org>
11426
11427         * gnulib-tool (sed): Try a little harder to make bash understand the
11428         alias.
11429         Reported by Bruce Korb <bruce.korb@gmail.com>.
11430
11431 2007-09-13  Eric Blake  <ebb9@byu.net>
11432
11433         * ChangeLog: Remove conflict markers.
11434
11435 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11436
11437         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11438         Reported by Bruno Haible <bruno@clisp.org>.
11439
11440 2007-09-12  Bruno Haible  <bruno@clisp.org>
11441
11442         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11443         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11444         is not defined.
11445
11446 2007-09-12  Eric Blake  <ebb9@byu.net>
11447
11448         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11449         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11450         Autoconf definition.
11451         * modules/euidaccess (Depends-on): Add extensions, for
11452         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11453         * modules/fnmatch (Depends-on): Likewise.
11454         * modules/getaddrinfo (Depends-on): Likewise.
11455         * modules/getdelim (Depends-on): Likewise.
11456         * modules/getline (Depends-on): Likewise.
11457         * modules/getsubopt (Depends-on): Likewise.
11458         * modules/gettext (Depends-on): Likewise.
11459         * modules/group-member (Depends-on): Likewise.
11460         * modules/mbchar (Depends-on): Likewise.
11461         * modules/memmem (Depends-on): Likewise.
11462         * modules/mempcpy (Depends-on): Likewise.
11463         * modules/memrchr (Depends-on): Likewise.
11464         * modules/pagealign_alloc (Depends-on): Likewise.
11465         * modules/readutmp (Depends-on): Likewise.
11466         * modules/stpcpy (Depends-on): Likewise.
11467         * modules/stpncpy (Depends-on): Likewise.
11468         * modules/strchrnul (Depends-on): Likewise.
11469         * modules/strndup (Depends-on): Likewise.
11470         * modules/strsep (Depends-on): Likewise.
11471         * modules/strverscmp (Depends-on): Likewise.
11472         * modules/vasprintf (Depends-on): Likewise.
11473         * modules/wcwidth (Depends-on): Likewise.
11474         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11475         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11476         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11479         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11480         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11481         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11482         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11483         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11484         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11485         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11486         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11488         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11489         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11490         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11491         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11493         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11494         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11495         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11496         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11497         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11498         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11500         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11501         so that lock.m4 can be used in gettext without extensions module.
11502
11503 2007-09-11  Bruno Haible  <bruno@clisp.org>
11504
11505         * m4/isc-posix.m4: Remove file.
11506         Suggested by Eric Blake.
11507
11508 2007-09-11  Eric Blake  <ebb9@byu.net>
11509
11510         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11511
11512 2007-09-10  Bruno Haible  <bruno@clisp.org>
11513
11514         * posix-modules: Fix typo in error message.
11515         Reported by Matt <mkraai@beckman.com>.
11516
11517 2007-09-09  Bruno Haible  <bruno@clisp.org>
11518
11519         * doc/functions/getdelim.texi: Update list of platforms lacking the
11520         function.
11521         * doc/functions/getline.texi: Likewise.
11522
11523 2007-09-09  Jim Meyering  <jim@meyering.net>
11524
11525         * lib/hash.c (hash_initialize): Detect calloc failure.
11526         Reported by Bruno Haible.
11527
11528 2007-09-09  Bruno Haible  <bruno@clisp.org>
11529
11530         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11531         malloc or realloc fails.
11532
11533 2007-09-09  Bruno Haible  <bruno@clisp.org>
11534
11535         * modules/getcwd (Depends-on): Add malloc-posix.
11536         * modules/glob (Depends-on): Likewise.
11537         * modules/putenv (Depends-on): Likewise.
11538         * modules/strdup (Depends-on): Likewise.
11539         * modules/getdelim (Depends-on): Add realloc-posix.
11540         * modules/read-file (Depends-on): Likewise.
11541
11542 2007-09-09  Bruno Haible  <bruno@clisp.org>
11543
11544         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11545         (gl_FUNC_MALLOC_POSIX): Require it.
11546         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11547         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11548         * modules/realloc (Files): Add m4/malloc.m4.
11549         * modules/calloc (Files): Likewise.
11550
11551 2007-09-09  Bruno Haible  <bruno@clisp.org>
11552
11553         * modules/malloc-posix: New file.
11554         * modules/malloc (Depends-on): Add malloc-posix.
11555         * lib/malloc.c: Include errno.h.
11556         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11557         and a POSIX-compatible malloc into a single function. Set ENOMEM
11558         when returning NULL.
11559         * m4/malloc.m4: New file.
11560         * doc/functions/malloc.texi: Mention the malloc-posix module.
11561         * lib/stdlib_.h (malloc): New declaration.
11562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11563         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11564         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11565         and HAVE_MALLOC_POSIX.
11566
11567 2007-09-09  Bruno Haible  <bruno@clisp.org>
11568
11569         * modules/realloc-posix: New file.
11570         * modules/realloc (Depends-on): Add realloc-posix.
11571         * lib/realloc.c: Include errno.h.
11572         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11573         and a POSIX-compatible realloc into a single function. Set ENOMEM
11574         when returning NULL.
11575         * m4/realloc.m4: New file.
11576         * doc/functions/realloc.texi: Mention the realloc-posix module.
11577         * lib/stdlib_.h (realloc): New declaration.
11578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11579         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11580         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11581         and HAVE_REALLOC_POSIX.
11582
11583 2007-09-09  Bruno Haible  <bruno@clisp.org>
11584
11585         * modules/calloc-posix: New file.
11586         * modules/calloc (Depends-on): Add calloc-posix.
11587         * lib/calloc.c: Include errno.h.
11588         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11589         and a POSIX-compatible calloc into a single function. Set ENOMEM
11590         when returning NULL.
11591         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11592         * doc/functions/calloc.texi: Mention the calloc-posix module.
11593         * lib/stdlib_.h (calloc): New declaration.
11594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11595         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11596         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11597         and HAVE_CALLOC_POSIX.
11598
11599 2007-09-09  Bruno Haible  <bruno@clisp.org>
11600
11601         Allow for modules to show an arbitrary notice.
11602         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11603         * gnulib-tool: New option --extract-notice.
11604         (func_usage): Document it.
11605         (sed_extract_prog): Update.
11606         (func_get_notice): New function.
11607         (func_modules_notice): New function.
11608         (func_import, func_create_testdir): Invoke it.
11609         Suggested by Jim Meyering.
11610
11611 2007-09-09  Bruno Haible  <bruno@clisp.org>
11612
11613         * gnulib-tool: New options --verbose, --quiet.
11614         (func_usage): Document them.
11615         (verbose): New variable.
11616         (func_execute_command): New function.
11617         (func_import): Don't show the module list and the file list if
11618         $verbose < 0.
11619         (func_create_testdir): Likewise. Use func_execute_command.
11620         (func_create_megatestdir): Use func_execute_command.
11621
11622 2007-09-08  Bruno Haible  <bruno@clisp.org>
11623
11624         * gnulib-tool (func_import): Prefer rsync over wget when available,
11625         for fetching the PO files.
11626
11627 2007-09-08  Bruno Haible  <bruno@clisp.org>
11628
11629         * posix-modules: New file. Portions copied from gnulib-tool.
11630         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11631
11632 2007-09-08  Jim Meyering  <jim@meyering.net>
11633
11634         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11635         * lib/fpending.h: Rename from __fpending.h.
11636         * lib/fpending.c: Rename from __fpending.c.
11637         Include "fpending.h", not "__fpending.h".
11638         * lib/__fpending.h, lib/__fpending.c: Remove files.
11639         * modules/fpending (Files): Reflect new file names.
11640         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11641
11642 2007-09-08  Bruno Haible  <bruno@clisp.org>
11643
11644         * m4/inttypes-h.m4: Remove stub file.
11645
11646 2007-09-07  Simon Josefsson  <simon@josefsson.org>
11647
11648         * doc/headers/stdint.texi: Discuss #include_next issue.
11649
11650 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11651
11652         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11653
11654 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11655
11656         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11657         in variable name.
11658
11659 2007-09-03  Jim Meyering  <jim@meyering.net>
11660
11661         New module: git-version-gen.
11662         * modules/git-version-gen: New file.
11663
11664         Import changes from coreutils for bootstrap script.
11665
11666         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11667
11668         bootstrap: uses rsync to download the .po files
11669         * build-aux/bootstrap (po_download_command_format): New global.
11670         (download_po_files): Use rsync.
11671         (update_po_files): Don't remove .po files after download,
11672         so future rsync runs can take advantage of the copies.
11673
11674         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11675
11676         Solve the unnecessary-.po-file-regeneration problem once and for all.
11677         * build-aux/bootstrap (download_po_files): New function, renamed from
11678         get_translations.  Now, downloads, but doesn't update LINGUAS.
11679         (update_po_files): New function.
11680
11681         bootstrap: Ignore more.
11682         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11683         uniwidth to e.g., lib/.gitignore.
11684         (slurp): Handle the sys_stat_.h -> sys mapping, too.
11685
11686         * build-aux/bootstrap: New setting: vc_ignore.
11687         (insert_sorted_if_absent): Create $file if absent.
11688         Adapt to new, possibly empty, list: $vc_ignore.
11689
11690         bootstrap: generate more ignorable names
11691         * build-aux/bootstrap (slurp): When generating ignorable names,
11692         also map .sin to .sed, .gperf to .c, and .y to .c.
11693
11694 2007-09-03  Jim Meyering  <jim@meyering.net>
11695
11696         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11697         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11698
11699 2007-09-02  Bruno Haible  <bruno@clisp.org>
11700
11701         Fix mis-recognition of 'mcs' on QNX 6.
11702         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11703         output contains the string "Mono".
11704         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11705         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11706
11707 2007-09-01  Bruno Haible  <bruno@clisp.org>
11708
11709         Fix collision between uniwidth/* and linebreak modules.
11710         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11711         u32_width): Remove declarations.
11712         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11713         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11714         streq3, streq2, streq1, streq0): Remove functions.
11715         (STREQ): Remove macro.
11716         (is_cjk_encoding): Remove function.
11717         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11718         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11719         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11720         * NEWS: Document the change.
11721
11722 2007-09-01  Bruno Haible  <bruno@clisp.org>
11723
11724         * lib/streq.h: Add double-inclusion guard.
11725
11726 2007-09-01  Karl Berry  <karl@gnu.org>
11727
11728         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11729
11730 2007-08-28  Jim Meyering  <jim@meyering.net>
11731
11732         Rename mreadlink_with_size to areadlink_with_size.
11733         * NEWS: Document the change.
11734         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11735         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11736         * lib/mreadlink.h: Rename this to...
11737         * lib/areadlink.h: ...this.
11738         * modules/mreadlink-with-size: Rename this to...
11739         * modules/areadlink-with-size: ...this.
11740         * lib/canonicalize.c: Reflect the renaming.
11741         * modules/canonicalize: Likewise.
11742
11743 2007-08-26  Bruno Haible  <bruno@clisp.org>
11744
11745         * gnulib-tool (func_import): When deciding which files to remove,
11746         consider also dangling symbolic links.
11747         Reported by Eric Blake.
11748
11749 2007-08-26  Bruno Haible  <bruno@clisp.org>
11750
11751         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11752
11753 2007-08-23  Simon Josefsson  <simon@josefsson.org>
11754
11755         * lib/readline.c: Don't include getline.h, the prototype is now
11756         found in stdio.h.
11757
11758 2007-08-23  Jim Meyering  <jim@meyering.net>
11759
11760         Getdelim touchup.
11761         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11762         around the funlockfile call, since funlockfile never sets errno.
11763         Don't set errno upon failed realloc.
11764
11765 2007-08-22  Eric Blake  <ebb9@byu.net>
11766
11767         Getline touchups.
11768         * lib/getdelim.c (getdelim): Revert regression that required *n to
11769         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
11770         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11771         getdelim, rather than whether implementation is missing.
11772         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11773         * lib/stdio_.h (getline): Also declare if replacement is
11774         required.
11775         * doc/functions/getdelim.texi: New file.
11776         * doc/functions/getline.texi: Likewise.
11777         * doc/gnulib.texi (Function Substitutes): Add new files.
11778         Reported by Bruno Haible.
11779
11780 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
11781
11782         * users.txt: Add Guile.
11783
11784 2007-08-22  Eric Blake  <ebb9@byu.net>
11785
11786         * tests/test-getdelim.c (main): Use remove, not unlink.
11787         * tests/test-getline.c (main): Likewise.
11788
11789         Move getline and getdelim into stdio.h, per POSIX 200x.
11790         * modules/getline (Files): Remove getline.h.
11791         (Depends-on): Add stdio.
11792         (configure.ac): Add module indicator.
11793         * modules/getdelim (Files): Remove getdelim.h.
11794         (Depends-on): Add stdio.
11795         (configure.ac): Add module indicator.
11796         * modules/stdio (Makefile.am): Work with new indicators.
11797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11800         * lib/getdelim.h: Delete.
11801         * lib/getline.h: Delete.
11802         * lib/stdio_.h (getdelim, getline): Declare.
11803         * modules/getdelim-tests: New module.
11804         * modules/getline-tests: Likewise.
11805         * tests/test-getdelim.c: New file.
11806         * tests/test-getline.c: Likewise.
11807         * NEWS: Document the change.
11808         * lib/getline.c: Update choice of header.
11809         * lib/csharpcomp.c: Likewise.
11810         * lib/getpass.c: Likewise.
11811         * lib/javacomp.c: Likewise.
11812         * lib/javaversion.c: Likewise.
11813         * lib/yesno.c: Likewise.
11814         * lib/getdelim.c: Likewise.
11815         (getdelim): Set errno on failure, and avoid memory leak.
11816
11817 2007-08-19  Bruno Haible  <bruno@clisp.org>
11818
11819         * modules/closein (Depends-on): Add freadahead.
11820         * lib/closein.c: Include freadahead.h.
11821         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11822         is zero.
11823
11824 2007-08-19  Bruno Haible  <bruno@clisp.org>
11825
11826         * modules/freadahead-tests: New file.
11827         * tests/test-freadahead.sh: New file.
11828         * tests/test-freadahead.c: New file.
11829
11830         * modules/freadahead: New file.
11831         * lib/freadahead.h: New file.
11832         * lib/freadahead.c: New file.
11833         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11834         fbufmode, fpurge, freadable, fwritable.
11835
11836 2007-08-19  Eric Blake  <ebb9@byu.net>
11837
11838         Test yesno in combination with closein.
11839         * lib/yesno.c (yesno): Document use of stdin.
11840         * modules/yesno-tests (Files): New module.
11841         * tests/test-yesno.c (main): New file.
11842         * tests/test-yesno.sh: Likewise.
11843
11844 2007-08-19  Bruno Haible  <bruno@clisp.org>
11845
11846         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11847         * lib/fseeko.c (rpl_fseeko): Likewise.
11848         * lib/fseterr.c (fseterr): Likewise.
11849
11850 2007-08-19  Bruno Haible  <bruno@clisp.org>
11851
11852         * tests/test-lseek.c (main): Disable a test for BeOS.
11853         * doc/functions/lseek.texi: Document the BeOS bug.
11854
11855 2007-08-19  Bruno Haible  <bruno@clisp.org>
11856             Eric Blake  <ebb9@byu.net>
11857
11858         * lib/lseek.c: Include <sys/stat.h>.
11859         (rpl_lseek): Add workaround code also for Unix platforms.
11860         Needed for BeOS.
11861         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11862         * doc/functions/lseek.texi: Document BeOS definiency.
11863
11864 2007-08-18  Bruno Haible  <bruno@clisp.org>
11865
11866         * modules/fstrcmp-tests: New file.
11867         * tests/test-fstrcmp.c: New file.
11868
11869 2007-08-18  Bruno Haible  <bruno@clisp.org>
11870
11871         * modules/fstrcmp: New file, from GNU gettext with modifications.
11872         * lib/fstrcmp.h: New file, from GNU gettext.
11873         * lib/fstrcmp.c: New file, from GNU gettext.
11874         * MODULES.html.sh (String handling): Add fstrcmp.
11875
11876 2007-08-18  Bruno Haible  <bruno@clisp.org>
11877
11878         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11879         'bool'.
11880         (diag, compareseq): Remove const from the ctxt argument.
11881         (USE_HEURISTIC): Undefine at the end.
11882
11883 2007-08-18  Jim Meyering  <jim@meyering.net>
11884
11885         New file: lib/idcache.h
11886         * NEWS: Mention the addition.
11887         * modules/idcache (Files): Add lib/idcache.h
11888         * lib/idcache.c: Include "idcache.h".
11889         Don't include <sys/types.h>.
11890         Add a FIXME comment.
11891         Move file-scoped "static" declarations to the top.
11892         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
11893
11894 2007-08-17  Bruno Haible  <bruno@clisp.org>
11895         and Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         * MODULES.html.sh: Add diffseq.
11898         * modules/diffseq: New file.
11899         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11900         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11901
11902 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11903
11904         Import changes from coreutils for bootstrap script.
11905
11906         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
11907
11908         * build-aux/bootstrap (slurp): Work even in environments where
11909         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
11910         current code does not slurp files whose names start with ".", and
11911         this looks like it might be a troublesome area.
11912
11913         2007-07-11  Jim Meyering  <jim@meyering.net>
11914
11915         If there's a GPL vN copyright comment, require that N == 3.
11916
11917         2007-07-08  Jim Meyering  <jim@meyering.net>
11918
11919         Run the coreutils-specific code only if tests/Makefile.am.in exists.
11920         * build-aux/bootstrap (mam_template): Move definition out of loop.
11921
11922         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11923
11924         * build-aux/bootstrap (symlink_to_dir): Rename function from
11925         symlink_to_gnulib.  Add a directory parameter.  Update all
11926         callers.
11927         (cp_mark_as_generated): Also check for -- and link to -- files in
11928         gl/.
11929
11930         2007-07-08  Jim Meyering  <jim@meyering.net>
11931
11932         Adapt to deeper hierarchy in gnulib.
11933         * build-aux/bootstrap (symlink_to_dir): If the destination
11934         directory doesn't exist, create it. This is required at least for
11935         "lib/uniwidth/cjk.h".
11936
11937         2007-05-15  Jim Meyering  <jim@meyering.net>
11938
11939         * build-aux/bootstrap: Now that generated Makefile.am files
11940         are no longer under version control, they must be created at
11941         bootstrap time.
11942
11943 2007-08-14  Ben Pfaff  <blp@gnu.org>
11944
11945         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
11946
11947 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11948
11949         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11950         given the changes below.
11951         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
11952         even on hosts that have padding bits beyond the supported 64.
11953
11954 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11955
11956         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11957         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11958         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
11959         depends on it.
11960         (xstrtol_error): Remove.
11961         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11962         but with a different signature.
11963         (ATTRIBUTE_NORETURN, __attribute__): New macros.
11964         * lib/xstrtol-error.c: Include exitfail.h.
11965         (xstrtol_fatal): New function, with a different signature from the
11966         old xstrtol_error, so that the caller need not worry about passing
11967         in an exit status, or about storage management of the option argument.
11968         (xstrtol_error): Now a static function.  Redo signature to
11969         implement xstrtol_fatal.  Output the correct number of hyphens in
11970         front of the option so that the caller need not worry about
11971         storage management.
11972         (N_): New macro.
11973         (_): Remove; not used now.
11974         * modules/xstrtol: Depend on getopt.
11975         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11976         of old STRTOL_FATAL_ERROR macro.
11977         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11978         of test program.
11979         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11980         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11981
11982 2007-08-08  Eric Blake  <ebb9@byu.net>
11983
11984         * lib/xstrtol-error.c: Add missing include.
11985
11986         Move xstrtol messages into gnulib domain, when --pobase is used.
11987         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11988         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11989         * modules/xstrtol (Files): Distribute new file.
11990         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11991         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11992         * tests/test-xstrtol.c: ...into new file.
11993         * tests/test-xstrtoul.c: Also test xstrtoul.
11994         * tests/test-xstrtoimax.c: Also test xstrtoimax.
11995         * tests/test-xstrtoumax.c: Also test xstrtoumax.
11996         * tests/test-xstrtol.sh: Drive the tests.
11997         * tests/test-xstrtoimax.sh: Likewise.
11998         * tests/test-xstrtoumax.sh: Likewise.
11999         * modules/xstrtol-tests: New module.
12000         * modules/xstrtoimax-tests: Likewise.
12001         * modules/xstrtoumax-tests: Likewise.
12002
12003 2007-08-08  Jim Meyering  <jim@meyering.net>
12004
12005         New function: mfile_name_concat.
12006         * lib/filenamecat.c (mfile_name_concat): New function, just like
12007         file_name_concat, but return NULL upon failure rather than exiting
12008         with a diagnostic.
12009         * lib/filenamecat.h: Declare it.
12010
12011 2007-08-07  Bruno Haible  <bruno@clisp.org>
12012
12013         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12014         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12015         warning from gcc.
12016         Reported by Eric Blake.
12017
12018 2007-08-07  Simon Josefsson  <simon@josefsson.org>
12019
12020         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12021         * modules/crypto/arcfour (License): Likewise.
12022         * modules/crypto/des-tests (License): Likewise.
12023         * modules/crypto/gc-arctwo-tests (License): Likewise.
12024         * modules/crypto/gc-des-tests (License): Likewise.
12025         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12026         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12027         * modules/crypto/gc-md2-tests (License): Likewise.
12028         * modules/crypto/gc-md4-tests (License): Likewise.
12029         * modules/crypto/gc-md5-tests (License): Likewise.
12030         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12031         * modules/crypto/gc-rijndael-tests (License): Likewise.
12032         * modules/crypto/gc-sha1-tests (License): Likewise.
12033         * modules/crypto/gc-tests (License): Likewise.
12034         * modules/crypto/hmac-md5 (License): Likewise.
12035         * modules/crypto/hmac-sha1 (License): Likewise.
12036         * modules/crypto/md2-tests (License): Likewise.
12037         * modules/crypto/md4-tests (License): Likewise.
12038         * modules/crypto/md5 (License): Likewise.
12039         * modules/crypto/rijndael (License): Likewise.
12040         * modules/crypto/sha1 (License): Likewise.
12041         * modules/memxor (License): Likewise.
12042
12043 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12044         and Bruno Haible  <bruno@clisp.org>
12045
12046         * NEWS: Describe interface changes to human, xstrtol.
12047         * lib/human.h: Include <xstrtol.h>.
12048         (human_options): Return enum strtol_error, not int.  Remove
12049         bool arg; take int * instead.
12050         * lib/human.c: Don't include "gettext.h".
12051         (_): Remove; no longer used.
12052         Don't include <xstrtol.h>, since human.h does it.
12053         (human_options): Adjust to abovementioned interface changes.
12054         Do not report error to stderr; that's now the caller's
12055         responsibility.
12056         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12057         interface change.
12058         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12059         Str, Argument_type_string.  All uses changed.  Put " argument"
12060         in diagnostics to make them clearer.  Change wording of suffix
12061         message for clarity.
12062         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12063         Argument_type_string.
12064         (STRTOL_FATAL_WARN): Remove; no longer used.
12065         * modules/human (Depends-on): Remove gettext-h.
12066
12067 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12068
12069         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12070
12071 2007-07-31  Bruno Haible  <bruno@clisp.org>
12072
12073         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12074         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12075         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12076
12077 2007-07-31  Bruno Haible  <bruno@clisp.org>
12078
12079         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12080         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12081
12082 2007-07-30  Bruno Haible  <bruno@clisp.org>
12083
12084         * modules/base64 (License): Use the synonymous term "LGPLv2+".
12085         * modules/c-ctype (License): Likewise.
12086         * modules/c-strcase (License): Likewise.
12087         * modules/check-version (License): Likewise.
12088         * modules/iconv (License): Likewise.
12089         * modules/iconv_open (License): Likewise.
12090         * modules/read-file (License): Likewise.
12091         * modules/striconv (License): Likewise.
12092         * modules/strverscmp (License): Likewise.
12093         * modules/vasprintf (License): Likewise.
12094         * modules/crypto/des (License): Likewise.
12095         * modules/crypto/gc (License): Likewise.
12096         * modules/crypto/gc-arcfour (License): Likewise.
12097         * modules/crypto/gc-arctwo (License): Likewise.
12098         * modules/crypto/gc-des (License): Likewise.
12099         * modules/crypto/gc-hmac-md5 (License): Likewise.
12100         * modules/crypto/gc-hmac-sha1 (License): Likewise.
12101         * modules/crypto/gc-md2 (License): Likewise.
12102         * modules/crypto/gc-md4 (License): Likewise.
12103         * modules/crypto/gc-md5 (License): Likewise.
12104         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12105         * modules/crypto/gc-random (License): Likewise.
12106         * modules/crypto/gc-rijndael (License): Likewise.
12107         * modules/crypto/gc-sha1 (License): Likewise.
12108         * modules/crypto/md2 (License): Likewise.
12109         * modules/crypto/md4 (License): Likewise.
12110
12111 2007-07-30  Jim Meyering  <jim@meyering.net>
12112
12113         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12114         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12115         it has valid stat data.  This bug would cause du not to count the
12116         sizes of inaccessible directories.
12117         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12118         in <http://bugzilla.redhat.com/250077>.
12119
12120 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12121             Bruno Haible  <bruno@clisp.org>
12122
12123         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12124         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12125         #include_next, gives a diagnostic about it, but reports no error in
12126         the exit code.
12127         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12128
12129 2007-07-24  Ben Pfaff  <blp@gnu.org>
12130
12131         Improve name: "count-one-bits" is better than "popcount".
12132         * MODULES.html.sh: Update name.
12133         * lib/popcount.h: Renamed lib/count-one-bits.h.
12134         (popcount): Renamed count_one_bits.
12135         (popcountl): Renamed count_one_bits_l.
12136         (popcountll): Renamed count_one_bits_ll.
12137         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12138         * modules/popcount: Renamed module/count-one-bits.
12139         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12140         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12141
12142 2007-07-23  Ben Pfaff  <blp@gnu.org>
12143
12144         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12145         better code generation, and add U to large constants to avoid
12146         warnings, in non-GCC case.
12147         Suggested by Bruno Haible.
12148
12149 2007-07-23  Ben Pfaff  <blp@gnu.org>
12150
12151         * lib/popcount.h: Use verify_true instead of if...abort.
12152         * modules/popcount: Depend on verify module.
12153         Suggested by Jim Meyering.
12154
12155 2007-07-23  Bruno Haible  <bruno@clisp.org>
12156
12157         * gnulib-tool (func_import): Create a .cvsignore file also when the
12158         directory is not yet in CVS but the toplevel directory is. When
12159         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12160         Reported by Karl Berry.
12161
12162 2007-07-22  Ben Pfaff  <blp@gnu.org>
12163
12164         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12165         case.
12166         Suggested by Eric Blake.
12167
12168 2007-07-22  Ben Pfaff  <blp@gnu.org>
12169
12170         New module: popcount.
12171         * MODULES.html.sh: Add popcount.
12172         * modules/popcount: New file.
12173         * modules/popcount-tests: New file.
12174         * tests/test-popcount.c: New file.
12175         * lib/popcount.h: New file.
12176         * m4/popcount.m4: New file.
12177
12178 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12179
12180         * build-aux/announce-gen: Update to GPLv3.
12181
12182         * build-aux/config.guess: Update from config.
12183
12184 2007-07-21  Bruno Haible  <bruno@clisp.org>
12185
12186         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12187         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12188
12189 2007-07-20  Jim Meyering  <jim@meyering.net>
12190
12191         * check-module: Diagnose a self-dependency.
12192
12193 2007-07-19  Bruno Haible  <bruno@clisp.org>
12194
12195         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12196         empty.
12197         Reported by Eric Blake.
12198
12199 2007-07-18  Bruno Haible  <bruno@clisp.org>
12200
12201         * gnulib-tool: New options --po-base, --po-domain.
12202         (func_usage): Document them.
12203         (pobase, po_domain): New variables.
12204         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12205         DEFAULT_TEXT_DOMAIN.
12206         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12207         (func_import): Consider pobase and po_domain. Create a po/ directory.
12208         (func_create_testdir): Set pobase and po_domain to empty.
12209         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12210         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12211
12212 2007-07-18  Bruno Haible  <bruno@clisp.org>
12213
12214         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12215         EXTRA_DIST augmentation for files in build-aux/.
12216
12217 2007-07-16  Bruno Haible  <bruno@clisp.org>
12218
12219         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12220         * modules/getdelim (License): Likewise.
12221
12222 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12223
12224         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12225         * modules/d-type (License): Likewise.
12226         * modules/extensions (License): Likewise.
12227         * modules/fnmatch (License): Likewise.
12228         * modules/fseeko (License): Likewise.
12229         * modules/getaddrinfo (License): Likewise.
12230         * modules/getline (License): Likewise.
12231         * modules/getlogin_r (License): Likewise.
12232         * modules/getpass (License): Likewise.
12233         * modules/gettimeofday (License): Likewise.
12234         * modules/glob (License): Likewise.
12235         * modules/inet_ntop (License): Likewise.
12236         * modules/malloc (License): Likewise.
12237         * modules/malloca (License): Likewise.
12238         * modules/memmem (License): Likewise.
12239         * modules/mempcpy (License): Likewise.
12240         * modules/memset (License): Likewise.
12241         * modules/minmax (License): Likewise.
12242         * modules/mktime (License): Likewise.
12243         * modules/netinet_in (License): Likewise.
12244         * modules/pathmax (License): Likewise.
12245         * modules/poll (License): Likewise.
12246         * modules/regex (License): Likewise.
12247         * modules/snprintf (License): Likewise.
12248         * modules/stdbool (License): Likewise.
12249         * modules/stdint (License): Likewise.
12250         * modules/stdio (License): Likewise.
12251         * modules/strcase (License): Likewise.
12252         * modules/strcasestr (License): Likewise.
12253         * modules/strdup (License): Likewise.
12254         * modules/string (License): Likewise.
12255         * modules/strndup (License): Likewise.
12256         * modules/strnlen (License): Likewise.
12257         * modules/strpbrk (License): Likewise.
12258         * modules/strptime (License): Likewise.
12259         * modules/strsep (License): Likewise.
12260         * modules/sys_select (License): Likewise.
12261         * modules/sys_socket (License): Likewise.
12262         * modules/sys_stat (License): Likewise.
12263         * modules/sys_time (License): Likewise.
12264         * modules/time (License): Likewise.
12265         * modules/time_r (License): Likewise.
12266         * modules/timegm (License): Likewise.
12267         * modules/unistd (License): Likewise.
12268         * modules/vsnprintf (License): Likewise.
12269         * modules/wctype (License): Likewise.
12270
12271 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12272
12273         * modules/argz (License): LGPLv2+.
12274
12275 2007-07-15  Karl Berry  <karl@gnu.org>
12276
12277         * doc/gnulib.texi: revise node structure per new fdl.texi.
12278
12279 2007-07-14  Bruno Haible  <bruno@clisp.org>
12280
12281         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12282         the output file.
12283         * lib/uniname/uninames.h: Regenerated.
12284
12285 2007-07-14  Karl Berry  <karl@gnu.org>
12286
12287         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12288         omitting sectioning and index commands.
12289
12290 2007-07-13  Bruno Haible  <bruno@clisp.org>
12291
12292         New gnulib-tool option --more-symlinks.
12293         * gnulib-tool (func_usage): Document --more-symlinks.
12294         (do_copyrights): New variable.
12295         Recognize option --more-symlinks.
12296         (func_import): Don't add a copyright notice transform to
12297         sed_transform_lib_file if do_copyrights is empty.
12298
12299 2007-07-13  Bruno Haible  <bruno@clisp.org>
12300
12301         * lib/vasnprintf.c (decimal_point_char): Define also if
12302         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12303         && !NEED_PRINTF_DIRECTIVE_A.
12304         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12305         Gary V. Vaughan <gary@gnu.org>.
12306
12307 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12308
12309         * lib/inttypes_.h: Undo previous change, since it was fixed
12310         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12311
12312 2007-07-13  Bruno Haible  <bruno@clisp.org>
12313
12314         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12315         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12316
12317 2007-07-13  Jim Meyering  <jim@meyering.net>
12318
12319         df: Don't fail for Tru64's "file-on-file mount".
12320         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12321         so we fall through and use statfs instead.  Details here:
12322         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12323         Reported by Albert Chin.
12324
12325 2007-07-13  Bruno Haible  <bruno@clisp.org>
12326
12327         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12328         * modules/configmake (License): Likewise.
12329         * modules/gettext (License): Likewise.
12330         * modules/gettext-h (License): Likewise.
12331         * modules/include_next (License): Likewise.
12332         * modules/link-warning (License): Likewise.
12333         * modules/localcharset (License): Likewise.
12334         * modules/localename (License): Likewise.
12335         * modules/lock (License): Likewise.
12336         * modules/relocatable-lib-lgpl (License): Likewise.
12337         * modules/size_max (License): Likewise.
12338         * modules/vasnprintf (License): Likewise.
12339         * modules/wchar (License): Likewise.
12340         * modules/xsize (License): Likewise.
12341
12342 2007-07-13  Bruno Haible  <bruno@clisp.org>
12343
12344         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12345         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12346
12347 2007-07-12  Bruno Haible  <bruno@clisp.org>
12348
12349         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12350         in the modules files.
12351
12352 2007-07-11  Karl Berry  <karl@gnu.org>
12353
12354         * MODULES.html.sh (func_module): use
12355          sed -e '\|^'"${includefile}"'$|d'
12356          instead of /.../d, to avoid errors on $includefile's containing /.
12357
12358 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12359
12360         * gnulib-tool (func_import): Avoid duplication of --avoid
12361         statements
12362         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12363         names to `_' in variable names.
12364
12365 2007-07-10  Eric Blake  <ebb9@byu.net>
12366
12367         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12368         * NEWS: Document this change.
12369
12370 2007-07-08  Bruno Haible  <bruno@clisp.org>
12371
12372         Update to Unicode 5.0.
12373         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12374         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12375         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12376         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12377         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12378         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12379         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12380         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12381         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12382         U+10A3F, U+1D242..U+1D244.
12383         (nonspacing_table_ind): Update.
12384         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12385         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12386
12387 2007-07-08  Bruno Haible  <bruno@clisp.org>
12388
12389         Update to Unicode 5.0.
12390         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12391         code transform. Extend the name index field of unicode_name_to_code and
12392         unicode_code_to_name from 16 to 24 bits.
12393         * lib/uniname/uniname.c (unicode_character_name,
12394         unicode_name_character): Add the range 0x12xxx to the code transform.
12395         * lib/uniname/uninames.h: Regenerated.
12396         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12397
12398 2007-07-07  Bruno Haible  <bruno@clisp.org>
12399
12400         * modules/wcwidth-tests: New file.
12401         * tests/test-wcwidth.c: New file.
12402
12403         Work around MacOS X wcwidth() bug.
12404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12405         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12406         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12407         original wcwidth in non-UTF-8 locales.
12408         * modules/wcwidth (Depends-on): Add localcharset, streq,
12409         uniwidth/width.
12410         * doc/functions/wcwidth.texi: Update.
12411
12412 2007-07-07  Bruno Haible  <bruno@clisp.org>
12413
12414         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12415         (wcwidth): New declaration.
12416         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12417         macros.
12418         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12419         here. Prepare for creating <wchar.h> unconditionally.
12420         * modules/wchar (Depends-on): Add link-warning.
12421         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12422         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12423         * lib/wcwidth.h: Remove file.
12424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12425         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12426         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12427         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12428         (Include): Replace wcwidth.h with <wchar.h>.
12429         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12430         * lib/mbchar.h: Don't include wcwidth.h.
12431         * lib/mbswidth.c: Likewise.
12432         * NEWS: Mention the change.
12433
12434 2007-07-07  Bruno Haible  <bruno@clisp.org>
12435
12436         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12437         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12438         definition with an external declaration.
12439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12440         defined as a function. Remove AC_C_INLINE requirement.
12441         * modules/wcwidth (Files): Add lib/wcwidth.c.
12442         (Makefile.am): Remove redundant statement.
12443
12444 2007-07-07  Bruno Haible  <bruno@clisp.org>
12445
12446         * MODULES.html.sh (Unicode string functions): Add the new modules.
12447
12448         * tests/uniwidth/test-u32-strwidth.c: New file.
12449         * modules/uniwidth/u32-strwidth-tests: New file.
12450
12451         * lib/uniwidth/u32-strwidth.c: New file.
12452         * modules/uniwidth/u32-strwidth: New file.
12453
12454         * tests/uniwidth/test-u16-strwidth.c: New file.
12455         * modules/uniwidth/u16-strwidth-tests: New file.
12456
12457         * lib/uniwidth/u16-strwidth.c: New file.
12458         * modules/uniwidth/u16-strwidth: New file.
12459
12460         * tests/uniwidth/test-u8-strwidth.c: New file.
12461         * modules/uniwidth/u8-strwidth-tests: New file.
12462
12463         * lib/uniwidth/u8-strwidth.c: New file.
12464         * modules/uniwidth/u8-strwidth: New file.
12465
12466         * tests/uniwidth/test-u32-width.c: New file.
12467         * modules/uniwidth/u32-width-tests: New file.
12468
12469         * lib/uniwidth/u32-width.c: New file.
12470         * modules/uniwidth/u32-width: New file.
12471
12472         * tests/uniwidth/test-u16-width.c: New file.
12473         * modules/uniwidth/u16-width-tests: New file.
12474
12475         * lib/uniwidth/u16-width.c: New file.
12476         * modules/uniwidth/u16-width: New file.
12477
12478         * tests/uniwidth/test-u8-width.c: New file.
12479         * modules/uniwidth/u8-width-tests: New file.
12480
12481         * lib/uniwidth/u8-width.c: New file.
12482         * modules/uniwidth/u8-width: New file.
12483
12484         * tests/uniwidth/test-uc_width.c: New file.
12485         * modules/uniwidth/width-tests: New file.
12486
12487         * lib/uniwidth/width.c: New file, from GNU libiconv.
12488         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12489         * modules/uniwidth/width: New file.
12490
12491         * lib/uniwidth.h: New file, from GNU libiconv.
12492         * modules/uniwidth/base: New file.
12493
12494 2007-07-07  Bruno Haible  <bruno@clisp.org>
12495
12496         * lib/uniname.h: New file, from GNU gettext.
12497         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12498         * lib/uniname/uninames.h: New file, from GNU gettext.
12499         * lib/uniname/uniname.c: New file, from GNU gettext.
12500         * tests/uniname/test-uninames.sh: New file.
12501         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12502         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12503         * modules/uniname/base: New file.
12504         * modules/uniname/uniname: New file.
12505         * modules/uniname/uniname-tests: New file.
12506         * MODULES.html.sh (Unicode string functions): Add the new modules.
12507
12508 2007-07-06  Bruno Haible  <bruno@clisp.org>
12509
12510         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12511
12512 2007-07-06  Bruno Haible  <bruno@clisp.org>
12513
12514         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12515         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12516         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12517         include <sys/time.h>.
12518         Reported by Eric Blake.
12519
12520 2007-07-06  Eric Blake  <ebb9@byu.net>
12521
12522         Fix testing canonicalize on cygwin.
12523         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12524         Revert patch from 2007-06-19.
12525         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12526         canonicalize module is also in use.
12527         * tests/test-canonicalize.c: New file.
12528         * tests/test-canonicalize.sh: Likewise.
12529         * modules/canonicalize-tests: Likewise.
12530
12531 2007-07-06  Jim Meyering  <jim@meyering.net>
12532
12533         * lib/getugroups.c (getugroups): Detect getgrent failure.
12534         Adjust comment to reflect reality: this function may return -1.
12535
12536 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12537
12538         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12539         the new TP address.
12540         (usage): Fix typo
12541         (gnulib_mk): New variable.
12542
12543 2007-07-05  Jim Meyering  <jim@meyering.net>
12544
12545         Don't let endgrent clobber errno, no matter how improbable.
12546         * lib/getugroups.c (getugroups): Save and restore errno around
12547         endgrent call.
12548
12549         Close the group DB even when failing with 2^31 or more members.
12550         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12551
12552 2007-07-04  Jim Meyering  <jim@meyering.net>
12553
12554         * lib/getugroups.h: New file.
12555         * lib/getugroups.c: Include "getugroups.h".
12556         Remove uses of "register" keyword.
12557         Move local variable, "cp", down into scope where used.
12558         Give "username" parameter the "const" attribute.
12559         * modules/getugroups (Files): Add lib/getugroups.h
12560
12561 2007-07-04  Karl Berry  <karl@gnu.org>
12562
12563         * MODULES.html.sh (func_all_modules): Complete rename of
12564         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12565
12566 2007-07-02  Bruno Haible  <bruno@clisp.org>
12567
12568         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12569         mode, when inttypes.h comes from gnulib.
12570         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12571
12572 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12573
12574         * NEWS: Mention lgpl module name change.
12575
12576         * modules/lgpl-2.1: Renamed from lgpl.
12577
12578         * NEWS: Mention gpl module name change.
12579
12580         * modules/gpl-3.0: New file, based on gpl-2.0.
12581
12582         * modules/gpl-2.0: Renamed from gpl.
12583
12584         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12585         doc/gpl-2.0.texi.
12586
12587 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12588
12589         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12590         #define __STDC_LIMIT_MACROS temporarily while including
12591         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12592         Problem reported by Joel E. Denny in
12593         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12594
12595 2007-07-01  Bruno Haible  <bruno@clisp.org>
12596
12597         * lib/unistdio.h: New file.
12598         * lib/unistdio/u-asnprintf.h: New file.
12599         * lib/unistdio/u-asprintf.h: New file.
12600         * lib/unistdio/u-printf-args.c: New file.
12601         * lib/unistdio/u-printf-args.h: New file.
12602         * lib/unistdio/u-printf-parse.h: New file.
12603         * lib/unistdio/u-snprintf.h: New file.
12604         * lib/unistdio/u-sprintf.h: New file.
12605         * lib/unistdio/u-vasprintf.h: New file.
12606         * lib/unistdio/u-vsnprintf.h: New file.
12607         * lib/unistdio/u-vsprintf.h: New file.
12608         * lib/unistdio/ulc-asnprintf.c: New file.
12609         * lib/unistdio/ulc-asprintf.c: New file.
12610         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12611         * lib/unistdio/ulc-printf-parse.c: New file.
12612         * lib/unistdio/ulc-snprintf.c: New file.
12613         * lib/unistdio/ulc-sprintf.c: New file.
12614         * lib/unistdio/ulc-vasnprintf.c: New file.
12615         * lib/unistdio/ulc-vasprintf.c: New file.
12616         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12617         * lib/unistdio/ulc-vsnprintf.c: New file.
12618         * lib/unistdio/ulc-vsprintf.c: New file.
12619         * lib/unistdio/u8-asnprintf.c: New file.
12620         * lib/unistdio/u8-asprintf.c: New file.
12621         * lib/unistdio/u8-printf-parse.c: New file.
12622         * lib/unistdio/u8-snprintf.c: New file.
12623         * lib/unistdio/u8-sprintf.c: New file.
12624         * lib/unistdio/u8-vasnprintf.c: New file.
12625         * lib/unistdio/u8-vasprintf.c: New file.
12626         * lib/unistdio/u8-vsnprintf.c: New file.
12627         * lib/unistdio/u8-vsprintf.c: New file.
12628         * lib/unistdio/u8-u8-asnprintf.c: New file.
12629         * lib/unistdio/u8-u8-asprintf.c: New file.
12630         * lib/unistdio/u8-u8-snprintf.c: New file.
12631         * lib/unistdio/u8-u8-sprintf.c: New file.
12632         * lib/unistdio/u8-u8-vasnprintf.c: New file.
12633         * lib/unistdio/u8-u8-vasprintf.c: New file.
12634         * lib/unistdio/u8-u8-vsnprintf.c: New file.
12635         * lib/unistdio/u8-u8-vsprintf.c: New file.
12636         * lib/unistdio/u16-asnprintf.c: New file.
12637         * lib/unistdio/u16-asprintf.c: New file.
12638         * lib/unistdio/u16-printf-parse.c: New file.
12639         * lib/unistdio/u16-snprintf.c: New file.
12640         * lib/unistdio/u16-sprintf.c: New file.
12641         * lib/unistdio/u16-vasnprintf.c: New file.
12642         * lib/unistdio/u16-vasprintf.c: New file.
12643         * lib/unistdio/u16-vsnprintf.c: New file.
12644         * lib/unistdio/u16-vsprintf.c: New file.
12645         * lib/unistdio/u16-u16-asnprintf.c: New file.
12646         * lib/unistdio/u16-u16-asprintf.c: New file.
12647         * lib/unistdio/u16-u16-snprintf.c: New file.
12648         * lib/unistdio/u16-u16-sprintf.c: New file.
12649         * lib/unistdio/u16-u16-vasnprintf.c: New file.
12650         * lib/unistdio/u16-u16-vasprintf.c: New file.
12651         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12652         * lib/unistdio/u16-u16-vsprintf.c: New file.
12653         * lib/unistdio/u32-asnprintf.c: New file.
12654         * lib/unistdio/u32-asprintf.c: New file.
12655         * lib/unistdio/u32-printf-parse.c: New file.
12656         * lib/unistdio/u32-snprintf.c: New file.
12657         * lib/unistdio/u32-sprintf.c: New file.
12658         * lib/unistdio/u32-vasnprintf.c: New file.
12659         * lib/unistdio/u32-vasprintf.c: New file.
12660         * lib/unistdio/u32-vsnprintf.c: New file.
12661         * lib/unistdio/u32-vsprintf.c: New file.
12662         * lib/unistdio/u32-u32-asnprintf.c: New file.
12663         * lib/unistdio/u32-u32-asprintf.c: New file.
12664         * lib/unistdio/u32-u32-snprintf.c: New file.
12665         * lib/unistdio/u32-u32-sprintf.c: New file.
12666         * lib/unistdio/u32-u32-vasnprintf.c: New file.
12667         * lib/unistdio/u32-u32-vasprintf.c: New file.
12668         * lib/unistdio/u32-u32-vsnprintf.c: New file.
12669         * lib/unistdio/u32-u32-vsprintf.c: New file.
12670         * tests/unistdio/test-ulc-asnprintf1.c: New file.
12671         * tests/unistdio/test-ulc-asnprintf1.h: New file.
12672         * tests/unistdio/test-ulc-printf1.h: New file.
12673         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12674         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12675         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12676         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12677         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12678         * tests/unistdio/test-ulc-vasprintf1.c: New file.
12679         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12680         * tests/unistdio/test-ulc-vsprintf1.c: New file.
12681         * tests/unistdio/test-u8-asnprintf1.c: New file.
12682         * tests/unistdio/test-u8-asnprintf1.h: New file.
12683         * tests/unistdio/test-u8-printf1.h: New file.
12684         * tests/unistdio/test-u8-vasnprintf1.c: New file.
12685         * tests/unistdio/test-u8-vasnprintf2.c: New file.
12686         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12687         * tests/unistdio/test-u8-vasnprintf3.c: New file.
12688         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12689         * tests/unistdio/test-u8-vasprintf1.c: New file.
12690         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12691         * tests/unistdio/test-u8-vsprintf1.c: New file.
12692         * tests/unistdio/test-u16-asnprintf1.c: New file.
12693         * tests/unistdio/test-u16-asnprintf1.h: New file.
12694         * tests/unistdio/test-u16-printf1.h: New file.
12695         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12696         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12697         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12698         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12699         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12700         * tests/unistdio/test-u16-vasprintf1.c: New file.
12701         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12702         * tests/unistdio/test-u16-vsprintf1.c: New file.
12703         * tests/unistdio/test-u32-asnprintf1.c: New file.
12704         * tests/unistdio/test-u32-asnprintf1.h: New file.
12705         * tests/unistdio/test-u32-printf1.h: New file.
12706         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12707         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12708         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12709         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12710         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12711         * tests/unistdio/test-u32-vasprintf1.c: New file.
12712         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12713         * tests/unistdio/test-u32-vsprintf1.c: New file.
12714         * modules/unistdio/base: New file.
12715         * modules/unistdio/u-printf-args: New file.
12716         * modules/unistdio/ulc-asnprintf: New file.
12717         * modules/unistdio/ulc-asprintf: New file.
12718         * modules/unistdio/ulc-fprintf: New file.
12719         * modules/unistdio/ulc-printf-parse: New file.
12720         * modules/unistdio/ulc-snprintf: New file.
12721         * modules/unistdio/ulc-sprintf: New file.
12722         * modules/unistdio/ulc-vasnprintf: New file.
12723         * modules/unistdio/ulc-vasprintf: New file.
12724         * modules/unistdio/ulc-vfprintf: New file.
12725         * modules/unistdio/ulc-vsnprintf: New file.
12726         * modules/unistdio/ulc-vsprintf: New file.
12727         * modules/unistdio/u8-asnprintf: New file.
12728         * modules/unistdio/u8-asprintf: New file.
12729         * modules/unistdio/u8-printf-parse: New file.
12730         * modules/unistdio/u8-snprintf: New file.
12731         * modules/unistdio/u8-sprintf: New file.
12732         * modules/unistdio/u8-vasnprintf: New file.
12733         * modules/unistdio/u8-vasprintf: New file.
12734         * modules/unistdio/u8-vsnprintf: New file.
12735         * modules/unistdio/u8-vsprintf: New file.
12736         * modules/unistdio/u8-u8-asnprintf: New file.
12737         * modules/unistdio/u8-u8-asprintf: New file.
12738         * modules/unistdio/u8-u8-snprintf: New file.
12739         * modules/unistdio/u8-u8-sprintf: New file.
12740         * modules/unistdio/u8-u8-vasnprintf: New file.
12741         * modules/unistdio/u8-u8-vasprintf: New file.
12742         * modules/unistdio/u8-u8-vsnprintf: New file.
12743         * modules/unistdio/u8-u8-vsprintf: New file.
12744         * modules/unistdio/u16-asnprintf: New file.
12745         * modules/unistdio/u16-asprintf: New file.
12746         * modules/unistdio/u16-printf-parse: New file.
12747         * modules/unistdio/u16-snprintf: New file.
12748         * modules/unistdio/u16-sprintf: New file.
12749         * modules/unistdio/u16-vasnprintf: New file.
12750         * modules/unistdio/u16-vasprintf: New file.
12751         * modules/unistdio/u16-vsnprintf: New file.
12752         * modules/unistdio/u16-vsprintf: New file.
12753         * modules/unistdio/u16-u16-asnprintf: New file.
12754         * modules/unistdio/u16-u16-asprintf: New file.
12755         * modules/unistdio/u16-u16-snprintf: New file.
12756         * modules/unistdio/u16-u16-sprintf: New file.
12757         * modules/unistdio/u16-u16-vasnprintf: New file.
12758         * modules/unistdio/u16-u16-vasprintf: New file.
12759         * modules/unistdio/u16-u16-vsnprintf: New file.
12760         * modules/unistdio/u16-u16-vsprintf: New file.
12761         * modules/unistdio/u32-asnprintf: New file.
12762         * modules/unistdio/u32-asprintf: New file.
12763         * modules/unistdio/u32-printf-parse: New file.
12764         * modules/unistdio/u32-snprintf: New file.
12765         * modules/unistdio/u32-sprintf: New file.
12766         * modules/unistdio/u32-vasnprintf: New file.
12767         * modules/unistdio/u32-vasprintf: New file.
12768         * modules/unistdio/u32-vsnprintf: New file.
12769         * modules/unistdio/u32-vsprintf: New file.
12770         * modules/unistdio/u32-u32-asnprintf: New file.
12771         * modules/unistdio/u32-u32-asprintf: New file.
12772         * modules/unistdio/u32-u32-snprintf: New file.
12773         * modules/unistdio/u32-u32-sprintf: New file.
12774         * modules/unistdio/u32-u32-vasnprintf: New file.
12775         * modules/unistdio/u32-u32-vasprintf: New file.
12776         * modules/unistdio/u32-u32-vsnprintf: New file.
12777         * modules/unistdio/u32-u32-vsprintf: New file.
12778         * modules/unistdio/ulc-asnprintf-tests: New file.
12779         * modules/unistdio/ulc-vasnprintf-tests: New file.
12780         * modules/unistdio/ulc-vasprintf-tests: New file.
12781         * modules/unistdio/ulc-vsnprintf-tests: New file.
12782         * modules/unistdio/ulc-vsprintf-tests: New file.
12783         * modules/unistdio/u8-asnprintf-tests: New file.
12784         * modules/unistdio/u8-vasnprintf-tests: New file.
12785         * modules/unistdio/u8-vasprintf-tests: New file.
12786         * modules/unistdio/u8-vsnprintf-tests: New file.
12787         * modules/unistdio/u8-vsprintf-tests: New file.
12788         * modules/unistdio/u16-asnprintf-tests: New file.
12789         * modules/unistdio/u16-vasnprintf-tests: New file.
12790         * modules/unistdio/u16-vasprintf-tests: New file.
12791         * modules/unistdio/u16-vsnprintf-tests: New file.
12792         * modules/unistdio/u16-vsprintf-tests: New file.
12793         * modules/unistdio/u32-asnprintf-tests: New file.
12794         * modules/unistdio/u32-vasnprintf-tests: New file.
12795         * modules/unistdio/u32-vasprintf-tests: New file.
12796         * modules/unistdio/u32-vsnprintf-tests: New file.
12797         * modules/unistdio/u32-vsprintf-tests: New file.
12798         * MODULES.html.sh (Unicode string functions): Add the new modules.
12799
12800 2007-07-01  Bruno Haible  <bruno@clisp.org>
12801
12802         * lib/sprintf.c (sprintf): Limit the available length estimation,
12803         to avoid address wraparound.
12804         * lib/vsprintf.c (vsprintf): Likewise.
12805         * modules/sprintf-posix (Dependencies): Add stdint.
12806         * modules/vsprintf-posix (Dependencies): Likewise.
12807
12808 2007-07-01  Bruno Haible  <bruno@clisp.org>
12809
12810         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12811         Windows PATH as well. Conservative double-quoting. Comments.
12812
12813 2007-07-01  Bruno Haible  <bruno@clisp.org>
12814             Eric Blake  <ebb9@byu.net>
12815             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12816
12817         * gnulib-tool (self_abspathname): Fix algorithm to cope with
12818         empty components in $PATH, denoting '.'.
12819
12820 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12821
12822         * gnulib-tool: Fix indentation.
12823         (func_create_megatestdir): Likewise.
12824         Report by Bruno Haible.
12825
12826 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12827
12828         Sync from Automake.
12829         * build-aux/gnupload: Fix shell portability issues with for loops.
12830         Report by Karl Berry.
12831
12832 2007-06-29  Simon Josefsson  <simon@josefsson.org>
12833
12834         * build-aux/maint.mk (POURL): Use translationproject.org.
12835
12836 2007-06-27  Simon Josefsson  <simon@josefsson.org>
12837             Bruno Haible  <bruno@clisp.org>
12838
12839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12840         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12841         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12842         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12843         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12844
12845 2007-06-27  Bruno Haible  <bruno@clisp.org>
12846
12847         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12848         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12849
12850 2007-06-26  Karl Berry  <karl@gnu.org>
12851
12852         * MODULES.html.sh: remove xreadlink-with-size.
12853
12854 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12855
12856         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12857         method that I hope also handles the double-include problem noted
12858         by Bruno Haible in
12859         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12860
12861 2007-06-23  Bruno Haible  <bruno@clisp.org>
12862
12863         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12864         Don't let the 'mostlyclean' target fail if the last subdirectory could
12865         not be removed.
12866         Reported by Karl Berry.
12867
12868 2007-06-23  Bruno Haible  <bruno@clisp.org>
12869
12870         * gnulib-tool (echo): Add a speedier workaround for ksh.
12871         * tests/test-echo.sh: Likewise.
12872
12873 2007-06-23  Bruno Haible  <bruno@clisp.org>
12874
12875         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12876         * tests/test-echo.sh: Likewise.
12877
12878 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12879
12880         * gnulib-tool (IFS): Initialize early, so we don't set it to
12881         empty later.
12882         (self_abspathname): Rewrite algorithm to set it, reindent.
12883         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12884         (func_create_megatestdir): Merge some sed scripts.
12885
12886 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12887
12888         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12889         exposed by Sun Studio 11 cc on Solaris 8.
12890
12891 2007-06-22  Bruno Haible  <bruno@clisp.org>
12892
12893         * gnulib-tool (echo): Ensure the echo primitive does not interpret
12894         backslashes.
12895         * tests/test-echo.sh: New file.
12896
12897 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12898
12899         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12900         simplify `sed_replace_build_aux' scripts, they are portable but
12901         echoing them with `echo' is not.
12902         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12903
12904 2007-06-21  Karl Berry  <karl@gnu.org>
12905
12906         * config/srclist.txt: guess we can't handle the licenses via
12907         srclist at the moment.
12908
12909 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12910
12911         * MODULES.html.sh: Add include_next.
12912         * modules/include_next: New file.
12913
12914 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12915
12916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12917         INCLUDE_NEXT.
12918         (gl_CHECK_NEXT_HEADERS): New macro.
12919         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12920         the obsolescent gl_ABSOLUTE_HEADER.
12921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12922         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12923         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12925         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12926         * m4/math_h.m4 (gl_MATH_H): Likewise.
12927         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12928         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12929         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12930         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12931         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12932         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12933         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12936         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12937         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12938         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12939         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12940         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12941         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12942         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12943         * m4/inttypes.m4 (gl_INTTYPES_H): Define
12944         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12945         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12946         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12947         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12948         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12949         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12950         * lib/float_.h: Likewise.
12951         * lib/inttypes_.h: Likewise.
12952         * lib/math_.h: Likewise.
12953         * lib/search_.h: Likewise.
12954         * lib/signal_.h: Likewise.
12955         * lib/stdint_.h: Likewise.
12956         * lib/stdio_.h: Likewise.
12957         * lib/stdlib_.h: Likewise.
12958         * lib/string_.h: Likewise.
12959         * lib/sys_stat_.h: Likewise.
12960         * lib/sys_time_.h: Likewise.
12961         * lib/time_.h: Likewise.
12962         * lib/unistd_.h: Likewise.
12963         * lib/wchar_.h: Likewise.
12964         * lib/wctype_.h: Likewise.
12965         * lib/dirent_.h: Likewise.
12966         * lib/iconv_.h: Likewise.
12967         * lib/locale_.h: Likewise.
12968         * lib/netinet_in_.h: Likewise.
12969         * lib/sys_select_.h: Likewise.
12970         * lib/sys_socket_.h: Likewise.
12971         * lib/sysexits_.h: Likewise.
12972         * modules/fcntl (Depends-on): Depend on include_next, not
12973         absolute_header.
12974         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12975         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12976         * modules/fchdir: Likewise.
12977         * modules/float: Likewise.
12978         * modules/iconv_open: Likewise.
12979         * modules/inttypes: Likewise.
12980         * modules/locale: Likewise.
12981         * modules/math: Likewise.
12982         * modules/netinet_in: Likewise.
12983         * modules/search: Likewise.
12984         * modules/signal: Likewise.
12985         * modules/stdint: Likewise.
12986         * modules/stdio: Likewise.
12987         * modules/stdlib: Likewise.
12988         * modules/string: Likewise.
12989         * modules/sys_select: Likewise.
12990         * modules/sys_socket: Likewise.
12991         * modules/sys_stat: Likewise.
12992         * modules/sys_time: Likewise.
12993         * modules/sysexits: Likewise.
12994         * modules/time: Likewise.
12995         * modules/unistd: Likewise.
12996         * modules/wchar: Likewise.
12997         * modules/wctype: Likewise.
12998         * modules/sys_stat: Change maintainer to "all".
12999         * modules/unistd: Likewise.
13000
13001 2007-06-20  Karl Berry  <karl@gnu.org>
13002
13003         * config/srclist.txt: track www changes in license files.
13004
13005 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
13006
13007         * build-aux/bootstrap: Remove stray dot.
13008         Make sure build_aux settings are honored when linking
13009         gnulib_extra_files.
13010
13011 2007-06-19  Eric Blake  <ebb9@byu.net>
13012
13013         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13014         Allow compilation on cygwin.
13015
13016 2007-06-19  Jim Meyering  <jim@meyering.net>
13017
13018         xreadlink-with-size: Remove module.  No longer used.
13019         Ex-callers now use xreadlink or mreadlink-with-size.
13020         * modules/xreadlink-with-size: Remove module.
13021         * lib/xreadlink-with-size.c: Remove file.
13022         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13023         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13024         just before the function definition *is* accurate.
13025
13026         Eliminate one way canonicalize_filename_mode could exit.
13027         * lib/canonicalize.c (canonicalize_filename_mode):
13028         Use mreadlink_with_size, not xreadlink_with_size.
13029
13030 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13031
13032         Detect porting problems to FreeBSD/arm, which has time_t wider than
13033         long int.  Original problem reported for GNU diff by Xin Li in
13034         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13035         * modules/getdate (Depends-on): Add intprops, verify.
13036         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13037         is an integer type no wider than long int.
13038
13039 2007-06-18  Jim Meyering  <jim@meyering.net>
13040
13041         New module: mreadlink-with-size.
13042         * MODULES.html.sh: Add mreadlink-with-size.
13043         * modules/mreadlink-with-size: New module
13044         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13045         not xreadlink-with-size.
13046         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13047
13048 2007-06-16  Bruno Haible  <bruno@clisp.org>
13049
13050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13051         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13052         Reported by Gary V. Vaughan <gary@gnu.org>.
13053
13054 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         Revamp lchown so that it lives in unistd.h where it belongs.
13057         * lib/lchown.h: Remove.
13058         * lib/dirchownmod.c: Don't include lib/lchown.h.
13059         * lib/fchownat.c: Likewise.
13060         * lib/openat.c: Likewise.
13061         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13062         does not follow symlinks.
13063         (EOPNOTSUPP): Define if not defined.
13064         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13065         is defined to 0.
13066         (lchown): New decl.
13067         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13068         Do not check for lchown decl.
13069         Set REPLACE_LCHOWN.
13070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13071         REPLACE_LCHOWN.
13072         * modules/chown: Make it clear it follows symlinks.
13073         * modules/lchown: Make it clear it doesn't follow symlinks.
13074         (Files): Remove lib/lchown.h
13075         (Depends-on): Add unistd.
13076         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13077         (Include): Include <unistd.h>, not "lchown.h".
13078         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13079         REPLACE_LCHOWN.
13080
13081 2007-06-15  Jim Meyering  <jim@meyering.net>
13082
13083         Change license (GPL to LGPL) of fsusage and dependents.
13084         * modules/fsusage (License): Change to LGPL.
13085         * modules/full-read (License): Likewise.
13086         * modules/full-write (License): Likewise.
13087         * modules/safe-read (License): Likewise.
13088         * modules/safe-write (License): Likewise.
13089
13090 2007-06-14  Ben Pfaff  <blp@gnu.org>
13091
13092         Missing part of allocsa -> malloca transition.
13093         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13094         gl_MALLOCA.
13095
13096 2007-06-12  Bruno Haible  <bruno@clisp.org>
13097
13098         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13099         to ia64, x86_64, i386.
13100         Reported by Eric Blake.
13101
13102 2007-06-12  Bruno Haible  <bruno@clisp.org>
13103
13104         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13105         cross-compiling to x86_64.
13106
13107 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
13108
13109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13110         glitch reported by Ralf Wildenhues in
13111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13112
13113         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13114         Vin Shelton.
13115
13116 2007-06-11  Bruno Haible  <bruno@clisp.org>
13117
13118         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13119         replacement string.
13120         Reported by Eric Blake.
13121
13122 2007-06-10  Bruno Haible  <bruno@clisp.org>
13123
13124         Prepare vasnprintf code for use with Unicode strings.
13125         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13126         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13127         TYPE_U32_STRING.
13128         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13129         a_u32_string variants.
13130         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13131         * lib/printf-args.c: Don't include config.h and the specification
13132         header if PRINTF_FETCHARGS is already defined.
13133         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13134         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13135         TYPE_U16_STRING, TYPE_U32_STRING.
13136         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13137         u16_directive, u16_directives, u32_directive, u32_directives): New
13138         types.
13139         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13140         New declarations.
13141         * lib/printf-parse.c: Don't include config.h and the specification
13142         header if PRINTF_PARSE is already defined. Eliminate the set of
13143         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13144         them now. Include c-ctype.h.
13145         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13146         directive and CHAR_T_ONLY_ASCII.
13147         * lib/vasnprintf.c: Don't include config.h and the specification header
13148         if VASNPRINTF is already defined.
13149         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13150         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13151         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13152         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13153         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13154         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13155         code accordingly.
13156         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13157         pad_ourselves also in this case, with the 'c' and 's' directives, and
13158         with a different notion of "width".
13159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13160
13161 2007-06-10  Bruno Haible  <bruno@clisp.org>
13162
13163         * modules/unistr/u32-mbsnlen: New file.
13164         * lib/unistr/u32-mbsnlen.c: New file.
13165
13166         * modules/unistr/u16-mbsnlen: New file.
13167         * lib/unistr/u16-mbsnlen.c: New file.
13168
13169         * modules/unistr/u8-mbsnlen: New file.
13170         * lib/unistr/u8-mbsnlen.c: New file.
13171
13172         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13173         declarations.
13174
13175 2007-06-10  Bruno Haible  <bruno@clisp.org>
13176
13177         * lib/string_.h (mbsnlen): New declaration.
13178         * lib/mbsnlen.c: New file.
13179         * m4/mbsnlen.m4: New file.
13180         * modules/mbsnlen: New file.
13181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13182         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13183         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13184
13185 2007-06-10  Bruno Haible  <bruno@clisp.org>
13186
13187         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13188
13189 2007-06-10  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13192         * lib/mbuiter.h: Likewise.
13193
13194 2007-06-10  Bruno Haible  <bruno@clisp.org>
13195
13196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13197         declaration.
13198
13199 2007-06-10  Karl Berry  <karl@gnu.org>
13200
13201         * config/srclist.txt: remove gettext entries, Bruno prefers
13202         to update individually.
13203
13204 2007-06-10  Bruno Haible  <bruno@clisp.org>
13205
13206         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13207         'maxlen'. Ensure only length + width bytes are allocated, not
13208         length + 1 + width.
13209
13210 2007-06-09  Bruno Haible  <bruno@clisp.org>
13211
13212         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13213         (CHAR_T): Remove macro.
13214         (VASNPRINTF): Update.
13215
13216 2007-06-09  Bruno Haible  <bruno@clisp.org>
13217
13218         * MODULES.html.sh (Unicode string functions): Add the new modules.
13219
13220         * modules/uniconv/u32-conv-to-enc: New file.
13221         * lib/uniconv/u32-conv-to-enc.c: New file.
13222         * modules/uniconv/u32-conv-to-enc-tests: New file.
13223         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13224
13225         * modules/uniconv/u16-conv-to-enc: New file.
13226         * lib/uniconv/u16-conv-to-enc.c: New file.
13227         * lib/uniconv/u-conv-to-enc.h: New file.
13228         * modules/uniconv/u16-conv-to-enc-tests: New file.
13229         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13230
13231         * modules/uniconv/u8-conv-to-enc: New file.
13232         * lib/uniconv/u8-conv-to-enc.c: New file.
13233         * modules/uniconv/u8-conv-to-enc-tests: New file.
13234         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13235
13236         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13237         u32_conv_to_encoding): New declarations.
13238
13239 2007-06-09  Bruno Haible  <bruno@clisp.org>
13240
13241         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13242
13243 2007-06-09  Bruno Haible  <bruno@clisp.org>
13244
13245         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13246         * modules/malloca: Renamed from modules/allocsa, updated.
13247         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13248         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13249         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13250         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13251         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13252         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13253         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13254         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13255         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13256         * modules/c-strcasestr (Depends-on): Update.
13257         * lib/c-strcasestr.c: Update.
13258         * modules/c-strstr (Depends-on): Update.
13259         * lib/c-strstr.c: Update.
13260         * modules/canonicalize-lgpl (Depends-on): Update.
13261         * lib/canonicalize-lgpl.c: Update.
13262         * modules/clean-temp (Depends-on): Update.
13263         * lib/clean-temp.c: Update.
13264         * modules/csharpcomp (Depends-on): Update.
13265         * lib/csharpcomp.c: Update.
13266         * modules/csharpexec (Depends-on): Update.
13267         * lib/csharpexec.c: Update.
13268         * modules/javacomp (Depends-on): Update.
13269         * lib/javacomp.c: Update.
13270         * modules/javaexec (Depends-on): Update.
13271         * lib/javaexec.c: Update.
13272         * modules/mbscasestr (Depends-on): Update.
13273         * lib/mbscasestr.c: Update.
13274         * modules/mbsstr (Depends-on): Update.
13275         * lib/mbsstr.c: Update.
13276         * modules/setenv (Depends-on): Update.
13277         * lib/setenv.c: Update.
13278         * modules/strcasestr (Depends-on): Update.
13279         * lib/strcasestr.c: Update.
13280         * modules/striconveha (Depends-on): Update.
13281         * lib/striconveha.c: Update.
13282         * modules/relocatable-prog-wrapper (Files): Update.
13283         * lib/relocwrapper.c: Update.
13284         * build-aux/install-reloc: Update.
13285         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13286
13287 2007-06-08  Bruno Haible  <bruno@clisp.org>
13288
13289         Port to uClibc.
13290         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13291         * lib/fpurge.c (fpurge): Likewise.
13292         * lib/freading.c (freading): Likewise.
13293         * lib/fseeko.c (rpl_fseeko): Likewise.
13294         * lib/fseterr.c (fseterr): Likewise.
13295         * lib/fwriting.c (fwriting): Likewise.
13296         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13297
13298 2007-06-08  Bruno Haible  <bruno@clisp.org>
13299
13300         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13301         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13302         * modules/gettext (Files): Add m4/intlmacosx.m4.
13303
13304 2007-06-07  Bruno Haible  <bruno@clisp.org>
13305
13306         * modules/localename-tests: New file.
13307         * tests/test-localename.c: New file.
13308
13309         New module 'localename'.
13310         * lib/localename.h: New file.
13311         * lib/localename.c: New file, from GNU gettext.
13312         * m4/localename.m4: New file.
13313         * modules/localename: New file.
13314
13315 2007-06-07  Bruno Haible  <bruno@clisp.org>
13316
13317         Work around the lack of <wchar.h> on some builds of uClibc.
13318         * doc/headers/wchar.texi: Update.
13319         * lib/wchar_.h: Include <wchar.h> only if it exists.
13320         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13321         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13322         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13323         doesn't exist.
13324         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13325         * modules/mbfile (Depends-on): Add wchar.
13326         * modules/mbiter (Depends-on): Likewise.
13327         * modules/mbuiter (Depends-on): Likewise.
13328         Reported by Simon Josefsson.
13329
13330 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13331
13332         Work around problem reported by Steven M. Schweda in
13333         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13334         Tru64 5.1B with the Compaq compiler environment installed declares
13335         an 'isblank' function but does not define it in the C library.
13336         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13337         * lib/regex_internal.h (isblank): Likewise.
13338         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13339         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13340
13341 2007-06-05  Bruno Haible  <bruno@clisp.org>
13342
13343         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13344         ia64.
13345         * modules/printf-safe: New file.
13346         * modules/fprintf-posix (Depends-on): Add printf-safe.
13347         * modules/printf-posix (Depends-on): Likewise.
13348         * modules/snprintf-posix (Depends-on): Likewise.
13349         * modules/sprintf-posix (Depends-on): Likewise.
13350         * modules/vasnprintf-posix (Depends-on): Likewise.
13351         * modules/vasprintf-posix (Depends-on): Likewise.
13352         * modules/vfprintf-posix (Depends-on): Likewise.
13353         * modules/vprintf-posix (Depends-on): Likewise.
13354         * modules/vsnprintf-posix (Depends-on): Likewise.
13355         * modules/vsprintf-posix (Depends-on): Likewise.
13356         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13357         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13358         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13359         "no" on i386, x86_64, ia64.
13360         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13361         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13362         on i386, x86_64, ia64.
13363         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13364         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13365         on i386, x86_64, ia64.
13366         * tests/test-vasnprintf-posix.c: Include float.h.
13367         (LDBL80_WORDS): New macro.
13368         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13369         on i386, x86_64, ia64.
13370         * tests/test-vasprintf-posix.c: Include float.h.
13371         (LDBL80_WORDS): New macro.
13372         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13373         on i386, x86_64, ia64.
13374         * tests/test-snprintf-posix.c: Include float.h.
13375         * tests/test-sprintf-posix.c: Likewise.
13376         * tests/test-vsnprintf-posix.c: Likewise.
13377         * tests/test-vsprintf-posix.c: Likewise.
13378
13379 2007-06-05  Bruno Haible  <bruno@clisp.org>
13380
13381         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13382         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13383         non-IEEE numbers on i386, x86_64, ia64.
13384         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13385         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13386         * tests/test-isnanl.h: Include float.h.
13387         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13388
13389 2007-06-05  Bruno Haible  <bruno@clisp.org>
13390
13391         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13392         also the %a / %A. Handle the %a / %A code before this extra handling.
13393
13394 2007-06-05  Bruno Haible  <bruno@clisp.org>
13395
13396         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13397         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13398
13399 2007-06-05  Bruno Haible  <bruno@clisp.org>
13400
13401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13402         typo in variable name.
13403
13404 2007-06-05  Eric Blake  <ebb9@byu.net>
13405
13406         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13407         Reported by Simon Josefsson.
13408
13409 2007-06-04  Bruno Haible  <bruno@clisp.org>
13410
13411         Avoid test failures on some PowerPC platforms.
13412         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13413         Define differently for PowerPC.
13414         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13415         Reported by Gary V. Vaughan <gary@gnu.org>.
13416
13417 2007-06-02  Bruno Haible  <bruno@clisp.org>
13418
13419         Fix test-stdint failure on FreeBSD/ia64.
13420         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13421         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13422         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13423         * doc/headers/stdint.texi: Update.
13424
13425 2007-06-01  Bruno Haible  <bruno@clisp.org>
13426
13427         * tests/test-binary-io.c (main): Pass a third argument to open().
13428         Reported by Gary V. Vaughan <gary@gnu.org>.
13429
13430 2007-06-01  Bruno Haible  <bruno@clisp.org>
13431
13432         * doc/functions/frexpl.texi: Update for mingw.
13433
13434 2007-06-01  Bruno Haible  <bruno@clisp.org>
13435
13436         * tests/test-lseek.c (main): Disable test of errno for invalid third
13437         argument.
13438         * doc/functions/lseek.texi: Update.
13439         Reported by Gary V. Vaughan <gary@gnu.org>.
13440
13441 2007-05-28  Bruno Haible  <bruno@clisp.org>
13442
13443         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13444
13445 2007-05-31  Eric Blake  <ebb9@byu.net>
13446
13447         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13448         cross compiling.
13449
13450 2007-05-30  Eric Blake  <ebb9@byu.net>
13451         and Bruno Haible  <bruno@clisp.org>
13452
13453         Work around mingw test failures exposed by m4-1.4.9b.
13454         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13455         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13456         moment.
13457
13458 2007-05-30  Bruno Haible  <bruno@clisp.org>
13459
13460         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13461         assuming that they are closed. Needed on HP-UX 11.
13462
13463 2007-05-29  Bruno Haible  <bruno@clisp.org>
13464
13465         Fix a problem with #include_next.
13466         * lib/dirent_.h: Split the double-inclusion guard.
13467         * lib/fcntl_.h: Likewise.
13468         * lib/float_.h: Likewise.
13469         * lib/iconv_.h: Likewise.
13470         * lib/inttypes_.h: Likewise.
13471         * lib/locale_.h: Likewise.
13472         * lib/math_.h: Likewise.
13473         * lib/netinet_in_.h: Likewise.
13474         * lib/search_.h: Likewise.
13475         * lib/signal_.h: Likewise.
13476         * lib/stdint_.h: Likewise.
13477         * lib/stdio_.h: Likewise.
13478         * lib/stdlib_.h: Likewise.
13479         * lib/string_.h: Likewise.
13480         * lib/sys_select_.h: Likewise.
13481         * lib/sys_socket_.h: Likewise.
13482         * lib/sys_stat_.h: Likewise.
13483         * lib/sys_time_.h: Likewise.
13484         * lib/sysexits_.h: Likewise.
13485         * lib/time_.h: Likewise.
13486         * lib/unistd_.h: Likewise.
13487         * lib/wchar_.h: Likewise.
13488         * lib/wctype_.h: Likewise.
13489
13490 2007-05-29  Bruno Haible  <bruno@clisp.org>
13491
13492         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13493         for the moment.
13494
13495 2007-05-29  Bruno Haible  <bruno@clisp.org>
13496
13497         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13498         invocation.
13499         Reported by Eric Blake.
13500
13501 2007-05-29  Bruno Haible  <bruno@clisp.org>
13502
13503         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13504         compiling case.
13505
13506 2007-05-29  Eric Blake  <ebb9@byu.net>
13507             Bruno Haible  <bruno@clisp.org>
13508
13509         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13510         cross compiles.
13511
13512 2007-05-28  Eric Blake  <ebb9@byu.net>
13513
13514         * modules/closein-tests (test_closein_LDADD): Support test on
13515         cygwin with libtool.
13516
13517 2007-05-28  Bruno Haible  <bruno@clisp.org>
13518
13519         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13520         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13521         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13522         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13523         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13524         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13525         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13526         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13527         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13528
13529 2007-05-28  Eric Blake  <ebb9@byu.net>
13530
13531         Unconditionally include <config.h> in unit tests.
13532         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13533         * tests/test-allocsa.c, tests/test-arcfour.c,
13534         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13535         tests/test-array_list.c, tests/test-array_oset.c,
13536         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13537         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13538         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13539         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13540         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13541         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13542         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13543         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13544         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13545         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13546         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13547         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13548         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13549         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13550         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13551         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13552         test-md5.c, test-memmem.c, test-printf-posix.c,
13553         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13554         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13555         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13556         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13557         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13558         test-vasnprintf-posix2.c, test-vasnprintf.c,
13559         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13560         test-vfprintf-posix.c, test-vprintf-posix.c,
13561         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13562         test-xvasprintf.c: Likewise.
13563
13564 2007-05-28  Bruno Haible  <bruno@clisp.org>
13565
13566         * gnulib-tool (func_import): Remember the --with-tests command-line
13567         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13568         Reported by Eric Blake.
13569
13570 2007-05-28  Bruno Haible  <bruno@clisp.org>
13571
13572         * modules/ftell-tests: New file.
13573         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13574         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13575
13576         * lib/ftell.c: New file.
13577         * modules/ftell: New file.
13578         * m4/ftell.m4: New file.
13579         * doc/functions/ftell.texi: Update.
13580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13581         REPLACE_FTELL.
13582         * lib/stdio_.h (rpl_ftell): New declaration.
13583         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13584         REPLACE_FTELL.
13585
13586 2007-05-28  Eric Blake  <ebb9@byu.net>
13587
13588         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13589
13590 2007-05-28  Bruno Haible  <bruno@clisp.org>
13591
13592         * modules/fseek-tests: New file.
13593         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13594         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13595
13596         * lib/fseek.c: New file.
13597         * modules/fseek: New file.
13598         * m4/fseek.m4: New file.
13599         * doc/functions/fseek.texi: Update.
13600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13601         REPLACE_FSEEK.
13602         * lib/stdio_.h (rpl_fseek): New declaration.
13603         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13604         REPLACE_FSEEK.
13605
13606 2007-05-28  Bruno Haible  <bruno@clisp.org>
13607
13608         * lib/stdio_.h (fflush): More comments.
13609
13610 2007-05-28  Bruno Haible  <bruno@clisp.org>
13611
13612         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13613         runtime test.
13614
13615 2007-05-28  Eric Blake  <ebb9@byu.net>
13616
13617         Improve lseek module.
13618         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13619         * lib/unistd_.h (lseek): Scale back link warning message.
13620         * tests/test-lseek.c: Beef up test.
13621         * tests/test-lseek.sh: Exercise more facets of lseek.
13622         Reported by Bruno Haible.
13623
13624 2007-05-28  Bruno Haible  <bruno@clisp.org>
13625
13626         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13627         to define.
13628
13629 2007-05-27  Bruno Haible  <bruno@clisp.org>
13630
13631         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13632
13633 2007-05-27  Bruno Haible  <bruno@clisp.org>
13634
13635         * modules/openmp: New file.
13636         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13637         Noah Misch.
13638
13639 2007-05-26  Bruno Haible  <bruno@clisp.org>
13640
13641         * modules/chdir-long (Depends-on): Add fchdir.
13642         * modules/chdir-safer (Depends-on): Likewise.
13643         * modules/fts (Depends-on): Likewise.
13644         * modules/fts-lgpl (Depends-on): Likewise.
13645         * modules/openat (Depends-on): Likewise.
13646         * modules/savewd (Depends-on): Likewise.
13647
13648 2007-05-24  Eric Blake  <ebb9@byu.net>
13649
13650         Fix lseek on mingw.
13651         * modules/lseek: New module.
13652         * m4/lseek.m4: New file.
13653         * lib/lseek.c: New file.
13654         * modules/lseek-tests: New file.
13655         * tests/test-lseek.c: New file.
13656         * tests/test-lseek.sh: New file.
13657         * MODULES.html.sh: Document lseek module.
13658         * modules/fflush (Depends-on): Add lseek, fseeko.
13659         * modules/fseeko (Depends-on): Likewise.
13660         * modules/ftello (Depends-on): Likewise.
13661         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13662         broken.
13663         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13664         broken.
13665         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13666         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13667         * lib/ftello.c (rpl_ftello): Likewise.
13668         * tests/test-fseeko.c (main): Test this.
13669         * tests/test-fseeko.sh: Likewise.
13670         * tests/test-ftello.c (main): Likewise.
13671         * tests/test-ftello.sh: Likewise.
13672         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13673         implies replacing fseek.
13674         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13675         HAVE_FTELLO.
13676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13677         * modules/unistd (Makefile.am): Likewise.
13678         * lib/unistd_.h (lseek): Declare a replacement.
13679         * doc/functions/lseek.texi (lseek): Document this fix.
13680         * doc/functions/fseek.texi (fseek): Likewise.
13681         * doc/functions/ftell.texi (ftell): Likewise.
13682
13683 2007-05-24  Bruno Haible  <bruno@clisp.org>
13684
13685         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13686         in the printed representation of a NaN.
13687         * tests/test-vasprintf-posix.c (test_function): Likewise.
13688         * tests/test-snprintf-posix.h (test_function): Likewise.
13689         * tests/test-sprintf-posix.h (test_function): Likewise.
13690         Reported by Eric Blake.
13691
13692 2007-05-23  Eric Blake  <ebb9@byu.net>
13693
13694         Fix fseeko/ftello on cygwin 1.5.24.
13695         * doc/functions/fseeko.texi (fseeko): Document the fix.
13696         * doc/functions/ftello.texi (ftello): Document the fix.
13697         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13698         * doc/functions/stdout.text (stdout): New file.
13699         * doc/functions/stderr.text (stderr): New file.
13700         * doc/gnulib.texi (Function Substitutes): Use new files.
13701         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13702         prior to 1.7.0.
13703         * tests/test-ftello.c (main): Likewise for ftello.
13704         * tests/test-fseeko.sh: New file.
13705         * tests/test-ftello.sh: New file.
13706         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13707         with seekable stdin.
13708         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13709         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13710         (gl_REPLACE_FSEEKO): New macro.
13711         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13712         * modules/fseeko (Files): Distribute fseeko.c.
13713         * modules/ftello (Files): Distribute ftello.c.
13714         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13715         mode.
13716         * lib/ftello.c (rpl_ftello): New file.
13717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13718         fseeko, ftello.
13719         (gl_STDIN_LARGE_OFFSET): New macro.
13720         * modules/stdio (Makefile.am): Perform the replacement.
13721         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13722
13723 2007-05-23  Bruno Haible  <bruno@clisp.org>
13724
13725         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13726         GNULIB_POSIXCHECK is defined.
13727
13728 2007-05-21  Bruno Haible  <bruno@clisp.org>
13729
13730         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13731         Check also the output for NaN arguments. When cross-compiling, guess
13732         no on IRIX.
13733         * lib/vasnprintf.c: Update comments.
13734         * tests/test-vasnprintf-posix.c (strisnan): New function.
13735         (test_function): Use it.
13736         * tests/test-vasprintf-posix.c (strisnan): New function.
13737         (test_function): Use it.
13738         * tests/test-snprintf-posix.h (strisnan): New function.
13739         (test_function): Use it.
13740         * tests/test-sprintf-posix.h (strisnan): New function.
13741         (test_function): Use it.
13742         Reported by Eric Blake.
13743
13744 2007-05-20  Bruno Haible  <bruno@clisp.org>
13745
13746         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13747         numbers that fails on BeOS.
13748         * doc/functions/frexpl.texi: Update.
13749
13750 2007-05-20  Jim Meyering  <jim@meyering.net>
13751
13752         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13753         forced upon us by glibc-2.6.
13754
13755 2007-05-20  Bruno Haible  <bruno@clisp.org>
13756
13757         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13758         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13759         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13760         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13761         NEED_PRINTF_INFINITE.
13762         (is_infinitel): New function.
13763         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13765         gl_PREREQ_VASNPRINTF_INFINITE.
13766         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13768         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13769         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13770         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13771         gl_PREREQ_VASNPRINTF_INFINITE.
13772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13779         * doc/functions/fprintf.texi: Update.
13780         * doc/functions/printf.texi: Update.
13781         * doc/functions/snprintf.texi: Update.
13782         * doc/functions/sprintf.texi: Update.
13783         * doc/functions/vfprintf.texi: Update.
13784         * doc/functions/vprintf.texi: Update.
13785         * doc/functions/vsnprintf.texi: Update.
13786         * doc/functions/vsprintf.texi: Update.
13787
13788 2007-05-20  Bruno Haible  <bruno@clisp.org>
13789
13790         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13791         was not found in libc.
13792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13793
13794 2007-05-20  Bruno Haible  <bruno@clisp.org>
13795
13796         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13797         printed as "-nan" instead of "nan".
13798         * tests/test-vasprintf-posix.c (test_function): Likewise.
13799         * tests/test-snprintf-posix.h (test_function): Likewise.
13800         * tests/test-sprintf-posix.h (test_function): Likewise.
13801         Needed for HP-UX 11.
13802
13803 2007-05-20  Jim Meyering  <jim@meyering.net>
13804
13805         Fix buggy test for the fchownat-deref bug.
13806         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13807         symlink required for the run-test.  Without it, this test would
13808         always declare that fchownat doesn't work, and client code would
13809         unnecessarily use the replacement function with fixed libc.
13810         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13811         Reported by Greg Schafer.
13812
13813 2007-05-19  Bruno Haible  <bruno@clisp.org>
13814
13815         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13816         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13817         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13818         Needed for IRIX 6.5 and Solaris 2.5.1.
13819
13820 2007-05-19  Bruno Haible  <bruno@clisp.org>
13821
13822         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13823         (test_function): Skip tests involving -0.0 on platforms where
13824         -0.0 = 0.0.
13825         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13826         (test_function): Skip tests involving -0.0 on platforms where
13827         -0.0 = 0.0.
13828         * tests/test-snprintf-posix.h (have_minus_zero): New function.
13829         (test_function): Skip tests involving -0.0 on platforms where
13830         -0.0 = 0.0.
13831         * tests/test-sprintf-posix.h (have_minus_zero): New function.
13832         (test_function): Skip tests involving -0.0 on platforms where
13833         -0.0 = 0.0.
13834         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13835         tests.
13836         * tests/test-printf-posix.h (test_function): Likewise.
13837         * tests/test-printf-posix.output: Remove all -0.0 related results.
13838         Needed for IRIX 6.5.
13839
13840 2007-05-19  Bruno Haible  <bruno@clisp.org>
13841
13842         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13843         printed as "nan0x7fffffff" instead of "nan".
13844         * tests/test-vasprintf-posix.c (test_function): Likewise.
13845         * tests/test-snprintf-posix.h (test_function): Likewise.
13846         * tests/test-sprintf-posix.h (test_function): Likewise.
13847         * tests/test-fprintf-posix.h (NaN): Remove macro.
13848         (test_function): Remove all NaN related tests.
13849         * tests/test-printf-posix.h (NaN): Remove macro.
13850         (test_function): Remove all NaN related tests.
13851         * tests/test-printf-posix.output: Remove all NaN related results.
13852         Needed for IRIX 6.5.
13853
13854 2007-05-19  Bruno Haible  <bruno@clisp.org>
13855
13856         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13858
13859 2007-05-19  Bruno Haible  <bruno@clisp.org>
13860
13861         * lib/float_.h: New file.
13862         * m4/float_h.m4: New file.
13863         * modules/float: New file.
13864         * modules/isnanl (Dependencies): Add float.
13865         * modules/isnanl-nolibm (Dependencies): Likewise.
13866         * modules/mathl (Dependencies): Likewise.
13867         * modules/printf-frexpl (Dependencies): Likewise.
13868         * modules/signbit (Dependencies): Likewise.
13869         * modules/vasnprintf (Dependencies): Likewise.
13870         * doc/headers/float.texi: Update.
13871
13872 2007-05-19  Jim Meyering  <jim@meyering.net>
13873
13874         * lib/utimens.c (gl_futimens): Rename from futimens,
13875         now that glibc-2.6 declares futimens.
13876         * lib/utimens.h: Likewise.
13877
13878 2007-05-19  Bruno Haible  <bruno@clisp.org>
13879
13880         Avoid test failures on mingw.
13881         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13882         * tests/test-printf-posix.sh: Likewise.
13883         * tests/test-vfprintf-posix.sh: Likewise.
13884         * tests/test-vprintf-posix.sh: Likewise.
13885
13886 2007-05-19  Bruno Haible  <bruno@clisp.org>
13887
13888         Fix *printf result for NaN, Inf, -0.0 on mingw.
13889         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13890         * lib/vasnprintf.c: Include math.h and isnan.h.
13891         (is_infinite_or_zero): New function.
13892         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13893         values in the %f, %F, %e, %E, %g, %G directives.
13894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13896         gl_PRINTF_INFINITE and test its result. Invoke
13897         gl_PREREQ_VASNPRINTF_INFINITE.
13898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13902         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13905         * doc/functions/fprintf.texi: Update.
13906         * doc/functions/printf.texi: Update.
13907         * doc/functions/snprintf.texi: Update.
13908         * doc/functions/sprintf.texi: Update.
13909         * doc/functions/vfprintf.texi: Update.
13910         * doc/functions/vprintf.texi: Update.
13911         * doc/functions/vsnprintf.texi: Update.
13912         * doc/functions/vsprintf.texi: Update.
13913
13914 2007-05-19  Bruno Haible  <bruno@clisp.org>
13915
13916         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13917         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13918         Instead of multiplying with 10^k, set extra_zeroes to k.
13919         (scale10_round_long_double): Remove function.
13920
13921 2007-05-18  Bruno Haible  <bruno@clisp.org>
13922
13923         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13924         introduced on 2007-05-06.
13925
13926 2007-05-18  Bruno Haible  <bruno@clisp.org>
13927
13928         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13929         %g directives.
13930         * tests/test-vasprintf-posix.c (test_function): Likewise.
13931         * tests/test-snprintf-posix.h (test_function): Likewise.
13932         * tests/test-sprintf-posix.h (test_function): Likewise.
13933
13934 2007-05-18  Bruno Haible  <bruno@clisp.org>
13935
13936         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13937         (strmatch): New function.
13938         (test_function): Test the %f directive on numbers of various exponents.
13939         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13940         (strmatch): New function.
13941         (test_function): Test the %f directive on numbers of various exponents.
13942         * tests/test-snprintf-posix.h (strmatch): New function.
13943         (test_function): Test the %f directive on numbers of various exponents.
13944         * tests/test-sprintf-posix.h (strmatch): New function.
13945         (test_function): Test the %f directive on numbers of various exponents.
13946         * tests/test-snprintf-posix.c (SIZEOF): New macro.
13947         * tests/test-sprintf-posix.c (SIZEOF): New macro.
13948         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13949         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13950
13951 2007-05-18  Bruno Haible  <bruno@clisp.org>
13952
13953         Add support for 'long double' number output.
13954         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13955         * lib/vasnprintf.c: Include math.h and float+.h.
13956         (mp_limb_t): New type.
13957         (GMP_LIMB_BITS): New macro.
13958         (mp_twolimb_t): New type.
13959         (GMP_TWOLIMB_BITS): New macro.
13960         (mpn_t): New type.
13961         (multiply, divide, convert_to_decimal, decode_long_double,
13962         scale10_round_long_double, scale10_round_decimal_long_double,
13963         floorlog10l): New functions.
13964         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13965         for the %f, %F, %e, %E, %g, %G directives.
13966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13968         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13969         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13977         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13978         * modules/snprintf-posix (Depends-on): Likewise.
13979         * modules/sprintf-posix (Depends-on): Likewise.
13980         * modules/vasnprintf-posix (Depends-on): Likewise.
13981         * modules/vasprintf-posix (Depends-on): Likewise.
13982         * modules/vfprintf-posix (Depends-on): Likewise.
13983         * modules/vsnprintf-posix (Depends-on): Likewise.
13984         * modules/vsprintf-posix (Depends-on): Likewise.
13985         * modules/vasnprintf (Files): Add lib/float+.h.
13986         * doc/functions/fprintf.texi: Update.
13987         * doc/functions/printf.texi: Update.
13988         * doc/functions/snprintf.texi: Update.
13989         * doc/functions/sprintf.texi: Update.
13990         * doc/functions/vfprintf.texi: Update.
13991         * doc/functions/vprintf.texi: Update.
13992         * doc/functions/vsnprintf.texi: Update.
13993         * doc/functions/vsprintf.texi: Update.
13994
13995 2007-05-18  Bruno Haible  <bruno@clisp.org>
13996
13997         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13998
13999 2007-05-18  Bruno Haible  <bruno@clisp.org>
14000
14001         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14002         for printing 64-bit integers. Needed for mingw.
14003
14004 2007-05-18  Bruno Haible  <bruno@clisp.org>
14005
14006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14007         gl_FUNC_FREXPL_WORKS.
14008         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14009
14010 2007-05-18  Bruno Haible  <bruno@clisp.org>
14011
14012         * modules/frexpl-nolibm-tests: New file.
14013
14014         * modules/frexpl-nolibm: New file.
14015         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14016
14017 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14018
14019         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14020         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14021         GCC 4.2, which otherwise issues a lot of warnings.
14022         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14023         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14024         Likewise.
14025         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14026         * modules/iconv_open (iconv.h): Likewise.
14027         * modules/locale (locale.h): Likewise.
14028         * modules/netinet_in (netinet/in.h): Likewise.
14029         * modules/sys_select (sys_select.h): Likewise.
14030         * modules/sys_socket (sys/socket.h): Likewise.
14031         * modules/sys_stat (sys/stat.h): Likewise.
14032         * modules/sysexits (sysexits.h): Likewise.
14033         * modules/unistd (unistd.h): Likewise.
14034
14035 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14036
14037         * modules/closein-tests (Makefile.am): Distribute
14038         `test-closein.sh'.
14039
14040 2007-05-17  Bruno Haible  <bruno@clisp.org>
14041
14042         * tests/test-printf-posix.output: Renamed from
14043         tests/test-fprintf-posix.out.
14044         * modules/fprintf-posix-tests: Update.
14045         * modules/printf-posix-tests: Update.
14046         * modules/vfprintf-posix-tests: Update.
14047         * modules/vprintf-posix-tests: Update.
14048         * tests/test-fprintf-posix.sh: Update.
14049         * tests/test-printf-posix.sh: Update.
14050         * tests/test-vfprintf-posix.sh: Update.
14051         * tests/test-vprintf-posix.sh: Update.
14052         Reported by Ralf Wildenhues.
14053
14054 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14055
14056         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14057         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14058         GCC 4.2, which otherwise issues a lot of warnings.
14059         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14060         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14061         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14062         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14063         it should no longer be needed.
14064         * lib/string_.h: Likewise.
14065         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14066         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14067         * modules/inttypes (inttypes.h): Likewise.
14068         * modules/math (math.h): Likewise.
14069         * modules/search (search.h): Likewise.
14070         * modules/signal (signal.h): Likewise.
14071         * modules/stdint (stdint.h): Likewise.
14072         * modules/stdio (stdio.h): Likewise.
14073         * modules/stdlib (stdlib.h): Likewise.
14074         * modules/string (string.h): Likewise.
14075         * modules/sys_time (sys/time.h): Likewise.
14076         * modules/time (time.h): Likewise.
14077         * modules/wchar (wchar.h): Likewise.
14078         * modules/wctype (wtype.h): Likewise.
14079
14080 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14081
14082         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14083
14084 2007-05-13  Bruno Haible  <bruno@clisp.org>
14085
14086         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14087         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14088         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14089         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14090         (gl_PREREQ_STRTOK_R): Don't require it here.
14091
14092 2007-05-13  Bruno Haible  <bruno@clisp.org>
14093
14094         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14095         when used in C++ mode.
14096
14097 2007-05-12  Bruno Haible  <bruno@clisp.org>
14098
14099         * lib/linebuffer.h: Tweak doc.
14100         * lib/linebuffer.c: Likewise.
14101
14102 2007-05-12  James Youngman  <jay@gnu.org>
14103
14104         * lib/linebuffer.c (readlinebuffer_delim): New function,
14105         like readlinebuffer, but use a caller-specified delimiter.
14106         (readlinebuffer): Just call readlinebuffer_delim with '\n'
14107         as the delimiter.
14108         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14109
14110 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14111
14112         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14113         * modules/openat (Files): Remove openat-die.c.
14114         (Depends-on): Add openat-die.
14115         * modules/openat-die: New module.
14116
14117 2007-05-06  Bruno Haible  <bruno@clisp.org>
14118
14119         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14120         Update with info about Cygwin.
14121         * doc/functions/fprintf.texi: Update.
14122         * doc/functions/printf.texi: Update.
14123         * doc/functions/snprintf.texi: Update.
14124         * doc/functions/sprintf.texi: Update.
14125         * doc/functions/vfprintf.texi: Update.
14126         * doc/functions/vprintf.texi: Update.
14127         * doc/functions/vsnprintf.texi: Update.
14128         * doc/functions/vsprintf.texi: Update.
14129         Reported by Eric Blake.
14130
14131 2007-05-06  Bruno Haible  <bruno@clisp.org>
14132
14133         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14134         padding ourselves for the floating-point directives.
14135         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14138         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14139         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14141         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14147         * tests/test-snprintf-posix.h (test_function): Also check the width
14148         and some flags in the %f directive.
14149         * tests/test-sprintf-posix.h (test_function): Likewise.
14150         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14151         * tests/test-vasprintf-posix.c (test_function): Likewise.
14152         * doc/functions/fprintf.texi: Update.
14153         * doc/functions/printf.texi: Update.
14154         * doc/functions/snprintf.texi: Update.
14155         * doc/functions/sprintf.texi: Update.
14156         * doc/functions/vfprintf.texi: Update.
14157         * doc/functions/vprintf.texi: Update.
14158         * doc/functions/vsnprintf.texi: Update.
14159         * doc/functions/vsprintf.texi: Update.
14160
14161 2007-05-06  Bruno Haible  <bruno@clisp.org>
14162
14163         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14164         pass the ' flag character to sprintf or snprintf.
14165         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14168         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14169         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14170         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14171         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14173         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14174         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14177         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14178         flag.
14179         * tests/test-sprintf-posix.h (test_function): Likewise.
14180         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14181         * tests/test-vasprintf-posix.c (test_function): Likewise.
14182         * doc/functions/fprintf.texi: Update.
14183         * doc/functions/printf.texi: Update.
14184         * doc/functions/snprintf.texi: Update.
14185         * doc/functions/sprintf.texi: Update.
14186         * doc/functions/vfprintf.texi: Update.
14187         * doc/functions/vprintf.texi: Update.
14188         * doc/functions/vsnprintf.texi: Update.
14189         * doc/functions/vsprintf.texi: Update.
14190
14191 2007-05-01  Bruno Haible  <bruno@clisp.org>
14192
14193         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14194
14195 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14196
14197         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14198         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14199
14200 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14203         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14204         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14205
14206 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14207
14208         * lib/argp-help.c (struct hol_entry): New member `ord'.
14209         (HOL_ENTRY_PTRCMP): Use ord for comparison
14210         (hol_sort): Initialize ord.
14211
14212 2007-05-01  Bruno Haible  <bruno@clisp.org>
14213
14214         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14215         Reported by Eric Blake.
14216         * doc/gnulib.texi (Function Substitutes): Update.
14217
14218 2007-05-01  Bruno Haible  <bruno@clisp.org>
14219
14220         * doc/functions.texi: Remove file, now redundant through
14221         doc/functions/*.texi.
14222
14223 2007-05-01  Bruno Haible  <bruno@clisp.org>
14224
14225         * modules/argp (Depends-on): Add sleep.
14226
14227 2007-05-01  Bruno Haible  <bruno@clisp.org>
14228
14229         * modules/sleep-tests: New file.
14230         * tests/test-sleep.c: New file.
14231
14232         * modules/sleep: New file.
14233         * lib/sleep.c: New file.
14234         * m4/sleep.m4: New file.
14235         * lib/unistd_.h (sleep): New declaration.
14236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14237         HAVE_SLEEP.
14238         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14239         * doc/functions/sleep.texi: Document the sleep module.
14240
14241 2007-05-01  Bruno Haible  <bruno@clisp.org>
14242
14243         * lib/sigprocmask.h: Remove file.
14244         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14245         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14246         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14247         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14248         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14249         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14250         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14251         HAVE_SIGSET_T as a shell variable.
14252         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14253         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14254         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14255         (Depends-on): Add signal. Remove verify.
14256         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14257         (Include): Mention <signal.h> instead of sigprocmask.h.
14258         * NEWS: Mention the change.
14259         * lib/fatal-signal.c: Don't include sigprocmask.h.
14260
14261 2007-05-01  Bruno Haible  <bruno@clisp.org>
14262
14263         * modules/signal: New file.
14264         * lib/signal_.h: New file.
14265         * m4/signal_h.m4: New file.
14266
14267 2007-05-01  Bruno Haible  <bruno@clisp.org>
14268
14269         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14270         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14271         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14272         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14273
14274 2007-05-01  Bruno Haible  <bruno@clisp.org>
14275
14276         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14277         configure time.
14278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14279         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14280         * modules/sys_stat (Makefile.am): Substitute their values into
14281         sys/stat.h.
14282
14283 2007-05-01  Bruno Haible  <bruno@clisp.org>
14284
14285         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14286         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14287         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14288
14289 2007-05-01  Bruno Haible  <bruno@clisp.org>
14290
14291         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14292         'assert' module here.
14293
14294 2007-05-01  Bruno Haible  <bruno@clisp.org>
14295
14296         * doc/functions/*.texi: New files.
14297         * doc/functions/google-ranking.txt: New file.
14298         * doc/gnulib.texi (Function Substitutes): New chapter.
14299         (ctime, inet_ntoa): Remove sections.
14300         * doc/ctime.texi: Remove file.
14301         * doc/inet_ntoa.texi: Remove file.
14302         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14303         dependencies.
14304         (%.info): New rule, specifying a --reference-limit.
14305
14306 2007-05-01  Bruno Haible  <bruno@clisp.org>
14307
14308         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14309
14310 2007-05-01  Bruno Haible  <bruno@clisp.org>
14311
14312         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14313         the portability of 'mkdir' to mingw systems.
14314
14315 2007-05-01  Bruno Haible  <bruno@clisp.org>
14316
14317         * doc/headers/google-ranking.txt: New file.
14318
14319 2007-04-30  Eric Blake  <ebb9@byu.net>
14320
14321         Prefer fseeko to fseek.
14322         * modules/getpass (Depends-on): Add fseeko.
14323         * lib/getpass.c (getpass): Use fseeko, not fseek.
14324
14325 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14326
14327         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14328         assumes the sorting is stable, while most qsort implementations
14329         are not.  Use argument addresses to ensure they never compare as
14330         equal.
14331
14332         * tests/test-argp-2.sh (usage-indent test): Fix output
14333         (func_compare): Restore diff options
14334         * tests/test-argp.c: Restore #include "progname.h"
14335
14336 2007-04-29  Bruno Haible  <bruno@clisp.org>
14337
14338         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14340         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14342         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14343         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14344         (TESTS, check_PROGRAMS): Add test-snprintf.
14345         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14346         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14347         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14348         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14349         assertions that fail on HP-UX, OSF/1, or IRIX.
14350         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14351
14352 2007-04-29  Bruno Haible  <bruno@clisp.org>
14353
14354         * MODULES.html.sh (posix_functions): Remove 'contents'.
14355
14356 2007-04-29  Karl Berry  <karl@gnu.org>
14357
14358         * config/srclist.txt (gendocs_template_min): new entry.
14359
14360 2007-04-29  Bruno Haible  <bruno@clisp.org>
14361
14362         Work around fpurge bug on BSD systems.
14363         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14364         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14365         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14366         fpurge to rpl_fpurge if the system already has this function.
14367         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14368         the case where the system already has this function. Correct invariants
14369         on BSD systems.
14370         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14371         BSD systems.
14372
14373 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14374
14375         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14376         proposed by Sven Verdoolaege.
14377
14378         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14379         options.
14380         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14381         (usage and help tests): Update
14382
14383 2007-04-29  Bruno Haible  <bruno@clisp.org>
14384
14385         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14386         Print more information in case of failure. Disable a test on BeOS.
14387
14388 2007-04-29  Bruno Haible  <bruno@clisp.org>
14389
14390         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14391         This helps debugging on systems on which no gdb is available.
14392
14393 2007-04-29  Bruno Haible  <bruno@clisp.org>
14394
14395         * lib/freading.h: Improve comments.
14396         * lib/fwriting.h: Likewise.
14397         * tests/test-freading.c (main): Don't check freading immediately after
14398         repositioning. Needed for glibc.
14399
14400 2007-04-29  Bruno Haible  <bruno@clisp.org>
14401
14402         * lib/freading.c (freading): Trivial simplification.
14403
14404 2007-04-28  Bruno Haible  <bruno@clisp.org>
14405
14406         * tests/test-fwriting.c (main): Also test the interaction between
14407         fflush and fwriting.
14408         * modules/fwriting-tests (Depends-on): Add fflush.
14409
14410         * tests/test-freading.c (main): Also test the interaction between
14411         fflush and freading.
14412         * modules/freading-tests (Depends-on): Add fflush.
14413
14414 2007-04-28  Bruno Haible  <bruno@clisp.org>
14415
14416         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14417         fseeko and ftello.
14418         Suggested by Eric Blake.
14419
14420 2007-04-28  Jim Meyering  <jim@meyering.net>
14421
14422         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14423         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14424         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14425
14426 2007-04-27  Eric Blake  <ebb9@byu.net>
14427
14428         * doc/headers/assert.texi (assert.h): Document assert module use.
14429
14430 2007-04-27  Bruno Haible  <bruno@clisp.org>
14431
14432         * doc/headers/*.texi: New files.
14433         * doc/gnulib.texi (Header File Substitutes): New chapter.
14434         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14435         dependencies.
14436         (standards.info ,standards.html, standards.dvi): Update dependencies.
14437         (mostlyclean, clean): New targets.
14438
14439 2007-04-27  Bruno Haible  <bruno@clisp.org>
14440
14441         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14442         * modules/sysexits (Files, Makefile.am): Update.
14443
14444         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14445         * modules/sys_socket (Files, Makefile.am): Update.
14446
14447         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14448         * modules/sys_stat (Files, Makefile.am): Update.
14449
14450 2007-04-27  Eric Blake  <ebb9@byu.net>
14451
14452         * lib/freading.h: Improve comments.
14453         * lib/fwriting.h: Likewise.
14454         * lib/fflush.c: Likewise.
14455
14456         Fix closein for mingw.
14457         * modules/closein-tests: Add tests for closein.
14458         * tests/test-closein.c: New file.
14459         * tests/test-closein.sh: Likewise.
14460         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14461         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14462
14463 2007-04-27  Bruno Haible  <bruno@clisp.org>
14464
14465         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14466         version is < 6.
14467         * lib/math_.h [__DECC]: Likewise.
14468         * lib/stdio_.h [__DECC]: Likewise.
14469         * lib/stdlib_.h [__DECC]: Likewise.
14470         * lib/string_.h [__DECC]: Likewise.
14471         * lib/time_.h [__DECC]: Likewise.
14472         * lib/wchar_.h [__DECC]: Likewise.
14473         * lib/wctype_.h [__DECC]: Likewise.
14474
14475 2007-04-27  Bruno Haible  <bruno@clisp.org>
14476
14477         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14478
14479 2007-04-27  Bruno Haible  <bruno@clisp.org>
14480
14481         * lib/fflush.c: Add comments.
14482         * modules/fpurge-tests (Depends-on): Add fflush.
14483         * modules/freadable-tests (Depends-on): Likewise.
14484         * modules/fwritable-tests (Depends-on): Likewise.
14485
14486 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14487
14488         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14489         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14490         Report by Bruno Haible <bruno@clisp.org>.
14491
14492 2007-04-26  Eric Blake  <ebb9@byu.net>
14493
14494         Fix fflush on mingw.
14495         * modules/fflush (Depends-on): Add freading.
14496         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14497         but unread data.
14498
14499 2007-04-26  Eric Blake  <ebb9@byu.net>
14500         and Bruno Haible  <bruno@clisp.org>
14501
14502         Implement freading and fwriting.
14503         * lib/freading.c: New file.
14504         * lib/freading.h: Likewise.
14505         * m4/freading.m4: Likewise.
14506         * modules/freading: Likewise.
14507         * modules/freading-tests: Likewise.
14508         * tests/test-freading.c: Likewise.
14509         * lib/fwriting.c: New file.
14510         * lib/fwriting.h: Likewise.
14511         * m4/fwriting.m4: Likewise.
14512         * modules/fwriting: Likewise.
14513         * modules/fwriting-tests: Likewise.
14514         * tests/test-fwriting.c: Likewise.
14515         * MODULES.html.sh (File stream based Input/Output): Mention them.
14516
14517 2007-04-26  Bruno Haible  <bruno@clisp.org>
14518
14519         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14520         'long' when we assume it.
14521         Suggested by Eric Blake.
14522
14523 2007-04-26  Bruno Haible  <bruno@clisp.org>
14524
14525         Ensure fseeko, ftello are declared on glibc systems.
14526         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14527         * modules/fseeko (configure.ac-early): Likewise.
14528         * modules/ftello (configure.ac-early): Likewise.
14529         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14530         AC_FUNC_FSEEKO for this.
14531         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14532         (gl_CHECK_FSEEKO): Remove macro.
14533
14534 2007-04-26  Bruno Haible  <bruno@clisp.org>
14535
14536         * tests/test-fflush.c (main): Also check the ftell result after
14537         fflush and fseek/fseeko.
14538         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14539         file descriptor position cache in the stream.
14540         * lib/fseeko.c (rpl_fseeko): Likewise.
14541
14542 2007-04-26  Bruno Haible  <bruno@clisp.org>
14543
14544         * modules/fflush-tests (Depends-on): Add fseeko.
14545
14546 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14547             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14548
14549         * lib/argz_.h: ensure error_t definition is obtained in same
14550         mechanism system argz.h would have.
14551         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14552         argz facilities are known bad.  Err on the side of caution if
14553         cross-compiling.
14554
14555 2007-04-25  Eric Blake  <ebb9@byu.net>
14556
14557         * lib/fpurge.c (includes): Use stdlib.h for free.
14558         * tests/test-fflush.c (main): Also test fflush-fseeko.
14559
14560 2007-04-25  Bruno Haible  <bruno@clisp.org>
14561
14562         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14563         * lib/fseeko.c: New file.
14564         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14565         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14566         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14567         gl_FUNC_FSEEKO.
14568         (gl_FUNC_FSEEKO): Invoke it.
14569         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14570         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14571         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14572
14573 2007-04-25  Bruno Haible  <bruno@clisp.org>
14574
14575         * modules/fflush (Depends-on): Add ftello.
14576
14577 2007-04-25  Bruno Haible  <bruno@clisp.org>
14578
14579         * modules/ftello-tests: New file.
14580         * tests/test-ftello.c: New file.
14581
14582         * modules/ftello: New file.
14583         * m4/ftello.m4: New file.
14584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14585         HAVE_FTELLO.
14586         * lib/stdio_.h (ftello): New declaration.
14587         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14588         HAVE_FTELLO.
14589
14590 2007-04-25  Bruno Haible  <bruno@clisp.org>
14591
14592         * modules/fseeko-tests: New file.
14593         * tests/test-fseeko.c: New file.
14594
14595         * modules/fseeko: New file.
14596         * m4/fseeko.m4: New file.
14597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14598         HAVE_FSEEKO.
14599         * lib/stdio_.h (fseeko): New declaration.
14600         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14601         HAVE_FSEEKO.
14602
14603 2007-04-25  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14606
14607 2007-04-25  Bruno Haible  <bruno@clisp.org>
14608
14609         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14610         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14611         * tests/test-unistd.c: Likewise.
14612         * tests/test-fcntl.c: Likewise.
14613
14614 2007-04-23  Eric Blake  <ebb9@byu.net>
14615
14616         * lib/fflush.c: Fix missing include.
14617         Reported by Bruno Haible.
14618
14619 2007-04-23  Bruno Haible  <bruno@clisp.org>
14620
14621         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14622         Reported by Eric Blake.
14623
14624 2007-04-23  Bruno Haible  <bruno@clisp.org>
14625
14626         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14627
14628 2007-04-23  Bruno Haible  <bruno@clisp.org>
14629
14630         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14631
14632 2007-04-23  Bruno Haible  <bruno@clisp.org>
14633
14634         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14635         Needed on HP-UX 11.
14636
14637 2007-04-16  Eric Blake  <ebb9@byu.net>
14638
14639         Make fflush rely on fpurge.
14640         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14641         open coding all variants.
14642         * modules/fflush (Depends-on): Add fpurge and unistd.
14643         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14644         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14645
14646         Fix --with-tests compilation on cygwin.
14647         * modules/argmatch-tests (Makefile.am): List gnulib library first
14648         in LDADD.
14649         * modules/argp-tests (Makefile.am): Likewise.
14650         * modules/array-list-tests (Makefile.am): Likewise.
14651         * modules/array-oset-tests (Makefile.am): Likewise.
14652         * modules/avltree-list-tests (Makefile.am): Likewise.
14653         * modules/avltree-oset-tests (Makefile.am): Likewise.
14654         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14655         * modules/carray-list-tests (Makefile.am): Likewise.
14656         * modules/dirname-tests (Makefile.am): Likewise.
14657         * modules/frexp-tests (Makefile.am): Likewise.
14658         * modules/isnanl-tests (Makefile.am): Likewise.
14659         * modules/linked-list-tests (Makefile.am): Likewise.
14660         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14661         * modules/lock-tests (Makefile.am): Likewise.
14662         * modules/rbtree-list-tests (Makefile.am): Likewise.
14663         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14664         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14665         * modules/tls-tests (Makefile.am): Likewise.
14666         * modules/tsearch-tests (Makefile.am): Likewise.
14667         * modules/xvasprintf-tests (Makefile.am): Likewise.
14668
14669         Fix fpurge for cygwin.
14670         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14671         value.
14672         * modules/fpurge-tests (Depends-on): Clean up trash.
14673
14674 2007-04-16  Simon Josefsson  <simon@josefsson.org>
14675
14676         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14677
14678         * m4/autobuild.m4: Re-indent.
14679
14680 2007-04-13  Bruno Haible  <bruno@clisp.org>
14681
14682         * modules/fpurge-tests: New file.
14683         * tests/test-fpurge.c: New file.
14684
14685         * modules/fpurge: New file.
14686         * lib/fpurge.h: New file.
14687         * lib/fpurge.c: New file.
14688         * m4/fpurge.m4: New file.
14689
14690 2007-04-13  Bruno Haible  <bruno@clisp.org>
14691
14692         * modules/fbufmode-tests: New file.
14693         * tests/test-fbufmode.c: New file.
14694
14695         * modules/fbufmode: New file.
14696         * lib/fbufmode.h: New file.
14697         * lib/fbufmode.c: New file.
14698         * m4/fbufmode.m4: New file.
14699
14700 2007-04-13  Bruno Haible  <bruno@clisp.org>
14701
14702         * modules/fwritable-tests: New file.
14703         * tests/test-fwritable.c: New file.
14704
14705         * modules/fwritable: New file.
14706         * lib/fwritable.h: New file.
14707         * lib/fwritable.c: New file.
14708         * m4/fwritable.m4: New file.
14709
14710 2007-04-13  Bruno Haible  <bruno@clisp.org>
14711
14712         * modules/freadable-tests: New file.
14713         * tests/test-freadable.c: New file.
14714
14715         * modules/freadable: New file.
14716         * lib/freadable.h: New file.
14717         * lib/freadable.c: New file.
14718         * m4/freadable.m4: New file.
14719
14720 2007-04-13  Bruno Haible  <bruno@clisp.org>
14721
14722         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14723         MOSTLYCLEANFILES.
14724
14725 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14726
14727         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14728         gzip bootstrap.conf to avoid dragging in i18n machinery.
14729         (gnulib_tool_option): Use it.
14730
14731 2007-04-13  Bruno Haible  <bruno@clisp.org>
14732
14733         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14734         %F directives.
14735         * tests/test-vasprintf-posix.c (test_function): Likewise.
14736         * tests/test-snprintf-posix.h (test_function): Likewise.
14737         * tests/test-sprintf-posix.h (test_function): Likewise.
14738         * tests/test-fprintf-posix.h (test_function): Likewise.
14739         * tests/test-printf-posix.h (test_function): Likewise.
14740         * tests/test-fprintf-posix.out: Likewise.
14741
14742 2007-04-13  Bruno Haible  <bruno@clisp.org>
14743
14744         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14745         * modules/tls-tests (configure.ac): Likewise.
14746         Reported by Arto C. Nirkko <anirkko@insel.ch>.
14747
14748 2007-04-13  Bruno Haible  <bruno@clisp.org>
14749
14750         * lib/tls.c (glthread_tls_get): Fix return type.
14751         Patch by Arto C. Nirkko <anirkko@insel.ch>.
14752
14753 2007-04-12  Eric Blake  <ebb9@byu.net>
14754
14755         * modules/gettime (Depends-on): Remove gettime.
14756         Reported by Dmitry V. Levin.
14757
14758 2007-04-12  Bruno Haible  <bruno@clisp.org>
14759
14760         * modules/fflush (Include): Mention <stdio.h>.
14761         * modules/strtoimax (Include): Mention <inttypes.h>.
14762         * modules/strtoumax (Include): Likewise.
14763
14764 2007-04-12  Eric Blake  <ebb9@byu.net>
14765
14766         * .cvsignore: New file.
14767         * .gitignore: Likewise.
14768
14769 2007-04-12  Bruno Haible  <bruno@clisp.org>
14770
14771         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14772         not before, since $(LDADD) often contains libgnu.a.
14773         * modules/striconv-tests (test_striconv_LDADD): Likewise.
14774         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14775         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14776         Needed on Cygwin.
14777
14778 2007-04-12  Eric Blake  <ebb9@byu.net>
14779
14780         Work around glibc's failure to flush stdin on fclose.
14781         * lib/closein.c (close_stdin): Flush stdin before closing.
14782
14783         Work around glibc's failure to reset seekable stdin on exit.
14784         * modules/closein: New module.
14785         * lib/closein.c: New file.
14786         * lib/closein.h: Likewise.
14787         * m4/closein.m4: Likewise.
14788         * MODULES.html.sh (File stream based Input/Output): Document it.
14789
14790 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14791
14792         * gnulib-tool: Rename generated 'autobuild' script to
14793         'do-autobuild' in --create-megatestdir output.
14794
14795         * doc/gnulib.texi (Build robot for gnulib): Fix.
14796
14797 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14798
14799         * modules/sysexits (Depends-on): Add absolute-header.
14800
14801 2007-04-12  Eric Blake  <ebb9@byu.net>
14802
14803         No need to preserve errno on success.
14804         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14805         Reported by Bruno Haible.
14806
14807 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14808
14809         * MODULES.html.sh (Support for maintaining and releasing
14810         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
14811
14812 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14813
14814         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14815
14816 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14817
14818         * modules/autobuild: New module.
14819
14820         * m4/autobuild.m4: New file.
14821
14822 2007-04-11  Bruno Haible  <bruno@clisp.org>
14823
14824         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14825         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14828         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14829         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14830         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14832         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14833         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14835         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14836         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14838         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14839         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14843         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14844         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14845         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14847         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14848         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14850         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14851         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14852         Reported by Eric Blake.
14853
14854 2007-04-11  Bruno Haible  <bruno@clisp.org>
14855
14856         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14857
14858 2007-04-10  Bruno Haible  <bruno@clisp.org>
14859
14860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14861         for NaN and Infinity. Needed on FreeBSD 6.1.
14862         * tests/test-vasnprintf-posix.c (test_function): Undo last change
14863         regarding results for "%010a" of Infinity and NaN.
14864         * tests/test-vasprintf-posix.c (test_function): Likewise.
14865         * tests/test-snprintf-posix.h (test_function): Likewise.
14866         * tests/test-sprintf-posix.h (test_function): Likewise.
14867         * tests/test-fprintf-posix.h (test_function): Likewise.
14868         * tests/test-printf-posix.h (test_function): Likewise.
14869         * tests/test-fprintf-posix.out: Likewise.
14870
14871 2007-04-10  Bruno Haible  <bruno@clisp.org>
14872
14873         * modules/locale-tests: New file.
14874         * tests/test-locale.c: New file.
14875
14876         * modules/locale: New file.
14877         * lib/locale_.h: New file.
14878         * m4/locale_h.m4: New file.
14879
14880 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
14881             Bruno Haible  <bruno@clisp.org>
14882
14883         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14884         be determined, test for availability of the copysignf, copysign,
14885         copysignl functions.
14886         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14887         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14888         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14889
14890 2007-04-09  Eric Blake  <ebb9@byu.net>
14891
14892         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14893         * modules/stdio (Makefile.am): Support fflush.
14894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14895         * modules/fflush: New file.
14896         * lib/fflush.c: Likewise.
14897         * m4/fflush.m4: Likewise.
14898         * modules/fflush-tests: New test.
14899         * tests/test-fflush.c: Likewise.
14900         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14901
14902 2007-04-06  Bruno Haible  <bruno@clisp.org>
14903
14904         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14905         (VASNPRINTF): Use signbit for faster determination whether to print a
14906         minus sign.
14907         * modules/vasnprintf (Files): Remove lib/float+.h.
14908         * modules/fprintf-posix (Depends-on): Add signbit.
14909         * modules/snprintf-posix (Depends-on): Likewise.
14910         * modules/sprintf-posix (Depends-on): Likewise.
14911         * modules/vasnprintf-posix (Depends-on): Likewise.
14912         * modules/vasprintf-posix (Depends-on): Likewise.
14913         * modules/vfprintf-posix (Depends-on): Likewise.
14914         * modules/vsnprintf-posix (Depends-on): Likewise.
14915         * modules/vsprintf-posix (Depends-on): Likewise.
14916
14917 2007-04-06  Bruno Haible  <bruno@clisp.org>
14918
14919         * tests/test-frexp.c (main): Test also the sign bit of zero results.
14920         * tests/test-frexpl.c (main): Likewise.
14921         * tests/test-ldexpl.c (main): Likewise.
14922         * modules/frexp-tests (Depends-on): Add signbit.
14923         * modules/frexpl-tests (Depdends-on): Likewise.
14924         * modules/ldexpl-tests (Depdends-on): Likewise.
14925
14926 2007-04-06  Bruno Haible  <bruno@clisp.org>
14927
14928         * modules/signbit-tests: New file.
14929         * tests/test-signbit.c: New file.
14930
14931         * modules/signbit: New file.
14932         * lib/signbitf.c: New file.
14933         * lib/signbitd.c: New file.
14934         * lib/signbitl.c: New file.
14935         * m4/signbit.m4: New file.
14936         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14937         (signbit): New macro.
14938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14939         REPLACE_SIGNBIT.
14940         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14941         REPLACE_FREXPL into math.h.
14942
14943 2007-04-06  Bruno Haible  <bruno@clisp.org>
14944
14945         * modules/isnanf-nolibm-tests: New file.
14946         * tests/test-isnanf.c: New file.
14947
14948         * modules/isnanf-nolibm: New file.
14949         * lib/isnanf.h: New file.
14950         * lib/isnanf.c: New file.
14951         * lib/isnan.c: Consider the USE_FLOAT macro.
14952         * m4/isnanf.m4: New file.
14953
14954 2007-04-06  Bruno Haible  <bruno@clisp.org>
14955
14956         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14957         (Link): New section.
14958
14959         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14960
14961 2007-04-06  Bruno Haible  <bruno@clisp.org>
14962
14963         Assume the 'long double' type.
14964         * m4/longdouble.m4: Remove file.
14965         * config/srclist.txt: Don't mention longdouble.m4.
14966         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14967         * lib/float+.h: Likewise.
14968         * lib/frexp.c: Likewise.
14969         * lib/printf-args.h: Likewise.
14970         * lib/printf-args.c: Likewise.
14971         * lib/printf-frexp.c: Likewise.
14972         * lib/printf-parse.c: Likewise.
14973         * lib/vasnprintf.c: Likewise.
14974         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14975         * m4/intl.m4: Likewise.
14976         * m4/isnanl.m4: Likewise.
14977         * m4/printf.m4: Likewise.
14978         * m4/printf-frexpl.m4: Likewise.
14979         * m4/vasnprintf.m4: Likewise.
14980         * modules/allocsa (Files): Remove m4/longdouble.m4.
14981         * modules/gettext (Files): Likewise.
14982         * modules/relocatable-prog-wrapper (Files): Likewise.
14983         * modules/vasnprintf (Files): Likewise.
14984         * modules/isnanl (Files): Likewise.
14985         (Include): Simplify.
14986         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14987         (Include): Simplify.
14988         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14989         (Include): Simplify.
14990         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14991         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14992         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14993         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14994         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14995         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14996         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14997         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14998         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14999         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15000         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15001         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15002         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15003         * tests/test-isnanl.c: Likewise.
15004         * tests/test-snprintf-posix.h: Likewise.
15005         * tests/test-sprintf-posix.h: Likewise.
15006         * tests/test-vasnprintf-posix.c: Likewise.
15007         * tests/test-vasnprintf-posix2.c: Likewise.
15008         * tests/test-vasprintf-posix.c: Likewise.
15009
15010 2007-04-06  Bruno Haible  <bruno@clisp.org>
15011
15012         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15013         * lib/math_.h [__DECC]: Include the overridden include file through
15014         #include_next, outside the double-inclusion guard.
15015         * lib/stdio_.h [__DECC]: Likewise.
15016         * lib/stdlib_.h [__DECC]: Likewise.
15017         * lib/string_.h [__DECC]: Likewise.
15018         * lib/time_.h [__DECC]: Likewise.
15019         * lib/wchar_.h [__DECC]: Likewise.
15020         * lib/wctype_.h [__DECC]: Likewise.
15021         * lib/inttypes_.h [__DECC]: Likewise.
15022         Reported by Albert Chin <china@thewrittenword.com> in
15023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15024
15025 2007-04-04  Eric Blake  <ebb9@byu.net>
15026
15027         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15028         1.5.x.
15029
15030 2007-04-04  Bruno Haible  <bruno@clisp.org>
15031
15032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15033         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15034
15035 2007-04-04  Bruno Haible  <bruno@clisp.org>
15036
15037         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15038         results for "%010a" of Infinity and NaN.
15039         * tests/test-vasprintf-posix.c (test_function): Likewise.
15040         * tests/test-snprintf-posix.h (test_function): Likewise.
15041         * tests/test-sprintf-posix.h (test_function): Likewise.
15042         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15043         * tests/test-printf-posix.h (test_function): Likewise.
15044         * tests/test-fprintf-posix.out: Update.
15045         Needed for FreeBSD 6.1.
15046
15047 2007-04-04  Bruno Haible  <bruno@clisp.org>
15048
15049         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15050         directly used by the gnulib modules nor by gnulib-tool.
15051
15052 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15053
15054         * DEPENDENCIES: Give overall description of version dependency
15055         desirability.  Use more-typical names for apps.
15056         Add shell, coreutils, diffutils, grep, tar, gzip.
15057
15058 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15059
15060         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15061
15062 2007-04-04  Karl Berry  <karl@gnu.org>
15063
15064         * MODULES.html.sh (func_module): missing '.
15065
15066 2007-04-03  Bruno Haible  <bruno@clisp.org>
15067
15068         * modules/argmatch-tests (Makefile.am): New variable
15069         test_argmatch_LDADD.
15070         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15071         * modules/array-list-tests (Makefile.am): New variable
15072         test_array_list_LDADD.
15073         * modules/array-oset-tests (Makefile.am): New variable
15074         test_array_oset_LDADD.
15075         * modules/avltree-list-tests (Makefile.am): New variable
15076         test_avltree_list_LDADD.
15077         * modules/avltree-oset-tests (Makefile.am): New variable
15078         test_avltree_oset_LDADD.
15079         * modules/avltreehash-list-tests (Makefile.am): New variable
15080         test_avltreehash_list_LDADD.
15081         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15082         test_canonicalize_lgpl_LDADD.
15083         * modules/carray-list-tests (Makefile.am): New variable
15084         test_carray_list_LDADD.
15085         * modules/dirname-tests (Makefile.am): New variable
15086         test_dirname_LDADD.
15087         * modules/linked-list-tests (Makefile.am): New variable
15088         test_linked_list_LDADD.
15089         * modules/linkedhash-list-tests (Makefile.am): New variable
15090         test_linkedhash_list_LDADD.
15091         * modules/rbtree-list-tests (Makefile.am): New variable
15092         test_rbtree_list_LDADD.
15093         * modules/rbtree-oset-tests (Makefile.am): New variable
15094         test_rbtree_oset_LDADD.
15095         * modules/rbtreehash-list-tests (Makefile.am): New variable
15096         test_rbtreehash_list_LDADD.
15097         * modules/xvasprintf-tests (Makefile.am): New variable
15098         test_xvasprintf_LDADD.
15099         Reported by Eric Blake.
15100
15101 2007-04-03  Eric Blake  <ebb9@byu.net>
15102
15103         * DEPENDENCIES: Weaken m4 requirements.
15104
15105 2007-04-03  Bruno Haible  <bruno@clisp.org>
15106
15107         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15108         * modules/isnanl-tests (configure.ac): Likewise.
15109
15110 2007-04-03  Ben Pfaff  <blp@gnu.org>
15111
15112         * modules/iconv_open: Add $(srcdir)/ to source directory
15113         references in Makefile fragments that call gperf, to fix VPATH
15114         builds.
15115
15116 2007-04-03  Bruno Haible  <bruno@clisp.org>
15117
15118         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15119         * lib/ldexpl.c: Undo last change.
15120
15121 2007-04-03  Bruno Haible  <bruno@clisp.org>
15122
15123         * modules/printf-frexpl (Depends-on): Undo last change.
15124         (Files): Add m4/ldexpl.m4.
15125
15126 2007-04-03  Bruno Haible  <bruno@clisp.org>
15127
15128         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15129         * modules/isnanl (Link): New section.
15130
15131         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15132         * modules/frexp (Link): New section.
15133
15134         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15135         * modules/frexpl (Link): New section.
15136
15137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15138         * modules/ldexpl (Link): New section.
15139
15140 2007-04-03  Bruno Haible  <bruno@clisp.org>
15141
15142         * modules/TEMPLATE-EXTENDED: New file.
15143         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15144
15145 2007-04-03  Bruno Haible  <bruno@clisp.org>
15146
15147         * DEPENDENCIES: New file.
15148         Suggested by Simon Josefsson.
15149
15150 2007-04-03  Bruno Haible  <bruno@clisp.org>
15151
15152         * doc/gnulib.texi: Escape @.
15153
15154 2007-04-03  James Youngman  <jay@gnu.org>
15155         and Paul Eggert  <eggert@cs.ucla.edu>
15156
15157         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15158         birthtime on all systems that have birthtime, not just those which
15159         use st_birthtimensec rather than st_birthtim.  Putting zero in
15160         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15161         that the birth time is not available for files on an NFS mount.
15162
15163 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15164
15165         * modules/memxor: Move back from crypto/, suggested by Bruno.
15166         * modules/crypto/hmac-sha1: Fix memxor dependency.
15167
15168         * modules/crypto/gc: Moved from ../.
15169
15170 2007-04-02  Eric Blake  <ebb9@byu.net>
15171
15172         * lib/ldexpl.c (includes): Avoid libm.
15173
15174         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15175
15176 2007-04-02  Bruno Haible  <bruno@clisp.org>
15177
15178         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15179         on IRIX.
15180
15181 2007-04-02  Bruno Haible  <bruno@clisp.org>
15182
15183         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15184         x86 or x86_64 platforms running MacOS X.
15185         Reported by Ryan Schmidt <@ryandesign.com>.
15186
15187 2007-04-02  Bruno Haible  <bruno@clisp.org>
15188
15189         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15190         i386.
15191
15192 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15193
15194         * modules/crypto/arcfour: Moved from ../.
15195         * modules/crypto/arcfour-tests: Moved from ../.
15196         * modules/crypto/arctwo: Moved from ../.
15197         * modules/crypto/arctwo-tests: Moved from ../.
15198         * modules/crypto/des: Moved from ../.
15199         * modules/crypto/des-tests: Moved from ../.
15200         * modules/crypto/gc-arcfour: Moved from ../.
15201         * modules/crypto/gc-arcfour-tests: Moved from ../.
15202         * modules/crypto/gc-arctwo: Moved from ../.
15203         * modules/crypto/gc-arctwo-tests: Moved from ../.
15204         * modules/crypto/gc-des: Moved from ../.
15205         * modules/crypto/gc-des-tests: Moved from ../.
15206         * modules/crypto/gc-hmac-md5: Moved from ../.
15207         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15208         * modules/crypto/gc-hmac-sha1: Moved from ../.
15209         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15210         * modules/crypto/gc-md2: Moved from ../.
15211         * modules/crypto/gc-md2-tests: Moved from ../.
15212         * modules/crypto/gc-md4: Moved from ../.
15213         * modules/crypto/gc-md4-tests: Moved from ../.
15214         * modules/crypto/gc-md5: Moved from ../.
15215         * modules/crypto/gc-md5-tests: Moved from ../.
15216         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15217         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15218         * modules/crypto/gc-random: Moved from ../.
15219         * modules/crypto/gc-rijndael: Moved from ../.
15220         * modules/crypto/gc-rijndael-tests: Moved from ../.
15221         * modules/crypto/gc-sha1: Moved from ../.
15222         * modules/crypto/gc-sha1-tests: Moved from ../.
15223         * modules/crypto/gc-tests: Moved from ../.
15224         * modules/crypto/hmac-md5: Moved from ../.
15225         * modules/crypto/hmac-md5-tests: Moved from ../.
15226         * modules/crypto/hmac-sha1: Moved from ../.
15227         * modules/crypto/hmac-sha1-tests: Moved from ../.
15228         * modules/crypto/md2: Moved from ../.
15229         * modules/crypto/md2-tests: Moved from ../.
15230         * modules/crypto/md4: Moved from ../.
15231         * modules/crypto/md4-tests: Moved from ../.
15232         * modules/crypto/md5: Moved from ../.
15233         * modules/crypto/md5-tests: Moved from ../.
15234         * modules/crypto/memxor: Moved from ../.
15235         * modules/crypto/rijndael: Moved from ../.
15236         * modules/crypto/rijndael-tests: Moved from ../.
15237         * modules/crypto/sha1: Moved from ../.
15238
15239 2007-03-30  James Youngman  <jay@gnu.org>
15240
15241         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15242         rename() to change the ctime of a file (because ctime is unaffected
15243         by rename on jfs2 on AIX 5.1).
15244         (main): Start by doing cleanup, in case a previous run failed leaving
15245         test files behind.
15246
15247 2007-03-31  Bruno Haible  <bruno@clisp.org>
15248
15249         Support old proprietary implementations of iconv.
15250         * modules/iconv_open: New file.
15251         * lib/iconv_.h: New file.
15252         * m4/iconv_h.m4: New file.
15253         * lib/iconv_open.c: New file.
15254         * lib/iconv_open-aix.gperf: New file.
15255         * lib/iconv_open-hpux.gperf: New file.
15256         * lib/iconv_open-irix.gperf: New file.
15257         * lib/iconv_open-osf.gperf: New file.
15258         * m4/iconv_open.m4: New file.
15259         * modules/linebreak (Depends-on): Add iconv_open.
15260         * modules/striconv (Depends-on): Likewise.
15261         * modules/striconveh (Depends-on): Likewise.
15262         * modules/unicodeio (Depends-on): Likewise.
15263         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15264         (iconv_t)(-1).
15265         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15266         conversion if cd is (iconv_t)(-1).
15267         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15268         is not possible.
15269
15270 2007-03-31  Bruno Haible  <bruno@clisp.org>
15271
15272         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15273         work on Solaris either. Protect also second use of "autodetect_jp".
15274
15275 2007-03-31  Bruno Haible  <bruno@clisp.org>
15276
15277         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15278         the function is not present.
15279
15280 2007-03-31  Bruno Haible  <bruno@clisp.org>
15281
15282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15283         the function is not present.
15284
15285 2007-03-31  Bruno Haible  <bruno@clisp.org>
15286
15287         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15288         a bug in HP-UX iconv_open().
15289
15290 2007-03-31  Bruno Haible  <bruno@clisp.org>
15291
15292         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15293         (Mathematics <math.h>): New section, add fpieee.
15294         (Input/output <stdio.h>): Add fseterr.
15295         (Mathematics <math.h>): New section, add printf-frexp.
15296         (Container data structures): Add sublist.
15297         (Core language properties): Add fpucw, inline.
15298         (Functions for greatest-width integer types <inttypes.h>): Add
15299         imaxabs, imaxdiv, inttypes.
15300         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15301         isnanl-nolibm, ldexp.
15302         (Mathematics <math.h>): New section, add printf-frexpl.
15303         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15304         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15305         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15306         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15307         (Unicode string functions): Add unistr/u*-mbtoucr.
15308         (Java): Add javacomp-script, javaexec-script.
15309         (C#): Add csharpcomp-script, csharpexec-script.
15310         (Support for building libraries and executables): Add havelib,
15311         relocatable-*.
15312         (Support for maintaining and releasing projects): Renamed from
15313         'Support for maintaining and release projects'. Add announce-gen.
15314
15315 2007-03-31  Bruno Haible  <bruno@clisp.org>
15316
15317         * README: Talk primarily about git.
15318         (git and CVS): Renamed from CVS.
15319         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15320         gnulib is available through git.
15321         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15322
15323 2007-03-30  Bruno Haible  <bruno@clisp.org>
15324
15325         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15326         * lib/poll_.h: Likewise.
15327         * lib/stat_.h: Likewise.
15328         * lib/sys_time_.h: Likewise.
15329         * lib/sysexit_.h: Likewise.
15330         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15331         * lib/stdbool_.h: Likewise.
15332         * lib/byteswap_.h: Add double-inclusion guard.
15333
15334 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15335
15336         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15337
15338 2007-03-30  Karl Berry  <karl@gnu.org>
15339
15340         * config/srclist-update: double space after USA in the license
15341         substitution, since that's how it's usually (?) written.
15342
15343 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15344
15345         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15346         reported by Bruno Haible.
15347
15348 2007-03-29  Bruno Haible  <bruno@clisp.org>
15349
15350         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15351         a bug in AIX iconv().
15352
15353 2007-03-29  Bruno Haible  <bruno@clisp.org>
15354
15355         * modules/ldexpl-tests: New file.
15356         * tests/test-ldexpl.c: New file.
15357
15358 2007-03-29  Bruno Haible  <bruno@clisp.org>
15359
15360         * lib/ldexpl.c: Include fpucw.h.
15361         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15362         multiplication.
15363         * modules/ldexpl (Depends-on): Add fpucw.
15364
15365 2007-03-29  Bruno Haible  <bruno@clisp.org>
15366
15367         * modules/ldexpl: New file.
15368         * m4/ldexpl.m4: New file.
15369         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15370         set.
15371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15372         REPLACE_LDEXPL.
15373         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15374         REPLACE_LDEXPL.
15375         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15376         gl_FUNC_LDEXPL_WORKS.
15377         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15378         * modules/mathl (Files): Remove lib/ldexpl.c.
15379         (Depends-on): Add ldexpl.
15380
15381 2007-03-29  Bruno Haible  <bruno@clisp.org>
15382
15383         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15384
15385 2007-03-29  Bruno Haible  <bruno@clisp.org>
15386
15387         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15388         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15389         and possibly also HP-UX.
15390         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15391         work on AIX, IRIX, HP-UX, OSF/1.
15392         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15393         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15394         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15395         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15396         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15397         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15398
15399 2007-03-29  Bruno Haible  <bruno@clisp.org>
15400
15401         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15402
15403 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15404
15405         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15406         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15407
15408 2007-03-29  Eric Blake  <ebb9@byu.net>
15409
15410         * lib/acl-internal.h: Remove redundant include.
15411         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15412         Cygwin when a file is locked.
15413
15414 2007-03-29  Bruno Haible  <bruno@clisp.org>
15415
15416         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15417         file.
15418         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15419
15420 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15423         try to remove a parent directory if the child couldn't be removed
15424         (except for the first rmdir, which could fail because the child
15425         doesn't exist).  Problem reported by Jeff Blaine in
15426         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15427
15428 2007-03-28  Bruno Haible  <bruno@clisp.org>
15429
15430         * lib/striconveh.c (utf8conv_carefully): New function.
15431         (mem_cd_iconveh_internal): Invoke it.
15432
15433 2007-03-28  Bruno Haible  <bruno@clisp.org>
15434
15435         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15436         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15437         input.
15438         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15439         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15440         unistr/u8-uctomb.
15441
15442 2007-03-28  Bruno Haible  <bruno@clisp.org>
15443
15444         * modules/unistr/u8-mbtoucr: New file.
15445         * lib/unistr/u8-mbtoucr.c: New file.
15446         * modules/unistr/u16-mbtoucr: New file.
15447         * lib/unistr/u16-mbtoucr.c: New file.
15448         * modules/unistr/u16-mbtoucr: New file.
15449         * lib/unistr/u16-mbtoucr.c: New file.
15450         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15451
15452 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15453             Bruno Haible  <bruno@clisp.org>
15454
15455         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15456         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15457         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15458
15459         * m4/stdio_h.m4: Add stubs for vasprintf too.
15460
15461         * modules/stdio: Support vasprintf in sed command.
15462
15463         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15464         vasprintf.h.  Add stdio module indicator.
15465
15466         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15467         vasprintf.h.
15468
15469         * lib/vasprintf.h: File removed.
15470
15471         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15472         * lib/vasprintf.c: Ditto.
15473         * lib/xvasprintf.c: Ditto.
15474         * tests/test-vasprintf-posix.c: Ditto.
15475         * tests/test-vasprintf.c: Ditto.
15476
15477 2007-03-27  Bruno Haible  <bruno@clisp.org>
15478
15479         Make vasnprintf multithread-safe.
15480         * lib/vasnprintf.c (decimal_point_char): New function.
15481         (VASNPRINTF): Use it.
15482         Suggested by Simon Josefsson.
15483
15484 2007-03-27  Eric Blake  <ebb9@byu.net>
15485
15486         Support sub-second birthtime on cygwin.
15487         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15488         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15489         (get_stat_birthtime): Also work with st_birthtim.
15490
15491 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15492
15493         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15494         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15495         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15496         (get_stat_birthtime_ns): Simplify compile-time tests.
15497         (get_stat_birthtime): Change the API to look like
15498         get_stat_mtime etc., except return a negative tv_nsec on error.
15499         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15500         Don't check for "spare" fields.
15501         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15502         or for struct stat.st_birthtime, as these tests aren't used.
15503         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15504
15505 2007-03-27  Bruno Haible  <bruno@clisp.org>
15506
15507         * lib/stat-time.h: Include <sys/stat.h>.
15508
15509 2007-03-27  James Youngman  <jay@gnu.org>
15510
15511         * lib/stat-time.h (get_stat_birthtime): New function for
15512           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15513         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15514           and its variants.
15515         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15516         * modules/stat-time-test: New file.
15517         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15518
15519 2007-03-26  Bruno Haible  <bruno@clisp.org>
15520
15521         Better support of signalling NaNs.
15522         * lib/atanl.c: Include isnanl.h.
15523         (atanl): Perform test for NaN at the beginning of the function and
15524         through a call to isnanl.
15525         * lib/cosl.c: Include isnanl.h.
15526         (cosl): Perform test for NaN at the beginning of the function and
15527         through a call to isnanl.
15528         * lib/ldexpl.c: Include isnanl.h.
15529         (ldexpl): Perform test for NaN through a call to isnanl.
15530         * lib/logl.c: Include isnanl.h.
15531         (logl): Perform test for NaN at the beginning of the function and
15532         through a call to isnanl.
15533         * lib/sinl.c: Include isnanl.h.
15534         (sinl): Perform test for NaN at the beginning of the function and
15535         through a call to isnanl.
15536         * lib/sqrtl.c: Include isnanl.h.
15537         (sqrtl): Perform test for NaN at the beginning of the function and
15538         through a call to isnanl.
15539         * lib/tanl.c: Include isnanl.h.
15540         (tanl): Perform test for NaN at the beginning of the function and
15541         through a call to isnanl.
15542         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15543         * modules/mathl (Depends-on): Add isnanl.
15544
15545 2007-03-26  Eric Blake  <ebb9@byu.net>
15546
15547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15548         regression in logic sense of previous patch.
15549
15550 2007-03-26  Bruno Haible  <bruno@clisp.org>
15551
15552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15553         unportable shell command "if ! ...".
15554         Reported by Ralf Wildenhues.
15555
15556 2007-03-25  Bruno Haible  <bruno@clisp.org>
15557
15558         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15559         <sysexits.h> file, and only add EX_CONFIG.
15560         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15561         absolute file name and whether it is sufficient. Substitute also
15562         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15563         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15564         ABSOLUTE_SYSEXITS_H into sysexits.h.
15565
15566 2007-03-25  Bruno Haible  <bruno@clisp.org>
15567
15568         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15569         hints is NULL.
15570
15571 2007-03-25  Bruno Haible  <bruno@clisp.org>
15572
15573         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15574         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15575
15576 2007-03-25  Bruno Haible  <bruno@clisp.org>
15577
15578         * lib/vasnprintf.c: Include langinfo.h.
15579         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15580         multithread-safe.
15581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15590         Reported by Simon Josefsson.
15591
15592 2007-03-25  Bruno Haible  <bruno@clisp.org>
15593
15594         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15595         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15596         * modules/vasnprintf (Depends-on): Add stdint.
15597
15598 2007-03-25  Bruno Haible  <bruno@clisp.org>
15599
15600         * modules/fpieee: New file.
15601         * m4/fpieee.m4: New file.
15602         * modules/isnan-nolibm (Depends-on): Add fpieee.
15603         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15604         * modules/isnanl (Depends-on): Add fpieee.
15605
15606 2007-03-25  Bruno Haible  <bruno@clisp.org>
15607
15608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15609
15610 2007-03-25  Bruno Haible  <bruno@clisp.org>
15611
15612         Avoid test failures on IRIX 6.5.
15613         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15614         (main): Use it.
15615         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15616         macros.
15617         (main): Use them.
15618
15619 2007-03-25  Bruno Haible  <bruno@clisp.org>
15620
15621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15622         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15623         exists but doesn't work.
15624         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15625         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15627         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15628
15629 2007-03-25  Bruno Haible  <bruno@clisp.org>
15630
15631         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15632         returns inf. Needed on IRIX 6.5.
15633
15634 2007-03-25  Bruno Haible  <bruno@clisp.org>
15635
15636         * tests/test-frexpl.c: Include isnanl-nolibm.h.
15637         (main): Use isnanl instead of x != x idiom.
15638         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15639
15640         * tests/test-frexp.c: Include isnan.h.
15641         (main): Use isnan instead of x != x idiom.
15642         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15643
15644 2007-03-25  Bruno Haible  <bruno@clisp.org>
15645
15646         * tests/test-frexp.c (NaN): New function/macro.
15647         (main): Use it instead of 0.0 / 0.0.
15648         * tests/test-isnan.c (NaN): New function/macro.
15649         (main): Use it instead of 0.0 / 0.0.
15650         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15651         (test_function): Use it instead of 0.0 / 0.0.
15652         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15653         (test_function): Use it instead of 0.0 / 0.0.
15654         * tests/test-snprintf-posix.h (NaN): New function/macro.
15655         (test_function): Use it instead of 0.0 / 0.0.
15656         * tests/test-sprintf-posix.h (NaN): New function/macro.
15657         (test_function): Use it instead of 0.0 / 0.0.
15658         * tests/test-fprintf-posix.h (NaN): New function/macro.
15659         (test_function): Use it instead of 0.0 / 0.0.
15660         * tests/test-printf-posix.h (NaN): New function/macro.
15661         (test_function): Use it instead of 0.0 / 0.0.
15662
15663         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15664
15665 2007-03-25  Bruno Haible  <bruno@clisp.org>
15666
15667         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15668
15669 2007-03-25  Bruno Haible  <bruno@clisp.org>
15670
15671         * lib/regexec.c (merge_state_with_log): Make static.
15672
15673 2007-03-25  Bruno Haible  <bruno@clisp.org>
15674
15675         * lib/trigl.c (kernel_rem_pio2): Make static.
15676
15677 2007-03-25  Bruno Haible  <bruno@clisp.org>
15678
15679         * lib/sincosl.c (sincosl_table): Make static.
15680
15681 2007-03-25  Bruno Haible  <bruno@clisp.org>
15682
15683         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15684         if the compiler does not support C99.
15685
15686 2007-03-25  Bruno Haible  <bruno@clisp.org>
15687
15688         * modules/time (Makefile.am): Ensure all rule action lines start with a
15689         tab.
15690
15691 2007-03-24  Bruno Haible  <bruno@clisp.org>
15692
15693         * modules/tsearch-tests: New file.
15694         * tests/test-tsearch.sh: New file.
15695         * tests/test-tsearch.c: New file, mostly copied from glibc.
15696
15697         * modules/search-tests: New file.
15698         * tests/test-search.c: New file.
15699
15700         * modules/search: New file.
15701         * lib/search_.h: New file, incorporating lib/tsearch.h.
15702         * m4/search_h.m4: New file.
15703         * lib/tsearch.h: Remove file.
15704         * lib/tsearch.c: Include search.h instead of tsearch.h.
15705         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15706         HAVE_TSEARCH.
15707         * modules/tsearch (Files): Remove lib/tsearch.h.
15708         (Depends-on): Add search.
15709         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15710         (Include): Change tsearch.h into search.h.
15711
15712 2007-03-24  Bruno Haible  <bruno@clisp.org>
15713
15714         * modules/fpucw: New file.
15715         * lib/fpucw.h: New file.
15716         * lib/frexp.c: Include fpucw.h.
15717         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15718         (FUNC): Use them.
15719         * lib/printf-frexp.c: Include fpucw.h.
15720         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15721         (FUNC): Use them.
15722         * lib/vasnprintf.c: Include fpucw.h.
15723         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15724         'long double' calculations.
15725         * tests/test-frexpl.c: Include fpucw.h.
15726         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15727         * tests/test-printf-frexpl.c: Include fpucw.h.
15728         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15729         * modules/frexpl (Depends-on): Add fpucw.
15730         * modules/printf-frexpl (Depends-on): Likewise.
15731         * modules/fprintf-posix (Depends-on): Likewise.
15732         * modules/snprintf-posix (Depends-on): Likewise.
15733         * modules/sprintf-posix (Depends-on): Likewise.
15734         * modules/vasnprintf-posix (Depends-on): Likewise.
15735         * modules/vasprintf-posix (Depends-on): Likewise.
15736         * modules/vfprintf-posix (Depends-on): Likewise.
15737         * modules/vsnprintf-posix (Depends-on): Likewise.
15738         * modules/vsprintf-posix (Depends-on): Likewise.
15739         * modules/frexpl-tests (Depends-on): Likewise.
15740         * modules/printf-frexpl-tests (Depends-on): Likewise.
15741
15742 2007-03-24  Bruno Haible  <bruno@clisp.org>
15743
15744         * lib/float+.h: New file.
15745         * lib/isnan.c: Include float+.h.
15746         (SIZE): New macro.
15747         (FUNC): Compare only SIZE bytes of the value.
15748         * lib/vasnprintf.c: Include float+.h.
15749         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15750         SIZEOF_LDBL or SIZEOF_DBL bytes.
15751         * modules/isnan-nolibm (Files): Add lib/float+.h.
15752         * modules/isnanl-nolibm (Files): Add lib/float+.h.
15753         * modules/isnanl (Files): Add lib/float+.h.
15754         * modules/vasnprintf (Files): Add lib/float+.h.
15755
15756 2007-03-24  Bruno Haible  <bruno@clisp.org>
15757
15758         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15759         include isnanl-nolibm.h.
15760
15761 2007-03-24  Bruno Haible  <bruno@clisp.org>
15762
15763         * tests/test-read-file.c (main): Don't produce spurious output for
15764         expected situations. Make the test fail if it encountered unexpected
15765         results.
15766
15767 2007-03-24  Bruno Haible  <bruno@clisp.org>
15768
15769         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15770         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15771
15772 2007-03-24  Bruno Haible  <bruno@clisp.org>
15773
15774         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15775
15776 2007-03-24  Bruno Haible  <bruno@clisp.org>
15777
15778         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15779         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15780
15781         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15782         * modules/utf8-ucs4: Turn into a symbolic link to module
15783         unistr/u8-mbtouc.
15784
15785         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15786         utf8-ucs4-unsafe.
15787         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15788         unistr/u8-mbtouc-unsafe.
15789
15790         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15791         * modules/utf16-ucs4: Turn into a symbolic link to module
15792         unistr/u16-mbtouc.
15793
15794         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15795         utf16-ucs4-unsafe.
15796         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15797         unistr/u16-mbtouc-unsafe.
15798
15799         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15800         * modules/ucs4-utf8: Turn into a symbolic link to module
15801         unistr/u8-ubtomb.
15802
15803         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15804         * modules/ucs4-utf16: Turn into a symbolic link to module
15805         unistr/u16-ubtomb.
15806
15807 2007-03-24  Bruno Haible  <bruno@clisp.org>
15808
15809         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15810         Enable the function only if HAVE_INLINE.
15811         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15812         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15813         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15814         Enable the function only if HAVE_INLINE.
15815         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15816         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15817         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15818         Enable the function only if HAVE_INLINE.
15819         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15820         Enable the function only if HAVE_INLINE.
15821         * modules/utf8-ucs4: Update.
15822         * modules/utf8-ucs4-unsafe: Update.
15823         * modules/utf16-ucs4: Update.
15824         * modules/utf16-ucs4-unsafe: Update.
15825         * modules/ucs4-utf8: Update.
15826         * modules/ucs4-utf16: Update.
15827
15828 2007-03-24  Bruno Haible  <bruno@clisp.org>
15829
15830         * lib/utf8-ucs4.h: Remove file.
15831         * lib/utf8-ucs4-unsafe.h: Remove file.
15832         * lib/utf16-ucs4.h: Remove file.
15833         * lib/utf16-ucs4-unsafe.h: Remove file.
15834         * lib/ucs4-utf8.h: Remove file.
15835         * lib/ucs4-utf16.h: Remove file.
15836         * lib/unistr.h: Include their previous contents.
15837         * m4/utf-ucs4.m4: Remove file.
15838         * m4/ucs4-utf.m4: Remove file.
15839         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15840         (Depends-on): Add unistr/base.
15841         (configure.ac): Remove gl_UTF_UCS4.
15842         (Makefile.am): Update.
15843         (Include): Change to unistr.h.
15844         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15845         (Depends-on): Add unistr/base.
15846         (configure.ac): Remove gl_UTF_UCS4.
15847         (Makefile.am): Update.
15848         (Include): Change to unistr.h.
15849         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15850         (Depends-on): Add unistr/base.
15851         (configure.ac): Remove gl_UTF_UCS4.
15852         (Makefile.am): Update.
15853         (Include): Change to unistr.h.
15854         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15855         (Depends-on): Add unistr/base.
15856         (configure.ac): Remove gl_UTF_UCS4.
15857         (Makefile.am): Update.
15858         (Include): Change to unistr.h.
15859         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15860         (Depends-on): Add unistr/base.
15861         (configure.ac): Remove gl_UCS4_UTF.
15862         (Makefile.am): Update.
15863         (Include): Change to unistr.h.
15864         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15865         (Depends-on): Add unistr/base.
15866         (configure.ac): Remove gl_UCS4_UTF.
15867         (Makefile.am): Update.
15868         (Include): Change to unistr.h.
15869         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15870         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15871         utf8-ucs4-unsafe.h.
15872         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15873         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15874         utf16-ucs4-unsafe.h.
15875         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15876         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15877         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15878         * lib/unistr/u8-strchr.c: Likewise.
15879         * lib/unistr/u8-strrchr.c: Likewise.
15880         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15881         * lib/unistr/u16-strchr.c: Likewise.
15882         * lib/unistr/u16-strrchr.c: Likewise.
15883         * lib/striconveh.c: Update.
15884         * lib/linebreak.c: Update.
15885
15886 2007-03-24  Bruno Haible  <bruno@clisp.org>
15887
15888         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15889         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15890
15891 2007-03-22  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15894
15895 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15896
15897         * MODULES.html.sh (File system functions): New module write-any-file.
15898         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15899         * m4/write-any-file.m4: New files.
15900
15901 2007-03-23  Eric Blake  <ebb9@byu.net>
15902
15903         * gnulib-tool: Rearrange space-tab sequences, since some editors
15904         like to eat them.
15905
15906 2007-03-23  Eric Blake  <ebb9@byu.net>
15907
15908         * lib/version-etc.c (version_etc_va): Update license wording to
15909         be more concise.  Recommended by Richard Stallman.
15910
15911 2007-03-22  Bruno Haible  <bruno@clisp.org>
15912
15913         * lib/poll.c (MSG_PEEK): New fallback definition.
15914
15915 2007-03-22  Bruno Haible  <bruno@clisp.org>
15916
15917         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15918         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15919         (main): Update.
15920         Fixes a compilation error on BeOS.
15921
15922 2007-03-22  Bruno Haible  <bruno@clisp.org>
15923
15924         * modules/frexpl-tests: New file.
15925         * tests/test-frexpl.c: New file.
15926
15927         * modules/frexpl: New file.
15928         * m4/frexpl.m4: New file.
15929         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15930         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15932         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15933         (Depends-on): Add frexpl. Remove isnanl-nolibm.
15934         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15935
15936 2007-03-22  Bruno Haible  <bruno@clisp.org>
15937
15938         * lib/frexpl.c: Share code with lib/frexp.c.
15939         * modules/mathl (Files): Add lib/frexp.c.
15940         (Depends-on): Add isnanl-nolibm.
15941
15942 2007-03-22  Bruno Haible  <bruno@clisp.org>
15943
15944         * modules/printf-frexp (Files): Add m4/frexp.m4.
15945         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15946         only if the found frexp function actually works.
15947
15948 2007-03-22  Bruno Haible  <bruno@clisp.org>
15949
15950         * lib/frexp.c: Remove older implementation that uses divisions.
15951
15952 2007-03-21  Bruno Haible  <bruno@clisp.org>
15953
15954         * modules/frexp-tests: New file.
15955         * tests/test-frexp.c: New file.
15956
15957         * modules/frexp: New file.
15958         * lib/frexp.c: New file.
15959         * m4/frexp.m4: New file.
15960         * lib/math_.h (frexp): New declaration.
15961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15962         REPLACE_FREXP.
15963         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15964
15965 2007-03-21  Bruno Haible  <bruno@clisp.org>
15966
15967         * modules/isnanl-tests: New file.
15968         * tests/test-isnanl.c: New file.
15969
15970         * modules/isnanl: New file.
15971         * lib/isnanl.h: New file.
15972         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15973         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15974         gl_FUNC_ISNANL_WORKS.
15975         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15976         New macros.
15977
15978 2007-03-21  Bruno Haible  <bruno@clisp.org>
15979
15980         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15981         lib/isnanl.h.
15982         (Include): Update.
15983         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15984         * lib/vasnprintf.c: Update.
15985         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15986         tests/test-isnanl.h, remove tests/test-isnanl.c.
15987         (Makefile.am): Update.
15988         * tests/test-isnanl-nolibm.c: New file.
15989         * tests/test-isnanl.h: New file.
15990         * tests/test-isnanl.c: Remove file.
15991
15992 2007-03-21  Jim Meyering  <jim@meyering.net>
15993
15994         When trying to open ".", treat ESTALE like EACCES.
15995         * lib/savewd.c (savewd_save): Resort to forking not just upon
15996         failure with EACCES, but also when errno is ESTALE.
15997
15998 2007-03-20  Bruno Haible  <bruno@clisp.org>
15999
16000         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16001         Needed on AIX 5.1. Reported by Matthew Woehlke.
16002
16003 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         Suggestions by Bruno Haible:
16006         * lib/acl-internal.h: Include "gettext.h" rather than rolling
16007         our own.
16008         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16009         * modules/acl (Depends-on): Add gettext.
16010
16011 2007-03-19  Bruno Haible  <bruno@clisp.org>
16012
16013         * modules/iconvme: Remove file.
16014         * lib/iconvme.h: Remove file.
16015         * lib/iconvme.c: Remove file.
16016         * m4/iconvme.m4: Remove file.
16017
16018 2007-03-19  Bruno Haible  <bruno@clisp.org>
16019
16020         * doc/relocatable-maint.texi: Break long shell script line.
16021         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16022
16023 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16024
16025         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16026         handle file_has_acl.
16027         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16028         * lib/acl.c: Move header inclusions and related macro defns into
16029         lib/acl-internal.h.
16030         (S_ISLNK): Remove defn, since that's now done for us.
16031         (file_has_acl): Move to lib/file-has-acl.c.
16032         Call acl_trivial if available.  This is the crucial part of the fix.
16033         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16034         shared within the library.  Rewrite a bit, partly to make it compatible
16035         with the GNU coding style.
16036         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16037         Remove unnecessary double-quotes.
16038         Don't test for acl_to_text; the build will catch that.
16039         Replace acl_entries if it doesn't exist and it is needed.
16040         Check for -lsec and acl_trivial (as used on Solaris 10).
16041         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16042         lib/file-has-acl.c.
16043         (Depends-on): Add sys_stat, for S_ISLNK.
16044
16045 2007-03-19  Ben Pfaff  <blp@gnu.org>
16046
16047         * doc/gnulib.texi: Fix typos.
16048         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16049
16050 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16051
16052         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16053         If size is zero here, buf must be zero.
16054
16055 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16056
16057         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16058         <bruno@clisp.org>.
16059
16060 2007-03-18  Bruno Haible  <bruno@clisp.org>
16061
16062         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16063         Suggested by Eric Blake.
16064
16065 2007-03-18  Ben Pfaff  <blp@gnu.org>
16066
16067         * doc/relocatable.texi: Recommend using as prefix a directory
16068         that does not exist and will never be created.  Based on
16069         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16070         and others.
16071
16072 2007-03-17  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/fchownat.c: Include lchown.h.
16075
16076 2007-03-17  Bruno Haible  <bruno@clisp.org>
16077
16078         Fix endless loop when the given allocated size was > INT_MAX.
16079         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16080         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16081         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16082         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16083         * lib/sprintf.c (sprintf): Likewise.
16084
16085 2007-03-17  Bruno Haible  <bruno@clisp.org>
16086
16087         * tests/test-argp-2.sh (func_compare): Output a context diff.
16088
16089 2007-03-17  Bruno Haible  <bruno@clisp.org>
16090
16091         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16092         locale's decimal-point character.
16093
16094 2007-03-17  Bruno Haible  <bruno@clisp.org>
16095
16096         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16097         before comparing it. Needed because on some platforms (e.g. x86) a
16098         'long double' occupies less bytes than sizeof (long double).
16099
16100 2007-03-17  Bruno Haible  <bruno@clisp.org>
16101
16102         * tests/test-crc.c (main): Make printf statements 64-bit clean.
16103         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16104         * tests/test-getaddrinfo.c (simple): Likewise.
16105         * tests/test-read-file.c (main): Likewise.
16106
16107 2007-03-17  Bruno Haible  <bruno@clisp.org>
16108
16109         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16110
16111 2007-03-17  Bruno Haible  <bruno@clisp.org>
16112
16113         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16114         unused variable.
16115
16116 2007-03-17  Bruno Haible  <bruno@clisp.org>
16117
16118         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16119         * tests/test-c-strncasecmp.c: Likewise.
16120
16121 2007-03-17  Bruno Haible  <bruno@clisp.org>
16122
16123         * modules/stdlib (Depends-on): Add unistd.
16124         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16125         Needed for MacOS X 10.3.
16126
16127 2007-03-17  Bruno Haible  <bruno@clisp.org>
16128
16129         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16130
16131 2007-03-17  Bruno Haible  <bruno@clisp.org>
16132
16133         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16134
16135 2007-03-17  Bruno Haible  <bruno@clisp.org>
16136
16137         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16138         to reflect files copied from gnulib (with or without modifications).
16139         Suggested by Jim Meyering.
16140
16141 2007-03-17  Eric Blake  <ebb9@byu.net>
16142
16143         * NEWS: Document stdlib change from 2007-02-18.
16144
16145 2007-03-17  Jim Meyering  <jim@meyering.net>
16146
16147         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16148         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16149         someone uses a name containing shell meta-characters.
16150         Reported by Alfred M. Szmidt.
16151
16152         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16153
16154 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16155
16156         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16157         and copy gettext configuration files only if configure.ac contains
16158         a use of AM_GNU_GETTEXT_VERSION.
16159
16160 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16161
16162         * build-aux/bootstrap (gnulib_name): New variable.
16163         (gnulib_tool_options): Use it.
16164
16165 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16166
16167         * tests/test-des.c: Use new namespace.
16168
16169 2007-03-15  Bruno Haible  <bruno@clisp.org>
16170
16171         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16172         Reported by James Youngman <jay@gnu.org>.
16173
16174 2007-03-15  Bruno Haible  <bruno@clisp.org>
16175
16176         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16177         declared prototype. Needed with cc on OSF/1 5.1.
16178
16179 2007-03-15  Bruno Haible  <bruno@clisp.org>
16180
16181         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16182         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16183         (struct gl_list_implementation): Add dispose_fn argument to the
16184         'create_empty', 'create' methods.
16185         (struct gl_list_impl_base): Add field 'dispose_fn'.
16186         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16187         argument.
16188         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16189         dispose_fn argument.
16190         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16191         dispose_fn on the dropped values.
16192         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16193         dispose_fn argument.
16194         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16195         dropped values.
16196         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16197         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16198         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16199         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16200         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16201         argument.
16202         (gl_tree_list_free): Call dispose_fn on the dropped values.
16203         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16204         the dropped values.
16205         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16206         Add dispose_fn argument.
16207         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16208         Call dispose_fn on the dropped values.
16209         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16210         Add dispose_fn argument.
16211         (gl_sublist_create): Initialize the 'dispose_fn' field.
16212         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16213         * tests/test-array_list.c (main): Update.
16214         * tests/test-carray_list.c (main): Update.
16215         * tests/test-avltree_list.c (main): Update.
16216         * tests/test-rbtree_list.c (main): Update.
16217         * tests/test-avltreehash_list.c (main): Update.
16218         * tests/test-rbtreehash_list.c (main): Update.
16219         * tests/test-linked_list.c (main): Update.
16220         * tests/test-linkedhash_list.c (main): Update.
16221         * tests/test-array_oset.c (main): Update.
16222
16223 2007-03-15  Bruno Haible  <bruno@clisp.org>
16224
16225         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16226         (gl_oset_create_empty): Add dispose_fn argument.
16227         (struct gl_oset_implementation): Add dispose_fn argument to
16228         'create_empty' method.
16229         (struct gl_oset_impl_base): Add dispose_fn field.
16230         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16231         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16232         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16233         values.
16234         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16235         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16236         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16237         dropped value.
16238         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16239         dropped value.
16240         * tests/test-array_oset.c (main): Update.
16241         * tests/test-avltree_oset.c (main): Update.
16242         * tests/test-rbtree_oset.c (main): Update.
16243         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16244
16245 2007-03-13  Bruno Haible  <bruno@clisp.org>
16246
16247         * tests/test-stdbool.c (i): Update after last patch.
16248
16249 2007-03-12  Bruno Haible  <bruno@clisp.org>
16250
16251         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16252         the iswprint macro. Needed on Solaris 2.5.1.
16253
16254 2007-03-12  Bruno Haible  <bruno@clisp.org>
16255
16256         * tests/test-printf-frexp.c (main): Declare x as volatile.
16257
16258 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16259
16260         * doc/gnulib.texi (Build robot for gnulib): New section.
16261
16262 2007-03-12  Jim Meyering  <jim@meyering.net>
16263
16264         * build-aux/bootstrap: New file.
16265         * build-aux/bootstrap.conf: New file, from coreutils.
16266
16267 2007-03-11  Bruno Haible  <bruno@clisp.org>
16268
16269         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16270
16271 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16272
16273         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16274         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16275         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16276
16277 2007-03-11  Bruno Haible  <bruno@clisp.org>
16278
16279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16280         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16281
16282 2007-03-11  Bruno Haible  <bruno@clisp.org>
16283
16284         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16285         formula. Needed for SunPRO C 5.0.
16286
16287 2007-03-11  Bruno Haible  <bruno@clisp.org>
16288
16289         * modules/long-options (Depends-on): Add getopt.
16290
16291 2007-03-11  Bruno Haible  <bruno@clisp.org>
16292
16293         * modules/modechange (Depends-on): Add stdbool.
16294
16295 2007-03-11  Bruno Haible  <bruno@clisp.org>
16296
16297         * modules/i-ring (Depends-on): Add stdbool.
16298
16299 2007-03-11  Bruno Haible  <bruno@clisp.org>
16300
16301         * modules/gc-des (Depends-on): Add stdbool.
16302
16303 2007-03-11  Bruno Haible  <bruno@clisp.org>
16304
16305         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16306
16307 2007-03-11  Bruno Haible  <bruno@clisp.org>
16308
16309         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16310
16311 2007-03-11  Bruno Haible  <bruno@clisp.org>
16312
16313         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16314
16315 2007-03-11  Bruno Haible  <bruno@clisp.org>
16316
16317         * lib/vasnprintf.c (sprintf): Undefine.
16318
16319 2007-03-11  Bruno Haible  <bruno@clisp.org>
16320
16321         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16322         initializers in SunPRO C and Compaq C compilers.
16323
16324 2007-03-11  Bruno Haible  <bruno@clisp.org>
16325
16326         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16327         decrementing code ANSI C compliant.
16328
16329 2007-03-11  Bruno Haible  <bruno@clisp.org>
16330
16331         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16332         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16333
16334 2007-03-11  Bruno Haible  <bruno@clisp.org>
16335
16336         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16337         <stdbool.h> substitute doesn't pass.
16338
16339 2007-03-11  Bruno Haible  <bruno@clisp.org>
16340
16341         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16342
16343 2007-03-11  Bruno Haible  <bruno@clisp.org>
16344
16345         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16346         script, for submission to autobuild.josefsson.org.
16347
16348 2007-03-10  Bruno Haible  <bruno@clisp.org>
16349
16350         * modules/canonicalize-lgpl-tests: New file.
16351         * tests/test-canonicalize-lgpl.sh: New file.
16352         * tests/test-canonicalize-lgpl.c: New file.
16353
16354         * modules/c-strcase-tests: New file.
16355         * tests/test-c-strcase.sh: New file.
16356         * tests/test-c-strcasecmp.c: New file.
16357         * tests/test-c-strncasecmp.c: New file.
16358
16359         * modules/atexit-tests: New file.
16360         * tests/test-atexit.sh: New file.
16361         * tests/test-atexit.c: New file.
16362
16363 2007-03-10  Bruno Haible  <bruno@clisp.org>
16364
16365         * tests/test-binary-io.sh: Use temporary filenames that are not so
16366         likely to clash with those of other tests (in a parallel make).
16367         * tests/test-binary-io.c: Likewise.
16368
16369 2007-03-10  Bruno Haible  <bruno@clisp.org>
16370
16371         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16372         fallback; use #error instead.
16373         Suggested by Simon Josefsson.
16374
16375 2007-03-10  Bruno Haible  <bruno@clisp.org>
16376
16377         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16378         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16379         first and the last.
16380
16381 2007-03-10  Bruno Haible  <bruno@clisp.org>
16382
16383         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16384
16385 2007-03-10  Bruno Haible  <bruno@clisp.org>
16386
16387         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16388         "make distcheck".
16389         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16390         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16391         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16392
16393 2007-03-10  Bruno Haible  <bruno@clisp.org>
16394
16395         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16396         variable.
16397         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16398         variable.
16399
16400 2007-03-09  Eric Blake  <ebb9@byu.net>
16401         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16402
16403         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16404         types are not being provided by gnulib.
16405         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16406         types are supported.
16407
16408 2007-03-10  Bruno Haible  <bruno@clisp.org>
16409
16410         * lib/stdio_.h (__attribute__): New macro.
16411         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16412         vsprintf): Specify __attribute__ __format__ for GCC.
16413         Suggested by Eric Blake.
16414
16415 2007-03-09  Bruno Haible  <bruno@clisp.org>
16416
16417         * modules/printf-posix-tests: New file.
16418         * tests/test-printf-posix.sh: New file.
16419         * tests/test-printf-posix.c: New file.
16420
16421         * modules/printf-posix: New file.
16422         * lib/printf.c: New file.
16423         * m4/printf-posix-rpl.m4: New file.
16424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16425         REPLACE_PRINTF.
16426         * lib/stdio_.h (printf): New declaration.
16427         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16428         ____strfmon____): New macros.
16429         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16430         REPLACE_PRINTF.
16431
16432 2007-03-09  Bruno Haible  <bruno@clisp.org>
16433
16434         * tests/test-vasnprintf-posix2.sh: New file.
16435         * tests/test-vasnprintf-posix2.c: New file.
16436         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16437         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16438         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16439
16440         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16441         a locale dependent decimal point, rather than always '.'.
16442
16443 2007-03-09  Eric Blake  <ebb9@byu.net>
16444
16445         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16446         spite of platforms like Tandem/NSK that define it to -1.
16447
16448 2007-03-08  Bruno Haible  <bruno@clisp.org>
16449
16450         * modules/vprintf-posix-tests: New file.
16451         * tests/test-vprintf-posix.sh: New file.
16452         * tests/test-vprintf-posix.c: New file.
16453         * tests/test-printf-posix.h: New file.
16454
16455         * modules/vprintf-posix: New file.
16456         * lib/vprintf.c: New file.
16457         * m4/vprintf-posix.m4: New file.
16458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16459         REPLACE_VPRINTF.
16460         * lib/stdio_.h (vprintf): New declaration.
16461         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16462         REPLACE_VPRINTF.
16463
16464 2007-03-08  Bruno Haible  <bruno@clisp.org>
16465
16466         * modules/fprintf-posix-tests: New file.
16467         * tests/test-fprintf-posix.sh: New file.
16468         * tests/test-fprintf-posix.c: New file.
16469
16470         * modules/fprintf-posix: New file.
16471         * lib/fprintf.c: New file.
16472         * m4/fprintf-posix.m4: New file.
16473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16474         REPLACE_FPRINTF.
16475         * lib/stdio_.h (fprintf): New declaration.
16476         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16477         REPLACE_FPRINTF.
16478
16479 2007-03-08  Bruno Haible  <bruno@clisp.org>
16480
16481         * modules/vfprintf-posix-tests: New file.
16482         * tests/test-vfprintf-posix.sh: New file.
16483         * tests/test-vfprintf-posix.c: New file.
16484         * tests/test-fprintf-posix.h: New file.
16485         * tests/test-fprintf-posix.out: New file.
16486
16487         * modules/vfprintf-posix: New file.
16488         * lib/vfprintf.c: New file.
16489         * m4/vfprintf-posix.m4: New file.
16490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16491         REPLACE_VFPRINTF.
16492         * lib/stdio_.h (vfprintf): New declaration.
16493         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16494         REPLACE_VFPRINTF.
16495
16496 2007-03-08  Bruno Haible  <bruno@clisp.org>
16497
16498         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16499
16500 2007-03-08  Bruno Haible  <bruno@clisp.org>
16501
16502         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16503         instead of 'expr' invocations.
16504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16508         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16509         Suggested by Paul Eggert.
16510
16511 2007-03-08  Bruno Haible  <bruno@clisp.org>
16512
16513         * modules/fseterr-tests: New file.
16514         * tests/test-fseterr.c: New file.
16515
16516         * modules/fseterr: New file.
16517         * lib/fseterr.h: New file.
16518         * lib/fseterr.c: New file.
16519
16520 2007-03-08  Bruno Haible  <bruno@clisp.org>
16521
16522         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16523         * lib/getopt_.h: Likewise.
16524         * lib/mbswidth.h: Likewise.
16525         * lib/setenv.h: Likewise.
16526         * lib/vasnprintf.h: Likewise.
16527         * lib/vasprintf.h: Likewise.
16528         * lib/verror.h: Likewise.
16529         * lib/xsetenv.h: Likewise.
16530         * lib/xvasprintf.h: Likewise.
16531
16532 2007-03-08  Jim Meyering  <jim@meyering.net>
16533
16534         * users.txt: Add parted.
16535
16536         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16537
16538 2007-03-07  Bruno Haible  <bruno@clisp.org>
16539
16540         * m4/printf.m4: Make the shell script snippets copy&pastable.
16541
16542 2007-03-02  Bruno Haible  <bruno@clisp.org>
16543
16544         * lib/netinet_in_.h: New file.
16545         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16546         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16547         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16548         (Depends-on): Add absolute-header.
16549         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16550         into netinet/in.h.
16551
16552 2007-03-03  Bruno Haible  <bruno@clisp.org>
16553
16554         * lib/sys_select_.h: New file.
16555         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16556         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16557         * modules/sys_select (Files): Add lib/sys_select_.h.
16558         (Depends-on): Add absolute-header.
16559         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16560         into sys/select.h.
16561
16562 2007-03-02  Bruno Haible  <bruno@clisp.org>
16563
16564         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16565         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16566         values.
16567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16568         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16569         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16570         * modules/sys_socket (Depends-on): Add absolute-header.
16571         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16572         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16573         (Include): Remove requirement of inclusion of <sys/types.h>.
16574
16575 2007-03-02  Bruno Haible  <bruno@clisp.org>
16576
16577         * lib/byteswap_.h (bswap_32): Fix formula.
16578
16579 2007-03-06  Bruno Haible  <bruno@clisp.org>
16580
16581         * modules/sprintf-posix-tests: New file.
16582         * tests/test-sprintf-posix.c: New file.
16583
16584         * modules/sprintf-posix: New file.
16585         * lib/sprintf.c: New file.
16586         * m4/sprintf-posix.m4: New file.
16587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16588         REPLACE_SPRINTF.
16589         * lib/stdio_.h (sprintf): New declaration.
16590         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16591         REPLACE_SPRINTF.
16592
16593 2007-03-06  Bruno Haible  <bruno@clisp.org>
16594
16595         * modules/vsprintf-posix-tests: New file.
16596         * tests/test-vsprintf-posix.c: New file.
16597         * tests/test-sprintf-posix.h: New file.
16598
16599         * modules/vsprintf-posix: New file.
16600         * lib/vsprintf.c: New file.
16601         * m4/vsprintf-posix.m4: New file.
16602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16603         REPLACE_VSPRINTF.
16604         * lib/stdio_.h (vsprintf): New declaration.
16605         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16606         REPLACE_VSPRINTF.
16607
16608 2007-03-06  Bruno Haible  <bruno@clisp.org>
16609
16610         * modules/vsnprintf (Depend-on): Remove minmax.
16611
16612 2007-03-06  Bruno Haible  <bruno@clisp.org>
16613
16614         * modules/snprintf-posix-tests: New file.
16615         * tests/test-snprintf-posix.c: New file.
16616
16617         * modules/snprintf-posix: New file.
16618         * m4/snprintf-posix.m4: New file.
16619         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16620         gl_FUNC_SNPRINTF.
16621         (gl_FUNC_SNPRINTF): Invoke it.
16622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16623         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16624         is set.
16625         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16626
16627 2007-03-06  Bruno Haible  <bruno@clisp.org>
16628
16629         * modules/vsnprintf-posix-tests: New file.
16630         * tests/test-vsnprintf-posix.c: New file.
16631         * tests/test-snprintf-posix.h: New file.
16632
16633         * modules/vsnprintf-posix: New file.
16634         * m4/vsnprintf-posix.m4: New file.
16635         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16636         gl_FUNC_VSNPRINTF.
16637         (gl_FUNC_VSNPRINTF): Invoke it.
16638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16639         * lib/stdio_.h (vsnprintf): Define as a replacement if
16640         REPLACE_VSNPRINTF is set.
16641         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16642
16643 2007-03-06  Bruno Haible  <bruno@clisp.org>
16644
16645         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16647
16648 2007-03-06  Bruno Haible  <bruno@clisp.org>
16649
16650         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16651         (asinl): Declare also if HAVE_DECL_ASINL is set.
16652         (atanl): Declare also if HAVE_DECL_ATANL is set.
16653         (ceill): Declare also if HAVE_DECL_CEILL is set.
16654         (cosl): Declare also if HAVE_DECL_COSL is set.
16655         (expl): Declare also if HAVE_DECL_EXPL is set.
16656         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16657         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16658         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16659         (logl): Declare also if HAVE_DECL_LOGL is set.
16660         (sinl): Declare also if HAVE_DECL_SINL is set.
16661         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16662         (tanl): Declare also if HAVE_DECL_TANL is set.
16663         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16665         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16666         declaration of frexpl, ldexpl.
16667         * modules/printf-frexpl (Depends-on): Add math.
16668         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16669
16670 2007-03-05  Bruno Haible  <bruno@clisp.org>
16671
16672         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16673         frexpl and ldexpl are declared.
16674         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16675
16676 2007-03-05  Bruno Haible  <bruno@clisp.org>
16677
16678         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16679         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16680
16681 2007-03-05  Bruno Haible  <bruno@clisp.org>
16682
16683         * lib/stdio_.h: Include <stddef.h>.
16684
16685 2007-03-05  Bruno Haible  <bruno@clisp.org>
16686
16687         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16688
16689 2007-03-05  Bruno Haible  <bruno@clisp.org>
16690
16691         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16692         NetBSD 4, from Ralf Wildenhues.
16693
16694 2007-03-04  Bruno Haible  <bruno@clisp.org>
16695
16696         * lib/vasprintf.h: Update #if logic for the case when the functions
16697         exist but are overridden.
16698
16699 2007-03-04  Bruno Haible  <bruno@clisp.org>
16700
16701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16702         implementations: glibc-2.4 and MacOS X 10.3.
16703         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16704         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16705         * tests/test-vasprintf-posix.c (test_function): Likewise.
16706
16707 2007-03-04  Bruno Haible  <bruno@clisp.org>
16708
16709         * modules/vasprintf-posix-tests: New file.
16710         * tests/test-vasprintf-posix.c: New file.
16711
16712         * modules/vasprintf-posix: New file.
16713         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16714         defined.
16715         * m4/vasprintf-posix.m4: New file.
16716         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16717         gl_FUNC_VASPRINTF.
16718         (gl_FUNC_VASPRINTF): Invoke it.
16719         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16720         here.
16721         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16722
16723 2007-03-04  Bruno Haible  <bruno@clisp.org>
16724
16725         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16726         REPLACE_GETTIMEOFDAY.
16727         * modules/sys_time (Makefile.am): Likewise.
16728         * m4/sys_time_h.m4: Likewise.
16729         * m4/gettimeofday.m4: Likewise.
16730
16731 2007-03-04  Bruno Haible  <bruno@clisp.org>
16732
16733         * modules/vasnprintf-posix-tests: New file.
16734         * tests/test-vasnprintf-posix.c: New file.
16735
16736         * modules/vasnprintf-posix: New file.
16737         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16738         printf-frexpl.h.
16739         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16740         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16741         REPLACE_VASNPRINTF is defined.
16742         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16743         gl_FUNC_VASNPRINTF.
16744         (gl_FUNC_VASNPRINTF): Invoke it.
16745         * m4/vasnprintf-posix.m4: New file.
16746         * m4/printf.m4: New file.
16747
16748 2007-03-04  Bruno Haible  <bruno@clisp.org>
16749
16750         Compile progreloc.c only if --enable-relocatable is specified.
16751         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16752         if --enable-relocatable was specified.
16753         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16754         lib_SOURCES.
16755
16756 2007-03-04  Jim Meyering  <jim@meyering.net>
16757
16758         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16759         Use it consistently, rather than enumerating errno constants.
16760
16761 2007-03-04  Bruno Haible  <bruno@clisp.org>
16762
16763         * modules/xvasprintf-tests: New file.
16764         * tests/test-xvasprintf.c: New file.
16765
16766         * modules/vasprintf-tests: New file.
16767         * tests/test-vasprintf.c: New file.
16768
16769         * modules/vasnprintf-tests: New file.
16770         * tests/test-vasnprintf.c: New file.
16771
16772         * modules/vsnprintf-tests: New file.
16773         * tests/test-vsnprintf.c: New file.
16774
16775         * modules/snprintf-tests: New file.
16776         * tests/test-snprintf.c: New file.
16777
16778 2007-03-04  Bruno Haible  <bruno@clisp.org>
16779
16780         Compile relocatable.c only if --enable-relocatable is specified.
16781         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16782         gl_RELOCATABLE_LIBRARY.
16783         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16784         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16785         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16786         gl_RELOCATABLE_LIBRARY.
16787         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16788         (Makefile.am): Remove lib_SOURCES.
16789         * modules/relocatable-lib-lgpl (configure.ac): Invoke
16790         gl_RELOCATABLE_LIBRARY.
16791         (Makefile.am): Remove lib_SOURCES.
16792         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16793         always.
16794         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16795         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16796
16797 2007-03-04  Bruno Haible  <bruno@clisp.org>
16798
16799         * modules/argmatch-tests: New file.
16800         * tests/test-argmatch.c: New file.
16801
16802         * tests/test-allocsa.c (main): Halve the number of loop runs.
16803
16804         * modules/alloca-opt-tests: New file.
16805         * tests/test-alloca-opt.c: New file.
16806
16807 2007-03-04  Jim Meyering  <jim@meyering.net>
16808
16809         Work around difference between Linux ACLs and Solaris 10 ZFS.
16810         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16811         for EINVAL.
16812
16813 2007-03-03  Bruno Haible  <bruno@clisp.org>
16814
16815         * modules/relocatable-prog (Depends-on): Add back progreloc's
16816         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16817
16818 2007-03-03  Bruno Haible  <bruno@clisp.org>
16819
16820         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16821         * modules/relocatable-lib: New file.
16822
16823 2007-03-03  Bruno Haible  <bruno@clisp.org>
16824
16825         * modules/relocatable-prog: Renamed from modules/relocatable.
16826         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16827
16828 2007-03-03  Bruno Haible  <bruno@clisp.org>
16829
16830         * modules/relocatable-script (Files): Add doc/relocatable.texi,
16831         m4/relocatable-lib.m4.
16832         (Depends-on): Remove 'relocatable'.
16833         (configure.ac): Add gl_RELOCATABLE_NOP.
16834
16835 2007-03-03  Bruno Haible  <bruno@clisp.org>
16836
16837         * modules/relocatable-prog-wrapper: New file.
16838         * modules/relocatable (Depends-on): Add it. Remove all other
16839         dependencies except progname.
16840         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16841
16842         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16843         (gl_FUNC_STRERROR): Nop.
16844         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16845
16846         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16847         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16848
16849         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16850         (gl_FUNC_READLINK): Update.
16851
16852         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16853
16854 2007-03-03  Bruno Haible  <bruno@clisp.org>
16855
16856         * lib/xreadlink.c: Include <unistd.h> unconditionally.
16857         * modules/xreadlink (Depends-on): Add unistd.
16858         * modules/xreadlink-with-size (Depends-on): Likewise.
16859
16860 2007-03-03  Bruno Haible  <bruno@clisp.org>
16861
16862         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16863         extracted from gt_FUNC_SETENV.
16864         (gt_FUNC_SETENV): Remove macro.
16865         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16866         remove gt_FUNC_SETENV.
16867
16868 2007-03-03  Bruno Haible  <bruno@clisp.org>
16869
16870         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16871         ENABLE_RELOCATABLE here.
16872         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16873
16874 2007-03-03  Bruno Haible  <bruno@clisp.org>
16875
16876         * modules/rbtreehash-list-tests (Depends-on): Add progname.
16877         * tests/test-rbtreehash_list.c: Include progname.h.
16878         (main): Call set_program_name.
16879
16880         * modules/rbtree-oset-tests (Depends-on): Add progname.
16881         * tests/test-rbtree_oset.c: Include progname.h.
16882         (main): Call set_program_name.
16883
16884         * modules/rbtree-list-tests (Depends-on): Add progname.
16885         * tests/test-rbtree_list.c: Include progname.h.
16886         (main): Call set_program_name.
16887
16888         * modules/linked-list-tests (Depends-on): Add progname.
16889         * tests/test-linked_list.c: Include progname.h.
16890         (main): Call set_program_name.
16891
16892 2007-03-03  Bruno Haible  <bruno@clisp.org>
16893
16894         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16895         All uses of __restrict changed to _Restrict_.
16896         * lib/glob_.h (__restrict): Remove macro.
16897
16898 2007-03-02  Bruno Haible  <bruno@clisp.org>
16899
16900         * modules/gettext (configure.ac): Require gettext infrastructure
16901         from version 0.16.1.
16902
16903 2007-03-02  Bruno Haible  <bruno@clisp.org>
16904
16905         * modules/linkedhash-list-tests (Depends-on): Add progname.
16906         * tests/test-linkedhash_list.c: Include progname.h.
16907         (main): Call set_program_name.
16908
16909         * modules/carray-list-tests (Depends-on): Add progname.
16910         * tests/test-carray_list.c: Include progname.h.
16911         (main): Call set_program_name.
16912
16913         * modules/avltreehash-list-tests (Depends-on): Add progname.
16914         * tests/test-avltreehash_list.c: Include progname.h.
16915         (main): Call set_program_name.
16916
16917         * modules/avltree-oset-tests (Depends-on): Add progname.
16918         * tests/test-avltree_oset.c: Include progname.h.
16919         (main): Call set_program_name.
16920
16921         * modules/avltree-list-tests (Depends-on): Add progname.
16922         * tests/test-avltree_list.c: Include progname.h.
16923         (main): Call set_program_name.
16924
16925         * modules/array-oset-tests (Depends-on): Add progname.
16926         * tests/test-array_oset.c: Include progname.h.
16927         (main): Call set_program_name.
16928
16929         * modules/array-list-tests (Depends-on): Add progname.
16930         * tests/test-array_list.c: Include progname.h.
16931         (main): Call set_program_name.
16932
16933         * modules/argp-tests (Depends-on): Add progname.
16934         * tests/test-argp.c: Include argp.h first. Include progname.h.
16935         (main): Call set_program_name.
16936
16937 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
16938
16939         * doc/gnulib-tool.texi (Initial import): Reword description of
16940         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16941         limited effect even if defined after the first system include.
16942
16943 2007-03-01  Bruno Haible  <bruno@clisp.org>
16944
16945         * build-aux/config.libpath: Update to libtool-1.5.22.
16946         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16947
16948 2007-03-01  Bruno Haible  <bruno@clisp.org>
16949
16950         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16951         foo_CFLAGS.
16952         Reported by Ralf Wildenhues.
16953
16954 2007-03-01  Bruno Haible  <bruno@clisp.org>
16955
16956         * build-aux/install-reloc: Remove object files left over by some
16957         compilers.
16958         Reported by Ralf Wildenhues.
16959
16960 2007-03-01  Bruno Haible  <bruno@clisp.org>
16961
16962         * build-aux/install-reloc: Break long lines.
16963
16964 2007-03-01  Bruno Haible  <bruno@clisp.org>
16965
16966         * doc/relocatable.texi: Document that it may not work on OpenBSD.
16967         Reported by Ralf Wildenhues.
16968
16969 2007-03-01  Bruno Haible  <bruno@clisp.org>
16970
16971         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16972         include ordering constraints.
16973
16974 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16975
16976         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16978         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16979         as another example.
16980         * lib/time_.h: Fix misspelling.
16981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16982         Require gl_HEADER_TIME_H_DEFAULTS.
16983         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16984         * m4/time_r.m4 (gl_TIME_R): Likewise.
16985         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16986
16987 2007-03-01  Bruno Haible  <bruno@clisp.org>
16988
16989         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16990         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16991
16992 2007-03-01  Jim Meyering  <jim@meyering.net>
16993
16994         * modules/xreadlink (Maintainer): Add my name.
16995         * modules/xreadlink-with-size (Depends-on): Alphabetize.
16996
16997 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
16998             Bruno Haible  <bruno@clisp.org>
16999
17000         * build-aux/install-reloc: Compile also c-ctype.c.
17001         * build-aux/relocatable.sh.in: New file.
17002         * doc/relocatable.texi: New file.
17003         * doc/relocatable-maint.texi: New file.
17004         * doc/gnulib.texi: Include relocatable-maint.texi.
17005         * lib/progreloc.c: Include unistd.h unconditionally.
17006         * lib/relocwrapper.c: Include unistd.h unconditionally.
17007         Include c-ctype.h.
17008         (add_dotbin): Use c_tolower.
17009         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17010         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17011         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17012         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17013         to m4/relocatable-lib.m4.
17014         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17015         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17016         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17017         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17018         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17019         * modules/relocatable: New file.
17020         * modules/relocatable-lib: New file.
17021         * modules/relocatable-script: New file.
17022
17023 2007-02-28  Bruno Haible  <bruno@clisp.org>
17024
17025         Import --enable-relocatable infrastructure.
17026         * build-aux/config.libpath: New file, from GNU gettext.
17027         * build-aux/install-reloc: New file, from GNU gettext.
17028         * build-aux/reloc-ldflags: New file, from GNU gettext.
17029         * lib/relocatable.h: New file, from GNU gettext.
17030         * lib/relocatable.c: New file, from GNU gettext.
17031         * lib/relocwrapper.c: New file, from GNU gettext.
17032         * m4/relocatable.m4: New file, from GNU gettext.
17033
17034 2007-02-28  Bruno Haible  <bruno@clisp.org>
17035
17036         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17037
17038         * modules/xreadlink: New file, from GNU gettext with modifications.
17039         * lib/xreadlink.c: New file, from GNU gettext.
17040         * lib/xreadlink.h: Add comments.
17041         (xreadlink): New declaration.
17042
17043         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17044         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17045         lib/xreadlink-with-size.c.
17046         (configure.ac): Remove gl_XREADLINK invocation.
17047         (Makefile.am): Augment lib_SOURCES.
17048         * m4/xreadlink.m4: Remove file.
17049         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17050         (xreadlink_with_size): Renamed from xreadink.
17051         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17052         * modules/canonicalize (Depends-on): Replace xreadlink with
17053         xreadlink-with-size.
17054         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17055
17056 2007-02-25  Jim Meyering  <jim@meyering.net>
17057
17058         * build-aux/announce-gen: When complaining about excess arguments,
17059         list them.
17060
17061 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         * README: Document signed integer overflow situation more
17064         accurately.
17065
17066 2007-02-25  Bruno Haible  <bruno@clisp.org>
17067
17068         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17069         'a' or 'A' conversion.
17070
17071 2007-02-25  Bruno Haible  <bruno@clisp.org>
17072
17073         * modules/filename: Renamed from modules/pathname.
17074         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17075         lib/concatpath.c with lib/concat-filename.c.
17076         (Makefile.am): Update.
17077         (Include): Replace pathname.h with filename.h.
17078         * lib/filename.h: Renamed from lib/pathname.h.
17079         (concatenated_filename): Renamed from concatenated_pathname.
17080         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17081         (concatenated_filename): Renamed from concatenated_pathname.
17082         * lib/findprog.c: Include filename.h instead of pathname.h.
17083         (find_in_path): Update.
17084         * lib/javacomp.c: Include filename.h instead of pathname.h.
17085         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17086         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17087         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17088         is_oldgcj_14_13_usable, is_javac_usable): Update.
17089         * lib/javaexec.c: Include filename.h instead of pathname.h.
17090         (execute_java_class): Update.
17091         * modules/findprog: Update.
17092         * modules/javacomp: Update.
17093         * modules/javaexec: Update.
17094         * MODULES.html.sh (File system functions): Add 'filename', remove
17095         'pathname'.
17096
17097 2007-02-25  Bruno Haible  <bruno@clisp.org>
17098
17099         * modules/printf-frexpl-tests: New file.
17100         * tests/test-printf-frexpl.c: New file.
17101
17102         * modules/printf-frexpl: New file.
17103         * lib/printf-frexpl.h: New file.
17104         * lib/printf-frexpl.c: New file.
17105         * m4/printf-frexpl.m4: New file.
17106
17107 2007-02-25  Bruno Haible  <bruno@clisp.org>
17108
17109         * modules/printf-frexp-tests: New file.
17110         * tests/test-printf-frexp.c: New file.
17111
17112         * modules/printf-frexp: New file.
17113         * lib/printf-frexp.h: New file.
17114         * lib/printf-frexp.c: New file.
17115         * m4/printf-frexp.m4: New file.
17116
17117 2007-02-25  Bruno Haible  <bruno@clisp.org>
17118
17119         Assume automake >= 1.10 for the tests.
17120         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17121         * modules/arctwo-tests: Likewise.
17122         * modules/argp-tests: Likewise.
17123         * modules/avltree-list-tests: Likewise.
17124         * modules/avltree-oset-tests: Likewise.
17125         * modules/avltreehash-list-tests: Likewise.
17126         * modules/carray-list-tests: Likewise.
17127         * modules/crc-tests: Likewise.
17128         * modules/des-tests: Likewise.
17129         * modules/gc-arcfour-tests: Likewise.
17130         * modules/gc-arctwo-tests: Likewise.
17131         * modules/gc-des-tests: Likewise.
17132         * modules/gc-hmac-md5-tests: Likewise.
17133         * modules/gc-hmac-sha1-tests: Likewise.
17134         * modules/gc-md2-tests: Likewise.
17135         * modules/gc-md4-tests: Likewise.
17136         * modules/gc-md5-tests: Likewise.
17137         * modules/gc-pbkdf2-sha1-tests: Likewise.
17138         * modules/gc-rijndael-tests: Likewise.
17139         * modules/gc-sha1-tests: Likewise.
17140         * modules/gc-tests: Likewise.
17141         * modules/getaddrinfo-tests: Likewise.
17142         * modules/hmac-md5-tests: Likewise.
17143         * modules/hmac-sha1-tests: Likewise.
17144         * modules/linked-list-tests: Likewise.
17145         * modules/linkedhash-list-tests: Likewise.
17146         * modules/lock-tests: Likewise.
17147         * modules/md2-tests: Likewise.
17148         * modules/md4-tests: Likewise.
17149         * modules/md5-tests: Likewise.
17150         * modules/rbtree-list-tests: Likewise.
17151         * modules/rbtree-oset-tests: Likewise.
17152         * modules/rbtreehash-list-tests: Likewise.
17153         * modules/read-file-tests: Likewise.
17154         * modules/rijndael-tests: Likewise.
17155         * modules/stdint-tests: Likewise.
17156         * modules/tls-tests: Likewise.
17157
17158 2007-02-24  Bruno Haible  <bruno@clisp.org>
17159
17160         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17161         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17162         function; instead check whether isnan with a double argument links.
17163         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17164         function; instead check whether isnan with a 'long double' argument
17165         links.
17166         Reported by Eric Blake <ebb9@byu.net>.
17167
17168 2007-02-24  Bruno Haible  <bruno@clisp.org>
17169
17170         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17171         defined.
17172         * lib/isnanl.c: Remove all code. Just include isnan.c.
17173         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17174
17175 2007-02-25  Jim Meyering  <jim@meyering.net>
17176
17177         Avoid conflicting types for 'unsetenv' on FreeBSD.
17178         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17179         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17180         in stdlib.h.
17181
17182 2007-02-24  Bruno Haible  <bruno@clisp.org>
17183
17184         * modules/isnanl-nolibm-tests: New file.
17185         * tests/test-isnanl.c: New file.
17186
17187         * modules/isnanl-nolibm: New file.
17188         * lib/isnanl.h: New file.
17189         * lib/isnanl.c: New file.
17190         * m4/isnanl.m4: New file.
17191
17192 2007-02-24  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/isnan-nolibm-tests: New file.
17195         * tests/test-isnan.c: New file.
17196
17197         * modules/isnan-nolibm: New file.
17198         * lib/isnan.h: New file.
17199         * lib/isnan.c: New file.
17200         * m4/isnan.m4: New file.
17201
17202 2007-02-24  Bruno Haible  <bruno@clisp.org>
17203
17204         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17205         assume that an exponent fits in 20 bits.
17206
17207 2007-02-24  Jim Meyering  <jim@meyering.net>
17208
17209         * m4/regex.m4: Update the description of the configure-time option,
17210         --without-included-regex, to state accurately what the defaults are,
17211         and perhaps to give people an idea why using this option is risky.
17212
17213 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17214
17215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17216         loops on small arguments.  This attempts to avoid the problem
17217         Bruno Haible reported for AIX 4.3.2 in
17218         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17219
17220 2007-02-23  Bruno Haible  <bruno@clisp.org>
17221
17222         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17223         Needed for help2man.
17224
17225 2007-02-23  Karl Berry  <karl@gnu.org>
17226
17227         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17228         exists, foo.h should be cvs-ignored, not committed.
17229
17230 2007-02-23  Eric Blake  <ebb9@byu.net>
17231
17232         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17233         * lib/stat-time.h (includes): Likewise.
17234         * lib/utimecmp.c (includes): Likewise.
17235         * lib/utimens.h (includes): Likewise.
17236         * lib/getdate.y (includes): Also include "timespec.h" for use
17237         internal to the module.
17238         * modules/utimens (Depends-on): Revert yesterday's patch.
17239         * modules/nanosleep (Depends-on): Add missing dependency.
17240
17241 2007-02-22  Bruno Haible  <bruno@clisp.org>
17242
17243         * lib/glob.c: Don't include getlogin_r.h.
17244
17245 2007-02-22  Jim Meyering  <jim@meyering.net>
17246
17247         * modules/utimens (Depends-on): Add timespec, required for
17248         utimens.h's inclusion of timespec.h.
17249
17250 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17251
17252         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17253         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17254         Schwab in
17255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17256         I'll try to think of a better way to fix the Solaris problem.
17257
17258         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17259         like glibc; on Solaris 10, it fails with errno == EINVAL.
17260         POSIX says the behavior is unspecified if the first argument is NULL,
17261         so play it safe and never pass NULL to the system getcwd.
17262
17263 2007-02-21  Jim Meyering  <jim@meyering.net>
17264
17265         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17266         of gettimeofday.  It would conflict with the one now always
17267         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17268         an IRIX 6.5 build failure.
17269
17270 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17271
17272         Minor fixups to port to Solaris 10 with Sun C 5.8.
17273         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17274         * modules/getcwd (Depends-on): Add dirfd.
17275         * lib/putenv.c (putenv): #undef it.
17276         (rpl_putenv): New decl.
17277         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17278
17279 2007-02-20  Bruno Haible  <bruno@clisp.org>
17280
17281         * modules/stdio-tests: New file.
17282         * tests/test-stdio.c: New file.
17283
17284         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17285         (Depends-on): Add stdio.
17286         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17287         (Include): Use <stdio.h> instead of vsnprintf.h.
17288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17289         HAVE_DECL_VSNPRINTF.
17290         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17291
17292         * modules/snprintf (Files): Remove lib/snprintf.h.
17293         (Depends-on): Add stdio.
17294         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17295         (Include): Use <stdio.h> instead of snprintf.h.
17296         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17297         HAVE_DECL_SNPRINTF.
17298         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17299         * lib/getaddrinfo.c: Likewise.
17300
17301         * modules/stdio: New file.
17302         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17303         * lib/snprintf.h: Remove file.
17304         * lib/vsnprintf.h: Remove file.
17305         * lib/.cppi-disable: Remove snprintf.h.
17306         * m4/stdio_h.m4: New file.
17307         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17308
17309 2007-02-20  Jim Meyering  <jim@meyering.net>
17310
17311         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17312         used by e.g., mingw.  From Bruno Haible.
17313
17314 2007-02-19  Bruno Haible  <bruno@clisp.org>
17315
17316         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17317         warnings.
17318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17319
17320 2007-02-19  Bruno Haible  <bruno@clisp.org>
17321
17322         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17323         from mingw users.
17324
17325 2007-02-19  Bruno Haible  <bruno@clisp.org>
17326
17327         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17328         warnings.
17329         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17330
17331 2007-02-19  Jim Meyering  <jim@meyering.net>
17332
17333         Don't use FD after a successful "fdopendir (fd)".
17334         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17335         Reset it by calling dirfd on the just-obtained DIR*.
17336
17337         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17338         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17339
17340 2007-02-18  Bruno Haible  <bruno@clisp.org>
17341
17342         * lib/readlink.c: Include <unistd.h>.
17343         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17344         HAVE_READLINK.
17345         * modules/readlink (Depends-on): Add unistd.
17346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17347         (Include): Add <unistd.h>.
17348
17349         * lib/getlogin_r.h: Remove file.
17350         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17351         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17352         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17353         HAVE_DECL_GETLOGIN_R.
17354         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17356         (Include): Use <unistd.h> instead of getlogin_r.h.
17357
17358         * lib/getcwd.h: Remove file.
17359         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17360         * lib/xgetcwd.c: Likewise.
17361         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17362         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17363         * modules/getcwd (Files): Remove lib/getcwd.h.
17364         (Depends-on): Add unistd.
17365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17366         (Include): Use <unistd.h> instad of getcwd.h.
17367
17368         * lib/ftruncate.c: Include <unistd.h> first.
17369         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17370         Set HAVE_FTRUNCATE.
17371         * modules/ftruncate (Depends-on): Add unistd.
17372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17373
17374         * lib/fchdir.c: Include <unistd.h> first.
17375         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17377         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17378         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17379         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17380
17381         * lib/dup2.c: Include <unistd.h> first.
17382         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17383         HAVE_DUP2.
17384         * modules/dup2 (Depends-on): Add unistd.
17385         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17386
17387         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17388         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17389         REPLACE_CHOWN. Don't define chown as a macro here.
17390         * modules/chown (Depends-on): Add unistd.
17391         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17392
17393         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17394         Add definition for GL_LINK_WARNING.
17395         (chown, dup2): New declarations.
17396         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17397         link warning.
17398         (ftruncate): New declaration.
17399         (getcwd): New declaration, taken from old getcwd.h.
17400         (getlogin_r): New declaration, taken from old getlogin_r.h.
17401         (readlink): New declaration.
17402         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17403         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17404         (gl_PREREQ_UNISTD): Remove macro.
17405         (gl_UNISTD_MODULE_INDICATOR): New macro.
17406         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17407         many new variables. Don't set UNISTD_H.
17408         * modules/unistd (Description): Change.
17409         (Depends-on): Add link-warning.
17410         (configure.ac): Update.
17411         (Makefile.am): Create unistd.h always. Substitute many new variables
17412         into it.
17413
17414 2007-02-18  Bruno Haible  <bruno@clisp.org>
17415
17416         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17417         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17418         HAVE_GETSUBOPT.
17419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17420         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17421         * lib/getsubopt.h: Remove file.
17422         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17423         (Depends-on): Add stdlib.
17424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17425         (Includes): Use <stdlib.h> instead of getsubopt.h.
17426         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17427         Set HAVE_GETSUBOPT.
17428         * lib/getsubopt.c: Don't include getsubopt.h.
17429
17430 2007-02-18  Bruno Haible  <bruno@clisp.org>
17431
17432         * modules/fchdir (Depends-on): Add dup2.
17433
17434 2007-02-18  Bruno Haible  <bruno@clisp.org>
17435
17436         * lib/stdlib_.h: Handle glibc's special invocation convention
17437         specially.
17438
17439 2007-02-18  Bruno Haible  <bruno@clisp.org>
17440
17441         * modules/stdlib-tests: New file.
17442         * tests/test-stdlib.c: New file.
17443
17444         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17445         (Depends-on): Add stdlib.
17446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17447         (Includes): Use <stdlib.h> instead of mkstemp.h.
17448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17449         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17450         * lib/mkstemp.c: Don't include mkstemp.h.
17451         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17452         * lib/stdlib--.h: Don't include mkstemp.h.
17453
17454         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17455         (Depends-on): Add stdlib.
17456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17457         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17458         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17459         HAVE_MKDTEMP.
17460         * lib/mkdtemp.c: Don't include mkdtemp.h.
17461         * lib/clean-temp.c: Don't include mkdtemp.h.
17462
17463         * modules/exit (Files): Remove lib/exit.h.
17464         (Depends-on): Add stdlib.
17465         (Makefile.am): Remove lib_SOURCES.
17466         (Include): Use <stdlib.h> instead of exit.h.
17467         * lib/argmatch.c: Don't include exit.h.
17468         * lib/execute.c: Likewise.
17469         * lib/pagealign_alloc.c: Likewise.
17470         * lib/pipe.c: Likewise.
17471         * lib/wait-process.c: Likewise.
17472         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17473         * lib/exitfail.c: Likewise.
17474         * lib/savewd.c: Likewise.
17475         * lib/xsetenv.c: Likewise.
17476
17477         * modules/stdlib: New file.
17478         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17479         and extra comments about mkstemp().
17480         * lib/exit.h: Remove file.
17481         * lib/mkdtemp.h: Remove file.
17482         * lib/mkstemp.h: Remove file.
17483         * m4/stdlib_h.m4: New file.
17484         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17485
17486 2007-02-18  Bruno Haible  <bruno@clisp.org>
17487
17488         * modules/math-tests: New file.
17489         * tests/test-math.c: New file.
17490
17491         * modules/math: New file.
17492         * modules/mathl (Files): Remove lib/mathl.h.
17493         (Depends-on): Add math.
17494         (Makefile.am): Don't mention mathl.h.
17495         (Include): Use <math.h> instead of mathl.h.
17496         * lib/math_.h: New file.
17497         * lib/mathl.h: Remove file.
17498         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17499         mathl.h.
17500         * lib/asinl.c: Likewise.
17501         * lib/atanl.c: Likewise.
17502         * lib/ceill.c: Likewise.
17503         * lib/cosl.c: Likewise.
17504         * lib/expl.c: Likewise.
17505         * lib/floorl.c: Likewise.
17506         * lib/frexpl.c: Likewise.
17507         * lib/ldexpl.c: Likewise.
17508         * lib/logl.c: Likewise.
17509         * lib/sincosl.c: Likewise.
17510         * lib/sinl.c: Likewise.
17511         * lib/sqrtl.c: Likewise.
17512         * lib/tanl.c: Likewise.
17513         * lib/trigl.c: Likewise.
17514         * m4/math_h.m4: New file.
17515         * MODULES.html.sh (Mathematics): Add math.
17516
17517 2007-02-17  Bruno Haible  <bruno@clisp.org>
17518
17519         * modules/wctype-tests: New file.
17520         * tests/test-wctype.c: New file.
17521
17522         * modules/wchar-tests: New file.
17523         * tests/test-wchar.c: New file.
17524
17525         * modules/unistd-tests: New file.
17526         * tests/test-unistd.c: New file.
17527
17528         * modules/time-tests: New file.
17529         * tests/test-time.c: New file.
17530
17531         * modules/sysexits-tests: New file.
17532         * tests/test-sysexits.c: New file.
17533
17534         * modules/sys_time-tests: New file.
17535         * tests/test-sys_time.c: New file.
17536
17537         * modules/sys_stat-tests: New file.
17538         * tests/test-sys_stat.c: New file.
17539
17540         * modules/sys_socket-tests: New file.
17541         * tests/test-sys_socket.c: New file.
17542
17543         * modules/sys_select-tests: New file.
17544         * tests/test-sys_select.c: New file.
17545
17546         * modules/string-tests: New file.
17547         * tests/test-string.c: New file.
17548
17549         * modules/stdbool-tests: New file.
17550         * tests/test-stdbool.c: New file.
17551
17552         * modules/netinet_in-tests: New file.
17553         * tests/test-netinet_in.c: New file.
17554
17555         * modules/inttypes-tests: New file.
17556         * tests/test-inttypes.c: New file.
17557
17558         * modules/fcntl-tests: New file.
17559         * tests/test-fcntl.c: New file.
17560
17561         * modules/byteswap-tests: New file.
17562         * tests/test-byteswap.c: New file.
17563
17564         * modules/arpa_inet-tests: New file.
17565         * tests/test-arpa_inet.c: New file.
17566
17567 2007-02-17  Bruno Haible  <bruno@clisp.org>
17568
17569         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17570         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17571         if the corresponding module is not enabled. Emit link warnings if
17572         the function is used nevertheless.
17573         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17574         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17575         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17576         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17577         * modules/inttypes (Depends-on): Add link-warning.
17578         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17579         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17580         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17581         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17582         * modules/imaxdiv (configure.ac): Likewise.
17583         * modules/strtoimax (configure.ac): Likewise.
17584         * modules/strtoumax (configure.ac): Likewise.
17585
17586 2007-02-17  Bruno Haible  <bruno@clisp.org>
17587
17588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17589         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17590         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17591         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17592
17593 2007-02-17  Bruno Haible  <bruno@clisp.org>
17594
17595         * modules/link-warning: New file.
17596         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17597         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17598         * modules/string (Depends-on): Add link-warning.
17599         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17600         string.h.
17601         * MODULES.html.sh (Support for building libraries and executables): Add
17602         link-warning.
17603
17604 2007-02-17  Bruno Haible  <bruno@clisp.org>
17605
17606         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17607         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17608         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17609         long lines.
17610
17611 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17612             Bruno Haible  <bruno@clisp.org>
17613
17614         * modules/tmpfile: New file.
17615         * lib/tmpfile.c: New file.
17616         * m4/tmpfile.m4: New file.
17617         * MODULES.html.sh (func_all_modules): New section "Input/output".
17618
17619 2007-02-15  Bruno Haible  <bruno@clisp.org>
17620
17621         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17622         (supports_delete_on_close): New function.
17623         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17624
17625 2007-02-14  Bruno Haible  <bruno@clisp.org>
17626
17627         * modules/mbspcasecmp-tests: New file.
17628         * tests/test-mbspcasecmp.sh: New file.
17629         * tests/test-mbspcasecmp.c: New file.
17630
17631         New module mbspcasecmp.
17632         * modules/mbspcasecmp: New file.
17633         * lib/mbspcasecmp.c: New file.
17634         * lib/string_.h (strncasecmp): Change warning message.
17635         (mbspcasecmp): New declaration.
17636         * m4/mbspcasecmp.m4: New file.
17637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17638         GNULIB_MBSPCASECMP.
17639         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17640         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17641
17642 2007-02-14  Bruno Haible  <bruno@clisp.org>
17643
17644         * modules/mbsncasecmp-tests: New file.
17645         * tests/test-mbsncasecmp.sh: New file.
17646         * tests/test-mbsncasecmp.c: New file.
17647
17648         New module mbsncasecmp.
17649         * modules/mbsncasecmp: New file.
17650         * lib/mbsncasecmp.c: New file.
17651         * lib/string_.h (mbsncasecmp): New declaration.
17652         * m4/mbsncasecmp.m4: New file.
17653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17654         GNULIB_MBSNCASECMP.
17655         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17656         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17657
17658 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17659
17660         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17661         Verify that it doesn't overlap with our flags.
17662         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17663         do not have the desired effect in multibyte locales; instead, use
17664         mbscasecmp.
17665         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17666         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
17667         we don't require GNU fnmatch ourselves (if our users require it, they
17668         should do so explicitly).
17669
17670         Fix regex code so it doesn't rely on strcasecmp.
17671         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17672         Otherwise, include gnulib's langinfo.h.
17673         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17674         undesirable behavior in non-C locales.  Instead, rely on localecharset.
17675         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17676         * modules/regex (FILES): Remove m4/codeset.m4.
17677         (Depends-on): Add localcharset.  Remove strcase.
17678
17679 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17680
17681         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17682         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17683
17684 2007-02-13  Bruno Haible  <bruno@clisp.org>
17685
17686         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17687         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17688
17689 2007-02-12  Bruno Haible  <bruno@clisp.org>
17690
17691         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17692         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17693         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17694         time warning rather than a link error.
17695
17696 2007-02-12  Bruno Haible  <bruno@clisp.org>
17697
17698         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17701
17702 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17703
17704         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17705         args, not 2.
17706
17707 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17708
17709         New module 'time', so that apps can include <time.h> as per
17710         POSIX and GNU instead of separate include files like time_r.h
17711         and timegm.h.  This implementation tries out a simpler approach
17712         for replacing decls in standard include files (as compared to
17713         the string module), somewhat as an experiment.
17714
17715         * config/srclist.txt: Comment out mktime.c for now.
17716         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17717         since it doesn't apply any more.  Use generic wording instead.
17718         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17719         'time'.
17720         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17721         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17722         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17723         Don't include <sys/types.h>; no longer needed since we assume C89.
17724         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17725         * lib/strftime.c: Likewise.
17726         * lib/time_r.c: Likewise.
17727         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17728         * lib/nanosleep.c: Include <time.h> first, to check interface.
17729         * lib/strptime.c: Likewise.
17730         * lib/time_r.c: Likewise.
17731         * lib/timegm.c: Likewise.
17732         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17733         needed.
17734         * lib/timegm.c: Don't include timegm.h; no longer needed.
17735         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17736         time.h now handles any problems in that area.
17737         (struct timespec, nanosleep): Remove; time.h now arranges for these.
17738         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17739         that time.h defines struct timespec.
17740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17741         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
17742         handles that.
17743         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17744         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17745         needed.  Set REPLACE_LOCALTIME.
17746         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17747         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17748         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17749         nanosleep; time_h.m4 now does that.  Don't require
17750         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17751         module handles this now.
17752         * modules/getdate (Depends-on): Remove timespec.  Add time.
17753         * modules/nanosleep (Depends-on): Likewise.
17754         * modules/stat-time (Depends-on): Likewise.
17755         * modules/nanosleep (Include): Include time.h, not timespec.h.
17756         * modules/strptime (Files): Remove lib/strptime.h.
17757         (Depends-on): Add extensions, time.
17758         (Include): Include time.h, not strptime.h.
17759         * modules/time_r (Files): Remove lib/time_r.h.
17760         (Depends-on): Add time.
17761         (Include): Include time.h, not time_r.h.
17762         * modules/timegm: Likewise.
17763         * modules/timespec (Description): Now does timespec-related decls
17764         of our own, instead of struct timespec itself.
17765         (Depends-on): Add time; remove extensions.
17766         (Maintainer): Add self.
17767         * modules/utimecmp (Depends-on): Add time; remove timespec.
17768         * modules/utimens (Depends-on): Likewise.
17769         * modules/xnanosleep (Depends-on): Likewise.
17770
17771 2007-02-11  Bruno Haible  <bruno@clisp.org>
17772
17773         * lib/c-strstr.c: Include allocsa.h.
17774         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17775         * lib/c-strcasestr.c: Include allocsa.h.
17776         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17777         * lib/strcasestr.c: Include allocsa.h.
17778         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17779         * lib/mbsstr.c: Include allocsa.h.
17780         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17781         allocsa/freesa instead of malloc/free.
17782         * lib/mbscasestr.c: Include allocsa.h.
17783         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17784         allocsa/freesa instead of malloc/free.
17785         * modules/c-strstr (Depends-on): Add allocsa.
17786         * modules/c-strcasestr (Depends-on): Likewise.
17787         * modules/strcasestr (Depends-on): Likewise.
17788         * modules/mbsstr (Depends-on): Likewise.
17789         * modules/mbscasestr (Depends-on): Likewise.
17790
17791 2007-02-11  Bruno Haible  <bruno@clisp.org>
17792
17793         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17794
17795         * modules/mbsspn-tests: New file.
17796         * tests/test-mbsspn.sh: New file.
17797         * tests/test-mbsspn.c: New file.
17798
17799 2007-02-11  Bruno Haible  <bruno@clisp.org>
17800
17801         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17802
17803         * modules/mbspbrk-tests: New file.
17804         * tests/test-mbspbrk.sh: New file.
17805         * tests/test-mbspbrk.c: New file.
17806
17807 2007-02-11  Bruno Haible  <bruno@clisp.org>
17808
17809         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17810         unneeded cast.
17811
17812         * modules/mbscspn-tests: New file.
17813         * tests/test-mbscspn.sh: New file.
17814         * tests/test-mbscspn.c: New file.
17815
17816 2007-02-11  Bruno Haible  <bruno@clisp.org>
17817
17818         * modules/mbscasecmp-tests: New file.
17819         * tests/test-mbscasecmp.sh: New file.
17820         * tests/test-mbscasecmp.c: New file.
17821
17822 2007-02-11  Bruno Haible  <bruno@clisp.org>
17823
17824         Ensure O(n) worst-case complexity of mbscasestr.
17825         * lib/mbscasestr.c: Include stdbool.h.
17826         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17827         functions.
17828         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17829         the bookkeeping indicates that it's worth it.
17830         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17831
17832         * modules/mbscasestr-tests: New file.
17833         * tests/test-mbscasestr1.c: New file.
17834         * tests/test-mbscasestr2.sh: New file.
17835         * tests/test-mbscasestr2.c: New file.
17836         * tests/test-mbscasestr3.sh: New file.
17837         * tests/test-mbscasestr3.c: New file.
17838         * tests/test-mbscasestr4.sh: New file.
17839         * tests/test-mbscasestr4.c: New file.
17840         * m4/locale-tr.m4: New file.
17841
17842 2007-02-11  Bruno Haible  <bruno@clisp.org>
17843
17844         Ensure O(n) worst-case complexity of mbsstr.
17845         * lib/mbsstr.c: Include stdbool.h.
17846         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17847         functions.
17848         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17849         bookkeeping indicates that it's worth it.
17850         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17851
17852         * modules/mbsstr-tests: New file.
17853         * tests/test-mbsstr1.c: New file.
17854         * tests/test-mbsstr2.sh: New file.
17855         * tests/test-mbsstr2.c: New file.
17856         * tests/test-mbsstr3.sh: New file.
17857         * tests/test-mbsstr3.c: New file.
17858         * m4/locale-fr.m4: New file.
17859
17860 2007-02-11  Bruno Haible  <bruno@clisp.org>
17861
17862         * lib/mbsrchr.c (mbsrchr): Fix bug.
17863
17864         * modules/mbsrchr-tests: New file.
17865         * tests/test-mbsrchr.sh: New file.
17866         * tests/test-mbsrchr.c: New file.
17867
17868 2007-02-11  Bruno Haible  <bruno@clisp.org>
17869
17870         * lib/mbschr.c (mbschr): Fix bug.
17871
17872         * modules/mbschr-tests: New file.
17873         * tests/test-mbschr.sh: New file.
17874         * tests/test-mbschr.c: New file.
17875         * m4/locale-zh.m4: New file.
17876
17877 2007-02-11  Bruno Haible  <bruno@clisp.org>
17878
17879         Support for copying multibyte string iterators.
17880         * lib/mbiter.h: Include <string.h>.
17881         (mbiter_multi_copy): New function.
17882         (mbi_copy): New macro.
17883         * lib/mbuiter.h: Include <string.h>.
17884         (mbuiter_multi_copy): New function.
17885         (mbui_copy): New macro.
17886
17887 2007-02-11  Bruno Haible  <bruno@clisp.org>
17888
17889         New module mbslen.
17890         * modules/mbslen: New file.
17891         * lib/mbslen.c: New file.
17892         * lib/string_.h (mbslen): New declaration.
17893         * m4/mbslen.m4: New file.
17894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17895         GNULIB_MBSLEN.
17896         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17897         * MODULES.html.sh (Internationalization functions): Add mbslen.
17898
17899 2007-02-11  Bruno Haible  <bruno@clisp.org>
17900
17901         Ensure O(n) worst-case complexity of strcasestr substitute.
17902         * lib/strcasestr.c: Include stdbool.h.
17903         (knuth_morris_pratt): New function.
17904         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17905         bookkeeping indicates that it's worth it.
17906         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17907
17908         * modules/strcasestr-tests: New file.
17909         * tests/test-strcasestr.c: New file.
17910
17911 2007-02-11  Bruno Haible  <bruno@clisp.org>
17912
17913         Ensure O(n) worst-case complexity of c_strcasestr.
17914         * lib/c-strcasestr.c: Include stdbool.h, string.h.
17915         (knuth_morris_pratt): New function.
17916         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17917         the bookkeeping indicates that it's worth it.
17918         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17919
17920         * modules/c-strcasestr-tests: New file.
17921         * tests/test-c-strcasestr.c: New file.
17922
17923 2007-02-11  Bruno Haible  <bruno@clisp.org>
17924
17925         Ensure O(n) worst-case complexity of c_strstr.
17926         * lib/c-strstr.c: Include stdbool.h, string.h.
17927         (knuth_morris_pratt): New function.
17928         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17929         bookkeeping indicates that it's worth it.
17930         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17931
17932         * lib/c-strstr.c: Complete rewrite for maintainability.
17933
17934         * modules/c-strstr-tests: New file.
17935         * tests/test-c-strstr.c: New file.
17936
17937 2007-02-11  Bruno Haible  <bruno@clisp.org>
17938
17939         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17940         5.2.1 and earlier, whereby \055 was treated just like the range
17941         delimiter '-'.
17942         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17943
17944 2007-02-08  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/regex (Depends-on): Add stdbool.
17947         Reported by Dalibor Topic <robilad@kaffe.org>.
17948
17949 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17950
17951         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17952         Prefer returning from main to exiting from it.
17953         Remove unnecessary parens after sizeof.
17954
17955 2007-02-05  Bruno Haible  <bruno@clisp.org>
17956
17957         New module mbssep.
17958         * modules/mbssep: New file.
17959         * lib/mbssep.c: New file.
17960         * lib/string_.h (strsep): Add a conditional link warning.
17961         (mbssep): New declaration.
17962         * m4/mbssep.m4: New file.
17963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17964         GNULIB_MBSSEP.
17965         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17966         * MODULES.html.sh (Internationalization functions): Add mbssep.
17967
17968 2007-02-05  Bruno Haible  <bruno@clisp.org>
17969
17970         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17971         Optimize search in case of 1 delimiter.
17972
17973 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17974
17975         * lib/acl.h: Include sys/types.h before sys/acl.h.
17976
17977 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17978
17979         Merge upstream fix for glibc bugzilla #3957:
17980
17981         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
17982
17983         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17984         bit for RE_HAT_LISTS_NOT_NEWLINE.
17985         (build_charclass_op): Remove bogus comment.
17986
17987 2007-02-05  Simon Josefsson  <simon@josefsson.org>
17988
17989         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17990
17991 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17994         * lib/memmem.c [!defined _LIBC]: Include config.h.
17995
17996 2007-02-04  Bruno Haible  <bruno@clisp.org>
17997
17998         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17999         warning message.
18000
18001 2007-02-04  Bruno Haible  <bruno@clisp.org>
18002
18003         New module mbstok_r.
18004         * modules/mbstok_r: New file.
18005         * lib/mbstok_r.c: New file.
18006         * lib/string_.h (strtok_r): Change argument names to match the
18007         comments. Add a conditional link warning.
18008         (mbstok_r): New declaration.
18009         * m4/mbstok_r.m4: New file.
18010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18011         GNULIB_MBSTOK_R.
18012         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18013         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18014
18015 2007-02-04  Bruno Haible  <bruno@clisp.org>
18016
18017         New module mbsspn.
18018         * modules/mbsspn: New file.
18019         * lib/mbsspn.c: New file.
18020         * lib/string_.h (strspn): Add a conditional link warning.
18021         (mbsspn): New declaration.
18022         * m4/mbsspn.m4: New file.
18023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18024         GNULIB_MBSSPN.
18025         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18026         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18027
18028 2007-02-04  Bruno Haible  <bruno@clisp.org>
18029
18030         New module mbspbrk.
18031         * modules/mbspbrk: New file.
18032         * lib/mbspbrk.c: New file.
18033         * lib/string_.h (strpbrk): Add a conditional link warning.
18034         (mbspbrk): New declaration.
18035         * m4/mbspbrk.m4: New file.
18036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18037         GNULIB_MBSPBRK.
18038         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18039         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18040
18041 2007-02-04  Bruno Haible  <bruno@clisp.org>
18042
18043         New module mbscspn.
18044         * modules/mbscspn: New file.
18045         * lib/mbscspn.c: New file.
18046         * lib/string_.h (strcspn): Add a conditional link warning.
18047         (mbscspn): New declaration.
18048         * m4/mbscspn.m4: New file.
18049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18050         GNULIB_MBSCSPN.
18051         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18052         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18053
18054 2007-02-04  Bruno Haible  <bruno@clisp.org>
18055
18056         New module mbscasestr, reduced goal of strcasestr.
18057         * modules/mbscasestr: New file.
18058         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18059         (mbscasestr): Renamed from strcasestr.
18060         * lib/strcasestr.c: Don't include mbuiter.h.
18061         (strcasestr): Remove support for multibyte locales.
18062         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18063         Change the conditional link warning.
18064         (mbscasestr): New declaration.
18065         * m4/mbscasestr.m4: New file.
18066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18067         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18068         REPLACE_STRCASESTR.
18069         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18071         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18072         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18073         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18074         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18075         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18076         (Depends-on): Remove mbuiter.
18077         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18078
18079 2007-02-04  Bruno Haible  <bruno@clisp.org>
18080
18081         Simplify handling of strncasecmp.
18082         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18083         the conditional link warning.
18084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18085         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18086         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18087         * modules/strcase (configure.ac): Don't invoke
18088         gl_STRING_MODULE_INDICATOR.
18089         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18090
18091 2007-02-04  Bruno Haible  <bruno@clisp.org>
18092
18093         New module mbscasecmp, reduced goal of strcasecmp.
18094         * modules/mbscasecmp: New file.
18095         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18096         (mbscasecmp): Renamed from strcasecmp.
18097         * lib/strcasecmp.c: Don't include mbuiter.h.
18098         (strcasecmp): Remove support for multibyte locales.
18099         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18100         Change the conditional link warning.
18101         (mbscasecmp): New declaration.
18102         * m4/mbscasecmp.m4: New file.
18103         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18104         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18105         REPLACE_STRCASECMP.
18106         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18108         GNULIB_MBSCASECMP.
18109         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18110         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18111         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18112         (Depends-on): Remove mbuiter.
18113         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18114
18115 2007-02-04  Bruno Haible  <bruno@clisp.org>
18116
18117         New module mbsstr. Remove module strstr.
18118         * modules/mbsstr: New file.
18119         * modules/strstr: Remove file.
18120         * lib/mbsstr.c: Renamed from lib/strstr.c.
18121         (mbsstr): Renamed from strstr.
18122         * lib/string_.h (strstr): Remove declaration. Change the conditional
18123         link warning.
18124         (mbsstr): New declaration.
18125         * m4/mbsstr.m4: New file.
18126         * m4/strstr.m4: Remove file.
18127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18128         REPLACE_STRSTR.
18129         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18130         Don't initialize GNULIB_STRSTR.
18131         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18132         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18133         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18134         (Support for systems lacking ANSI C 89): Remove strstr.
18135
18136 2007-02-04  Bruno Haible  <bruno@clisp.org>
18137
18138         New module mbsrchr.
18139         * modules/mbsrchr: New file.
18140         * lib/mbsrchr.c: New file.
18141         * lib/string_.h (strrchr): Add a conditional link warning.
18142         (mbsrchr): New declaration.
18143         * m4/mbsrchr.m4: New file.
18144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18145         GNULIB_MBSRCHR.
18146         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18147         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18148
18149 2007-02-04  Bruno Haible  <bruno@clisp.org>
18150
18151         New module mbschr.
18152         * modules/mbschr: New file.
18153         * lib/mbschr.c: New file.
18154         * lib/string_.h (strchr): Add a conditional link warning.
18155         (mbschr): New declaration.
18156         * m4/mbschr.m4: New file.
18157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18158         GNULIB_MBSCHR.
18159         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18160         * MODULES.html.sh (Internationalization functions): Add mbschr.
18161
18162 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18165
18166         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18167
18168 2007-02-04  Bruno Haible  <bruno@clisp.org>
18169
18170         New module description section 'configure.ac-early'.
18171         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18172         (func_get_autoconf_early_snippet): New function.
18173         (func_import, func_create_testdir): Use it. Remove special cases for
18174         modules 'extensions' and 'lock'.
18175         * modules/extensions (configure.ac-early): Require
18176         gl_USE_SYSTEM_EXTENSIONS.
18177         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18178
18179 2007-02-04  Bruno Haible  <bruno@clisp.org>
18180
18181         Make use of gcj-4.3's -fsource and -ftarget option.
18182         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18183         and if so try the options -fsource and -ftarget.
18184         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18185         source_version, ftarget_option, target_version arguments.
18186         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18187         (is_envjavac_oldgcj_14_14_usable): Renamed from
18188         is_envjavac_gcj_14_14_usable.
18189         (is_envjavac_oldgcj_14_13_usable): Renamed from
18190         is_envjavac_gcj_14_13_usable.
18191         (is_gcj_present): Update.
18192         (is_gcj_43, is_gcj43_usable): New functions.
18193         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18194         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18195         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18196         try the options -fsource and -ftarget.
18197
18198 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18199
18200         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18201         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18202         larger value.
18203
18204 2007-02-03  Jim Meyering  <jim@meyering.net>
18205
18206         Give tools a better chance to allocate space for very large buffers.
18207         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18208
18209         Make pwd and readlink work also when run with an unreadable parent dir
18210         on systems with openat support.
18211         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18212         provided getcwd function, even when we have openat support.
18213         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18214
18215 2007-02-02  Bruno Haible  <bruno@clisp.org>
18216
18217         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18218         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18219         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18220         portability problems if one of these functions is only used on specific
18221         platforms.
18222         Reported by Paul Eggert.
18223
18224 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18225
18226         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18227         is causing more trouble than it's curing.
18228         * lib/regex_internal.h (__mempcpy): Remove.
18229         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18230         (and make the code a tad smaller to boot).
18231         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18232
18233 2007-02-02  Jim Meyering  <jim@meyering.net>
18234
18235         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18236         section, not in the Makefile.am: one.
18237
18238 2007-02-02  Eric Blake  <ebb9@byu.net>
18239
18240         * lib/strchrnul.c: Always include config.h first.
18241
18242         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18243         gnulib strstr is not necessary here.
18244
18245 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18246
18247         * m4/socklen.m4: Fix typo.
18248
18249 2007-02-02  Eric Blake  <ebb9@byu.net>
18250
18251         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18252         * modules/netinet_in (Makefile.am): Likewise.
18253
18254 2007-02-01  Bruno Haible  <bruno@clisp.org>
18255
18256         * lib/string_.h (GL_LINK_WARNING): New macro.
18257         (strcasecmp, strstr, strcasestr): If provided by the system,
18258         conditionally define as a macro that leads to a warning instead of to
18259         an error.
18260         (strncasecmp): Conditionally define as a macro that leads to a warning.
18261
18262 2007-02-01  Karl Berry  <karl@gnu.org>
18263
18264         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18265
18266 2007-02-01  Bruno Haible  <bruno@clisp.org>
18267
18268         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18269         renamings.
18270
18271 2007-02-01  Eric Blake  <ebb9@byu.net>
18272
18273         * modules/regex (Depends-on): Revert dependence on mempcpy.
18274         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18275         module's definition of mempcpy.
18276         Reported by Paul Eggert.
18277
18278 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18279
18280         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18281         the symbol XYZ before redefining it.  This fixes a problem with
18282         programs that don't use XYZ, when compiled on systems that define
18283         XYZ to something else.
18284
18285 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18286
18287         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18288         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18289         writeable to group or other and (2) is intended to have a special
18290         mode bit that is set or cleared.  In such a case, the directory
18291         should be neither group- nor other-writeable until the special
18292         mode bits are right.
18293
18294 2007-01-31  Eric Blake  <ebb9@byu.net>
18295
18296         * modules/mountlist (Depends-on): Add strstr.
18297
18298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18299         bug.
18300         * modules/string (Makefile.am): Remove redundant replacement.
18301         * modules/regex (Depends-on): Add mempcpy.
18302
18303 2007-01-31  Bruno Haible  <bruno@clisp.org>
18304
18305         New module description field 'Link'.
18306         * gnulib-tool (func_usage): Document --extract-link-directive.
18307         (sed_extract_prog): Recognize 'Link' directive.
18308         (func_get_link_directive): New function.
18309         (func_import): Show summary of link directives.
18310         Handle --extract-link-directive option.
18311         * modules/acl (Link): New section.
18312         * modules/clock-time (Link): New section.
18313         * modules/euidaccess (Link): New section.
18314         * modules/gettext (Link): New section.
18315         * modules/iconv (Link): New section.
18316         * modules/lock (Link): New section.
18317         * modules/nanosleep (Link): New section.
18318         * modules/readline (Link): New section.
18319
18320 2007-01-27  Bruno Haible  <bruno@clisp.org>
18321
18322         Enforce the use of gnulib modules for unportable <string.h> functions.
18323         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18324         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18325         (gl_HEADER_STRING_H_BODY): Require it.
18326         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18327         the symbol XYZ to one that gives a link error.
18328         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18329         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18330         * modules/mempcpy (configure.ac): Likewise.
18331         * modules/memrchr (configure.ac): Likewise.
18332         * modules/stpcpy (configure.ac): Likewise.
18333         * modules/stpncpy (configure.ac): Likewise.
18334         * modules/strcase (configure.ac): Likewise.
18335         * modules/strcasestr (configure.ac): Likewise.
18336         * modules/strchrnul (configure.ac): Likewise.
18337         * modules/strdup (configure.ac): Likewise.
18338         * modules/strndup (configure.ac): Likewise.
18339         * modules/strnlen (configure.ac): Likewise.
18340         * modules/strpbrk (configure.ac): Likewise.
18341         * modules/strsep (configure.ac): Likewise.
18342         * modules/strstr (configure.ac): Likewise.
18343         * modules/strtok_r (configure.ac): Likewise.
18344
18345 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18346
18347         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18348
18349 2007-01-30  Jim Meyering  <jim@meyering.net>
18350
18351         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18352
18353 2007-01-29  Bruno Haible  <bruno@clisp.org>
18354
18355         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18356         * lib/execute.c: Likewise.
18357         * lib/pipe.c: Likewise.
18358         * lib/printf-args.h: Likewise.
18359         * lib/printf-args.c: Likewise.
18360         * lib/printf-parse.c: Likewise.
18361         * lib/vasnprintf.c: Likewise.
18362
18363 2007-01-29  Eric Blake  <ebb9@byu.net>
18364
18365         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18366         declaration.
18367
18368 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18369
18370         * lib/strptime.h (strptime): Use 'restrict' for args where
18371         POSIX requires this.
18372         * lib/strptime.c (strptime): Likewise.
18373         Change license notice from LGPL to GPL, since gnulib-tool will
18374         change this as needed.
18375         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18376         defined.
18377         Include "strptime.h" first, to check interface.
18378         Do not #undef _LIBC and _NL_CURRENT.
18379         Do not include <stdlib.h>; no longer needed.
18380         Include "time_r.h" and declare ptime_locale_status
18381         only if _LIBC is not defined.
18382         (__P): Remove unused macro.
18383         (match_string): Bring back glibc version, but use it only if _LIBC
18384         is defined.
18385         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18386         Remove unnecessary assertion and abort() call.
18387         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18388         * m4/strptime.m4: Fix serial number comment.
18389         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18390         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18391         (Depends-on): Add time_r.
18392
18393 2007-01-29  Bruno Haible  <bruno@clisp.org>
18394
18395         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18396         strptime.
18397         * modules/strptime (Depends-on): Add stdbool.
18398         * lib/strptime.h: Include <time.h> always. Add comments.
18399
18400 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18401
18402         * modules/strptime: New file.
18403         * lib/strptime.h: New file.
18404         * lib/strptime.c: New file.
18405         * m4/strptime.m4: New file.
18406
18407 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18408
18409         * MODULES.html.sh: New module mpsort.
18410         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18411
18412         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18413         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18415         All uses changed.
18416         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18417         All uses changed.
18418         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18419         to _Restrict_.
18420         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18421         the parameter matches the prototype.
18422
18423 2007-01-28  Jim Meyering  <jim@meyering.net>
18424
18425         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18426         sys/time.h here, reverting that part of the previous patch:
18427         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18428
18429 2007-01-28  Bruno Haible  <bruno@clisp.org>
18430
18431         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18432         value of $(SYS_TIME_H).
18433         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18434         remove it conditionally, too. [added by Jim Meyering]
18435         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18437         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18438         GETTIMEOFDAY_REPLACEMENT to 1.
18439
18440 2007-01-28  Bruno Haible  <bruno@clisp.org>
18441
18442         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18443         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18445         Set UNISTD_H instead of UNISTD_H2.
18446         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18447
18448 2007-01-28  Bruno Haible  <bruno@clisp.org>
18449
18450         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18451         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18452
18453 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18454
18455         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18456         (func_create_testdir): Ensure C locale for `grep' and `tr'
18457         character ranges.
18458         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18459         ACLOCAL_AMFLAGS parsing state machine.
18460
18461 2007-01-27  Bruno Haible  <bruno@clisp.org>
18462
18463         * modules/unistr/base: Update.
18464
18465 2007-01-27  Bruno Haible  <bruno@clisp.org>
18466
18467         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18468         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18469         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18470         modules/unistr/u32-mbtouc.
18471         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18472         * lib/unistr.h: Update.
18473         * lib/linebreak.c: Update.
18474         * modules/unistr/u32-mbtouc: Renamed from
18475         modules/unistr/u32-mbtouc-safe.
18476         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18477         * lib/unistr.h: Update.
18478         * lib/unistr/u32-to-u8.c: Update.
18479         * lib/unistr/u32-to-u16.c: Update.
18480
18481 2007-01-27  Bruno Haible  <bruno@clisp.org>
18482
18483         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18484         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18485         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18486         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18487         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18488         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18489         modules/unistr/u16-mbtouc.
18490         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18491         * lib/unistr.h: Update.
18492         * lib/linebreak.c: Update.
18493         * modules/linebreak: Update.
18494         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18495         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18496         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18497         * modules/unistr/u16-mbtouc: Renamed from
18498         modules/unistr/u16-mbtouc-safe.
18499         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18500         * lib/unistr.h: Update.
18501         * lib/unistr/u16-to-u8.c: Update.
18502         * modules/unistr/u16-to-u8: Update.
18503         * lib/unistr/u16-to-u32.c: Update.
18504         * modules/unistr/u16-to-u32: Update.
18505
18506 2007-01-27  Bruno Haible  <bruno@clisp.org>
18507
18508         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18509         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18510         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18511         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18512         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18513         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18514         modules/unistr/u8-mbtouc.
18515         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18516         * lib/unistr.h: Update.
18517         * lib/striconveh.c: Update.
18518         * modules/striconveh: Update.
18519         * lib/linebreak.c: Update.
18520         * modules/linebreak: Update.
18521         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18522         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18523         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18524         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18525         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18526         * lib/unistr.h: Update.
18527         * lib/striconveh.c: Update.
18528         * modules/striconveh: Update.
18529         * lib/unistr/u8-to-u16.c: Update.
18530         * modules/unistr/u8-to-u16: Update.
18531         * lib/unistr/u8-to-u32.c: Update.
18532         * modules/unistr/u8-to-u32: Update.
18533
18534 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18535
18536         Sync from Libtool.
18537         * lib/argz.c: Do not include strings.h nor memory.h, include
18538         string.h unconditionally.  Patch by Simon Josefsson.
18539
18540 2007-01-27  Bruno Haible  <bruno@clisp.org>
18541
18542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18543         from gl_HEADER_STRING_H_BODY.
18544         (gl_HEADER_STRING_H_BODY): Require it.
18545         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18546         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18547         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18548         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18550         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18552         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18553         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18554         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18555         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18556         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18557         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18558         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18559         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18560
18561 2007-01-27  Bruno Haible  <bruno@clisp.org>
18562
18563         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18564         check_PROGRAMS into noinst_PROGRAMS.
18565         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18566         check_PROGRAMS in this case.
18567         (func_import): Set for_test to false.
18568         (func_create_testdir): Set for_test to true.
18569
18570 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18571             Bruno Haible  <bruno@clisp.org>
18572
18573         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18574         (Depends-on): Add string.
18575         (Includes): Use <string.h> instead of strcasestr.h.
18576         * modules/string (Makefile.am): Also substitute the value of
18577         REPLACE_STRCASESTR.
18578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18579         assume strcasestr is declared in <string.h> not <strings.h>. Also
18580         set REPLACE_STRCASESTR.
18581         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18582         REPLACE_STRCASESTR.
18583         * lib/strcasestr.h: Remove file.
18584         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18585         * lib/string_.h (strcasestr): New declaration.
18586
18587 2007-01-27  Bruno Haible  <bruno@clisp.org>
18588
18589         * lib/string_.h: Use 'extern'.
18590
18591 2007-01-27  Jim Meyering  <jim@meyering.net>
18592
18593         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18594         of set-but-not-used local, "q".
18595
18596         * lib/mempcpy.c: Include <config.h> before <string.h>.
18597         This fixes a compilation error on HP-UX, due to the system's
18598         "restrict"-using mempcpy prototype.
18599
18600 2007-01-26  Bruno Haible  <bruno@clisp.org>
18601
18602         Small optimization.
18603         * lib/javacomp.c: Include c-strstr.h.
18604          (is_envjavac_gcj): Use c_strstr instead of strstr.
18605         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18606
18607 2007-01-26  Bruno Haible  <bruno@clisp.org>
18608
18609         * MODULES.html.sh (Unicode string functions): Add the new modules.
18610
18611         * modules/uniconv/u32-strconv-to-locale: New file.
18612         * lib/uniconv/u32-strconv-to-locale.c: New file.
18613
18614         * modules/uniconv/u16-strconv-to-locale: New file.
18615         * lib/uniconv/u16-strconv-to-locale.c: New file.
18616
18617         * modules/uniconv/u8-strconv-to-locale: New file.
18618         * lib/uniconv/u8-strconv-to-locale.c: New file.
18619
18620         * modules/uniconv/u32-strconv-from-locale: New file.
18621         * lib/uniconv/u32-strconv-from-locale.c: New file.
18622
18623         * modules/uniconv/u16-strconv-from-locale: New file.
18624         * lib/uniconv/u16-strconv-from-locale.c: New file.
18625
18626         * modules/uniconv/u8-strconv-from-locale: New file.
18627         * lib/uniconv/u8-strconv-from-locale.c: New file.
18628
18629         * modules/uniconv/u32-strconv-to-enc: New file.
18630         * lib/uniconv/u32-strconv-to-enc.c: New file.
18631         * modules/uniconv/u32-strconv-to-enc-tests: New file.
18632         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18633
18634         * modules/uniconv/u16-strconv-to-enc: New file.
18635         * lib/uniconv/u16-strconv-to-enc.c: New file.
18636         * lib/uniconv/u-strconv-to-enc.h: New file.
18637         * modules/uniconv/u16-strconv-to-enc-tests: New file.
18638         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18639
18640         * modules/uniconv/u8-strconv-to-enc: New file.
18641         * lib/uniconv/u8-strconv-to-enc.c: New file.
18642         * modules/uniconv/u8-strconv-to-enc-tests: New file.
18643         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18644
18645         * modules/uniconv/u32-strconv-from-enc: New file.
18646         * lib/uniconv/u32-strconv-from-enc.c: New file.
18647         * modules/uniconv/u32-strconv-from-enc-tests: New file.
18648         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18649
18650         * modules/uniconv/u16-strconv-from-enc: New file.
18651         * lib/uniconv/u16-strconv-from-enc.c: New file.
18652         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18653         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18654
18655         * modules/uniconv/u8-strconv-from-enc: New file.
18656         * lib/uniconv/u8-strconv-from-enc.c: New file.
18657         * lib/uniconv/u-strconv-from-enc.h: New file.
18658         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18659         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18660
18661         * modules/uniconv/u32-conv-from-enc: New file.
18662         * lib/uniconv/u32-conv-from-enc.c: New file.
18663         * modules/uniconv/u32-conv-from-enc-tests: New file.
18664         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18665
18666         * modules/uniconv/u16-conv-from-enc: New file.
18667         * lib/uniconv/u16-conv-from-enc.c: New file.
18668         * lib/uniconv/u-conv-from-enc.h: New file.
18669         * modules/uniconv/u16-conv-from-enc-tests: New file.
18670         * tests/uniconv/test-u16-conv-from-enc.c: New file.
18671
18672         * modules/uniconv/u8-conv-from-enc: New file.
18673         * lib/uniconv/u8-conv-from-enc.c: New file.
18674         * modules/uniconv/u8-conv-from-enc-tests: New file.
18675         * tests/uniconv/test-u8-conv-from-enc.c: New file.
18676
18677         * modules/uniconv/base: New file.
18678         * lib/uniconv.h: New file.
18679
18680 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         * doc/gnulib-tool.texi (Initial import): Update to match current
18683         behavior with strdup module.
18684         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18685         * lib/memmem.h: Remove; all uses removed.  This is now done
18686         by <string.h>.
18687         * lib/mempcpy.h: Likewise.
18688         * lib/memrchr.h: Likewise.
18689         * lib/stpcpy.h: Likewise.
18690         * lib/stpncpy.h: Likewise.
18691         * lib/strcase.h: Likewise.
18692         * lib/strchrnul.h: Likewise.
18693         * lib/strdup.h: Likewise.
18694         * lib/strndup.h: Likewise.
18695         * lib/strnlen.h: Likewise.
18696         * lib/strpbrk.h: Likewise.
18697         * lib/strsep.h: Likewise.
18698         * lib/strstr.h: Likewise.
18699         * lib/strtok_r.h: Likewise.
18700         * lib/string_.h: New file.
18701         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18702         Rely on <string.h> instead.
18703         * lib/canon-host.c: Likewise.
18704         * lib/chdir-long.c: Likewise.
18705         * lib/concatpath.c: Likewise.
18706         * lib/exclude.c: Likewise.
18707         * lib/fchdir.c: Likewise.
18708         * lib/getaddrinfo.c: Likewise.
18709         * lib/getcwd.c: Likewise.
18710         * lib/getsubopt.c: Likewise.
18711         * lib/glob.c: Likewise.
18712         * lib/hard-locale.c: Likewise.
18713         * lib/iconvme.c: Likewise.
18714         * lib/javacomp.c: Likewise.
18715         * lib/mempcpy.c: Likewise.
18716         * lib/memrchr.c: Likewise.
18717         * lib/regex_internal.h: Likewise.
18718         * lib/stpncpy.c: Likewise.
18719         * lib/strcasecmp.c: Likewise.
18720         * lib/strchrnul.c: Likewise.
18721         * lib/strdup.c: Likewise.
18722         * lib/striconv.c: Likewise.
18723         * lib/striconveh.c: Likewise.
18724         * lib/striconveha.c: Likewise.
18725         * lib/strncasecmp.c: Likewise.
18726         * lib/strndup.c: Likewise.
18727         * lib/strnlen.c: Likewise.
18728         * lib/strsep.c: Likewise.
18729         * lib/strstr.c: Likewise.
18730         * lib/strtok_r.c: Likewise.
18731         * lib/userspec.c: Likewise.
18732         * lib/w32spawn.h: Likewise.
18733         * lib/xstrndup.c: Likewise.
18734         * lib/mountlist.c (strstr): Remove decl.
18735         * m4/string_h.m4: New file.
18736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18737         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18738         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18739         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18740         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18741         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18742         Set REPLACE_STRCASECMP if necessary.
18743         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18744         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18745         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18746         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18747         HAVE_DECL_STRDUP if necessary.
18748         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18749         since gl_FUNC_STRNDUP does that now.
18750         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18751         Check for decl here...
18752         (gl_PREREQ_STRNLEN): ... not here.
18753         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18754         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18755         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18756         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18757         necessary.
18758         * modules/string: New file.
18759         * modules/memmem (Files): Remove special-purpose include file.
18760         (Depends-on): Add string.
18761         (Include): Include <string.h>, not the removed file.
18762         * modules/mempcpy: Likewise.
18763         * modules/memrchr: Likewise.
18764         * modules/stpcpy: Likewise.
18765         * modules/stpncpy: Likewise.
18766         * modules/strcase: Likewise.
18767         * modules/strchrnul: Likewise.
18768         * modules/strdup: Likewise.
18769         * modules/strndup: Likewise.
18770         * modules/strnlen: Likewise.
18771         * modules/strpbrk: Likewise.
18772         * modules/strsep: Likewise.
18773         * modules/strstr: Likewise.
18774         * modules/strtok_r: Likewise.
18775         * tests/test-dirname.c: Don't include "strdup.h", since
18776         <string.h> now suffices.
18777         * tests/test-memmem.c: Don't include "memmem.h", since
18778         <string.h> now suffices.
18779
18780 2007-01-25  Bruno Haible  <bruno@clisp.org>
18781
18782         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18783         *resultp is 0.
18784
18785         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18786         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18787         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18788         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18789
18790         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18791         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18792         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18793         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18794         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18795         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18796
18797 2007-01-24  Bruno Haible  <bruno@clisp.org>
18798
18799         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18800         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18801         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18802         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18803         gl_FUNC_FTS_CORE.
18804         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18805         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18806         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18807         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18808         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18809         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18810         gl_FUNC_FCHOWNAT.
18811         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18812         gl_FUNC_STRFTIME.
18813         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18814         Reported by Ralf Wildenhues.
18815
18816 2007-01-24  Bruno Haible  <bruno@clisp.org>
18817
18818         Drop AC_REQUIRE calls that are redundant with the module dependencies.
18819         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18820         gl_GETADDRINFO.
18821         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18822         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18823         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18824
18825 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18826
18827         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18828         Don't use 'exit'; just return from 'main'.
18829         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18830
18831         * lib/fnmatch_.h: Readjust white space and comments to match
18832         glibc, to avoid spurious diffs.
18833
18834 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18835
18836         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18837         2004-12-01 change by Jakub Jelinek, since this code won't compile
18838         if !LIBC.  Problem reported by Bob Proulx.
18839
18840 2007-01-23  Bruno Haible  <bruno@clisp.org>
18841
18842         * lib/striconveh.c: Include c-strcaseeq.h.
18843         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18844         * modules/striconveh (Depends-on): Add c-strcaseeq.
18845
18846 2007-01-23  Bruno Haible  <bruno@clisp.org>
18847
18848         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18849
18850         * modules/c-strcaseeq: New file.
18851         * lib/c-strcaseeq.h: New file.
18852
18853         * modules/streq: New file.
18854         * lib/streq.h: New file.
18855
18856 2007-01-23  Bruno Haible  <bruno@clisp.org>
18857
18858         * modules/striconveha-tests: New file.
18859         * tests/test-striconveha.c: New file.
18860
18861         * lib/striconveha.h: Include <stdbool.h>.
18862         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18863         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18864         (mem_iconveha_notranslit): Renamed from mem_iconveha.
18865         (mem_iconveha): New function.
18866         (str_iconveha_notranslit): Renamed from str_iconveha.
18867         (str_iconveha): New function.
18868         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18869         c-strcase.
18870
18871 2007-01-23  Bruno Haible  <bruno@clisp.org>
18872
18873         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18874         encodings without forgiving before trying any encoding with handler.
18875         (str_iconveha): Try all encodings without forgiving before trying any
18876         encoding with handler.
18877
18878 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18879
18880         Import the following changes from libc.
18881
18882         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
18883
18884         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18885
18886         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
18887
18888         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18889         normal_bracket label.
18890
18891         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
18892
18893         [BZ #361]
18894         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18895         to normal_bracket after fetching the next character.
18896
18897 2007-01-22  Bruno Haible  <bruno@clisp.org>
18898
18899         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18900         argument.
18901         * lib/striconveh.c (iconv_carefully_1): New function.
18902         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18903         argument.
18904         (str_cd_iconveh): Update.
18905         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18906         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18907         * tests/test-striconveh.c (MAGIC): New macro.
18908         (new_offsets): New function.
18909         (main): Test call with and without offsets.
18910
18911 2007-01-22  Bruno Haible  <bruno@clisp.org>
18912
18913         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18914         * modules/sys_select (Makefile.am): Likewise.
18915         * modules/sys_socket (Makefile.am): Likewise.
18916         * modules/sys_time (Makefile.am): Likewise.
18917
18918 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18919
18920         * modules/gettimeofday (License): Change from GPL to LGPL, since
18921         gettimeofday is a library function.
18922
18923 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18924
18925         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18926
18927 2007-01-21  Bruno Haible  <bruno@clisp.org>
18928
18929         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18930
18931 2007-01-21  Bruno Haible  <bruno@clisp.org>
18932
18933         * modules/striconveha: New file.
18934         * lib/striconveha.h: New file.
18935         * lib/striconveha.c: New file.
18936         * MODULES.html.sh (Internationalization functions): Add striconveha.
18937         * lib/striconv.c (str_iconv): Optimize the case of an empty input
18938         string.
18939         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18940
18941 2007-01-21  Bruno Haible  <bruno@clisp.org>
18942
18943         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18944         * lib/striconveh.c (str_iconveh): Likewise.
18945
18946 2007-01-21  Bruno Haible  <bruno@clisp.org>
18947
18948         * lib/striconveh.h (mem_iconveh): New declaration.
18949         * lib/striconveh.c (mem_iconveh): New function.
18950         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18951
18952 2007-01-21  Bruno Haible  <bruno@clisp.org>
18953
18954         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18955
18956         * lib/striconveh.h (mem_cd_iconveh): Change specification.
18957         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18958         original result buffer.
18959         (str_cd_iconveh): Update.
18960         * tests/test-striconveh.c (main): Update.
18961
18962         * lib/striconv.h (mem_cd_iconv): Change specification.
18963         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18964         result buffer.
18965         (str_cd_iconv): Update.
18966         * tests/test-striconv.c (main): Update.
18967
18968 2007-01-21  Bruno Haible  <bruno@clisp.org>
18969
18970         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18971
18972 2007-01-20  Jim Meyering  <jim@meyering.net>
18973
18974         * lib/userspec.c (parse_with_separator): If a user or group string
18975         starts with "+", skip the corresponding name-to-ID look-up, since
18976         such a look-up must fail: user and group names may not include "+".
18977
18978 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18979
18980         * lib/poll.c: Include sys/time.h and time.h unconditionally,
18981         since we now assume the sys_time module.
18982         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18983         check for sys/time.h; no longer needed.
18984         * modules/poll (Depends-on): Depend on sys_time.
18985
18986 2007-01-18  Bruno Haible  <bruno@clisp.org>
18987
18988         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18989         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18990
18991         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18992         gettimeofday.
18993
18994         * tests/test-gettimeofday.c: Include <time.h>.
18995         (dummy): Remove variable.
18996
18997         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18998         gl_HEADER_SYS_TIME_H.
18999         (gl_HEADER_SYS_TIME_H): New macro.
19000
19001         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19002         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19004         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19005         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19006         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19007         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19008         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19009         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19010         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19011         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19012
19013         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19014         last change; it caused a compilation error when cross-compiling to
19015         Cygwin.
19016
19017 2007-01-18  Jim Meyering  <jim@meyering.net>
19018
19019         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19020         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19021         than the race-prone "test -d sys || mkdir sys".
19022         (configure.ac): Use AC_PROG_MKDIR_P.
19023         * modules/sys_select: Likewise.
19024         * modules/sys_socket: Likewise.
19025         * modules/sys_time: Likewise.
19026
19027 2007-01-18  Eric Blake  <ebb9@byu.net>
19028
19029         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19030         replace gettimeofday.
19031         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19032         name, to avoid infinite recursion.
19033
19034 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19037         module sys_time.
19038         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19039         assume timespec.h defines struct timeval.
19040         * lib/settime.c: Likewise.
19041         * lib/utimens.c: Likewise.
19042         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19043         since we now assume the gettimeofday module.
19044         * lib/tempname.c (__gen_tempname): Likewise.
19045         * lib/gettimeofday.h: Remove.
19046         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19047         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19048         Include <time.h>, for 'time()'.
19049         (localtime_buffer_addr): Also use this workaround if
19050         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19051         to simplify the uses.  All uses changed.
19052         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19053         that #undef is inside {}, and 'const' follows type name consistently.
19054         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19055         (gettimeofday): Do not use the maximum possible value for
19056         tv->tv_usec, since that might break usages other than ls.c.
19057         Instead, we'll leave ls.c alone.  This undoes today's patch
19058         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19059         we've never observed the problem but might as well keep the
19060         canary.
19061         * lib/nanosleep.c: Include timespec.h first, for interface check.
19062         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19063         now assume the sys_time module.
19064         * lib/tempname.c: Likewise.
19065         * lib/timespec.h: Likewise.
19066         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19067         needed.
19068         * lib/strftime.c: Likewise.
19069         * lib/timespec.h: Likewise.
19070         * lib/posixtm.c: Include posixtm.h first, for interface check.
19071         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19072         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19073         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19074         * lib/sys_time_.h: New file.
19075         * lib/timespec.h (struct timespec): Use long int, not long.
19076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19077         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19078         Remove obsolescent call to AC_HEADER_TIME.
19079         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19081         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19082         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19083         Likewise.
19084         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19085         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19086         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19087         into the sys_time module.  Check for gettimeofday just once.
19088         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
19089         for gettimeofday signature to just check the signature.  Merely
19090         compile it, since linking doesn't test signature.  Improve test for
19091         whether gettimeofday.o is actually needed.
19092         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19093         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
19094         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
19095         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19096         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19097         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19098         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19099         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19100         than worrying about sys/time.h.
19101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19102         Don't bother worrying about TIME_WITH_SYS_TIME.
19103         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19104         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19105         * m4/sys_time_h.m4: New file.
19106         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19107         Don't include sys/time.h.  Return from main rather than exiting.
19108         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19109         all uses changed.
19110         * modules/gethrxtime (Depends-on): Add sys_time.
19111         * modules/gettime (Depends-on): Likewise.
19112         * modules/gettimeofday (Depends-on): Likewise.
19113         * modules/nanosleep (Depends-on): Likewise.
19114         * modules/settime (Depends-on): Likewise.
19115         * modules/tempname (Depends-on): Likewise.
19116         * modules/utimens (Depends-on): Likewise.
19117         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19118         (Include:) Change back to <sys/time.h>.
19119         (Maintainer:) Add self.
19120         * modules/sys_time: New file.
19121         * modules/tempname (Depends-on): Add gettimeofday.
19122         * tests/test-gettimeofday.c: Include <sys/time.h>
19123         rather than gettimeofday.h.
19124
19125 2007-01-17  Bruno Haible  <bruno@clisp.org>
19126
19127         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19128         the license default to GPL.
19129         (func_create_testdir): Don't complain if a module is LGPL and its
19130         tests module depends on GPLed modules.
19131
19132 2007-01-17  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/gettimeofday.c (gettimeofday): Add code for the case
19135         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19136         maximum possible value for tv->tv_usec, rather than the minimum one.
19137
19138 2005-10-08  Martin Lambers  <marlam@marlam.de>
19139 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19140 2007-01-16  Bruno Haible  <bruno@clisp.org>
19141
19142         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19143         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19144         gl_FUNC_GETTIMEOFDAY.
19145         (Include): Add gettimeofday.h.
19146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19147         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19148         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19149         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19150         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19151         * lib/gettimeofday.h: New file.
19152         * lib/gettimeofday.c: Include <sys/timeb.h>.
19153         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19154         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19155         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19156         fall back on time().
19157
19158         * tests/test-gettimeofday.c: New file.
19159         * modules/gettimeofday-tests: New file.
19160
19161 2007-01-16  Eric Blake  <ebb9@byu.net>
19162
19163         * modules/fnmatch (Depends-on): Depend on wchar.
19164         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19165         * m4/fnmatch.m4: Likewise.
19166         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19167         * m4/mbchar.m4: Likewise.
19168         * modules/mbswidth (Depends-on): Depend on wchar.
19169         * lib/mbswidth.c: Assume <wchar.h>.
19170         * m4/mbswidth.m4: Likewise.
19171         * modules/quotearg (Depends-on): Depend on wchar.
19172         * lib/quotearg.c: Assume <wchar.h>.
19173         * m4/quotearg.m4: Likewise.
19174         * modules/regex (Depends-on): Depend on wchar.
19175         * lib/regex_internal.h: Assume <wchar.h>.
19176         * m4/regex.m4: Likewise.
19177         * modules/stdint (Depends-on): Depend on wchar.
19178         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19179         * m4/stdint.m4: Likewise.
19180         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19181         * modules/strftime (Depends-on): Depend on wchar.
19182         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19183         * modules/strtol (Depends-on): Depend on wchar.
19184         * lib/strtol.c: Assume <wchar.h>.
19185         * modules/wcwidth (Depends-on): Depend on wchar.
19186         * lib/wcwidth.h: Assume <wchar.h>.
19187         * m4/wcwidth.m4: Likewise.
19188
19189 2007-01-16  Bruno Haible  <bruno@clisp.org>
19190
19191         * modules/csharpexec-script: New, created from...
19192         * modules/csharpexec: ... this.
19193
19194 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19195
19196         * modules/javaexec-script: New, created from...
19197         * modules/javaexec: ... this.
19198
19199 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19200
19201         * modules/poll (Dependencies): Add sys_select.
19202
19203 2007-01-15  Jim Meyering  <jim@meyering.net>
19204
19205         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19206         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19207         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19208         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19209
19210 2007-01-15  Bruno Haible  <bruno@clisp.org>
19211
19212         * modules/striconveh: New file.
19213         * lib/striconveh.h: New file.
19214         * lib/striconveh.c: New file.
19215         * MODULES.html.sh (Internationalization functions): Add striconveh.
19216
19217         * modules/striconveh-tests: New file.
19218         * tests/test-striconveh.c: New file.
19219
19220 2007-01-15  Bruno Haible  <bruno@clisp.org>
19221
19222         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19223         not from GNU libiconv or GNU libc.
19224
19225 2007-01-15  Bruno Haible  <bruno@clisp.org>
19226
19227         * doc/gnulib-intro.texi (Copyright): Explain the different license
19228         terms for module descriptions, autoconf macros, tests, documentation.
19229
19230 2007-01-14  Bruno Haible  <bruno@clisp.org>
19231
19232         * modules/striconv-tests: New file.
19233         * tests/test-striconv.c: New file.
19234
19235 2007-01-14  Bruno Haible  <bruno@clisp.org>
19236
19237         * modules/iconv-tests: New file.
19238         * tests/test-iconv.c: New file.
19239
19240 2007-01-14  Bruno Haible  <bruno@clisp.org>
19241
19242         * gnulib-tool (func_get_license): For test modules, use the license of
19243         the main module.
19244
19245 2007-01-14  Bruno Haible  <bruno@clisp.org>
19246
19247         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19248         if iconv is found to exist.
19249
19250 2007-01-14  Bruno Haible  <bruno@clisp.org>
19251
19252         * modules/c-ctype-tests: New file.
19253         * tests/test-c-ctype.c: New file.
19254
19255 2007-01-14  Bruno Haible  <bruno@clisp.org>
19256
19257         * modules/binary-io-tests: New file.
19258         * tests/test-binary-io.sh: New file.
19259         * tests/test-binary-io.c: New file.
19260
19261 2007-01-14  Bruno Haible  <bruno@clisp.org>
19262
19263         * modules/array-oset-tests: New file.
19264         * tests/test-array_oset.c: New file.
19265
19266 2007-01-14  Bruno Haible  <bruno@clisp.org>
19267
19268         * modules/array-list-tests: New file.
19269         * tests/test-array_list.c: New file.
19270
19271 2007-01-14  Bruno Haible  <bruno@clisp.org>
19272
19273         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19274         and make.
19275         Reported by Simon Josefsson in
19276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19277
19278 2007-01-14  Bruno Haible  <bruno@clisp.org>
19279
19280         * modules/allocsa-tests: New file.
19281         * tests/test-allocsa.c: New file.
19282
19283 2007-01-14  Bruno Haible  <bruno@clisp.org>
19284
19285         * modules/fchdir (Depends-on): Add absolute-header.
19286         * modules/unistd (Depends-on): Likewise.
19287
19288 2006-12-30  Bruno Haible  <bruno@clisp.org>
19289
19290         * modules/fchdir: New file.
19291         * modules/unistd (Files): Add lib/unistd_.h.
19292         (Makefile.am): Generate unistd.h from unistd_.h.
19293         * lib/fchdir.c: New file.
19294         * lib/dirent_.h: New file.
19295         * lib/unistd_.h: New file.
19296         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19297         * m4/fchdir.m4: New file.
19298         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19299         (gl_HEADER_UNISTD): Invoke it.
19300         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19301         function.
19302         * lib/backupfile.c (opendir, closedir): Undefine.
19303         * lib/chown.c (open, close): Undefine.
19304         * lib/clean-temp.c (open, close): Undefine.
19305         * lib/copy-file.c (open, close): Undefine.
19306         * lib/execute.c (open, close): Undefine.
19307         * lib/fsusage.c (open, close): Undefine.
19308         * lib/gc-gnulib.c (open, close): Undefine.
19309         * lib/getcwd.c (opendir, closedir): Undefine.
19310         * lib/glob.c (opendir, closedir): Undefine.
19311         * lib/javacomp.c (open, close): Undefine.
19312         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19313         * lib/openat-proc.c (open, close): Undefine.
19314         * lib/pagealign_alloc.c (open, close): Undefine.
19315         * lib/pipe.c (open, close): Undefine.
19316         * lib/progreloc.c (open, close): Undefine.
19317         * lib/savedir.c (opendir, closedir): Undefine.
19318         * lib/utime.c (open, close): Undefine.
19319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19320
19321 2007-01-10  Bruno Haible  <bruno@clisp.org>
19322
19323         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19324
19325 2007-01-12  Eric Blake  <ebb9@byu.net>
19326
19327         Provide a robust <wchar.h>.  Further simplifications are now
19328         possible in other modules, but not included here.
19329         * modules/wchar: New module.
19330         * m4/wchar.m4: New file.
19331         * lib/wchar_.h: Likewise.
19332         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19333         of the new module.
19334         * MODULES.html.sh (Extended multibyte and wide character utilities):
19335         New section.
19336
19337 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19340         to a reasonable default for memory allocation.
19341         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19342         file system that reports garbage st_size values for symlinks.
19343         Problem reported by Liyang Hu.
19344
19345 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19346
19347         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19348         Emacs .#* auto-save files).
19349
19350 2007-01-11  Bruno Haible  <bruno@clisp.org>
19351
19352         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19353         directory.
19354
19355 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19356
19357         Use @...@ consistently in lib/wctype_.h.
19358         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19359         on it being set to 1 or 0.
19360         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19361         go back to AC_SUBSTing it.
19362         * modules/wctype (Makefile.am): Undo previous change.
19363
19364 2007-01-10  Eric Blake  <ebb9@byu.net>
19365
19366         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19367         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19368         * modules/wctype (Makefile.am): Likewise.
19369         Reported by Chris McGuire.
19370
19371 2007-01-10  Jim Meyering  <jim@meyering.net>
19372
19373         fts.c: a small readability/maintainability improvement
19374         * lib/fts.c (fts_read): Make this code slightly more readable and
19375         maintainable by hoisting the "sp->fts_cur = p" assignments to
19376         immediately follow the statements that set P.  Derived from
19377         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19378
19379 2007-01-10  Eric Blake  <ebb9@byu.net>
19380
19381         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19382         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19384         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19385         Reported by Chris McGuire.
19386
19387 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19388
19389         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19390         in sed script.
19391
19392 2007-01-09  Bruno Haible  <bruno@clisp.org>
19393
19394         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19395         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19396         variables.
19397         (func_module): Use them.
19398
19399 2007-01-09  Bruno Haible  <bruno@clisp.org>
19400
19401         * modules/unistr/base: New file.
19402         * lib/unistr.h: New file.
19403
19404         * modules/unistr/u8-to-u16: New file.
19405         * lib/unistr/u8-to-u16.c: New file.
19406
19407         * modules/unistr/u8-to-u32: New file.
19408         * lib/unistr/u8-to-u32.c: New file.
19409
19410         * modules/unistr/u16-to-u8: New file.
19411         * lib/unistr/u16-to-u8.c: New file.
19412
19413         * modules/unistr/u16-to-u32: New file.
19414         * lib/unistr/u16-to-u32.c: New file.
19415
19416         * modules/unistr/u32-to-u8: New file.
19417         * lib/unistr/u32-to-u8.c: New file.
19418
19419         * modules/unistr/u32-to-u16: New file.
19420         * lib/unistr/u32-to-u16.c: New file.
19421
19422         * modules/unistr/u8-check: New file.
19423         * modules/unistr/u16-check: New file.
19424         * modules/unistr/u32-check: New file.
19425         * lib/unistr/u8-check.c: New file.
19426         * lib/unistr/u16-check.c: New file.
19427         * lib/unistr/u32-check.c: New file.
19428
19429         * modules/unistr/u8-chr: New file.
19430         * modules/unistr/u16-chr: New file.
19431         * modules/unistr/u32-chr: New file.
19432         * lib/unistr/u8-chr.c: New file.
19433         * lib/unistr/u16-chr.c: New file.
19434         * lib/unistr/u32-chr.c: New file.
19435
19436         * modules/unistr/u8-cmp: New file.
19437         * modules/unistr/u16-cmp: New file.
19438         * modules/unistr/u32-cmp: New file.
19439         * lib/unistr/u8-cmp.c: New file.
19440         * lib/unistr/u16-cmp.c: New file.
19441         * lib/unistr/u32-cmp.c: New file.
19442
19443         * modules/unistr/u8-cpy: New file.
19444         * modules/unistr/u16-cpy: New file.
19445         * modules/unistr/u32-cpy: New file.
19446         * lib/unistr/u8-cpy.c: New file.
19447         * lib/unistr/u16-cpy.c: New file.
19448         * lib/unistr/u32-cpy.c: New file.
19449         * lib/unistr/u-cpy.h: New file.
19450
19451         * modules/unistr/u8-cpy-alloc: New file.
19452         * modules/unistr/u16-cpy-alloc: New file.
19453         * modules/unistr/u32-cpy-alloc: New file.
19454         * lib/unistr/u8-cpy-alloc.c: New file.
19455         * lib/unistr/u16-cpy-alloc.c: New file.
19456         * lib/unistr/u32-cpy-alloc.c: New file.
19457         * lib/unistr/u-cpy-alloc.h: New file.
19458
19459         * modules/unistr/u8-endswith: New file.
19460         * modules/unistr/u16-endswith: New file.
19461         * modules/unistr/u32-endswith: New file.
19462         * lib/unistr/u8-endswith.c: New file.
19463         * lib/unistr/u16-endswith.c: New file.
19464         * lib/unistr/u32-endswith.c: New file.
19465         * lib/unistr/u-endswith.h: New file.
19466
19467         * modules/unistr/u8-mblen: New file.
19468         * modules/unistr/u16-mblen: New file.
19469         * modules/unistr/u32-mblen: New file.
19470         * lib/unistr/u8-mblen.c: New file.
19471         * lib/unistr/u16-mblen.c: New file.
19472         * lib/unistr/u32-mblen.c: New file.
19473
19474         * modules/unistr/u8-mbtouc: New file.
19475         * modules/unistr/u16-mbtouc: New file.
19476         * modules/unistr/u32-mbtouc: New file.
19477         * lib/unistr/u8-mbtouc.c: New file.
19478         * lib/unistr/u16-mbtouc.c: New file.
19479         * lib/unistr/u32-mbtouc.c: New file.
19480
19481         * modules/unistr/u8-mbtouc-safe: New file.
19482         * modules/unistr/u16-mbtouc-safe: New file.
19483         * modules/unistr/u32-mbtouc-safe: New file.
19484         * lib/unistr/u8-mbtouc-safe.c: New file.
19485         * lib/unistr/u16-mbtouc-safe.c: New file.
19486         * lib/unistr/u32-mbtouc-safe.c: New file.
19487
19488         * modules/unistr/u8-move: New file.
19489         * modules/unistr/u16-move: New file.
19490         * modules/unistr/u32-move: New file.
19491         * lib/unistr/u8-move.c: New file.
19492         * lib/unistr/u16-move.c: New file.
19493         * lib/unistr/u32-move.c: New file.
19494         * lib/unistr/u-move.h: New file.
19495
19496         * modules/unistr/u8-next: New file.
19497         * modules/unistr/u16-next: New file.
19498         * modules/unistr/u32-next: New file.
19499         * lib/unistr/u8-next.c: New file.
19500         * lib/unistr/u16-next.c: New file.
19501         * lib/unistr/u32-next.c: New file.
19502
19503         * modules/unistr/u8-prev: New file.
19504         * modules/unistr/u16-prev: New file.
19505         * modules/unistr/u32-prev: New file.
19506         * lib/unistr/u8-prev.c: New file.
19507         * lib/unistr/u16-prev.c: New file.
19508         * lib/unistr/u32-prev.c: New file.
19509
19510         * modules/unistr/u8-set: New file.
19511         * modules/unistr/u16-set: New file.
19512         * modules/unistr/u32-set: New file.
19513         * lib/unistr/u8-set.c: New file.
19514         * lib/unistr/u16-set.c: New file.
19515         * lib/unistr/u32-set.c: New file.
19516         * lib/unistr/u-set.h: New file.
19517
19518         * modules/unistr/u8-startswith: New file.
19519         * modules/unistr/u16-startswith: New file.
19520         * modules/unistr/u32-startswith: New file.
19521         * lib/unistr/u8-startswith.c: New file.
19522         * lib/unistr/u16-startswith.c: New file.
19523         * lib/unistr/u32-startswith.c: New file.
19524         * lib/unistr/u-startswith.h: New file.
19525
19526         * modules/unistr/u8-stpcpy: New file.
19527         * modules/unistr/u16-stpcpy: New file.
19528         * modules/unistr/u32-stpcpy: New file.
19529         * lib/unistr/u8-stpcpy.c: New file.
19530         * lib/unistr/u16-stpcpy.c: New file.
19531         * lib/unistr/u32-stpcpy.c: New file.
19532         * lib/unistr/u-stpcpy.h: New file.
19533
19534         * modules/unistr/u8-stpncpy: New file.
19535         * modules/unistr/u16-stpncpy: New file.
19536         * modules/unistr/u32-stpncpy: New file.
19537         * lib/unistr/u8-stpncpy.c: New file.
19538         * lib/unistr/u16-stpncpy.c: New file.
19539         * lib/unistr/u32-stpncpy.c: New file.
19540         * lib/unistr/u-stpncpy.h: New file.
19541
19542         * modules/unistr/u8-strcat: New file.
19543         * modules/unistr/u16-strcat: New file.
19544         * modules/unistr/u32-strcat: New file.
19545         * lib/unistr/u8-strcat.c: New file.
19546         * lib/unistr/u16-strcat.c: New file.
19547         * lib/unistr/u32-strcat.c: New file.
19548         * lib/unistr/u-strcat.h: New file.
19549
19550         * modules/unistr/u8-strchr: New file.
19551         * modules/unistr/u16-strchr: New file.
19552         * modules/unistr/u32-strchr: New file.
19553         * lib/unistr/u8-strchr.c: New file.
19554         * lib/unistr/u16-strchr.c: New file.
19555         * lib/unistr/u32-strchr.c: New file.
19556
19557         * modules/unistr/u8-strcmp: New file.
19558         * modules/unistr/u16-strcmp: New file.
19559         * modules/unistr/u32-strcmp: New file.
19560         * lib/unistr/u8-strcmp.c: New file.
19561         * lib/unistr/u16-strcmp.c: New file.
19562         * lib/unistr/u32-strcmp.c: New file.
19563
19564         * modules/unistr/u8-strcpy: New file.
19565         * modules/unistr/u16-strcpy: New file.
19566         * modules/unistr/u32-strcpy: New file.
19567         * lib/unistr/u8-strcpy.c: New file.
19568         * lib/unistr/u16-strcpy.c: New file.
19569         * lib/unistr/u32-strcpy.c: New file.
19570         * lib/unistr/u-strcpy.h: New file.
19571
19572         * modules/unistr/u8-strcspn: New file.
19573         * modules/unistr/u16-strcspn: New file.
19574         * modules/unistr/u32-strcspn: New file.
19575         * lib/unistr/u8-strcspn.c: New file.
19576         * lib/unistr/u16-strcspn.c: New file.
19577         * lib/unistr/u32-strcspn.c: New file.
19578         * lib/unistr/u-strcspn.h: New file.
19579
19580         * modules/unistr/u8-strdup: New file.
19581         * modules/unistr/u16-strdup: New file.
19582         * modules/unistr/u32-strdup: New file.
19583         * lib/unistr/u8-strdup.c: New file.
19584         * lib/unistr/u16-strdup.c: New file.
19585         * lib/unistr/u32-strdup.c: New file.
19586         * lib/unistr/u-strdup.h: New file.
19587
19588         * modules/unistr/u8-strlen: New file.
19589         * modules/unistr/u16-strlen: New file.
19590         * modules/unistr/u32-strlen: New file.
19591         * lib/unistr/u8-strlen.c: New file.
19592         * lib/unistr/u16-strlen.c: New file.
19593         * lib/unistr/u32-strlen.c: New file.
19594         * lib/unistr/u-strlen.h: New file.
19595
19596         * modules/unistr/u8-strmblen: New file.
19597         * modules/unistr/u16-strmblen: New file.
19598         * modules/unistr/u32-strmblen: New file.
19599         * lib/unistr/u8-strmblen.c: New file.
19600         * lib/unistr/u16-strmblen.c: New file.
19601         * lib/unistr/u32-strmblen.c: New file.
19602
19603         * modules/unistr/u8-strmbtouc: New file.
19604         * modules/unistr/u16-strmbtouc: New file.
19605         * modules/unistr/u32-strmbtouc: New file.
19606         * lib/unistr/u8-strmbtouc.c: New file.
19607         * lib/unistr/u16-strmbtouc.c: New file.
19608         * lib/unistr/u32-strmbtouc.c: New file.
19609
19610         * modules/unistr/u8-strncat: New file.
19611         * modules/unistr/u16-strncat: New file.
19612         * modules/unistr/u32-strncat: New file.
19613         * lib/unistr/u8-strncat.c: New file.
19614         * lib/unistr/u16-strncat.c: New file.
19615         * lib/unistr/u32-strncat.c: New file.
19616         * lib/unistr/u-strncat.h: New file.
19617
19618         * modules/unistr/u8-strncmp: New file.
19619         * modules/unistr/u16-strncmp: New file.
19620         * modules/unistr/u32-strncmp: New file.
19621         * lib/unistr/u8-strncmp.c: New file.
19622         * lib/unistr/u16-strncmp.c: New file.
19623         * lib/unistr/u32-strncmp.c: New file.
19624
19625         * modules/unistr/u8-strncpy: New file.
19626         * modules/unistr/u16-strncpy: New file.
19627         * modules/unistr/u32-strncpy: New file.
19628         * lib/unistr/u8-strncpy.c: New file.
19629         * lib/unistr/u16-strncpy.c: New file.
19630         * lib/unistr/u32-strncpy.c: New file.
19631         * lib/unistr/u-strncpy.h: New file.
19632
19633         * modules/unistr/u8-strnlen: New file.
19634         * modules/unistr/u16-strnlen: New file.
19635         * modules/unistr/u32-strnlen: New file.
19636         * lib/unistr/u8-strnlen.c: New file.
19637         * lib/unistr/u16-strnlen.c: New file.
19638         * lib/unistr/u32-strnlen.c: New file.
19639         * lib/unistr/u-strnlen.h: New file.
19640
19641         * modules/unistr/u8-strpbrk: New file.
19642         * modules/unistr/u16-strpbrk: New file.
19643         * modules/unistr/u32-strpbrk: New file.
19644         * lib/unistr/u8-strpbrk.c: New file.
19645         * lib/unistr/u16-strpbrk.c: New file.
19646         * lib/unistr/u32-strpbrk.c: New file.
19647         * lib/unistr/u-strpbrk.h: New file.
19648
19649         * modules/unistr/u8-strrchr: New file.
19650         * modules/unistr/u16-strrchr: New file.
19651         * modules/unistr/u32-strrchr: New file.
19652         * lib/unistr/u8-strrchr.c: New file.
19653         * lib/unistr/u16-strrchr.c: New file.
19654         * lib/unistr/u32-strrchr.c: New file.
19655
19656         * modules/unistr/u8-strspn: New file.
19657         * modules/unistr/u16-strspn: New file.
19658         * modules/unistr/u32-strspn: New file.
19659         * lib/unistr/u8-strspn.c: New file.
19660         * lib/unistr/u16-strspn.c: New file.
19661         * lib/unistr/u32-strspn.c: New file.
19662         * lib/unistr/u-strspn.h: New file.
19663
19664         * modules/unistr/u8-strstr: New file.
19665         * modules/unistr/u16-strstr: New file.
19666         * modules/unistr/u32-strstr: New file.
19667         * lib/unistr/u8-strstr.c: New file.
19668         * lib/unistr/u16-strstr.c: New file.
19669         * lib/unistr/u32-strstr.c: New file.
19670         * lib/unistr/u-strstr.h: New file.
19671
19672         * modules/unistr/u8-strtok: New file.
19673         * modules/unistr/u16-strtok: New file.
19674         * modules/unistr/u32-strtok: New file.
19675         * lib/unistr/u8-strtok.c: New file.
19676         * lib/unistr/u16-strtok.c: New file.
19677         * lib/unistr/u32-strtok.c: New file.
19678         * lib/unistr/u-strtok.h: New file.
19679
19680         * modules/unistr/u8-uctomb: New file.
19681         * modules/unistr/u16-uctomb: New file.
19682         * modules/unistr/u32-uctomb: New file.
19683         * lib/unistr/u8-uctomb.c: New file.
19684         * lib/unistr/u16-uctomb.c: New file.
19685         * lib/unistr/u32-uctomb.c: New file.
19686
19687         * MODULES.html.sh (Unicode string functions): Add the new modules.
19688
19689 2007-01-08  Bruno Haible  <bruno@clisp.org>
19690
19691         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19692         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19693         subdirectories.
19694
19695 2007-01-08  Karl Berry  <karl@gnu.org>
19696
19697         * doc/error.texi: mention that main() fns must set program_name
19698         when progname is used.
19699
19700 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19701
19702         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19703         WCTYPE_H is empty, for the benefit of builds from non-distclean
19704         directories.  Problem reported by Eric Blake in
19705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19706
19707 2007-01-08  Bruno Haible  <bruno@clisp.org>
19708
19709         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19710         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19711         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19712         PROVIDE_CANONICALIZE_FILENAME_MODE.
19713         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19714
19715 2007-01-08  Bruno Haible  <bruno@clisp.org>
19716
19717         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19718         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19719         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19720         * lib/fts.c: Likewise.
19721         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19722
19723 2006-12-25  Bruno Haible  <bruno@clisp.org>
19724
19725         * modules/utf8-ucs4-safe: New file.
19726         * lib/utf8-ucs4-safe.h: New file.
19727         * lib/unistr/utf8-ucs4-safe.c: New file.
19728
19729         * modules/utf16-ucs4-safe: New file.
19730         * lib/utf16-ucs4-safe.h: New file.
19731         * lib/unistr/utf16-ucs4-safe.c: New file.
19732
19733         * MODULES.html.sh (Unicode string functions): Add the new modules.
19734
19735 2007-01-08  Bruno Haible  <bruno@clisp.org>
19736
19737         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19738         (Depends-on): Add unitypes.
19739         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19740         (u8_mbtouc_aux): Move out to separate file.
19741         (u8_mbtouc): Use ucs4_t, uint8_t types.
19742         * lib/unistr/utf8-ucs4.c: New file.
19743
19744         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19745         (Depends-on): Add unitypes.
19746         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19747         (u16_mbtouc_aux): Move out to separate file.
19748         (u16_mbtouc): Use ucs4_t, uint16_t types.
19749         * lib/unistr/utf16-ucs4.c: New file.
19750
19751         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19752         (Depends-on): Add unitypes.
19753         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19754         (u8_uctomb_aux): Move out to separate file.
19755         (u8_uctomb): Use ucs4_t, uint8_t types.
19756         * lib/unistr/ucs4-utf8.c: New file.
19757
19758         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19759         (Depends-on): Add unitypes.
19760         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19761         (u16_uctomb_aux): Move out to separate file.
19762         (u16_uctomb): Use ucs4_t, uint16_t types.
19763         * lib/unistr/ucs4-utf16.c: New file.
19764
19765 2006-12-25  Bruno Haible  <bruno@clisp.org>
19766
19767         * modules/unitypes: New file.
19768         * lib/unitypes.h: New file.
19769         * MODULES.html.sh (func_all_modules): New section "Unicode string
19770         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19771         this section. Add unitypes.
19772
19773 2007-01-08  Bruno Haible  <bruno@clisp.org>
19774
19775         Avoid variable names that conflict with those from libtool.
19776         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19777         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19778         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19779         library_names_spec to acl_library_names_spec, hardcode_* to
19780         acl_hardcode_*.
19781         Reported by Ralf Wildenhues.
19782
19783 2007-01-08  Bruno Haible  <bruno@clisp.org>
19784
19785         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19786         definition.
19787         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19788         definition.
19789         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19790         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19791         definition.
19792         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19793         definition.
19794         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19795         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19796         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19797         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19798         definition.
19799         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19800         definition.
19801         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19802         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19803         GC_USE_<algorithm>.
19804         * lib/gc-libgcrypt.c: Likewise.
19805         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19806         * modules/gc-arctwo (configure.ac): Likewise.
19807         * modules/gc-des (configure.ac): Likewise.
19808         * modules/gc-hmac-md5 (configure.ac): Likewise.
19809         * modules/gc-hmac-sha1 (configure.ac): Likewise.
19810         * modules/gc-md2 (configure.ac): Likewise.
19811         * modules/gc-md4 (configure.ac): Likewise.
19812         * modules/gc-md5 (configure.ac): Likewise.
19813         * modules/gc-random (configure.ac): Likewise.
19814         * modules/gc-rijndael (configure.ac): Likewise.
19815         * modules/gc-sha1 (configure.ac): Likewise.
19816
19817 2007-01-08  Bruno Haible  <bruno@clisp.org>
19818
19819         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19820         macro definition.
19821         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19822         definition.
19823         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19824         definition.
19825         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19826         * modules/fcntl-safer (configure.ac): Likewise.
19827         * modules/fopen-safer (configure.ac): Likewise.
19828         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19829         GNULIB_FWRITEERROR macro definition.
19830
19831 2007-01-08  Bruno Haible  <bruno@clisp.org>
19832
19833         * m4/gnulib-common.m4: New file.
19834         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19835         (func_get_filelist): Add m4/gnulib-common.m4.
19836
19837 2007-01-08  Bruno Haible  <bruno@clisp.org>
19838
19839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19840         command.
19841
19842 2007-01-08  Jim Meyering  <jim@meyering.net>
19843
19844         Use a more robust test for a "can't happen" condition.
19845         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19846         narrowed the st_size value.  Presuming the "can't happen" condition
19847         is true, that narrowing could conceivably convert an invalid st_size
19848         value into a valid one.  Instead, use a change based on Matthew
19849         Woehlke's original patch.
19850
19851         Slight readability improvement: use an assert-like macro
19852         in place of literal "abort ()" uses.
19853         * lib/fts.c (fts_assert): Define.
19854         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19855         Use this macro instead of a bare 'abort'.
19856
19857 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19858
19859         Don't worry about using IRIX 5.3's wctype.h broken definitions;
19860         simply work around them.
19861         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19862         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19863         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19864         declaring.
19865         Don't bother to define as macros, since the standard doesn't require it.
19866         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19867         longer worry about IRIX 5.3.
19868         (HAVE_WCTYPE_CTMP_BUG): Remove.
19869
19870 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19871
19872         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19873         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
19874         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19875         Problems reported by Georg Schwarz for IRIX 5.3.
19876
19877         * gnulib-tool (autoconf_minversion): Take the maximum version number
19878         found, not the minimum.  Problem reported by James Youngman.
19879
19880 2007-01-03  Karl Berry  <karl@gnu.org>
19881
19882         * doc/error.texi: new file, explaining interaction with progname.
19883         * doc/gnulib.texi: include it.  Update copyright.
19884
19885 2007-01-03  Simon Josefsson  <simon@josefsson.org>
19886
19887         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19888         AC_CANONICAL_HOST, to improve autobuild outputs.
19889
19890 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
19891             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19892
19893         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19894         sockets, server sockets, and other file descriptors.  Count errors
19895         to compute the return value.  Reorder the code a bit to be easier
19896         to follow.  Don't set event bits that were not requested (except
19897         POLLERR and POLLHUP).
19898
19899 2007-01-01  Bruno Haible  <bruno@clisp.org>
19900
19901         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19902
19903 2007-01-03  Jim Meyering  <jim@meyering.net>
19904
19905         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
19906
19907 2007-01-02  Bruno Haible  <bruno@clisp.org>
19908
19909         * modules/settime (Include): Require timespec.h.
19910         * modules/nanosleep (Include): Likewise.
19911
19912 2007-01-01  Bruno Haible  <bruno@clisp.org>
19913
19914         * gnulib-tool (func_emit_copyright_notice): Bump year.
19915         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19916
19917 2007-01-01  Bruno Haible  <bruno@clisp.org>
19918
19919         Improve support for OpenBSD.
19920         * build-aux/config.rpath (libname_spec): Export.
19921         (library_names_spec): New variable. Export.
19922         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19923         library_names_spec from the config.rpath output. Locate shared library
19924         through the name pattern in library_names_spec.
19925
19926 2007-01-01  Eric Blake  <ebb9@byu.net>
19927
19928         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19929
19930 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19931
19932         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19933         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
19934         assume the C locale, and avoid an "eval" that could cause trouble.
19935         Problem with SORT reported by Bob Proulx.
19936
19937         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19938         Define.  Trivial patch from Henning Nielsen Lund, originally
19939         sent to bug-grep@gnu.org today.
19940
19941 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19942
19943         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19944         struct stat.  Problem reported by Henning Nielsen Lund.
19945         * lib/acl.c: Include acl.h first, to check interface.  Don't
19946         bother to include sys/types.h and sys/stat.h again.
19947
19948 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19949
19950         Import the following change from libc; problem reported by
19951         Sven Verdoolaege.
19952
19953         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
19954
19955         [BZ #1373]
19956         * lib/argp.h: Remove __NTH for __argp_usage inline function.
19957
19958 2006-12-28  Jim Meyering  <jim@meyering.net>
19959
19960         * build-aux/announce-gen: Do not assume that the package
19961         builds any of tar.gz, tar.bz2, and .xdelta files.
19962         Suggestion from Simon Josefsson.
19963
19964 2006-12-28  Simon Josefsson  <simon@josefsson.org>
19965
19966         * modules/announce-gen: New file.
19967
19968 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19969
19970         * lib/mbchar.h: Just include <wctype.h>; the wctype module
19971         handles its gotchas now.
19972         * lib/mbswidth.c: Likewise.
19973         * lib/wcwidth.h: Likewise.
19974         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19975         and iswcntrl; the wctype module does this stuff now.
19976         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19978         * modules/mbchar (Depends-on): Add wctype.
19979         * modules/mbswidth (Depends-on): Likewise.
19980         * modules/wcwidth (Depends-on): Likewise.
19981
19982 2006-12-27  Eric Blake  <ebb9@byu.net>
19983
19984         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19985         module uses more than what <wctype.h> is required to provide.
19986
19987 2006-12-26  Eric Blake  <ebb9@byu.net>
19988
19989         * gnulib-tool (sed_extract_prog): Avoid space-tab.
19990
19991 2006-12-26  Eric Blake  <ebb9@byu.net>
19992
19993         * modules/absolute-header: New module.
19994         * modules/fcntl (Depends-on): Depend on it.
19995         * modules/inttypes (Depends-on): Likewise.
19996         * modules/stdint (Depends-on): Likewise.
19997         * modules/sys_stat (Depends-on): Likewise.
19998         * modules/wctype (Depends-on): Likewise.
19999         * MODULES.html.sh (Support for building libraries and
20000         executables): Document it.
20001
20002 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20003
20004         * gnulib-tool (SED): Remove, undoing previous change.
20005         The problem was that it broke coreutils on Solaris, because
20006         "sed --posix" leaked into a makefile.
20007         (sed): New alias, if 'alias' and GNU sed.
20008
20009 2006-12-24  Jim Meyering  <jim@meyering.net>
20010
20011         Work around an fchownat bug in glibc-2.4:
20012         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20013         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20014         in spite of the -P option.
20015         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20016         New macros.
20017         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20018         * modules/openat (Files): Add lib/fchownat.c.
20019         * lib/openat.c (fchownat): Don't define here.  Move to...
20020         * lib/fchownat.c: ...this new file.
20021
20022 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         Fix bug reported by Bruno Haible in
20025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20026         where quotearg.c didn't compile on Mac OS X 10.2 because it
20027         lacks <wchar.h> and wint_t.
20028         * lib/wctype_.h (__wctype_wint_t): New type.
20029         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20030         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20031         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20032         Arg is now of type __wctype_wint_t, not wint_t.
20033         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20034         substitute HAVE_WINT_T.
20035         * modules/wctype (Files): Add m4/wint_t.m4.
20036         (wctype.h): Substitute HAVE_WINT_T.
20037
20038 2006-12-23  Bruno Haible  <bruno@clisp.org>
20039
20040         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20041
20042 2006-12-23  Bruno Haible  <bruno@clisp.org>
20043
20044         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20045         S_ISLNK.
20046         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20047         mingw.
20048
20049 2006-12-22  Bruno Haible  <bruno@clisp.org>
20050
20051         * lib/copy-file.c: Include acl.h.
20052         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20053         Close the file descriptors only after being done with copy_acl.
20054         * modules/copy-file (Depends-on): Add acl.
20055
20056 2006-12-22  Bruno Haible  <bruno@clisp.org>
20057
20058         * gnulib-tool (SED): New variable.
20059         Use $SED instead of sed everywhere.
20060
20061 2006-12-22  Bruno Haible  <bruno@clisp.org>
20062
20063         * modules/no-c++: New file.
20064         * m4/no-c++.m4: New file.
20065         * MODULES.html.sh (Support for building libraries and executables):
20066         Add no-c++.
20067
20068 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20069
20070         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20071         Include <limits.h>, and use its INT_MAX to rewrite the
20072         j loop so that it does not overflow 'int'.  Problem reported by
20073         Ralf Wildenhues in
20074         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20075         Play it safe by shifting left by 1 rather than multiplying by 2,
20076         as GCC is less likely to optimize this away when the value
20077         is signed (when it assumes overflow leads to undefined behavior).
20078         Also, don't assume time_t uses two's complement.
20079
20080 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20081
20082         * MODULES.html.sh: New module wctype.
20083         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20084         * lib/fnmatch.c: Don't bother to include <wchar.h> before
20085         <wctype.h>, since the new wctype module should fix this.
20086         * lib/quotearg.c: Include <wctype.h> unconditionally, since
20087         the wctype module should arrange for it.
20088         * lib/regex_internal.h: Likewise.
20089         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20090         since the wctype module should handle this now.
20091         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20092         * modules/fnmatch (Depends-on): Add wctype.
20093         * modules/quotearg (Depends-on): Likewise.
20094         * modules/regex (Depends-on): Likewise.
20095
20096 2006-12-19  Bruno Haible  <bruno@clisp.org>
20097
20098         * lib/strdup.h [C++]: Wrap definitions in extern "C".
20099         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20100
20101 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20102
20103         * modules/savewd (Depends-on): Fix dependency on fcntl.
20104
20105 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20106
20107         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20108         conforms to C99, rather than relying on the user's environment
20109         setting of STDINT_H.
20110
20111 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20112         and Eric Blake  <ebb9@byu.net>
20113
20114         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20115         This is more consistent with the other defines here.
20116         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20117         Port to z/OS.  Problem reported by Paul Gilmartin.
20118         Change local vars to use gl_ prefix rather than ac_.
20119         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20120         with other defines.
20121         * modules/double-slash-root: New module.
20122         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20123         (Depends-on): Add double-slash-root.
20124         * MODULES.html.sh (File system functions): Mention new module.
20125
20126 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20127
20128         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20129         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20130         This is for the benefit of gzip, which doesn't do i18n.
20131
20132 2006-12-12  Jim Meyering  <jim@meyering.net>
20133
20134         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20135         Reported by Andreas Schwab <schwab@suse.de>.
20136
20137 2006-12-12  Bruno Haible  <bruno@clisp.org>
20138
20139         Merge these changes.
20140         2006-09-05  Bruno Haible  <bruno@clisp.org>
20141         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20142         iconv_alloc succeeded.
20143         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20144         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20145         test for " && dest " at the end - dest is always != NULL there. Call
20146         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20147         with 2xNULL arguments, also to flush the state storage. Handle the
20148         IRIX iconv behaviour. Realloc the final result, to throw away unused
20149         memory.
20150
20151 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20152
20153         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20154         and fchmodat unconditionally, since glibc 2.4 has them.
20155         Problem reported by Arkadiusz Miskiewicz.
20156
20157 2006-12-10  Bruno Haible  <bruno@clisp.org>
20158
20159         * gnulib-tool (func_import): Show the include files only for those
20160         modules that are copied and specified.
20161         Reported by Karl Berry.
20162
20163 2006-12-08  Jim Meyering  <jim@meyering.net>
20164
20165         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20166         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20167
20168         * build-aux/announce-gen: Add two new options, both optional:
20169         --bootstrap-tools=TOOL_LIST
20170               a comma-separated list of tools, e.g.,
20171               autoconf,automake,bison,gnulib
20172         --gnulib-snapshot-date=DATE
20173               if gnulib is in the bootstrap tool list,
20174               then report this as the snapshot date.
20175               If not specified, use the current date/time.
20176               If you specify a date here, be sure it's UTC.
20177
20178 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20179
20180         * tests/test-argp-2.sh: Fix test to match actual output.
20181         (func_compare): Fix sed script to be portable.
20182
20183 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20184
20185         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20186         workaround for this case.  It is not autoconfigured now; offhand
20187         it's hard to see how to autoconfigure it.
20188
20189 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20190
20191         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20192         a directory that is about to be chowned.  Such a directory's
20193         initial file permissions should permit the owner only and this
20194         should not be changed until after the chown, since the group and
20195         other bits would be incorrect if they granted permission before
20196         the chown.
20197
20198         Fix porting problem for iswctype reported by Georg Schwarz in:
20199         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20200         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20201         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20202         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20203         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20204
20205 2006-12-03  Jim Meyering  <jim@meyering.net>
20206
20207         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20208         p->fts_statp may not yet be defined.
20209         (fts_read): Instead, set it in the caller, once p->fts_statp is
20210         sure to be defined, and corresponds to a top-level directory.
20211         This bug made du -x fail.  Here's the coreutils test case:
20212         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20213         Reported by Mike Frysinger.
20214
20215 2006-12-01  Jim Meyering  <jim@meyering.net>
20216
20217         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20218         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20219         Reported by Simon Josefsson.
20220
20221 2006-11-30  Jim Meyering  <jim@meyering.net>
20222
20223         * m4/warning.m4: Use the all-permissive copyright notice
20224         recommended by RMS (rather than LGPL).
20225         * m4/vararrays.m4: Likewise.
20226         * m4/flexmember.m4: Likewise.
20227
20228 2006-11-29  Bruno Haible  <bruno@clisp.org>
20229
20230         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20231         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20232         using +=.
20233         Reported by Simon Josefsson <simon@josefsson.org>.
20234
20235 2006-11-28  James Youngman <jay@gnu.org>
20236
20237         * README: Advise users that they might find the bug-gnulib@gnu.org
20238         and autotools-announce@gnu.org mailing lists useful.
20239
20240 2006-11-28  Bruno Haible  <bruno@clisp.org>
20241
20242         * m4/ptrdiff_max.m4: Remove file.
20243
20244 2006-11-21  Bruno Haible  <bruno@clisp.org>
20245
20246         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20247         _AC_COMPUTE_INT.
20248         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20249         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20250         _AC_COMPUTE_INT.
20251         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20252         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20253         _AC_COMPUTE_INT.
20254         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20255
20256 2006-11-28  Jim Meyering  <jim@meyering.net>
20257
20258         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20259         warning from "gcc -Wshadow" about shadowing the builtin.
20260
20261 2006-11-27  Bruno Haible  <bruno@clisp.org>
20262
20263         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20264         _AC_COMPUTE_INT.
20265         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20266
20267 2006-11-27  Bruno Haible  <bruno@clisp.org>
20268             Paul Eggert  <eggert@cs.ucla.edu>
20269
20270         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20271
20272 2006-11-26  Bruno Haible  <bruno@clisp.org>
20273
20274         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20275         noinst_LTLIBRARIES.
20276
20277 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20278             Bruno Haible  <bruno@clisp.org>
20279
20280         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20281         if compiling with "gcc -ansi".
20282
20283 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         Fix some incompatibilities with gcc -ansi -pedantic.
20286         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20287         if compiling pedantically with GCC, unless it's C99 or later.
20288         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20289         it mishandles gcc -ansi -pedantic as well.
20290         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20291         if gcc -pedantic.
20292         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20293         initializers for struct if -pedantic, unless it's C99 or later.
20294
20295 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20296
20297         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20298         Don't close an fd more than once. Identical atimes indicate
20299         success, not failure.
20300
20301 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20302
20303         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20304
20305 2006-11-23  Jim Meyering  <jim@meyering.net>
20306
20307         * build-aux/announce-gen: New file.  From coreutils.
20308
20309 2006-11-22  Jim Meyering  <jim@meyering.net>
20310
20311         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20312         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20313         (fts_read): Use a temporary to narrow the overused st_size member
20314         before using it in a switch statement.  Reported by Matthew Woehlke.
20315
20316         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20317         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20318
20319 2006-11-20  Bruno Haible  <bruno@clisp.org>
20320
20321         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20322         changequote instead of pairs of brackets.
20323         Reported by Andreas Schwab <schwab@suse.de>.
20324
20325 2006-11-21  Jim Meyering  <jim@meyering.net>
20326
20327         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20328         so as to remain compatible with older compilers.
20329         Patch from Michael Deutschmann.
20330
20331 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         * MODULES.html.sh (File system functions): Add openat.
20334
20335         * lib/openat.h (rpl_fstatat): New macro, if
20336         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20337         (fstatat): Define to rpl_fstatat under the same conditions,
20338         unless COMPILING_FSTATAT.
20339         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20340         seems to have the bug.
20341         * lib/fstatat.c: New file.
20342         * modules/openat (Files): Add it.
20343
20344 2006-11-20  Bruno Haible  <bruno@clisp.org>
20345
20346         * Makefile: New file.
20347
20348 2006-11-20  Jim Meyering  <jim@meyering.net>
20349
20350         The beginnings of syntax-related checks for gnulib.
20351         * lib/Makefile: New file.
20352         * lib/t-idcache: New script.  Ensure that the two halves of
20353         idcache.c stay in sync.
20354
20355         * lib/idcache.c: Adjust comments in user- and group- portions to
20356         be more accurate, and to be consistent with one another.
20357
20358 2006-11-20  Jim Meyering  <jim@meyering.net>
20359
20360         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20361         continue using the flexible array member (thus, this module performs
20362         half as many malloc calls), with the addition that...
20363         (getgroup, getuser): Consistently record a non-match via an empty
20364         "name" string, and map an empty string match to a NULL return value.
20365         * modules/idcache (Depends-on): Re-add flexmember.
20366
20367         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20368         (getuidbyname, getgroup, getgidbyname): Likewise.
20369
20370         Use cleaner syntax: NULL rather than 0.
20371         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20372
20373 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20374
20375         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20376         It mishandled the case where the group was missing.
20377         Problem reported by Greg Schafer.
20378         * modules/idcache: Likewise.
20379
20380 2006-11-18  Jim Meyering  <jim@meyering.net>
20381
20382         * check-module (%exempt_header): Add exception for some
20383         conditionally-included headers.
20384
20385         * modules/i-ring (Depends-on): Add verify.
20386         (License): Change to LGPL.
20387
20388 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20389
20390         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20391         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20392         and inttostr.h.  Use snprintf rather than uinttostr, so that
20393         LGPLed code doesn't depend on GPLed.
20394
20395 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         * modules/inline (License): Change from GPL to LGPL.
20398
20399 2006-11-17  Jim Meyering  <jim@meyering.net>
20400
20401         * modules/d-type (License): Switch to LGPL.
20402
20403 2006-11-15  Bruno Haible  <bruno@clisp.org>
20404
20405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20406
20407 2006-11-15  Eric Blake  <ebb9@byu.net>
20408
20409         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20410         the module dependency.
20411
20412 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20413             Bruno Haible  <bruno@clisp.org>
20414
20415         * gnulib-tool (func_create_testdir): Add license consistency check.
20416
20417 2006-11-15  Eric Blake  <ebb9@byu.net>
20418
20419         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20420         random "(cached)" in configure output.
20421
20422 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20423
20424         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20425         test for conforming inttypes.h is both announced and cached.
20426
20427         * MODULES.html.sh (seen_modules, seen_files): New variables.
20428         (func_module): Rewrite to use a few less gnulib-tool and sed
20429         invocations.  Avoid a couple of quadratic algorithms for ...
20430         (missed_modules, missed_files): ... these, with ...
20431         (func_append, func_tmpdir): ... these new functions, from
20432         gnulib-tool.  Analogously, install traps for cleanup.
20433
20434         * tests/test-gc.c (main): Remove unused variables.
20435         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20436
20437 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20438
20439         * modules/inttostr (License): Change to LGPL.
20440
20441 2006-11-14  Eric Blake  <ebb9@byu.net>
20442
20443         * modules/tempname (License): Change to LGPL.
20444
20445 2006-11-14  Eric Blake  <ebb9@byu.net>
20446
20447         * doc/functions.texi (Function Portability): *printf functions on
20448         Cygwin now understand all POSIX size specifiers.
20449
20450 2006-11-14  Bruno Haible  <bruno@clisp.org>
20451
20452         * modules/c-ctype (License): Change to LGPL.
20453
20454 2006-11-12  Bruno Haible  <bruno@clisp.org>
20455
20456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20457         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20458         for GNOME libraries, for which the include files are installed in
20459         subdirectories of $prefix/include.
20460
20461 2006-11-12  Bruno Haible  <bruno@clisp.org>
20462
20463         * m4/lib-link.m4: Require at least autoconf-2.54.
20464         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20465         name to underscores for the --with option.
20466
20467 2006-11-13  Bruno Haible  <bruno@clisp.org>
20468
20469         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20470         the tests directory.
20471         Reported by Ralf Wildenhues.
20472
20473 2006-11-13  Bruno Haible  <bruno@clisp.org>
20474
20475         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20476         (func_emit_initmacro_end): Undo the override here.
20477         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20478         Works around the famous automake error in coreutils.
20479
20480 2006-11-13  Eric Blake  <ebb9@byu.net>
20481
20482         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20483         element, not its node.
20484
20485 2006-11-12  Bruno Haible  <bruno@clisp.org>
20486
20487         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20488         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20489
20490 2006-11-12  Bruno Haible  <bruno@clisp.org>
20491
20492         * gnulib-tool: New option --local-symlink.
20493         (func_usage): Document it.
20494         (lsymbolic): New variable.
20495         (func_import, func_create_testdir): If --symlink was not specified,
20496         test whether --local-symlink was specified and the file comes from
20497         the local_gnulib_dir.
20498
20499 2006-11-12  Bruno Haible  <bruno@clisp.org>
20500
20501         * gnulib-tool (func_ln): New function.
20502         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20503
20504 2006-11-12  Bruno Haible  <bruno@clisp.org>
20505
20506         Finish support for source files in subdirectories.
20507         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20508         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20509         AUTOMAKE_OPTIONS.
20510         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20511
20512 2006-11-12  Bruno Haible  <bruno@clisp.org>
20513
20514         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20515         EXTRA_lib_SOURCES augmentation.
20516         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20517
20518 2006-11-12  Jim Meyering  <jim@meyering.net>
20519
20520         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20521         file descriptors.  This also averts a failure on systems with
20522         native openat support when a traversed directory lacks "x" access.
20523         * lib/fts_.h: Include "i-ring.h"
20524         (struct FTS) [fts_fd_ring]: New member.
20525         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20526         (FCHDIR): Add parentheses.
20527         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20528         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20529         When descending, rather than simply closing the previous
20530         fts_cwd_fd value, push that file descriptor onto the ring.
20531         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20532         (fts_open): Initialize the new fd_ring member.
20533         (fts_close): Clear the ring.
20534         (fts_safe_changedir): When possible, use our new fd_ring to skip
20535         the diropen and fstat and dev/ino comparison that would normally
20536         accompany a virtual `chdir ("..")'.
20537
20538         * modules/fts (Depends-on): Add i-ring.
20539         * modules/i-ring: New module.
20540         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20541         * m4/i-ring.m4: New file.
20542
20543 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20544
20545         * gnulib-tool (func_create_testdir): Fix replacement of
20546         `build-aux' in configure.ac.  Run autotools in gltests
20547         subdirectory.
20548         (func_create_testdir, func_create_megatestdir, test): There is
20549         no need for '--force' in most autotool invocations in a new
20550         tree.  Actually fail the whole test if any of the tools, or the
20551         configure or make stages fail.
20552
20553         Sync from Automake.
20554         * build-aux/gnupload: Revert last change.  Add pointer to upload
20555         instructions of the GNU Maintenance Instructions.
20556         Suggestion by Karl Berry.
20557
20558 2006-11-10  Jim Meyering  <jim@meyering.net>
20559
20560         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20561
20562 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20563
20564         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20565         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20566         (bind_textdomain_codeset) [! ENABLE_NLS]:
20567         Evaluate all the arguments.  That way, callers get compatible behavior
20568         if the arguments have side effects.  Also, it avoids some GCC
20569         diagnostics in some cases; Joel E. Denny reported problems when Bison
20570         was configured with --enable-gcc-warnigs.
20571
20572 2006-11-10  Jim Meyering  <jim@meyering.net>
20573
20574         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20575         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20576         account.
20577
20578 2006-11-10  Jim Meyering  <jim@meyering.net>
20579
20580         * modules/inline: New file/module.
20581         * modules/xalloc (Files): Remove m4/inline.m4.
20582         (Depends-on): Add inline, instead.
20583         * modules/oset: Likewise.
20584         * modules/list: Likewise.
20585
20586 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20587
20588         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20589         Problem reported by Matthew Woehlke.
20590
20591 2006-11-09  Bruno Haible  <bruno@clisp.org>
20592
20593         * lib/tempname.c (gen_tempname): Remove variant that invokes
20594         __gen_tempname.
20595         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20596         __gen_tempname.
20597
20598 2006-11-08  Bruno Haible  <bruno@clisp.org>
20599
20600         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20601         to 'yes' instead of 'cross-compiling'.
20602
20603 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20604
20605         * lib/quotearg.h (quotearg_free): New decl.
20606         * lib/quotearg.c (quotearg_free): New function.
20607         (slot0, nslots, slotvec0, slotvec):
20608         Now file-scope so that quotearg_free can get at them.
20609
20610 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20611
20612         Sync from Automake.
20613         * build-aux/gnupload: Add missing 'gnu' to example URL.
20614         Report by Karl Berry.
20615
20616 2006-11-08  Bruno Haible  <bruno@clisp.org>
20617
20618         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20619         Suggested by Paul Eggert.
20620
20621 2006-11-08  Jim Meyering  <jim@meyering.net>
20622
20623         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20624         It's already included if !_LIBC.
20625         (fts_safe_changedir): Add a comment.
20626
20627 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20630         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20631         Matthew Woehlke.
20632
20633         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20634         definitions up, to avoid colliding with change below.
20635         (static_inline) [HAVE_INLINE]: New macro.
20636         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20637         Provide extern decls when !HAVE_INLINE.  Do not define unless
20638         static_inline is defined, either by us or by xmalloc.c.  Use
20639         static_inline rather than static inline.
20640         (XCALLOC): Optimize sizeof(T) = 1 case.
20641         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20642
20643 2006-11-07  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20646         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20647         AC_C_INLINE.
20648         * modules/xalloc (Files): Add m4/inline.m4.
20649
20650 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20651
20652         * README: Fix typo.
20653         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20654         (Miscellanous Notes): ...from this.
20655
20656 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20657
20658         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20659         Mention that offsetof should be used instead of sizeof.
20660         From Bruno Haible.
20661
20662 2006-11-07  Bruno Haible  <bruno@clisp.org>
20663
20664         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20665
20666 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20669         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20670         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20671         (gl_tree_add_before, gl_tree_add_after):
20672         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20673         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20674         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20675         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20676         (gl_linked_add_after, gl_linked_add_at): Likewise.
20677         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20678         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20679         (gl_tree_add_before, gl_tree_add_after): Likewise.
20680         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20681         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20682         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20683
20684 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20685
20686         * lib/gl_oset.h: Use C comment style, not C++ comment style.
20687
20688 2006-11-06  Bruno Haible  <bruno@clisp.org>
20689
20690         * m4/inline.m4: New file.
20691         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20692         * modules/list (Files): Add m4/inline.m4.
20693         * modules/oset (Files): Likewise.
20694
20695 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20696
20697         * lib/idcache.c: Include <stddef.h>, for offsetof.
20698         (struct userid.name): Change from char * to a flexible array member.
20699         All uses changed.
20700         * modules/idcache (Depends-on): Add flexmember.
20701
20702         * MODULES.html.sh (Core language properties): New module flexmember.
20703         * modules/flexmember, m4/flexmember.m4: New files.
20704
20705         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20706         inline functions that are identical with the old xnmalloc_inline,
20707         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20708         that we can avoid some unnecessary integer multiplications and
20709         divisions in the common case where the element size is known at
20710         compile time.
20711         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20712         needed.
20713         (xnboundedmalloc): Remove.
20714         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20715         arguments, for consistency with rest of this header.
20716         (xcharalloc): Rewrite using XNMALLOC.
20717         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20718         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20719         versions have been moved to lib/xalloc.h and renamed to be the
20720         non-*_inline versions.
20721         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20722         and xnrealloc functions, since those functions are now inline and
20723         now call us.
20724         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20725         renaming described above.
20726         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20727         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20728         captures the dependency in AC_C_INLINE.
20729
20730         New module canonicalize-lgpl, proposed by Charles Wilson in
20731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20732         with a few small changes afterwards.
20733         * MODULES.html.sh (File system functions): New module
20734         canonicalize-lgpl.
20735         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20736         and canonicalize_file_name.
20737         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20738         * modules/canonicalize-lgpl: New files.
20739
20740 2006-11-05  Bruno Haible  <bruno@clisp.org>
20741
20742         * gnulib-tool (func_import, func_create_testdir): Create directories
20743         also for files in subdirectories of lib/.
20744
20745 2006-11-05  Bruno Haible  <bruno@clisp.org>
20746
20747         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20748         ANSI C compliant.
20749
20750 2006-11-03  Bruno Haible  <bruno@clisp.org>
20751
20752         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20753         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20754         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20755         (xnboundedmalloc): New inline function.
20756         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20757         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20758         xmalloc.
20759         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20760         xmalloc.
20761         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20762         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20763         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20764         xmalloc.
20765         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20766         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20767         xmalloc.
20768         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20769         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20770         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20771         xmalloc.
20772         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20773         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20774         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20775         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20776         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20777         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20778         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20779
20780 2006-11-03  Bruno Haible  <bruno@clisp.org>
20781
20782         * lib/c-ctype.h [C++]: Define functions without name mangling.
20783         * lib/fwriteerror.h [C++]: Likewise.
20784         * lib/gcd.h [C++]: Likewise.
20785         * lib/linebreak.h [C++]: Likewise.
20786
20787 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20790         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20791         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20792         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20793         Check for functions and headers just once.
20794         Check for declaration of canonicalize_file_name.
20795         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20796
20797 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20798
20799         * gnulib-tool (func_import): Fix typo in actioncmd.
20800
20801 2006-11-02  Bruno Haible  <bruno@clisp.org>
20802
20803         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20804         newline sequence in the Makefile.am snippet as a space, like "make"
20805         does.
20806         Reported by Roger Persson <perrog@gmail.com>.
20807
20808 2006-11-01  Bruno Haible  <bruno@clisp.org>
20809
20810         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20811         already declared in <string.h>.
20812         * lib/strcase.h (strncasecmp): Don't declare it if yes.
20813
20814 2006-11-01  Bruno Haible  <bruno@clisp.org>
20815
20816         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20817         * lib/strcase.h: Include <string.h>.
20818         (strcasecmp): Define to rpl_strcasecmp here.
20819
20820 2006-11-01  Bruno Haible  <bruno@clisp.org>
20821
20822         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20823
20824 2006-11-01  Eric Blake  <ebb9@byu.net>
20825
20826         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20827
20828         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20829
20830 2006-10-29  Bruno Haible  <bruno@clisp.org>
20831
20832         Make it compile in C++ mode.
20833         * lib/full-write.c (full_rw): Add a cast.
20834
20835 2006-11-01  Bruno Haible  <bruno@clisp.org>
20836
20837         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20838         be POSIX compliant.
20839         Reported by Roger Persson <perrog@gmail.com>.
20840
20841 2006-11-01  Eric Blake  <ebb9@byu.net>
20842
20843         * lib/getopt_.h: Fix comments.
20844
20845 2006-10-31  Eric Blake  <ebb9@byu.net>
20846
20847         * modules/tmpdir (Depends-on): Add sys_stat.
20848         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20849         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20850         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20851         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20852         tempname.
20853
20854 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20855
20856         Avoid some C++ diagnostics reported by Bruno Haible.
20857         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20858         xmalloc.
20859         (quotearg_alloc): Use xcharalloc rather than xmalloc.
20860         (struct slotvec): Move to top level.
20861         (quotearg_n_options): Rewrite to avoid xmalloc.
20862         * lib/xalloc.h (xcharalloc): New function.
20863         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20864         [defined __cplusplus]: Add function template that provides result
20865         type propagation.  This part of the change is from Bruno Haible.
20866
20867 2006-10-29  Bruno Haible  <bruno@clisp.org>
20868
20869         Make it compile in C++ mode.
20870         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20871         * lib/strnlen1.c (strnlen1): Cast memchr result.
20872         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20873         * lib/clean-temp.c (string_equals, string_hash): Add casts.
20874         (create_temp_dir): Rename local variable 'template'.
20875         (compile_csharp_using_sscli): Add cast.
20876         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20877         * lib/findprog.c (find_in_path): Likewise.
20878         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20879         * lib/wait-process.c (register_slave_subprocess): Likewise.
20880
20881 2006-10-22  Bruno Haible  <bruno@clisp.org>
20882
20883         * modules/tsearch: New file.
20884         * lib/tsearch.h: New file.
20885         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20886         * m4/tsearch.m4: New file.
20887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20888
20889 2006-10-29  Eric Blake  <ebb9@byu.net>
20890
20891         * lib/arcfour.c: Assume config.h.
20892         * lib/arctwo.c: Likewise.
20893         * lib/base64.c: Likewise.
20894         * lib/check-version.c: Likewise.
20895         * lib/crc.c: Likewise.
20896         * lib/des.c: Likewise.
20897         * lib/gc-gnulib.c: Likewise.
20898         * lib/gc-libgcrypt.c: Likewise.
20899         * lib/gc-pbkdf2-sha1.c: Likewise.
20900         * lib/getaddrinfo.c: Likewise.
20901         * lib/getdelim.c: Likewise.
20902         * lib/getline.c: Likewise.
20903         * lib/hmac-md5.c: Likewise.
20904         * lib/hmac-sha1.c: Likewise.
20905         * lib/iconvme.c: Likewise.
20906         * lib/md2.c: Likewise.
20907         * lib/md4.c: Likewise.
20908         * lib/memxor.c: Likewise.
20909         * lib/read-file.c: Likewise.
20910         * lib/readline.c: Likewise.
20911         * lib/rijndael-alg-fst.c: Likewise.
20912         * lib/rijndael-api-fst.c: Likewise.
20913         * lib/xgetdomainname.c: Likewise.
20914
20915 2006-10-28  Eric Blake  <ebb9@byu.net>
20916
20917         * lib/xstrndup.c: Assume config.h.
20918
20919 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20922         stat-macros.h is now for our own macros, whereas stat_h is for
20923         macros in the <sys/stat.h> name space.
20924         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20925         (STAT_MACROS_H): Remove.
20926         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20927         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20928         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20929         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20930         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20931         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20932         Move these macros to ...
20933         * lib/stat_.h: here.  Don't include stat-macros.h.
20934         * lib/canonicalize.c: Don't include stat-macros.h.
20935         * lib/chown.c: Likewise.
20936         * lib/euidaccess.c: Likewise.
20937         * lib/file-type.c: Likewise.
20938         * lib/filemode.c: Likewise.
20939         * lib/glob.c: Likewise.
20940         * lib/isapipe.c: Likewise.
20941         * lib/lchown.c: Likewise.
20942         * lib/lstat.c: Likewise.
20943         * lib/mkdir-p.c: Likewise.
20944         * lib/rmdir.c: Likewise.
20945         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20947         unless mkdir isn't declared, to speed up 'configure'.
20948         Always create sys/stat.h, since it's unlikely any real sys/stat.h
20949         would define all the S_* symbols.
20950         * modules/canonicalize (Depends-on):
20951         Depend on sys_stat, not stat-macros.
20952         * modules/chown: Likewise.
20953         * modules/euidaccess: Likewise.
20954         * modules/filemode: Likewise.
20955         * modules/file-type: Likewise.
20956         * modules/glob: Likewise.
20957         * modules/isapipe: Likewise.
20958         * modules/lchown: Likewise.
20959         * modules/lstat: Likewise.
20960         * modules/mkancesdirs: Likewise.
20961         * modules/rmdir: Likewise.
20962         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20963         * modules/modechange: Likewise.
20964         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20965         (configure.ac): Remove gl_STAT_MACROS.
20966         * modules/sys_stat (Depends-on): Remove stat-macros.
20967
20968 2006-10-27  Bruno Haible  <bruno@clisp.org>
20969
20970         * m4/signed.m4: Remove file.
20971         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20972         invocation.
20973         * modules/vasnprintf (Files): Remove m4/signed.m4.
20974
20975 2006-10-27  Bruno Haible  <bruno@clisp.org>
20976
20977         Update to GNU gettext 0.16.
20978         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20979         m4/inttypes-h.m4, m4/signed.m4.
20980         * m4/gettext.m4: Update to GNU gettext 0.16.
20981         * m4/intl.m4: New file, from GNU gettext.
20982         * m4/intldir.m4: New file, from GNU gettext.
20983         * config/srclist.txt: Update
20984
20985 2006-10-27  Eric Blake  <ebb9@byu.net>
20986
20987         * MODULES.html.sh: Document tempname.
20988         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20989         dependencies.
20990         (Files): Move lib/tempname.c...
20991         * modules/tempname: ...to this new module.
20992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20993         (gl_PREREQ_TEMPNAME): Move...
20994         * m4/tempname.m4: ...to this new file.
20995         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20996         * modules/sys_stat (Depends-on): Add stat-macros.
20997         * lib/stat_.h (includes): Pick up stat macros.
20998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20999         if stat macros are broken.
21000         * lib/tempname.c (includes): No need to include "stat-macros.h".
21001         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21002         (direxists, __path_search) [!_LIBC]: Don't compile these in
21003         gnulib; the tmpdir module covers that.
21004         * lib/tempname.h: New file.
21005
21006 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21007
21008         * COPYING: Explain how gnulib-tool converts licence headers.
21009         Almost all wording by Eric Blake.
21010
21011 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         * lib/mbchar.h (is_basic_table): Make read-only.
21014         * lib/mbchar.c (is_basic_table): Likewise.
21015         Reported by John Darrington.
21016
21017 2006-10-25  Bruno Haible  <bruno@clisp.org>
21018
21019         * lib/progname.h (set_program_name): Undefine before defining.
21020
21021 2006-10-25  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21024         false for non-gcc C++ compilers.
21025         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21026
21027 2006-10-24  Bruno Haible  <bruno@clisp.org>
21028
21029         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21030         iconv implementations like Irix iconv.
21031
21032 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21033
21034         * modules/vararrays: New file.
21035         * m4/vararrays.m4: New file, taken from diffutils.
21036         * MODULES.html.sh: New module vararrays.
21037
21038 2006-10-24  Karl Berry  <karl@gnu.org>
21039
21040         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21041         Don't call GNU Unix.
21042
21043 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21044
21045         * users.txt: Add Libtool.
21046
21047         Sync from Libtool:
21048
21049         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21050
21051         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21052         to gnulib's policy of including config.h unconditionally.
21053
21054 2006-10-24  Bruno Haible  <bruno@clisp.org>
21055
21056         * modules/wcwidth (Files): Add m4/wint_t.m4.
21057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21058         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21059
21060 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21061
21062         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21063         to pacify GCC with some -W flags enabled.  Problem reported by
21064         Bruno Haible.
21065
21066 2006-10-24  Jim Meyering  <jim@meyering.net>
21067
21068         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21069         Reported by Karl Berry.
21070
21071 2006-10-23  Bruno Haible  <bruno@clisp.org>
21072
21073         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21074
21075 2006-10-24  Bruno Haible  <bruno@clisp.org>
21076
21077         * lib/gl_list.h: Use C comment style, not C++ comment style.
21078
21079 2006-10-23  Eric Blake  <ebb9@byu.net>
21080
21081         * lib/getaddrinfo.c (includes): Add missing include.
21082
21083 2006-10-23  Bruno Haible  <bruno@clisp.org>
21084             Paul Eggert  <eggert@cs.ucla.edu>
21085
21086         Ability to rename obstack_free.
21087         * lib/obstack.h (__obstack_free): New macro. Declare instead of
21088         obstack_free.
21089         (obstack_free): Invoke the __obstack_free macro.
21090         * lib/obstack.c (obstack_free): Use __obstack_free macro.
21091
21092 2006-10-23  Bruno Haible  <bruno@clisp.org>
21093             Paul Eggert  <eggert@cs.ucla.edu>
21094
21095         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21096         __argc, __argv from the declaration. (They are defined as macros on
21097         mingw.)
21098
21099 2006-10-22  Bruno Haible  <bruno@clisp.org>
21100
21101         * doc/gnulib-intro.texi: New file.
21102         * doc/gnulib.texi: Include it.
21103
21104 2006-10-21  Bruno Haible  <bruno@clisp.org>
21105
21106         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21107         "Introduction", "Miscellanous Notes", "Particular Modules".
21108
21109 2006-10-21  Bruno Haible  <bruno@clisp.org>
21110
21111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21112         Change mostlyclean-local rule to avoid sh syntax error from bash
21113         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21114
21115 2006-10-23  Jim Meyering  <jim@meyering.net>
21116
21117         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21118         in place of snprintf.
21119
21120         * modules/inttostr (Files): Add lib/uinttostr.c.
21121         * lib/uinttostr.c (inttostr): New file/function.
21122         * lib/inttostr.h (uinttostr): Declare.
21123         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21124         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21125         Add uinttostr.
21126         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21127
21128 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21129
21130         * lib/canonicalize.c (ELOOP): Define if not already defined.
21131         Problem reported by Bruno Haible in
21132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21133
21134 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21135
21136         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21137         Problem reported by Perry Smith and Ville Laurikari.
21138
21139         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21140         uses.
21141
21142 2006-10-19  Bruno Haible  <bruno@clisp.org>
21143
21144         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21145         for mingw.
21146
21147 2006-10-19  Bruno Haible  <bruno@clisp.org>
21148
21149         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21150         Needed for mingw.
21151
21152 2006-10-19  Bruno Haible  <bruno@clisp.org>
21153
21154         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21155
21156 2006-10-19  Bruno Haible  <bruno@clisp.org>
21157
21158         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21159         it.
21160
21161 2006-10-19  Bruno Haible  <bruno@clisp.org>
21162
21163         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21164         invocation.
21165
21166 2006-10-19  Bruno Haible  <bruno@clisp.org>
21167
21168         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21169         mountlist by default.
21170
21171 2006-10-16  Bruno Haible  <bruno@clisp.org>
21172
21173         * lib/c-strstr.c: Include c-strstr.h.
21174
21175 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21176
21177         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21178         in a slash.
21179
21180 2006-10-18  Bruno Haible  <bruno@clisp.org>
21181
21182         * lib/lock.h [C++]: Wrap definitions in extern "C".
21183
21184 2006-10-18  Bruno Haible  <bruno@clisp.org>
21185
21186         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21187         gl_LIBOBJS list.
21188
21189 2006-10-18  Bruno Haible  <bruno@clisp.org>
21190
21191         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21192
21193 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21194
21195         * lib/xstrtol.h: Include gettext.h.
21196         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21197         Problem reported by Eric Blake.
21198         * modules/xstrtol (Depends-on): Add gettext-h.
21199
21200 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21201
21202         * lib/strftime.c (advance): New macro.
21203         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21204         incomplete type, so you can't add 0 to it.  Problem and patch
21205         reported by Eelco Dolstra for dietlibc.
21206
21207 2006-10-18  Jim Meyering  <jim@meyering.net>
21208
21209         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21210         type for a local, and rename it: s/up/user_proc/.
21211
21212 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21213
21214         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21215         READ_UTMP_USER_PROCESS.
21216         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21217
21218 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21219
21220         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21221         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21222
21223 2006-10-17  Eric Blake  <ebb9@byu.net>
21224
21225         * lib/sigprocmask.c (sigprocmask): Fix typo.
21226
21227         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21228
21229         * modules/clean-temp (Makefile.am): Don't add to make output...
21230         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21231         config.h.
21232
21233 2006-10-17  Bruno Haible  <bruno@clisp.org>
21234
21235         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21236         differently if DEFAULT_TEXT_DOMAIN is set.
21237
21238 2006-10-16  Bruno Haible  <bruno@clisp.org>
21239
21240         * lib/clean-temp.c: Include fwriteerror.h.
21241
21242 2006-10-16  Bruno Haible  <bruno@clisp.org>
21243
21244         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21245
21246 2006-10-16  Bruno Haible  <bruno@clisp.org>
21247
21248         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21249         * lib/sigprocmask.h: Include <sys/types.h>.
21250         (sigset_t): Use the system's definition if present.
21251
21252 2006-10-17  Eric Blake  <ebb9@byu.net>
21253
21254         * lib/xvasprintf.c (includes): Assume config.h.
21255         * lib/xasprintf.c (includes): Likewise.
21256
21257 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21258
21259         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21260         at least as wide as intmax_t.
21261
21262 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21263
21264         (Imported from Automake.)
21265         * build-aux/gnupload: Update to version 1.1 of directive file.
21266
21267 2006-10-16  Eric Blake  <ebb9@byu.net>
21268
21269         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21270         match Automake 1.10a.
21271
21272 2006-10-14  Bruno Haible  <bruno@clisp.org>
21273
21274         * modules/sigprocmask: New file.
21275         * lib/sigprocmask.h: New file.
21276         * lib/sigprocmask.c: New file.
21277         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21278         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21279         request sigprocmask.o.
21280         (gl_PREREQ_SIGPROCMASK): New macro.
21281         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21282         (Depends-on): Add sigprocmask.
21283         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21284         gt_SIGNALBLOCKING. Test for 'raise' only once.
21285         * lib/fatal-signal.c: Include sigprocmask.h.
21286         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21287         unblock_fatal_signals): Define always.
21288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21289         sigprocmask.
21290
21291 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21292
21293         Sync from Automake.
21294         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21295         which incorrectly sets the mode of an existing destination
21296         directory.  In some cases the unpatched install-sh could do the
21297         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21298         system.  We hope this is rare in practice, but it's clearly worth
21299         fixing.  Problem reported by Alex Unleashed in
21300         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21301         Also, don't bother to check for -m bugs unless we're using -m;
21302         suggested by Stepan Kasal.
21303
21304 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21305
21306         Sync from Automake.
21307         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21308         `-c' flag, so they appear at the same position as in %FASTDEP%
21309         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21310         which ignores unknown options only after the first non-option.
21311         Bug report against M4 by Nelson H. F. Beebe.
21312
21313 2006-10-13  Jim Meyering  <jim@meyering.net>
21314
21315         Fix a bug in yesterday's change.
21316         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21317         p->fts_statp->st_dev would be used uninitialized.
21318         Ensures that we always call fts_stat on the very first entry.
21319         Miklos Szeredi reported that find -xdev stopped working.
21320
21321 2006-10-12  Bruno Haible  <bruno@clisp.org>
21322
21323         * gnulib-tool (func_get_automake_snippet): Append an automatically
21324         computed EXTRA_DIST augmentation.
21325         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21326         * modules/alloca-opt (Makefile.am): Likewise.
21327         * modules/allocsa (Makefile.am): Likewise.
21328         * modules/arcfour (Makefile.am): Likewise.
21329         * modules/arctwo (Makefile.am): Likewise.
21330         * modules/argmatch (Makefile.am): Likewise.
21331         * modules/argz (Makefile.am): Likewise.
21332         * modules/atexit (Makefile.am): Likewise.
21333         * modules/backupfile (Makefile.am): Likewise.
21334         * modules/byteswap (Makefile.am): Likewise.
21335         * modules/c-strtod (Makefile.am): Likewise.
21336         * modules/c-strtold (Makefile.am): Likewise.
21337         * modules/calloc (Makefile.am): Likewise.
21338         * modules/canon-host (Makefile.am): Likewise.
21339         * modules/canonicalize (Makefile.am): Likewise.
21340         * modules/chdir-long (Makefile.am): Likewise.
21341         * modules/chdir-safer (Makefile.am): Likewise.
21342         * modules/check-version (Makefile.am): Likewise.
21343         * modules/chown (Makefile.am): Likewise.
21344         * modules/cloexec (Makefile.am): Likewise.
21345         * modules/close-stream (Makefile.am): Likewise.
21346         * modules/closeout (Makefile.am): Likewise.
21347         * modules/crc (Makefile.am): Likewise.
21348         * modules/csharpexec (Makefile.am): Likewise.
21349         * modules/cycle-check (Makefile.am): Likewise.
21350         * modules/des (Makefile.am): Likewise.
21351         * modules/dev-ino (Makefile.am): Likewise.
21352         * modules/dirfd (Makefile.am): Likewise.
21353         * modules/dirname (Makefile.am): Likewise.
21354         * modules/dup2 (Makefile.am): Likewise.
21355         * modules/eealloc (Makefile.am): Likewise.
21356         * modules/error (Makefile.am): Likewise.
21357         * modules/euidaccess (Makefile.am): Likewise.
21358         * modules/exclude (Makefile.am): Likewise.
21359         * modules/exitfail (Makefile.am): Likewise.
21360         * modules/fcntl-safer (Makefile.am): Likewise.
21361         * modules/fcntl (Makefile.am): Likewise.
21362         * modules/file-type (Makefile.am): Likewise.
21363         * modules/fileblocks (Makefile.am): Likewise.
21364         * modules/filemode (Makefile.am): Likewise.
21365         * modules/filenamecat (Makefile.am): Likewise.
21366         * modules/fnmatch (Makefile.am): Likewise.
21367         * modules/fopen-safer (Makefile.am): Likewise.
21368         * modules/fpending (Makefile.am): Likewise.
21369         * modules/fprintftime (Makefile.am): Likewise.
21370         * modules/free (Makefile.am): Likewise.
21371         * modules/fsusage (Makefile.am): Likewise.
21372         * modules/ftruncate (Makefile.am): Likewise.
21373         * modules/fts (Makefile.am): Likewise.
21374         * modules/gc-arcfour (Makefile.am): Likewise.
21375         * modules/gc-des (Makefile.am): Likewise.
21376         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21377         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21378         * modules/gc-md4 (Makefile.am): Likewise.
21379         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21380         * modules/gc-sha1 (Makefile.am): Likewise.
21381         * modules/gc (Makefile.am): Likewise.
21382         * modules/getaddrinfo (Makefile.am): Likewise.
21383         * modules/getcwd (Makefile.am): Likewise.
21384         * modules/getdelim (Makefile.am): Likewise.
21385         * modules/getdomainname (Makefile.am): Likewise.
21386         * modules/getgroups (Makefile.am): Likewise.
21387         * modules/gethostname (Makefile.am): Likewise.
21388         * modules/gethrxtime (Makefile.am): Likewise.
21389         * modules/getline (Makefile.am): Likewise.
21390         * modules/getloadavg (Makefile.am): Likewise.
21391         * modules/getlogin_r (Makefile.am): Likewise.
21392         * modules/getndelim2 (Makefile.am): Likewise.
21393         * modules/getopt (Makefile.am): Likewise.
21394         * modules/getpagesize (Makefile.am): Likewise.
21395         * modules/getpass-gnu (Makefile.am): Likewise.
21396         * modules/getpass (Makefile.am): Likewise.
21397         * modules/getsubopt (Makefile.am): Likewise.
21398         * modules/gettime (Makefile.am): Likewise.
21399         * modules/gettimeofday (Makefile.am): Likewise.
21400         * modules/getugroups (Makefile.am): Likewise.
21401         * modules/getusershell (Makefile.am): Likewise.
21402         * modules/glob (Makefile.am): Likewise.
21403         * modules/group-member (Makefile.am): Likewise.
21404         * modules/hard-locale (Makefile.am): Likewise.
21405         * modules/hash (Makefile.am): Likewise.
21406         * modules/hmac-md5 (Makefile.am): Likewise.
21407         * modules/hmac-sha1 (Makefile.am): Likewise.
21408         * modules/human (Makefile.am): Likewise.
21409         * modules/idcache (Makefile.am): Likewise.
21410         * modules/imaxabs (Makefile.am): Likewise.
21411         * modules/imaxdiv (Makefile.am): Likewise.
21412         * modules/inet_ntop (Makefile.am): Likewise.
21413         * modules/inet_pton (Makefile.am): Likewise.
21414         * modules/intprops (Makefile.am): Likewise.
21415         * modules/inttostr (Makefile.am): Likewise.
21416         * modules/inttypes (Makefile.am): Likewise.
21417         * modules/isapipe (Makefile.am): Likewise.
21418         * modules/javaversion (Makefile.am): Likewise.
21419         * modules/lchmod (Makefile.am): Likewise.
21420         * modules/lchown (Makefile.am): Likewise.
21421         * modules/localcharset (Makefile.am): Likewise.
21422         * modules/long-options (Makefile.am): Likewise.
21423         * modules/lstat (Makefile.am): Likewise.
21424         * modules/malloc (Makefile.am): Likewise.
21425         * modules/mathl (Makefile.am): Likewise.
21426         * modules/mbchar (Makefile.am): Likewise.
21427         * modules/md2 (Makefile.am): Likewise.
21428         * modules/md4 (Makefile.am): Likewise.
21429         * modules/md5 (Makefile.am): Likewise.
21430         * modules/memcasecmp (Makefile.am): Likewise.
21431         * modules/memchr (Makefile.am): Likewise.
21432         * modules/memcmp (Makefile.am): Likewise.
21433         * modules/memcoll (Makefile.am): Likewise.
21434         * modules/memcpy (Makefile.am): Likewise.
21435         * modules/memmem (Makefile.am): Likewise.
21436         * modules/memmove (Makefile.am): Likewise.
21437         * modules/mempcpy (Makefile.am): Likewise.
21438         * modules/memrchr (Makefile.am): Likewise.
21439         * modules/memset (Makefile.am): Likewise.
21440         * modules/memxor (Makefile.am): Likewise.
21441         * modules/mkancesdirs (Makefile.am): Likewise.
21442         * modules/mkdir-p (Makefile.am): Likewise.
21443         * modules/mkdir (Makefile.am): Likewise.
21444         * modules/mkdtemp (Makefile.am): Likewise.
21445         * modules/mkstemp (Makefile.am): Likewise.
21446         * modules/mktime (Makefile.am): Likewise.
21447         * modules/modechange (Makefile.am): Likewise.
21448         * modules/mountlist (Makefile.am): Likewise.
21449         * modules/nanosleep (Makefile.am): Likewise.
21450         * modules/obstack (Makefile.am): Likewise.
21451         * modules/openat (Makefile.am): Likewise.
21452         * modules/pagealign_alloc (Makefile.am): Likewise.
21453         * modules/pathmax (Makefile.am): Likewise.
21454         * modules/physmem (Makefile.am): Likewise.
21455         * modules/poll (Makefile.am): Likewise.
21456         * modules/posixtm (Makefile.am): Likewise.
21457         * modules/posixver (Makefile.am): Likewise.
21458         * modules/putenv (Makefile.am): Likewise.
21459         * modules/quote (Makefile.am): Likewise.
21460         * modules/quotearg (Makefile.am): Likewise.
21461         * modules/raise (Makefile.am): Likewise.
21462         * modules/read-file (Makefile.am): Likewise.
21463         * modules/readline (Makefile.am): Likewise.
21464         * modules/readlink (Makefile.am): Likewise.
21465         * modules/readtokens (Makefile.am): Likewise.
21466         * modules/readutmp (Makefile.am): Likewise.
21467         * modules/realloc (Makefile.am): Likewise.
21468         * modules/regex (Makefile.am): Likewise.
21469         * modules/rename-dest-slash (Makefile.am): Likewise.
21470         * modules/rename (Makefile.am): Likewise.
21471         * modules/rijndael (Makefile.am): Likewise.
21472         * modules/rmdir (Makefile.am): Likewise.
21473         * modules/rpmatch (Makefile.am): Likewise.
21474         * modules/safe-read (Makefile.am): Likewise.
21475         * modules/safe-write (Makefile.am): Likewise.
21476         * modules/same-inode (Makefile.am): Likewise.
21477         * modules/same (Makefile.am): Likewise.
21478         * modules/save-cwd (Makefile.am): Likewise.
21479         * modules/savedir (Makefile.am): Likewise.
21480         * modules/setenv (Makefile.am): Likewise.
21481         * modules/settime (Makefile.am): Likewise.
21482         * modules/sha1 (Makefile.am): Likewise.
21483         * modules/sig2str (Makefile.am): Likewise.
21484         * modules/snprintf (Makefile.am): Likewise.
21485         * modules/stat-macros (Makefile.am): Likewise.
21486         * modules/stat-time (Makefile.am): Likewise.
21487         * modules/stdbool (Makefile.am): Likewise.
21488         * modules/stdint (Makefile.am): Likewise.
21489         * modules/stdlib-safer (Makefile.am): Likewise.
21490         * modules/stpcpy (Makefile.am): Likewise.
21491         * modules/stpncpy (Makefile.am): Likewise.
21492         * modules/strcase (Makefile.am): Likewise.
21493         * modules/strcasestr (Makefile.am): Likewise.
21494         * modules/strchrnul (Makefile.am): Likewise.
21495         * modules/strcspn (Makefile.am): Likewise.
21496         * modules/strdup (Makefile.am): Likewise.
21497         * modules/strerror (Makefile.am): Likewise.
21498         * modules/strftime (Makefile.am): Likewise.
21499         * modules/strndup (Makefile.am): Likewise.
21500         * modules/strnlen (Makefile.am): Likewise.
21501         * modules/strpbrk (Makefile.am): Likewise.
21502         * modules/strsep (Makefile.am): Likewise.
21503         * modules/strstr (Makefile.am): Likewise.
21504         * modules/strtod (Makefile.am): Likewise.
21505         * modules/strtoimax (Makefile.am): Likewise.
21506         * modules/strtok_r (Makefile.am): Likewise.
21507         * modules/strtol (Makefile.am): Likewise.
21508         * modules/strtoll (Makefile.am): Likewise.
21509         * modules/strtoul (Makefile.am): Likewise.
21510         * modules/strtoull (Makefile.am): Likewise.
21511         * modules/strtoumax (Makefile.am): Likewise.
21512         * modules/strverscmp (Makefile.am): Likewise.
21513         * modules/sys_socket (Makefile.am): Likewise.
21514         * modules/sys_stat (Makefile.am): Likewise.
21515         * modules/sysexits (Makefile.am): Likewise.
21516         * modules/time_r (Makefile.am): Likewise.
21517         * modules/timegm (Makefile.am): Likewise.
21518         * modules/timespec (Makefile.am): Likewise.
21519         * modules/tmpfile-safer (Makefile.am): Likewise.
21520         * modules/trim (Makefile.am): Likewise.
21521         * modules/unistd-safer (Makefile.am): Likewise.
21522         * modules/unlinkdir (Makefile.am): Likewise.
21523         * modules/unlocked-io (Makefile.am): Likewise.
21524         * modules/userspec (Makefile.am): Likewise.
21525         * modules/utime (Makefile.am): Likewise.
21526         * modules/utimecmp (Makefile.am): Likewise.
21527         * modules/utimens (Makefile.am): Likewise.
21528         * modules/vasnprintf (Makefile.am): Likewise.
21529         * modules/vasprintf (Makefile.am): Likewise.
21530         * modules/vsnprintf (Makefile.am): Likewise.
21531         * modules/xalloc (Makefile.am): Likewise.
21532         * modules/xgetcwd (Makefile.am): Likewise.
21533         * modules/xnanosleep (Makefile.am): Likewise.
21534         * modules/xreadlink (Makefile.am): Likewise.
21535         * modules/xstrtod (Makefile.am): Likewise.
21536         * modules/xstrtol (Makefile.am): Likewise.
21537         * modules/xstrtold (Makefile.am): Likewise.
21538         * modules/yesno (Makefile.am): Likewise.
21539         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21540
21541 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         * modules/error (Makefile.am): Distribute files through
21544         EXTRA_DIST, not lib_SOURCES.
21545
21546 2006-10-12  Eric Blake  <ebb9@byu.net>
21547
21548         * modules/error (Makefile.am): Distribute files in /lib.
21549         * modules/obstack (Makefile.am): Likewise.
21550
21551 2006-10-12  Bruno Haible  <bruno@clisp.org>
21552
21553         * modules/acl (Makefile.am): Distribute all files in lib/ through
21554         EXTRA_DIST.
21555         * modules/arcfour (Makefile.am): Likewise.
21556         * modules/arctwo (Makefile.am): Likewise.
21557         * modules/argmatch (Makefile.am): Likewise.
21558         * modules/argz (Makefile.am): Likewise.
21559         * modules/atexit (Makefile.am): Likewise.
21560         * modules/backupfile (Makefile.am): Likewise.
21561         * modules/c-strtod (Makefile.am): Likewise.
21562         * modules/c-strtold (Makefile.am): Likewise.
21563         * modules/calloc (Makefile.am): Likewise.
21564         * modules/canon-host (Makefile.am): Likewise.
21565         * modules/canonicalize (Makefile.am): Likewise.
21566         * modules/chdir-long (Makefile.am): Likewise.
21567         * modules/chdir-safer (Makefile.am): Likewise.
21568         * modules/check-version (Makefile.am): Likewise.
21569         * modules/chown (Makefile.am): Likewise.
21570         * modules/cloexec (Makefile.am): Likewise.
21571         * modules/close-stream (Makefile.am): Likewise.
21572         * modules/closeout (Makefile.am): Likewise.
21573         * modules/crc (Makefile.am): Likewise.
21574         * modules/cycle-check (Makefile.am): Likewise.
21575         * modules/des (Makefile.am): Likewise.
21576         * modules/dirfd (Makefile.am): Likewise.
21577         * modules/dirname (Makefile.am): Likewise.
21578         * modules/dup2 (Makefile.am): Likewise.
21579         * modules/euidaccess (Makefile.am): Likewise.
21580         * modules/exclude (Makefile.am): Likewise.
21581         * modules/exitfail (Makefile.am): Likewise.
21582         * modules/fcntl-safer (Makefile.am): Likewise.
21583         * modules/file-type (Makefile.am): Likewise.
21584         * modules/fileblocks (Makefile.am): Likewise.
21585         * modules/filemode (Makefile.am): Likewise.
21586         * modules/filenamecat (Makefile.am): Likewise.
21587         * modules/fnmatch (Makefile.am): Likewise.
21588         * modules/fopen-safer (Makefile.am): Likewise.
21589         * modules/fpending (Makefile.am): Likewise.
21590         * modules/fprintftime (Makefile.am): Likewise.
21591         * modules/free (Makefile.am): Likewise.
21592         * modules/fsusage (Makefile.am): Likewise.
21593         * modules/ftruncate (Makefile.am): Likewise.
21594         * modules/fts (Makefile.am): Likewise.
21595         * modules/gc (Makefile.am): Likewise.
21596         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21597         * modules/getaddrinfo (Makefile.am): Likewise.
21598         * modules/getcwd (Makefile.am): Likewise.
21599         * modules/getdelim (Makefile.am): Likewise.
21600         * modules/getdomainname (Makefile.am): Likewise.
21601         * modules/getgroups (Makefile.am): Likewise.
21602         * modules/gethostname (Makefile.am): Likewise.
21603         * modules/gethrxtime (Makefile.am): Likewise.
21604         * modules/getline (Makefile.am): Likewise.
21605         * modules/getloadavg (Makefile.am): Likewise.
21606         * modules/getlogin_r (Makefile.am): Likewise.
21607         * modules/getopt (Makefile.am): Likewise.
21608         * modules/getpass (Makefile.am): Likewise.
21609         * modules/getpass-gnu (Makefile.am): Likewise.
21610         * modules/getsubopt (Makefile.am): Likewise.
21611         * modules/gettime (Makefile.am): Likewise.
21612         * modules/gettimeofday (Makefile.am): Likewise.
21613         * modules/getugroups (Makefile.am): Likewise.
21614         * modules/getusershell (Makefile.am): Likewise.
21615         * modules/glob (Makefile.am): Likewise.
21616         * modules/group-member (Makefile.am): Likewise.
21617         * modules/hard-locale (Makefile.am): Likewise.
21618         * modules/hash (Makefile.am): Likewise.
21619         * modules/hmac-md5 (Makefile.am): Likewise.
21620         * modules/hmac-sha1 (Makefile.am): Likewise.
21621         * modules/human (Makefile.am): Likewise.
21622         * modules/idcache (Makefile.am): Likewise.
21623         * modules/imaxabs (Makefile.am): Likewise.
21624         * modules/imaxdiv (Makefile.am): Likewise.
21625         * modules/inet_ntop (Makefile.am): Likewise.
21626         * modules/inet_pton (Makefile.am): Likewise.
21627         * modules/inttostr (Makefile.am): Likewise.
21628         * modules/isapipe (Makefile.am): Likewise.
21629         * modules/lchown (Makefile.am): Likewise.
21630         * modules/long-options (Makefile.am): Likewise.
21631         * modules/lstat (Makefile.am): Likewise.
21632         * modules/malloc (Makefile.am): Likewise.
21633         * modules/mathl (Makefile.am): Likewise.
21634         * modules/mbchar (Makefile.am): Likewise.
21635         * modules/md2 (Makefile.am): Likewise.
21636         * modules/md4 (Makefile.am): Likewise.
21637         * modules/md5 (Makefile.am): Likewise.
21638         * modules/memcasecmp (Makefile.am): Likewise.
21639         * modules/memchr (Makefile.am): Likewise.
21640         * modules/memcmp (Makefile.am): Likewise.
21641         * modules/memcoll (Makefile.am): Likewise.
21642         * modules/memcpy (Makefile.am): Likewise.
21643         * modules/memmem (Makefile.am): Likewise.
21644         * modules/memmove (Makefile.am): Likewise.
21645         * modules/mempcpy (Makefile.am): Likewise.
21646         * modules/memrchr (Makefile.am): Likewise.
21647         * modules/memset (Makefile.am): Likewise.
21648         * modules/memxor (Makefile.am): Likewise.
21649         * modules/mkancesdirs (Makefile.am): Likewise.
21650         * modules/mkdir (Makefile.am): Likewise.
21651         * modules/mkdir-p (Makefile.am): Likewise.
21652         * modules/mkdtemp (Makefile.am): Likewise.
21653         * modules/mkstemp (Makefile.am): Likewise.
21654         * modules/mktime (Makefile.am): Likewise.
21655         * modules/modechange (Makefile.am): Likewise.
21656         * modules/mountlist (Makefile.am): Likewise.
21657         * modules/nanosleep (Makefile.am): Likewise.
21658         * modules/openat (Makefile.am): Likewise.
21659         * modules/pagealign_alloc (Makefile.am): Likewise.
21660         * modules/physmem (Makefile.am): Likewise.
21661         * modules/poll (Makefile.am): Likewise.
21662         * modules/posixtm (Makefile.am): Likewise.
21663         * modules/posixver (Makefile.am): Likewise.
21664         * modules/putenv (Makefile.am): Likewise.
21665         * modules/quote (Makefile.am): Likewise.
21666         * modules/quotearg (Makefile.am): Likewise.
21667         * modules/raise (Makefile.am): Likewise.
21668         * modules/read-file (Makefile.am): Likewise.
21669         * modules/readline (Makefile.am): Likewise.
21670         * modules/readlink (Makefile.am): Likewise.
21671         * modules/readtokens (Makefile.am): Likewise.
21672         * modules/readutmp (Makefile.am): Likewise.
21673         * modules/realloc (Makefile.am): Likewise.
21674         * modules/regex (Makefile.am): Likewise.
21675         * modules/rename (Makefile.am): Likewise.
21676         * modules/rename-dest-slash (Makefile.am): Likewise.
21677         * modules/rijndael (Makefile.am): Likewise.
21678         * modules/rmdir (Makefile.am): Likewise.
21679         * modules/rpmatch (Makefile.am): Likewise.
21680         * modules/safe-read (Makefile.am): Likewise.
21681         * modules/safe-write (Makefile.am): Likewise.
21682         * modules/same (Makefile.am): Likewise.
21683         * modules/save-cwd (Makefile.am): Likewise.
21684         * modules/savedir (Makefile.am): Likewise.
21685         * modules/setenv (Makefile.am): Likewise.
21686         * modules/settime (Makefile.am): Likewise.
21687         * modules/sha1 (Makefile.am): Likewise.
21688         * modules/sig2str (Makefile.am): Likewise.
21689         * modules/snprintf (Makefile.am): Likewise.
21690         * modules/stdlib-safer (Makefile.am): Likewise.
21691         * modules/stpcpy (Makefile.am): Likewise.
21692         * modules/stpncpy (Makefile.am): Likewise.
21693         * modules/strcase (Makefile.am): Likewise.
21694         * modules/strcasestr (Makefile.am): Likewise.
21695         * modules/strchrnul (Makefile.am): Likewise.
21696         * modules/strcspn (Makefile.am): Likewise.
21697         * modules/strdup (Makefile.am): Likewise.
21698         * modules/strerror (Makefile.am): Likewise.
21699         * modules/strftime (Makefile.am): Likewise.
21700         * modules/strndup (Makefile.am): Likewise.
21701         * modules/strnlen (Makefile.am): Likewise.
21702         * modules/strpbrk (Makefile.am): Likewise.
21703         * modules/strsep (Makefile.am): Likewise.
21704         * modules/strstr (Makefile.am): Likewise.
21705         * modules/strtod (Makefile.am): Likewise.
21706         * modules/strtoimax (Makefile.am): Likewise.
21707         * modules/strtok_r (Makefile.am): Likewise.
21708         * modules/strtol (Makefile.am): Likewise.
21709         * modules/strtoll (Makefile.am): Likewise.
21710         * modules/strtoul (Makefile.am): Likewise.
21711         * modules/strtoull (Makefile.am): Likewise.
21712         * modules/strtoumax (Makefile.am): Likewise.
21713         * modules/strverscmp (Makefile.am): Likewise.
21714         * modules/time_r (Makefile.am): Likewise.
21715         * modules/timegm (Makefile.am): Likewise.
21716         * modules/tmpfile-safer (Makefile.am): Likewise.
21717         * modules/unistd-safer (Makefile.am): Likewise.
21718         * modules/unlinkdir (Makefile.am): Likewise.
21719         * modules/userspec (Makefile.am): Likewise.
21720         * modules/utime (Makefile.am): Likewise.
21721         * modules/utimecmp (Makefile.am): Likewise.
21722         * modules/utimens (Makefile.am): Likewise.
21723         * modules/vasnprintf (Makefile.am): Likewise.
21724         * modules/vasprintf (Makefile.am): Likewise.
21725         * modules/vsnprintf (Makefile.am): Likewise.
21726         * modules/xalloc (Makefile.am): Likewise.
21727         * modules/xgetcwd (Makefile.am): Likewise.
21728         * modules/xnanosleep (Makefile.am): Likewise.
21729         * modules/xreadlink (Makefile.am): Likewise.
21730         * modules/xstrtod (Makefile.am): Likewise.
21731         * modules/xstrtol (Makefile.am): Likewise.
21732         * modules/xstrtold (Makefile.am): Likewise.
21733         * modules/yesno (Makefile.am): Likewise.
21734
21735 2006-10-12  Jim Meyering  <jim@meyering.net>
21736
21737         * m4/getloadavg.m4: Revert the change below.
21738
21739         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21740         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
21741         fail with a symlink, which is what coreutils' ./bootstrap now
21742         creates by default.
21743
21744 2006-10-12  Bruno Haible  <bruno@clisp.org>
21745
21746         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21747         mingw.
21748         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21749         MSVC and mingw explicitly.
21750
21751 2006-10-11  Simon Josefsson  <jas@extundo.com>
21752             Bruno Haible  <bruno@clisp.org>
21753
21754         Add support for multiple gnulib-tool invocations in the scope of a
21755         single configure.ac file.
21756         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21757         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21758         with the same contents as the _LIBADD variable.
21759         (func_emit_initmacro_start, func_emit_initmacro_end,
21760         func_emit_initmacro_done): New functions.
21761         (func_import, func_create_testdir): Invoke them. Allow the identifiers
21762         gl_LIBOBJS and gl_LTLIBOBJS.
21763
21764 2006-10-11  Bruno Haible  <bruno@clisp.org>
21765
21766         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21767         (func_create_testdir): Don't create po/Makefile.am, don't invoke
21768         autoreconf. Instead, invoke autopoint explicitly but move back the
21769         *.m4 files from gnulib.
21770
21771 2006-10-11  Bruno Haible  <bruno@clisp.org>
21772
21773         * gnulib-tool (func_usage): Make module names after --create-testdir
21774         optional.
21775         (func_create_testdir): If no module was specified, use nearly all
21776         modules.
21777
21778 2006-10-12  Jim Meyering  <jim@meyering.net>
21779
21780         Big performance improvement for fts-based tools that use FTS_NOSTAT.
21781         Avoid spurious inode-mismatch problems on non-POSIX file systems.
21782         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21783         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21784         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21785         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21786         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21787         (fts_set_stat_required): New function.
21788         (fts_open): Defer the calls to fts_stat, if possible or requested.
21789         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21790         into fts_stat itself.
21791         (fts_read): Perform any required (deferred) fts_stat call.
21792         (fts_build): Likewise, for the directory we're about to open and read.
21793         In the readdir loop, carefully decide whether each entry will require
21794         an eventual call to fts_stat, using dirent.d_type info if available.
21795         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21796         a command line argument into this function.  Update all callers.
21797         Map a return value of FTS_DOT to FTS_D for a command line argument.
21798         * modules/fts (Depends-on): Add d-type.  Alphabetize.
21799         Thanks to Miklos Szeredi for his tenacity and for the initial
21800         bug report about "find" failing on a FUSE-based file system.
21801
21802         * lib/fts.c (fts_open): Use consistent indentation.
21803
21804 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21805
21806         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21807         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21808         reported by Jim Meyering.  All uses of cache variables renamed
21809         to match Autoconf's.
21810         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21811         the other one.
21812
21813         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21814         Fix misspelling in diagnostic.
21815
21816 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21817
21818         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21819         defined.  Problem reported by Matthew Woehlke.
21820
21821         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21822         Add support for Tandem NonStop R series.
21823         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21824         Use new macro.
21825
21826         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21827         (has_trailing_slash): Omit size arg; all callers changed.
21828         Omit 'inline', since it doesn't help performance and we'd
21829         need to configure it.
21830         Don't count //, ///, etc. as having a trailing slash.
21831         As a side effect, this removes a C99ism reported by Matthew Woehlke.
21832         (rpl_rename_dest_slash): On failure, use rename's errno rather
21833         than (in some cases) an incorrect or junk errno.
21834         Simplify code by removing need to compute length; this does
21835         cause it to make two passes instead of one over the file name,
21836         but it's worth it.
21837
21838         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21839         change, since Autoconf's version may no longer be appropriate now
21840         that we are using CVS Autoconf's version.  Add support for Tandem.
21841
21842 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21843             Bruno Haible  <bruno@clisp.org>
21844
21845         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21846         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21847         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21848         gl_AC_TYPE_LONG_LONG.
21849
21850         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21851         instead of HAVE_LONG_LONG.
21852         * lib/printf-args.c (printf_fetchargs): Likewise.
21853         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21854         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21855         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21856         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21857         gl_AC_TYPE_LONG_LONG.
21858
21859 2006-10-11  Bruno Haible  <bruno@clisp.org>
21860
21861         * m4/longlong.m4: Add comments.
21862         * m4/ulonglong.m4: Likewise.
21863
21864 2006-10-10  Bruno Haible  <bruno@clisp.org>
21865
21866         Make it possible to #define stpcpy, strdup to aliases.
21867         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21868         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21869
21870 2006-10-10  Bruno Haible  <bruno@clisp.org>
21871
21872         Make it possible to #define gcd to an alias.
21873         * lib/gcd.c: Include config.h.
21874
21875 2006-10-10  Bruno Haible  <bruno@clisp.org>
21876
21877         Make it possible to #define c_isascii to an alias.
21878         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21879         defined. Undefine the macros before defining them, to avoid gcc
21880         warnings.
21881         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21882         define NO_C_CTYPE_MACROS early.
21883
21884 2006-10-10  Bruno Haible  <bruno@clisp.org>
21885
21886         Make it possible to #define set_program_name to an alias.
21887         * lib/progname.c: Don't undefine set_program_name; instead, undefine
21888         ENABLE_RELOCATABLE early.
21889
21890 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21891
21892         Port to Tandem NSK OSS, which has 64-bit signed int but at most
21893         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
21894         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21895         More generally, don't assume that 64-bit signed int is available
21896         if unsigned int is, and vice versa.
21897         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21898         unsigned symbols, not on their signed counterparts.
21899         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21900         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21901         (UINT64_C, UINTMAX_C):
21902         Likewise.
21903         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21904         unsigned counterparts.
21905         (Have_long_long, Unsigned): New macros.
21906         (Int): Renamed from INT.
21907         (strtoimax): Use the new macros.
21908         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21909         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21910         * modules/inttypes (inttypes.h): Substitute
21911         HAVE_UNSIGNED_LONG_LONG_INT.
21912         * modules/stdint (stdint.h): Likewise.
21913         (Files): Add m4/ulonglong.m4.
21914
21915 2006-10-10  Bruno Haible  <bruno@clisp.org>
21916
21917         Fix a gcc -Wshadow warning.
21918         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21919         to 'bucket'.
21920         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21921         gl_linked_indexof_from_to): Likewise.
21922         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21923         Likewise.
21924         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21925         Likewise.
21926         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21927         Reported by Eric Blake.
21928
21929 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
21930
21931         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21932         for NetBSD.  Problem reported by Bruno Haible.
21933
21934 2006-10-09  Jim Meyering  <jim@meyering.net>
21935
21936         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21937         Patch from Bruno Haible.
21938
21939 2006-10-09  Jim Meyering  <jim@meyering.net>
21940
21941         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21942         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21943         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21944
21945 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21946
21947         Don't include <config.h> twice; this doesn't work in some cases,
21948         e.g., when config.h has "#define intmax_t long long int" and
21949         we include <config.h>, <inttypes.h>, <config.h> in that order.
21950         Problem reported by Matthew Woehlke in:
21951         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21952         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21953         * lib/fts-cycle.c: Don't include config.h.
21954         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21955         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21956         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
21957         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21958         inttypes.h.
21959         * lib/xstrtoumax.c: Likewise.
21960         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21961         __strtol and the like, so that this module is more like its siblings.
21962         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21963         Remove; no longer needed now that we assume gnulib inttypes.h.
21964
21965 2006-10-08  Bruno Haible  <bruno@clisp.org>
21966
21967         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21968         option.
21969
21970 2006-10-07  Jim Meyering  <jim@meyering.net>
21971
21972         * modules/inttypes (inttypes.h): Revert what seems to have been
21973         an inadvertent part of today's change: use "|", not "/" in the
21974         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21975
21976 2006-10-07  Bruno Haible  <bruno@clisp.org>
21977
21978         * modules/sublist: New file.
21979
21980 2006-10-07  Bruno Haible  <bruno@clisp.org>
21981
21982         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21983         * modules/argz (argz.h): Likewise.
21984         * modules/arpa_inet (arpa/inet.h): Likewise.
21985         * modules/byteswap (byteswap.h): Likewise.
21986         * modules/configmake (configmake.h): Likewise.
21987         * modules/fcntl (fcntl.h): Likewise.
21988         * modules/fnmatch (fnmatch.h): Likewise.
21989         * modules/getopt (getopt.h): Likewise.
21990         * modules/glob (glob.h): Likewise.
21991         * modules/inttypes (inttypes.h): Likewise.
21992         * modules/netinet_in (netinet/in.h): Likewise.
21993         * modules/poll (poll.h): Likewise.
21994         * modules/stdbool (stdbool.h): Likewise.
21995         * modules/stdint (stdint.h): Likewise.
21996         * modules/sys_select (sys/select.h): Likewise.
21997         * modules/sys_socket (sys/socket.h): Likewise.
21998         * modules/sys_stat (sys/stat.h): Likewise.
21999         * modules/sysexits (sysexits.h): Likewise.
22000         * modules/unistd (unistd.h): Likewise.
22001         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22002         Add a "DO NOT EDIT" comment to the generated file.
22003         (func_import): Likewise for gnulib-comp.m4.
22004
22005 2006-10-07  Bruno Haible  <bruno@clisp.org>
22006
22007         * lib/gl_sublist.h: New file.
22008         * lib/gl_sublist.c: New file.
22009
22010 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22011
22012         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22013         name (relative to the original working directory) and the file
22014         name component (relative to the temporary working directory).  All
22015         callers changed.
22016         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22017         * lib/mkdir-p.c (make_dir_parents): Likewise.
22018         * lib/mkdir-p.h (make_dir_parents): Likewise.
22019
22020 2006-10-06  Eric Blake  <ebb9@byu.net>
22021
22022         Define several macros for use by the clean-temp module.
22023         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22024         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22025         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22026
22027         * lib/clean-temp.h (close_stream_temp): New declaration.
22028         * lib/clean-temp.c (includes): Pull in headers according to what
22029         other modules are in use.
22030         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22031
22032 2006-10-06  Bruno Haible  <bruno@clisp.org>
22033
22034         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22035         instead of fopen, fwriteerror.
22036
22037 2006-10-06  Bruno Haible  <bruno@clisp.org>
22038
22039         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22040         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22041         int.
22042         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22043         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22044         Return an error indicator.
22045         Suggested by Eric Blake.
22046
22047 2006-10-06  Bruno Haible  <bruno@clisp.org>
22048
22049         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22050         Reported by Eric Blake.
22051
22052 2006-10-06  Bruno Haible  <bruno@clisp.org>
22053
22054         * modules/closeout (Description): Mention stderr too.
22055
22056 2006-10-06  Bruno Haible  <bruno@clisp.org>
22057         and Paul Eggert  <eggert@cs.ucla.edu>
22058
22059         * lib/closeout.c (close_stdout): Also close stderr.
22060         * lib/closeout.h: Update comment.
22061
22062 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22063
22064         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22065         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22066         * lib/dirchownmod.c: Include lchown.h.
22067         * lib/lchown.c: Don't include files that lchown.h now includes.
22068         Don't declare chown, since lchown.h now does that.
22069         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22070         (lchown): Define to rpl_chown if lchown is declared but
22071         does not exist.  Declare using a prototype if lchown is not
22072         declared.  Add a copyright notice.
22073         * lib/mkstemp.h: Include <unistd.h>.
22074         * lib/openat.c: Include lchown.h.
22075
22076         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22077         we now test for that separately.
22078         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22079         rather than O_NOFOLLOW, when testing whether it's possible to
22080         avoid a race condition reliably.
22081         * lib/savewd.c (savewd_chdir): Likewise.
22082
22083         Remove macros that are no longer needed now that stdint.h is
22084         reliable.
22085         * lib/fsusage.c (UINTMAX_MAX): Remove.
22086         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22087         * lib/utimecmp.c (SIZE_MAX): Remove.
22088
22089         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22090
22091         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22092         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
22093         O_NOATIME works.
22094
22095 2006-10-05  Bruno Haible  <bruno@clisp.org>
22096
22097         * lib/gl_list.h (gl_sortedlist_search_from_to,
22098         gl_sortedlist_indexof_from_to): New declarations.
22099         (gl_list_implementation): New fields sortedlist_search_from_to,
22100         sortedlist_indexof_from_to.
22101         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22102         inline functions.
22103         * lib/gl_list.c (gl_sortedlist_search_from_to,
22104         gl_sortedlist_indexof_from_to): New functions.
22105         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22106         function.
22107         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22108         (gl_array_sortedlist_search_from_to): New function.
22109         (gl_array_list_implementation): Update.
22110         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22111         function.
22112         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22113         (gl_carray_sortedlist_search_from_to): New function.
22114         (gl_carray_list_implementation): Update.
22115         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22116         gl_linked_sortedlist_indexof_from_to): New functions.
22117         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22118         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22119         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22120         gl_tree_sortedlist_indexof_from_to): New functions.
22121         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22122         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22123         Update.
22124         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22125         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22126         Update.
22127
22128 2006-10-05  Bruno Haible  <bruno@clisp.org>
22129
22130         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22131         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22132         (struct gl_list_implementation): Add fields search_from_to,
22133         indexof_from_to. Remove fields search, indexof.
22134         (gl_list_search): Use the search_from_to method.
22135         (gl_list_search_from, gl_list_search_from_to): New functions.
22136         (gl_list_indexof): Use the indexof_from_to method.
22137         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22138         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22139         (gl_list_search_from, gl_list_search_from_to): New functions.
22140         (gl_list_indexof): Use the indexof_from_to method.
22141         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22142         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22143         gl_array_indexof. Add start_index, end_index arguments.
22144         (gl_array_search_from_to): Renamed from gl_array_search. Add
22145         start_index, end_index arguments.
22146         (gl_array_remove, gl_array_list_implementation): Update.
22147         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22148         gl_carray_indexof. Add start_index, end_index arguments.
22149         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22150         start_index, end_index arguments.
22151         (gl_carray_remove, gl_carray_list_implementation): Update.
22152         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22153         gl_linked_search. Add start_index, end_index arguments.
22154         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22155         start_index, end_index arguments.
22156         (gl_linked_remove): Update.
22157         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22158         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22159         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22160         field to 'size_t'.
22161         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22162         gl_tree_search. Add start_index, end_index arguments.
22163         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22164         start_index, end_index arguments.
22165         (gl_tree_remove): Update.
22166         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22167         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22168         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22169         function.
22170         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22171         gl_tree_search. Add start_index, end_index arguments.
22172         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22173         start_index, end_index arguments.
22174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22175         Update.
22176         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22177
22178 2006-10-05  Bruno Haible  <bruno@clisp.org>
22179
22180         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22181
22182         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22183         fwriteerror_temp): New declarations.
22184         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22185         (descriptors): New variable.
22186         (cleanup): First, close the descriptors.
22187         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22188         fclose_temp, fwriteerror_temp): New functions.
22189
22190 2006-10-04  Jim Meyering  <jim@meyering.net>
22191
22192         * lib/fts.c (fts_open): Tiny comment change.
22193
22194 2006-10-04  Bruno Haible  <bruno@clisp.org>
22195
22196         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22197         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22198         gl_LOCK_BODY.
22199         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22200         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22201         gl_LOCK_EARLY_BODY.
22202         (gl_LOCK): Require gl_LOCK_BODY.
22203
22204 2006-10-04  Bruno Haible  <bruno@clisp.org>
22205
22206         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22207         (gl_oset_search_atleast): New declaration.
22208         (struct gl_oset_implementation): Add field 'search_atleast'.
22209         (gl_oset_search_atleast): New inline function.
22210         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22211         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22212         (gl_array_oset_implementation): Update.
22213         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22214         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22215         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22216
22217 2006-10-04  Bruno Haible  <bruno@clisp.org>
22218
22219         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22220
22221 2006-10-03  Bruno Haible  <bruno@clisp.org>
22222
22223         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22224         from gl_avltreehash_list_implementation.
22225
22226 2006-10-03  Bruno Haible  <bruno@clisp.org>
22227
22228         * lib/gl_oset.c (gl_oset_add): Fix return type.
22229
22230 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22231
22232         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22233
22234 2006-10-02  Eric Blake  <ebb9@byu.net>
22235
22236         * modules/strnlen (Depends-on): Add extensions.
22237
22238 2006-10-02  Eric Blake  <ebb9@byu.net>
22239
22240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22241         definition in 2.60+.
22242
22243 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22244
22245         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22246         checks.
22247
22248 2006-10-02  Bruno Haible  <bruno@clisp.org>
22249
22250         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22251         to the AUTOMAKE_OPTIONS.
22252         Reported by Jim Meyering.
22253
22254 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22255
22256         Work around bug in Solaris 10 /proc file system:
22257         /proc/self/fd/NNN/.. isn't the parent directory of
22258         the directory whose file descriptor is NNN.  This needs to
22259         be worked around at run time, not compile time, since a
22260         program might be built on Solaris 8, where things work, and
22261         run on Solaris 10.
22262         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22263         to use the following interface instead:
22264         (OPENAT_BUFFER_SIZE): New macro.
22265         (openat_proc_name): New function.
22266         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22267         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22268         Likewise.
22269         * lib/openat-proc.c: New file.
22270         * modules/openat (Files): Add lib/openat-proc.c.
22271         (Depends-on): Add same-inode, stdbool.
22272         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22273
22274 2006-09-29  Bruno Haible  <bruno@clisp.org>
22275
22276         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22277         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22278         argument. Set stdout_closed before testing for ferror, not after.
22279         (fwriteerror, fwriteerror_no_ebadf): New functions.
22280
22281 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22282
22283         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22284
22285 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22286
22287         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22288         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22289
22290 2006-09-28  Jim Meyering  <jim@meyering.net>
22291
22292         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22293         Include <unistd.h>.
22294
22295 2006-09-28  Bruno Haible  <bruno@clisp.org>
22296
22297         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22298         * modules/linkedhash-list (Depends-on): Likewise.
22299         * modules/rbtreehash-list (Depends-on): Likewise.
22300
22301 2006-09-28  Bruno Haible  <bruno@clisp.org>
22302
22303         * lib/strndup.h: Simplify the redefinition of strndup.
22304         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22305         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22306
22307 2006-09-28  Bruno Haible  <bruno@clisp.org>
22308
22309         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22310         * lib/gl_linkedhash_list.c: Likewise.
22311         * lib/gl_rbtreehash_list.c: Likewise.
22312
22313 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22314
22315         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22316         getaddrinfo.
22317
22318         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22319         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22320         it causes <stdio_ext.h> to cause a compile-time error.
22321         Problem reported by Nelson H. F. Beebe.
22322         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22323         of HAVE_DECL___PENDING.
22324
22325         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22326         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22327         declaration.
22328
22329 2006-09-27  Jim Meyering  <jim@meyering.net>
22330
22331         This file could end up with a definition for a function
22332         named __strndup, rather than rpl_strndup on a system with
22333         incomplete weak_alias support.
22334         * lib/strndup.c (strndup): Rename from __strndup.
22335         Remove #defines that used to map __strndup to strndup.
22336         Don't use K&R prototypes.
22337         Remove LIBC-related code, since this file is not sync'd with glibc.
22338         * lib/strndup.h: Revamp, accordingly.
22339         * m4/strndup.m4: Modernize.
22340
22341 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22342
22343         * modules/savewd (Depends-on): Add 'raise'.
22344         * lib/savewd.c: Include <signal.h>, for 'raise'.
22345
22346 2006-09-26  Jim Meyering  <jim@meyering.net>
22347
22348         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22349         when we detect Darwin 8.7.0's acl_get_file bug.
22350         Rearrange to perform the new (below) run-test while $LIBS
22351         contains any acl-related library.  Set USE_ACL at the end.
22352         (gl_ACL_GET_FILE): New function.
22353
22354 2006-09-26  Eric Blake  <ebb9@byu.net>
22355
22356         * lib/verror.c: Include <config.h> unconditionally.
22357
22358 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22359
22360         * modules/clock-time (Maintainer): Add self.
22361         * modules/getlogin_r (Depends-on): Add extensions.
22362
22363 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22364
22365         * modules/clock-time: New module.
22366         * modules/nanosleep (Depends-on): Add clock-time.
22367         * modules/gethrxtime (Depends-on): Likewise.
22368         * modules/gettime (Depends-on): Likewise.
22369         * modules/settime (Depends-on): Likewise.
22370
22371         * modules/fts-lgpl: Depend on openat.
22372         * modules/mkancesdirs: Depend on savewd.
22373         * modules/mkdir-p: Likewise.
22374
22375 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22376
22377         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22378
22379         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22380         `gl_have_arbitrary_file_name_length_limit' to
22381         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22382         actually works between configure runs.
22383
22384 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22385             Bruno Haible  <bruno@clisp.org>
22386
22387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22388
22389 2006-09-25  Jim Meyering  <jim@meyering.net>
22390
22391         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22392         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22393
22394 2006-09-25  Eric Blake  <ebb9@byu.net>
22395
22396         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22397         exec's in 2006-09-18 patch when shuffling fds.
22398
22399 2006-09-25  Bruno Haible  <bruno@clisp.org>
22400
22401         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22402         Reported by Jim Meyering.
22403
22404 2006-09-24  Jim Meyering  <jim@meyering.net>
22405
22406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22407         compare a pointer against a literal "0".  That caused failures with
22408         at least HP-UX's hpcc.
22409
22410 2006-09-22  Simon Josefsson  <jas@extundo.com>
22411
22412         * modules/gc-sha1:
22413         * modules/gc-md4:
22414         * modules/gc-hmac-sha1:
22415         * modules/gc-hmac-md5:
22416         * modules/gc-des:
22417         * modules/gc-arcfour: Distribute more files.
22418
22419 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22420
22421         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22422         (gl_linked_iterator_from_to): Initialize struct completely.
22423         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22424         (gl_tree_iterator_from_to): Likewise
22425         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22426         * lib/gl_array_list.c [lint] (gl_array_iterator)
22427         (gl_array_iterator_from_to): Likewise.
22428         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22429         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22430         (gl_carray_iterator_from_to): Likewise.
22431
22432         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22433         * lib/md4.c (md4_process_block): Remove unused variable.
22434         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22435         parentheses for clarity.
22436
22437 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22438
22439         * modules/bison-i18n (Depends-on): Add gettext.
22440
22441 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22442
22443         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22444         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22445         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22446         also add missing comma that caused broken test.
22447         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22448         stdlib.h, for `abort'.
22449         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22450         variables.
22451         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22452         include unistd.h if present, for `rmdir'.
22453         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22454         variables.
22455         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22456         in the process include standard headers for prototypes.
22457         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22458         gets declared on GNU/Linux.
22459         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22460         unistd.h, for `rmdir'.
22461         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22462
22463         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22464         always true.
22465         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22466
22467         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22468
22469 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22470
22471         * gnulib-tool (func_version): Create output all at once.  This
22472         may help avoid triggering unnecessary SIGPIPEs, and at any
22473         rate it doesn't hurt.
22474
22475 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22476             Bruno Haible  <bruno@clisp.org>
22477
22478         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22479         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22480         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22481
22482         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22483         (gl_FUNC_VASPRINTF): Invoke it.
22484
22485 2006-09-22  Bruno Haible  <bruno@clisp.org>
22486
22487         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22488         getloadavg.c as first argument.
22489
22490 2006-09-22  Bruno Haible  <bruno@clisp.org>
22491
22492         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22493         at the beginning of the gl_INIT macro.
22494         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22495         gl_GETLOADAVG.
22496
22497 2006-09-22  Bruno Haible  <bruno@clisp.org>
22498
22499         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22500         module.
22501         Suggested by Ralf Wildenhues.
22502
22503 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22504
22505         Import this patch from libc:
22506
22507         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22508
22509         * lib/regex_internal.c (re_string_reconstruct): Handle
22510         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22511         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22512         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22513         re_string_context_at.
22514
22515         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22516         now requires it.
22517         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22518         gl_REGEX now does it for us.
22519         (gl_REGEX): Add test taken from
22520         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22521
22522         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22523         Check that large offsets work.  Modernize Autoconf usages.
22524         Prefer "yes" to mean a good thing rather than a bad.
22525         Don't put "#define mkstemp" in config.h, as this might interfere
22526         with standard system headers that "#define mkstemp mkstemp64".
22527
22528         * modules/mkstemp (Depends-on): Add extensions, so that
22529         mkstemp is visible on some platforms.
22530         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22531         (Include): Change to "mkstemp.h" from <stdlib.h>.
22532         (Files): Add mkstemp.h.
22533
22534         * lib/mkstemp.h: New file, since some standard headers
22535         #define mkstemp.
22536         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22537         Include "mkstemp.h".
22538         Make the _LIBC code resemble glibc original more,
22539         e.g., use K&R style.
22540         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22541         (mkstemp): Remove, since mkstemp.h does this for us.
22542         * lib/stdlib--.h: Include mkstemp.h.
22543
22544         Import this patch from libc:
22545
22546         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22547
22548         * lib/tempname.c (__gen_tempname): Change attempts_min
22549         into a macro.  Use preprocessor to decide how to initialize
22550         attempts [Coverity CID 67].
22551
22552 2006-09-20  Bruno Haible  <bruno@clisp.org>
22553
22554         * lib/mkdtemp.c: Import from libc.
22555         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22556                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22557                 attempts_min into a macro.  Use preprocessor to decide how to
22558                 initialize attempts [Coverity CID 67].
22559         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22560                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22561                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22562
22563 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22564
22565         * gnulib-tool (func_exit): New function, to allow to pass the
22566         exit status portably through the trap.  Use everywhere.
22567         (--help, --version): Signal a write error.
22568         (trap): catch SIGPIPE, for write errors.
22569         Exit at the end of the trap, with the correct exit status.
22570
22571 2006-09-19  Karl Berry  <karl@gnu.org>
22572
22573         * doc/gnulib.texi: note about the license texinfo files.
22574
22575 2006-09-19  Eric Blake  <ebb9@byu.net>
22576
22577         * gnulib-tool: Avoid space-tab.
22578
22579 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22580
22581         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22582         that prevented coreutils 6.1 from building.  Problem reported
22583         by Petter Reinholdtsen.
22584
22585 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         * gnulib-tool (avoidlist): Fix typo that broke options like
22588         --avoid=lock that are used by coreutils bootstrap.
22589
22590 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22591
22592         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22593         more systematically.
22594
22595 2006-09-18  Jim Meyering  <jim@meyering.net>
22596
22597         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22598
22599 2006-09-18  Bruno Haible  <bruno@clisp.org>
22600
22601         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22602
22603 2006-09-18  Bruno Haible  <bruno@clisp.org>
22604
22605         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22606         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22607         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22608         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22609         * m4/gettext.m4: Require autoconf >= 2.52.
22610         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22611         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22612         of gl_cv_header_inttypes_h.
22613
22614 2006-09-18  Bruno Haible  <bruno@clisp.org>
22615
22616         * lib/javaversion.c: Include configmake.h.
22617
22618 2006-09-18  Bruno Haible  <bruno@clisp.org>
22619
22620         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22621         avoid that the while loops be executed in a subshell.
22622
22623 2006-09-18  Bruno Haible  <bruno@clisp.org>
22624
22625         * MODULES.html.sh (func_module): Break long lines.
22626         Suggested by Bruce Korb <bkorb@gnu.org>.
22627
22628 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22629
22630         Speed up by a factor of 1.12.
22631         * gnulib-tool (nl): New variable.
22632         (func_import): Rewrite include directive extraction to only read each
22633         directive once.
22634
22635 2006-09-17  Bruno Haible  <bruno@clisp.org>
22636
22637         * modules/javaversion (Makefile.am): Remove DEFS setting.
22638         (Depends-on): Add configmake, for PKGDATADIR definition.
22639
22640 2006-09-17  Bruno Haible  <bruno@clisp.org>
22641
22642         * gnulib-tool (func_create_testdir): Rewrite all files at once.
22643
22644 2006-09-17  Bruno Haible  <bruno@clisp.org>
22645
22646         * gnulib-tool (func_append): New function, stolen from libtool.m4.
22647         (func_modules_transitive_closure, func_modules_add_dummy,
22648         func_modules_to_filelist, func_import, func_create_testdir,
22649         func_create_megatestdir, ...): Use it wherever possible.
22650         Suggested by Ralf Wildenhues.
22651
22652 2006-09-16  Karl Berry  <karl@gnu.org>
22653
22654         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22655         to avoid sectioning errors.
22656         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22657         [ifinfo]: blank line after @center-ed titles.
22658         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22659         Spell FSF address consistently with others.
22660         (These changes approved by rms.)
22661
22662 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22663
22664         Speed up by a factor of 1.61.
22665         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22666         already checked module names again.
22667
22668 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22669
22670         Speed up by a factor of 1.13.
22671         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22672         for new_files, and the input to func_add_or_update.
22673
22674 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22675
22676         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22677         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22678
22679 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22680
22681         * modules/mkancesdirs (Depends-on): Add fcntl.
22682         * modules/savewd: New file.
22683         * MODULES.html.sh (File system functions): Add savewd.
22684
22685         * modules/configmake (Makefile.am): Add support for the
22686         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22687
22688 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22689
22690         * m4/savewd.m4: New file.
22691
22692 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22693
22694         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22695         (dirchownmod): New arg FD.  All callers changed.
22696         Use FD rather than opening the directory ourself, as opening is
22697         now the caller's responsibility.
22698         * lib/dirchownmod.h: Likewise.
22699         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22700         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22701         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22702         (test_dir): Remove.
22703         (mkancesdirs): Return length of prefix of FILE that has already
22704         been made, or -2 if there is a child doing the work.  Redo
22705         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22706         ".", and treat ".." specially since it might stray back into
22707         already-created areas.  Use a subprocess if necessary.  New arg
22708         WD; all users changed.  MAKE_DIR function should now return 1
22709         if it creates a directory that is not readable.  Return -2 if
22710         a child process is spun off.
22711         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22712         Adjust signature to match code.
22713         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22714         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22715         all users changed.
22716         * lib/savewd.c, lib/savewd.h: New files.
22717
22718 2006-09-15  Jim Meyering  <jim@meyering.net>
22719
22720         * modules/rename-dest-slash: New module.
22721         * MODULES.html.sh (posix_compat): Add it here.
22722
22723         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22724
22725 2006-09-15  Jim Meyering  <jim@meyering.net>
22726
22727         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22728         file.
22729
22730         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22731
22732 2006-09-15  Jim Meyering  <jim@meyering.net>
22733
22734         * lib/rename-dest-slash.c (has_trailing_slash): Use
22735         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22736         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22737         test before testing whether SRC is a directory.
22738         Suggestions from Bruno Haible.
22739
22740         Avoid a warning about an unused variable.
22741         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22742         into the #ifdef block where it's used.
22743
22744         * lib/rename-dest-slash.c: New file.
22745
22746 2006-09-14  Bruno Haible  <bruno@clisp.org>
22747
22748         * lib/allocsa.c: Include <config.h> unconditionally.
22749         * lib/asnprintf.c: Likewise.
22750         * lib/asprintf.c: Likewise.
22751         * lib/c-strcasecmp.c: Likewise.
22752         * lib/c-strcasestr.c: Likewise.
22753         * lib/c-strncasecmp.c: Likewise.
22754         * lib/c-strstr.c: Likewise.
22755         * lib/classpath.c: Likewise.
22756         * lib/clean-temp.c: Likewise.
22757         * lib/concatpath.c: Likewise.
22758         * lib/copy-file.c: Likewise.
22759         * lib/csharpcomp.c: Likewise.
22760         * lib/csharpexec.c: Likewise.
22761         * lib/execute.c: Likewise.
22762         * lib/fatal-signal.c: Likewise.
22763         * lib/findprog.c: Likewise.
22764         * lib/fwriteerror.c: Likewise.
22765         * lib/gl_array_list.c: Likewise.
22766         * lib/gl_array_oset.c: Likewise.
22767         * lib/gl_avltree_list.c: Likewise.
22768         * lib/gl_avltree_oset.c: Likewise.
22769         * lib/gl_avltreehash_list.c: Likewise.
22770         * lib/gl_carray_list.c: Likewise.
22771         * lib/gl_linked_list.c: Likewise.
22772         * lib/gl_linkedhash_list.c: Likewise.
22773         * lib/gl_list.c: Likewise.
22774         * lib/gl_oset.c: Likewise.
22775         * lib/gl_rbtree_list.c: Likewise.
22776         * lib/gl_rbtree_oset.c: Likewise.
22777         * lib/gl_rbtreehash_list.c: Likewise.
22778         * lib/imaxabs.c: Likewise.
22779         * lib/imaxdiv.c: Likewise.
22780         * lib/javacomp.c: Likewise.
22781         * lib/javaexec.c: Likewise.
22782         * lib/javaversion.c: Likewise.
22783         * lib/linebreak.c: Likewise.
22784         * lib/localcharset.c: Likewise.
22785         * lib/lock.c: Likewise.
22786         * lib/mbchar.c: Likewise.
22787         * lib/mbswidth.c: Likewise.
22788         * lib/mkdtemp.c: Likewise.
22789         * lib/pipe.c: Likewise.
22790         * lib/printf-args.c: Likewise.
22791         * lib/printf-parse.c: Likewise.
22792         * lib/progname.c: Likewise.
22793         * lib/progreloc.c: Likewise.
22794         * lib/readlink.c: Likewise.
22795         * lib/sh-quote.c: Likewise.
22796         * lib/stpcpy.c: Likewise.
22797         * lib/stpncpy.c: Likewise.
22798         * lib/strcasecmp.c: Likewise.
22799         * lib/strcasestr.c: Likewise.
22800         * lib/strcspn.c: Likewise.
22801         * lib/striconv.c: Likewise.
22802         * lib/strncasecmp.c: Likewise.
22803         * lib/strnlen1.c: Likewise.
22804         * lib/strstr.c: Likewise.
22805         * lib/strtok_r.c: Likewise.
22806         * lib/tls.c: Likewise.
22807         * lib/tmpdir.c: Likewise.
22808         * lib/unicodeio.c: Likewise.
22809         * lib/unsetenv.c: Likewise.
22810         * lib/vasnprintf.c: Likewise.
22811         * lib/vasprintf.c: Likewise.
22812         * lib/wait-process.c: Likewise.
22813         * lib/xallocsa.c: Likewise.
22814         * lib/xsetenv.c: Likewise.
22815         * lib/xstriconv.c: Likewise.
22816
22817 2006-09-13  Simon Josefsson  <jas@extundo.com>
22818
22819         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22820         that internally, suggested by Ralf Wildenhues
22821         <Ralf.Wildenhues@gmx.de>.
22822
22823 2006-09-13  Simon Josefsson  <jas@extundo.com>
22824
22825         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22826         @LIBOBJS@.
22827         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22828
22829 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22830
22831         * lib/_fpending.c: Include <config.h> unconditionally, since we no
22832         longer worry about uses that don't define HAVE_CONFIG_H.
22833         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22834         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22835         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22836         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22837         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22838         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22839         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22840         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22841         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22842         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22843         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22844         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22845         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22846         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22847         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22848         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22849         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22850         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22851         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22852         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22853         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22854         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22855         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22856         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22857         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22858         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22859         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22860         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22861         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22862         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22863         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22864         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22865         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22866         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22867         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22868         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22869         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22870         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22871         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22872         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22873         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22874         Likewise.
22875
22876 2006-09-13  Eric Blake  <ebb9@byu.net>
22877
22878         * lib/getopt.c: Fix typo in last commit.
22879
22880 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22881
22882         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22883         dgettext.
22884
22885 2006-09-12  Jim Meyering  <jim@meyering.net>
22886
22887         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22888         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22889         Reported by Nelson H. F. Beebe.
22890
22891 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22892
22893         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22894         program_invocation_name and program_invocation_short_name are
22895         initialized.
22896         * lib/argp-namefrob.h: Move declarations of program_invocation_name
22897         and program_invocation_short_name to argp.h, so they are visible
22898         to user programs.
22899         * lib/argp.h: Likewise
22900
22901 2006-09-10  Bruno Haible  <bruno@clisp.org>
22902
22903         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22904         m4/inttypes_h.m4, m4/uintmax_t.m4.
22905
22906 2006-09-10  Bruno Haible  <bruno@clisp.org>
22907
22908         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22909         gl_AC_TYPE_UINTMAX_T.
22910
22911 2006-09-10  Bruno Haible  <bruno@clisp.org>
22912
22913         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22914
22915 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22916
22917         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22918         convention.  Text proposed by Bruno Haible.
22919         (struct argp_option): Document the use of N_() wrappers.
22920
22921         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22922         '\v', and translate the two parts separately, instead of feeding
22923         the whole string to gettext.  This allows to exclude
22924         '\v' from the strings visible to the translator by writing doc
22925         strings as N_("..") "\v" N_("..").
22926
22927 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         * config/srclist.txt: Undo latest change; the bug was fixed.
22930
22931 2006-09-09  Bruno Haible  <bruno@clisp.org>
22932
22933         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22934         assignments if building a library without libtool.
22935         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22936         in func_emit_lib_Makefile_am.
22937         (func_import): When building a static library libfoo.a, arrange to
22938         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22939         (func_create_testdir): Likewise.
22940         * modules/gc (configure.ac, Makefile.am): If building statically,
22941         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22942         * modules/iconvme (configure.ac, Makefile.am): Likewise.
22943         * modules/striconv (configure.ac, Makefile.am): Likewise.
22944         Based on a suggestion by Ralf Wildenhues.
22945
22946 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22947
22948         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22949         Check for unistd.h too, since Autoconf doesn't assume POSIX.
22950         Also:
22951
22952         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22953         Add year_2050_test to catch glibc bug 2821
22954         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22955
22956         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22957         Prefer #ifdef to #if.
22958
22959         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22960         Return from 'main' instead of calling 'exit'.
22961
22962 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22963
22964         * lib/mktime.c (guess_time_tm): Fix bug where mktime
22965         returned the maximum time_t value rather than (time_t) -1.
22966         Problem originally reported by William Bardwell
22967         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22968
22969         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22970         Moved to here ...
22971         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22972         ... from here.
22973
22974 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22975
22976         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22977         2821 is fixed.
22978
22979 2006-09-08  Jim Meyering  <jim@meyering.net>
22980
22981         Don't make generated files read-only.  That would bother too many
22982         people.  However, do retain the ability to work when targets are
22983         read-only: remove the destination and temporary files before writing
22984         them (when generated via sed or echo), or by using the -f option for
22985         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
22986         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22987         * modules/byteswap, modules/configmake, modules/fcntl:
22988         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22989         * modules/localcharset, modules/netinet_in, modules/poll:
22990         * modules/stdbool, modules/stdint, modules/sys_select:
22991         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22992
22993 2006-09-08  Jim Meyering  <jim@meyering.net>
22994
22995         Avoid new build failure on FreeBSD 6.0.
22996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22997         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
22998         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22999
23000 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23001
23002         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23003
23004 2006-09-07  Jim Meyering  <jim@meyering.net>
23005
23006         Fix global typo in last change: use chmod u-w, not chmod u-x.
23007         Spotted by Paul Eggert and Bruce Korb.
23008         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23009         * modules/byteswap, modules/configmake, modules/fcntl:
23010         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23011         * modules/localcharset, modules/netinet_in, modules/poll:
23012         * modules/stdbool, modules/stdint, modules/sys_select:
23013         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23014
23015 2006-09-06  Jim Meyering  <jim@meyering.net>
23016
23017         Make generated files be read-only.
23018         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23019         Ensure that each generated file is now read-only.
23020         * modules/argz: Likewise.
23021         * modules/arpa_inet: Likewise.
23022         * modules/byteswap: Likewise.
23023         * modules/configmake: Likewise.
23024         * modules/fcntl: Likewise.
23025         * modules/fnmatch: Likewise.
23026         * modules/getopt: Likewise.
23027         * modules/glob: Likewise.
23028         * modules/inttypes: Likewise.
23029         * modules/netinet_in: Likewise.
23030         * modules/poll: Likewise.
23031         * modules/stdbool: Likewise.
23032         * modules/stdint: Likewise.
23033         * modules/sys_select: Likewise.
23034         * modules/sys_socket: Likewise.
23035         * modules/sys_stat: Likewise.
23036         * modules/sysexits: Likewise.
23037         * modules/localcharset: Same as above, but continue using temporary
23038         file named "t-$@" (why different?) rather than the "$@-t" used
23039         everywhere else.
23040
23041         * modules/sysexits (Makefile.am): Replace literal occurrences
23042         of "sysexit.h" more readable, and more consistent, "$@".
23043
23044 2006-09-06  Bruno Haible  <bruno@clisp.org>
23045
23046         * modules/striconv: New file.
23047         * modules/xstriconv: New file.
23048         * MODULES.html.sh (Internationalization functions): Add striconv,
23049         xstriconv.
23050
23051 2006-09-06  Bruno Haible  <bruno@clisp.org>
23052
23053         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23054         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23055         not using libtool correctly.
23056
23057 2006-09-06  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/striconv.h: New file.
23060         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23061         iconvstring.c.
23062         * lib/xstriconv.h: New file.
23063         * lib/xstriconv.c: New file.
23064
23065 2006-09-06  Bruno Haible  <bruno@clisp.org>
23066
23067         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23068         lib_..._LDFLAGS.
23069
23070 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23071
23072         * lib/argz_.h: Sync from Libtool.
23073
23074         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23075                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23076
23077         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23078
23079 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23080
23081         * modules/trim: New file.
23082
23083 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23084
23085         * lib/trim.h: New file.
23086         * lib/trim.c: New file.
23087
23088 2006-09-05  Bruno Haible  <bruno@clisp.org>
23089
23090         * MODULES.html.sh (String handling): Add trim.
23091
23092 2006-09-04  Karl Berry  <karl@gnu.org>
23093
23094         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23095         until next release.
23096
23097 2006-09-03  Bruno Haible  <bruno@clisp.org>
23098
23099         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23100         correctly.
23101
23102 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23103
23104         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23105         not gl_GETLOADAVG.  Omit unneeded semicolons.
23106         Problems reported by Ralf Wildenhues in
23107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23108         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
23109         at the end, which is the usual gnulib style.
23110
23111         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23112         of doing all the work ourselves.
23113         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23114         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23115
23116 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23117
23118         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23119         Problem reported by Ralf Wildenhues in
23120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23121
23122         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23123         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23124
23125 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23126
23127         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23128         yesterday's patch by changing test -n to test -z.
23129
23130 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23133         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23134         the former is now obsolescent.
23135
23136         * modules/chdir-long (Depends-on): Add fcntl.
23137
23138 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23139
23140         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23141         obsolescent, and programs should use gnulib instead.
23142         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23143         but with prefixes changed.
23144
23145 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23146
23147         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23148         or stdbool.h, because they might not exist while configuring.
23149
23150         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23151         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23152         does that for us.
23153         (O_DIRECTORY): Remove.
23154
23155 2006-08-31  Eric Blake  <ebb9@byu.net>
23156
23157         * gnulib-tool: Don't let emacs change spaces to TAB.
23158
23159 2006-08-31  Bruno Haible  <bruno@clisp.org>
23160
23161         * gnulib-tool: When calling func_import more than once, do it in a
23162         subshell.
23163         Reported by Eric Blake <ebb9@byu.net>.
23164
23165 2006-08-31  Bruno Haible  <bruno@clisp.org>
23166
23167         * gnulib-tool (nl): Remove variable.
23168         (sed_transform_lib_file): Use more robust test for config-h module.
23169         (func_import): Fix typo in 2006-08-25 patch.
23170
23171 2006-08-31  Bruno Haible  <bruno@clisp.org>
23172
23173         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23174         specified, augment Makefile.am variables instead of assigning them.
23175
23176 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23177
23178         Work around a bug in both the Linux and SunOS 64-bit kernels:
23179         nanosleep mishandles sleeps for longer than 2**31 seconds.
23180         Problem reported by Frank v Waveren in
23181         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23183         Check for nanosleep bug.
23184         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23185
23186 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23187
23188         Work around a bug in both the Linux and SunOS 64-bit kernels:
23189         nanosleep mishandles sleeps for longer than 2**31 seconds.
23190         Problem reported by Frank v Waveren in
23191         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23192         * lib/nanosleep.c (BILLION): New constant.
23193         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23194         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23195         implementation.
23196
23197 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23198
23199         * modules/nanosleep (Depends-on): Add gettime.
23200
23201 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23202         and Simon Josefsson  <jas@extundo.com>
23203         and Oskar Liljeblad  <oskar@osk.mine.nu>
23204
23205         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23206         * gnulib-tool (func_import): New license type 'unmodifiable license
23207         text'.
23208         * modules/fdl: Use it.  Longer description.
23209         * module/gpl, module/lgpl: New files.
23210
23211 2006-08-30  Jim Meyering  <jim@meyering.net>
23212
23213         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23214         shadowing the parameter.
23215
23216 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23217
23218         Sync from Libtool:
23219
23220         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23221
23222         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23223         sharing with gnulib.  Report by Eric Blake.
23224
23225 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23226
23227         * modules/isapipe: New file.
23228         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23229
23230 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23231
23232         * modules/configmake (Makefile.am): Add a comment, and omit
23233         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23234         by Bruno Haible.
23235
23236 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23237
23238         * m4/isapipe.m4: New file.
23239
23240 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23241
23242         * lib/isapipe.c, lib/isapipe.h: New files.
23243
23244 2006-08-29  Jim Meyering  <jim@meyering.net>
23245
23246         * modules/configmake (Makefile.am): Make configmake.h depend on
23247         Makefile.  Otherwise, a stale configmake.h could hang around.
23248
23249 2006-08-29  Eric Blake  <ebb9@byu.net>
23250
23251         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23252         resolution of upstream bug 3044.
23253
23254 2006-08-29  Bruno Haible  <bruno@clisp.org>
23255
23256         * modules/localcharset (Depends-on): Add configmake.
23257         (Makefile.am): Remove setting of LIBDIR through DEFS.
23258
23259 2006-08-29  Bruno Haible  <bruno@clisp.org>
23260
23261         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23262         defined.
23263
23264 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23265
23266         * modules/fcntl: New file.
23267         * modules/chdir-safer (Depends-on): Add fcntl.
23268         * modules/fts: Likewise.
23269         * modules/mkdir-p: Likewise.
23270
23271         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23272         This undoes the most recent change, since we're now addressing the
23273         problem in a different way.
23274
23275         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23276         into output, since the output might be called Makefile.am even
23277         if $makefile_name is something different.
23278         (func_import): Use $makefile_am rather than
23279         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23280         empty.
23281
23282         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23283
23284 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23285
23286         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23287         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23288         recent change to stdint.m4, since we're now addressing the problem in a
23289         different way.
23290
23291 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         * m4/fcntl_h.m4: New file.
23294
23295 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23296
23297         * lib/fcntl_.h: New file.
23298         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23299         the fcntl module.
23300         * lib/dirchownmod.c: Likewise.
23301         * lib/fts.c: Likewise.
23302
23303         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23304         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23305         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23306         just before including <inttypes.h>, to avoid circular inclusion.
23307
23308 2006-08-28  Jim Meyering  <jim@meyering.net>
23309
23310         * doc/visibility.texi: Actually read and correct the grammar of the
23311         sentence affected by yesterday's change.
23312
23313 2006-08-28  Eric Blake  <ebb9@byu.net>
23314
23315         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23316         needs wrapper.
23317
23318 2006-08-28  Eric Blake  <ebb9@byu.net>
23319
23320         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23321
23322 2006-08-28  Eric Blake  <ebb9@byu.net>
23323
23324         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23325
23326 2006-08-28  Bruno Haible  <bruno@clisp.org>
23327
23328         * modules/c-strstr: New file, from GNU gettext.
23329         * MODULES.html.sh (String handling): Add c-strstr.
23330
23331 2006-08-28  Bruno Haible  <bruno@clisp.org>
23332
23333         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23334         macros.
23335         Reported by Eric Blake.
23336
23337 2006-08-28  Bruno Haible  <bruno@clisp.org>
23338
23339         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23340         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23341         * lib/vasprintf.c: Include errno.h, limits.h.
23342         (EOVERFLOW): New fallback definition.
23343         (vasprintf): Test here whether the string length is > INT_MAX.
23344         * lib/vsnprintf.c: Include errno.h, limits.h.
23345         (EOVERFLOW): New fallback definition.
23346         (vsnprintf): Fix bug when generated string was too long for the buffer.
23347         Test here whether the string length is > INT_MAX.
23348
23349 2006-08-28  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/inttypes_.h (SCNX*): Remove definitions.
23352         Reported by Eric Blake.
23353
23354 2006-08-28  Bruno Haible  <bruno@clisp.org>
23355
23356         * lib/c-strstr.h: New file, from GNU gettext.
23357         * lib/c-strstr.c: New file, from GNU gettext.
23358
23359 2006-08-28  Bruno Haible  <bruno@clisp.org>
23360
23361         * gnulib-tool: Reorder some statements.
23362
23363 2006-08-28  Bruno Haible  <bruno@clisp.org>
23364
23365         * gnulib-tool: New option --makefile-name.
23366         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23367         $makefile_name.
23368         (func_import): Write $makefile_name to the cache file, and read it from
23369         there unless explicitly specified. Use $makefile_name as file name
23370         instead of Makefile.am. Adjust the recommendations accordingly.
23371
23372 2006-08-28  Bruno Haible  <bruno@clisp.org>
23373
23374         * gnulib-tool (func_verify_module): Check against misapplying patch.
23375
23376 2006-08-28  Bruno Haible  <bruno@clisp.org>
23377
23378         * gnulib-tool (func_relativize, func_relconcat): New functions.
23379         Give an error if --local-dir is given with --update.
23380         Remove trailing slashes from $local_gnulib_dir.
23381         (func_import): Store the relativized $local_gnulib_dir in
23382         gnulib-cache.m4, and read it from there if not specified explicitly.
23383
23384 2006-08-28  Bruno Haible  <bruno@clisp.org>
23385
23386         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23387         is the current directory. Respect also $local_gnulib_dir.
23388
23389 2006-08-28  Bruno Haible  <bruno@clisp.org>
23390             Simon Josefsson  <jas@extundo.com>
23391
23392         BeOS portability.
23393         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23394
23395 2006-08-27  Jim Meyering  <jim@meyering.net>
23396
23397         * doc/visibility.texi: Remove duplicate word: "pointer".
23398
23399 2006-08-26  Bruno Haible  <bruno@clisp.org>
23400
23401         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23402         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23403         (Makefile.am): Create inttypes.h from inttypes_.h.
23404         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23405
23406         * modules/imaxabs: New file.
23407
23408         * modules/imaxdiv: New file.
23409
23410 2006-08-26  Bruno Haible  <bruno@clisp.org>
23411
23412         * m4/inttypes.m4: New file.
23413         * m4/_inttypes_h.m4: Remove file.
23414         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23415         PRI_MACROS_BROKEN.
23416         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23417
23418         * m4/imaxabs.m4: New file.
23419
23420         * m4/imaxdiv.m4: New file.
23421
23422 2006-08-26  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/inttypes_.h: New file.
23425         * lib/inttypes.h: Remove file.
23426         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23427
23428         * lib/imaxabs.c: New file.
23429
23430         * lib/imaxdiv.c: New file.
23431
23432 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23433
23434         New config-h module, so that "make" output needn't be cluttered
23435         by -DHAVE_CONFIG_H.
23436         * MODULES.html.sh (Support for building libraries and executables):
23437         Add config-h.
23438         * modules/config-h: New file.
23439         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23440         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23441         the config-h module is used.
23442
23443         New configmake module, so that "make" output needn't be cluttered
23444         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23445         * MODULES.html.sh (Support for building libraries and executables):
23446         Add configmake.
23447         * modules/configmake: New file.
23448
23449 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23450
23451         * m4/config-h.m4: New file.
23452
23453 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23454
23455         * config/srclist.txt: Add elisp-comp.
23456
23457 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23458
23459         * MODULES.html.sh (Support for building libraries and executables):
23460         Add elisp-comp.
23461         * build-aux/elisp-comp: New file.
23462         * modules/elisp-comp: New file.
23463
23464 2006-08-24  Bruno Haible  <bruno@clisp.org>
23465
23466         * gnulib-tool (func_create_testdir): Use non-default values of
23467         sourcebase and m4base.
23468
23469 2006-08-24  Bruno Haible  <bruno@clisp.org>
23470
23471         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23472         HTML structure.
23473
23474 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23475
23476         * modules/openat (Depends-on): Add lchown.
23477
23478 2006-08-23  Bruno Haible  <bruno@clisp.org>
23479
23480         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23481         of gl_LOCK_EARLY instead of gl_LOCK.
23482
23483 2006-08-23  Bruno Haible  <bruno@clisp.org>
23484
23485         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23486         on OSF/1 to no.
23487         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23488
23489 2006-08-23  Bruno Haible  <bruno@clisp.org>
23490
23491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23492         as unusable.
23493
23494         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23495         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23496         (gl_LOCK): New macro.
23497
23498 2006-08-22  Simon Josefsson  <jas@extundo.com>
23499
23500         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23501         to md5 module.
23502
23503 2006-08-22  Simon Josefsson  <jas@extundo.com>
23504
23505         * MODULES.html.sh: Add "Support for maintaining and release
23506         projects".
23507
23508         * build-aux/gnupload: New file, from coreutils.
23509
23510 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         Avoid the need for AC_LIBSOURCES in m4 macros.
23513         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23514         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23515         * modules/check-version (EXTRA_DIST): Add check-version.h.
23516         * modules/crc (EXTRA_DIST): Add crc.h.
23517         * modules/des (EXTRA_DIST): Add des.h.
23518         * modules/gc (EXTRA_DIST): Add gc.h.
23519         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23520         * modules/getline (EXTRA_DIST): Add getline.h.
23521         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23522         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23523         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23524         * modules/md2 (EXTRA_DIST): Add md2.h.
23525         * modules/md4 (EXTRA_DIST): Add md4.h.
23526         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23527         * modules/read-file (EXTRA_DIST): Add read-file.h.
23528         * modules/readline (EXTRA_DIST): Add readline.h.
23529         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23530         rijndael-api-fst.h.
23531
23532 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23533
23534         * m4/rijndael.m4 (gl_ARCFOUR):
23535         * m4/arctwo.m4 (gl_ARCTWO):
23536         * m4/check-version.m4 (gl_CHECK_VERSION):
23537         * m4/crc.m4 (gl_CRC):
23538         * m4/des.m4 (gl_DES):
23539         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23540         * m4/gc.m4 (gl_GC):
23541         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23542         * m4/getline.m4 (gl_FUNC_GETLINE):
23543         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23544         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23545         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23546         * m4/md2.m4 (gl_MD2):
23547         * m4/md4.m4 (gl_MD4):
23548         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23549         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23550         * m4/readline.m4 (gl_FUNC_READLINE):
23551         * m4/rijndael.m4 (gl_RIJNDAEL):
23552         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23553         to get the necessary .h files and whatnot.
23554
23555 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23556
23557         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23558         gnulib rather than the other way around.
23559         * config/srclistvars.sh (COREUTILS): Remove.
23560
23561 2006-08-22  Jim Meyering  <jim@meyering.net>
23562
23563         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23564
23565         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23566
23567 2006-08-22  Eric Blake  <ebb9@byu.net>
23568
23569         * modules/regexprops-generic: New file.
23570         * MODULES.html.sh (Support for building documentation): List it.
23571
23572 2006-08-22  Eric Blake  <ebb9@byu.net>
23573
23574         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23575         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23576         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23577         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23578
23579 2006-08-22  Bruno Haible  <bruno@clisp.org>
23580
23581         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23582         and lib_LTLIBRARIES like the other lib_* variables.
23583
23584 2006-08-22  Bruno Haible  <bruno@clisp.org>
23585
23586         * build-aux/x-to-1.in: New file, from GNU gettext.
23587
23588 2006-08-22  Bruno Haible  <bruno@clisp.org>
23589
23590         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23591         <utmpx.h> exists.
23592
23593 2006-08-22  Bruno Haible  <bruno@clisp.org>
23594
23595         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23596         <utmpx.h> exists.
23597
23598 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23599
23600         BeOS portability.
23601         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23602         exist.
23603         Problem reported by Bruno Haible.
23604
23605 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23606
23607         Avoid the need for AC_LIBSOURCES in m4 macros.
23608         * modules/acl (EXTRA_DIST): Add acl.h.
23609         * modules/argmatch (Files): Add m4/argmatch.m4.
23610         (configure.ac): Add gl_ARGMATCH.
23611         (EXTRA_DIST): Renamed from lib_SOURCES, for
23612         consistency with the other modules.  Remove argmatch.c.
23613         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23614         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23615         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23616         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23617         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23618         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23619         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23620         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23621         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23622         * modules/closeout (EXTRA_DIST): Add closeout.h.
23623         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23624         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23625         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23626         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
23627         dirname.h; remove basename.c and stripslash.c.
23628         * modules/exclude (EXTRA_DIST): Add exclude.h.
23629         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23630         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23631         * modules/file-type (EXTRA_DIST): Add file-type.h.
23632         * modules/filemode (EXTRA_DIST): Add filemode.h.
23633         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23634         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23635         * modules/fpending (EXTRA_DIST): Add __fpending.h.
23636         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23637         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23638         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23639         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23640         * modules/getdate (EXTRA_DIST): Add getdate.c.
23641         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23642         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23643         * modules/getpass (EXTRA_DIST): Add getpass.h.
23644         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23645         * modules/group-member (EXTRA_DIST): Add group-member.h.
23646         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23647         * modules/hash (EXTRA_DIST): Add hash.h.
23648         * modules/human (EXTRA_DIST): Add human.h.
23649         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23650         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23651         * modules/lchown (EXTRA_DIST): Add lchown.h.
23652         * modules/long-options (EXTRA_DIST): Add long-options.h.
23653         * modules/lstat (EXTRA_DIST): Add lstat.h.
23654         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23655         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23656         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23657         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23658         * modules/memxor (EXTRA_DIST): Add memxor.h.
23659         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23660         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23661         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23662         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23663         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23664         * modules/physmem (EXTRA_DIST): Add physmem.h.
23665         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23666         * modules/posixver (EXTRA_DIST): Add posixver.h.
23667         * modules/quote (EXTRA_DIST): Add quote.h.
23668         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23669         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23670         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23671         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23672         regex_internal.h regexec.c.
23673         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23674         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23675         * modules/same (EXTRA_DIST): Add same.h.
23676         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23677         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23678         * modules/savedir (EXTRA_DIST): Add savedir.h.
23679         * modules/sha1 (EXTRA_DIST): Add sha1.h.
23680         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23681         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23682         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23683         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23684         * modules/strdup (EXTRA_DIST): Add strdup.h.
23685         * modules/strftime (EXTRA_DIST): Add strftime.h.
23686         * modules/strndup (EXTRA_DIST): Add strndup.h.
23687         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23688         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23689         * modules/time_r (EXTRA_DIST): Add time_r.h.
23690         * modules/timespec (EXTRA_DIST): Add timespec.h.
23691         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23692         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23693         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23694         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23695         * modules/userspec (EXTRA_DIST): Add userspec.h.
23696         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23697         * modules/utimens (EXTRA_DIST): Add utimens.h.
23698         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23699         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23700         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23701         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23702         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23703         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23704         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23705         * modules/yesno (EXTRA_DIST): Add yesno.h.
23706
23707 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23708
23709         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23710
23711         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23712         * m4/dev-ino.m4, same-inode.m4: Remove.
23713
23714         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23715         * m4/acl.m4 (AC_FUNC_ACL):
23716         * m4/backupfile.m4 (gl_BACKUPFILE):
23717         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23718         * m4/canon-host.m4 (gl_CANON_HOST):
23719         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23720         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23721         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23722         * m4/cloexec.m4 (gl_CLOEXEC):
23723         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23724         * m4/closeout.m4 (gl_CLOSEOUT):
23725         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23726         * m4/dirname.m4 (gl_DIRNAME):
23727         * m4/exclude.m4 (gl_EXCLUDE):
23728         * m4/exitfail.m4 (gl_EXITFAIL):
23729         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23730         * m4/file-type.m4 (gl_FILE_TYPE):
23731         * m4/filemode.m4 (gl_FILEMODE):
23732         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23733         * m4/fpending.m4 (gl_FUNC_FPENDING):
23734         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23735         * m4/fts.m4 (gl_FUNC_FTS):
23736         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23737         * m4/getdate.m4 (gl_GETDATE):
23738         * m4/gethrxtime.m4 (gl_GETHRXTIME):
23739         * m4/getpagesize.m4 (gl_GETPAGESIZE):
23740         * m4/getpass.m4 (gl_FUNC_GETPASS):
23741         * m4/gettime.m4 (gl_GETTIME):
23742         * m4/getugroups.m4 (gl_GETUGROUPS):
23743         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23744         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23745         * m4/hard-locale.m4 (gl_HARD_LOCALE):
23746         * m4/hash.m4 (gl_HASH):
23747         * m4/idcache.m4 (gl_IDCACHE):
23748         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23749         * m4/lchown.m4 (gl_FUNC_LCHOWN):
23750         * m4/long-options.m4 (gl_LONG_OPTIONS):
23751         * m4/lstat.m4 (gl_FUNC_LSTAT):
23752         * m4/md5.m4 (gl_MD5):
23753         * m4/memcasecmp.m4 (gl_MEMCASECMP):
23754         * m4/memcoll.m4 (gl_MEMCOLL):
23755         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23756         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23757         * m4/memxor.m4 (gl_MEMXOR):
23758         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23759         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23760         * m4/modechange.m4 (gl_MODECHANGE):
23761         * m4/mountlist.m4 (gl_MOUNTLIST):
23762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23763         * m4/openat.m4 (gl_FUNC_OPENAT):
23764         * m4/pathmax.m4 (gl_PATHMAX):
23765         * m4/physmem.m4 (gl_PHYSMEM):
23766         * m4/posixtm.m4 (gl_POSIXTM):
23767         * m4/posixver.m4 (gl_POSIXVER):
23768         * m4/quote.m4 (gl_QUOTE):
23769         * m4/quotearg.m4 (gl_QUOTEARG):
23770         * m4/readtokens.m4 (gl_READTOKENS):
23771         * m4/readutmp.m4 (gl_READUTMP):
23772         * m4/regex.m4 (gl_REGEX):
23773         * m4/safe-read.m4 (gl_SAFE_READ):
23774         * m4/safe-write.m4 (gl_SAFE_WRITE):
23775         * m4/same.m4 (gl_SAME):
23776         * m4/save-cwd.m4 (gl_SAVE_CWD):
23777         * m4/savedir.m4 (gl_SAVEDIR):
23778         * m4/settime.m4 (gl_SETTIME):
23779         * m4/sha1.m4 (gl_SHA1):
23780         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23781         * m4/stat-macros.m4 (gl_STAT_MACROS):
23782         * m4/stat-time.m4 (gl_STAT_TIME):
23783         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23784         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23785         * m4/strdup.m4 (gl_FUNC_STRDUP):
23786         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23787         * m4/strndup.m4 (gl_FUNC_STRNDUP):
23788         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23789         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23790         * m4/time_r.m4 (gl_TIME_R):
23791         * m4/timespec.m4 (gl_TIMESPEC):
23792         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23793         * m4/unlinkdir.m4 (gl_UNLINKDIR):
23794         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23795         * m4/userspec.m4 (gl_USERSPEC):
23796         * m4/utimecmp.m4 (gl_UTIMECMP):
23797         * m4/utimens.m4 (gl_UTIMENS):
23798         * m4/xalloc.m4 (gl_XALLOC):
23799         * m4/xgetcwd.m4 (gl_XGETCWD):
23800         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23801         * m4/xreadlink.m4 (gl_XREADLINK):
23802         * m4/xstrtod.m4 (gl_XSTRTOD):
23803         * m4/yesno.m4 (gl_YESNO):
23804         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23805         to get the necessary .h files and whatnot.
23806
23807 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
23808             Bruno Haible  <bruno@clisp.org>
23809
23810         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23811         /bin/sh understanding of '!' conditional negation.
23812
23813 2006-08-21  Jim Meyering  <jim@meyering.net>
23814
23815         * modules/openat (Depends-on): Really alphabetize.
23816
23817         * modules/acl (Depends-on): Add error and quote.
23818
23819         * check-module (find_included_lib_files): Add at-func.c to the
23820         ok-to-include-more-than-once white list.
23821
23822         * modules/openat (Depends-on): Add lstat.  Alphabetize.
23823
23824 2006-08-21  Bruno Haible  <bruno@clisp.org>
23825
23826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23827         Emit a pkgdata_DATA variable only if some snippets add contents to it.
23828         Reported by Martin Lambers <marlam@marlam.de>.
23829
23830 2006-08-21  Bruno Haible  <bruno@clisp.org>
23831
23832         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23833         specify an installation location, don't emit a noinst_LIBRARIES or
23834         noinst_LTLIBRARIES assignment.
23835
23836 2006-08-21  Bruno Haible  <bruno@clisp.org>
23837
23838         BeOS portability.
23839         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23840         BeOS has mbrtowc() but no <wctype.h>.
23841
23842 2006-08-21  Bruno Haible  <bruno@clisp.org>
23843
23844         BeOS portability.
23845         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23846         exist.
23847
23848 2006-08-21  Bruno Haible  <bruno@clisp.org>
23849
23850         BeOS portability.
23851         * lib/mbchar.h: Include <wctype.h> only if it exists.
23852
23853 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23854
23855         Remove files that are no longer needed by their respective modules.
23856         * m4/obstack.m4: Remove.
23857         * m4/strerror_r.m4: Remove.
23858         * m4/uint32_t.m4: Remove.
23859         * m4/uintptr_t.m4: Remove.
23860         * m4/ullong_max.m4: Remove.
23861         * m4/xstrtoimax.m4: Remove.
23862         * m4/xstrtoumax.m4: Remove.
23863
23864         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23865         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23866         dependencies now capture this.
23867
23868         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23869         Do not use AC_LIBSOURCES, since gnulib modules now do this.
23870         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23871         * m4/human.m4 (gl_HUMAN): Likewise.
23872         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23873         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23874
23875         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23876
23877         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23878         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23879         stdint.
23880         * m4/human.m4 (gl_HUMAN): Likewise.
23881         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23882         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23883         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23884         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23885         * m4/xstrtol (gl_XSTRTOL): Likewise.
23886
23887         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23888         AC_TYPE_LONG_LONG_INT.
23889         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23890         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23891         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23892         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23893
23894         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23895         on stdbool.
23896
23897         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23898         (gl_PREREQ_XSTRTOUL): Remove.
23899
23900         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23901
23902         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23903         mode.
23904
23905 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23906
23907         Add and change modules to make it easier for coreutils to use
23908         gnulib-tool.
23909         * modules/backupfile (Files): Remove m4/d-ino.m4.
23910         (Depends-on): Add d-ino.
23911         * modules/cycle-check (Depends-on): Add stdint.
23912         (lib_SOURCES): Add cycle-check.h.
23913         * modules/d-ino: New module.
23914         * modules/d-type: New module.
23915         * modules/error (Files): Remove m4/strerror_r.m4.
23916         * modules/filemode (Files): Add m4/st_dm_mode.m4.
23917         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23918         m4/inttypes_h.m4, m4/uintmax_t.m4.
23919         (Depends-on): Add stdint.
23920         (lib_SOURCES): Add fsusage.h.
23921         * modules/getcwd (Files): Remove d-ino.m4.
23922         (Depends-on): Add d-ino.
23923         * modules/getndelim2 (Depends-on): Add stdint.
23924         * modules/glob (Files): Remove m4/d-type.m4.
23925         (Depends-on): Add d-type.
23926         * modules/host-os: New module.
23927         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
23928         m4/inttypes_h.m4, m4/uintmax_t.m4.
23929         * Depends-on: Add stdint.
23930         (lib_SOURCES): Add human.h.
23931         * modules/inttostr (Files): Remove m4/intmax_t.m4,
23932         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23933         m4/uintmax_t.m4, m4/ulonglong.m4.
23934         (Depends-on): Add stdint.
23935         (EXTRA_DIST): Add inttostr.h.
23936         * modules/lchmod: New module.
23937         * modules/link-follow: New module.
23938         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23939         (Depends-on): Add lchmod.
23940         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23941         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23942         (Depends-on): Add stdint.
23943         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23944         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23945         (Depends-on): Add stdint.
23946         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23947         * modules/perl: New module.
23948         * modules/regex (Depends-on): Add stdint.
23949         * modules/rmdir-errno: New module.
23950         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23951         m4/intmax_t.m4.
23952         (Depends-on): Add stdint.
23953         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23954         m4/uintmax_t.m4.
23955         (Depends-on): Add stdint.
23956         * modules/unlink-busy: New module.
23957         * modules/utimecmp (Depends-on): Add stdint.
23958         * modules/uptime: New module.
23959         * modules/winsz-ioctl: New module.
23960         * modules/winsz-termios: New module.
23961         * modules/xnanosleep (Depends-on): Add nanosleep.
23962         * modules/ullong_max: Remove.
23963         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23964         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23965         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23966         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23967         (Depends-on): Add inttypes.
23968         (lib_SOURCES): Add xstrtol.h.
23969         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23970         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23971         * MODULES.html.sh: Move 'assert' into the assert section.
23972         Move 'dummy' into the linking section.
23973         Remove ullong_max.
23974         Add section for compatibility checks for POSIX:2001 functions,
23975         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23976         winsz-ioctl, and winsz-termios into it.
23977         Add lchmod.
23978         Add top-level Misc section and put host-os, perl, and uptime
23979         into it.
23980
23981 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23982
23983         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23984         now assume the stdint module.  Do not include inttypes.h.
23985         * lib/fsusage.h: Likewise.
23986         * lib/getndelim2.c: Likewise.
23987         * lib/human.h: Likewise.
23988         * lib/inttostr.h: Likewise.
23989         * lib/obstack.c: Likewise.
23990         * lib/regex_internal.h: Likewise.
23991         * lib/tempname.c: Likewise.
23992         * lib/utimecmp.c: Likewise.
23993         * lib/xstrtol.h: Likewise.
23994
23995         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23996
23997         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23998         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23999         * lib/xtime.h: Likewise.
24000
24001 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24002
24003         * modules/openat (Files): Add lib/fchmodat.c.
24004         Fixes problem reported by Jay Youngman.
24005
24006 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24007
24008         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
24009         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
24010
24011 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24012             Bruno Haible  <bruno@clisp.org>
24013
24014         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24015         and is a script that invokes bison. Tighten the code. Add comments.
24016
24017 2006-08-18  Jim Meyering  <jim@meyering.net>
24018
24019         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24020         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24021         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24022         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24023
24024 2006-08-18  Bruno Haible  <bruno@clisp.org>
24025
24026         * modules/bison-i18n: New file.
24027         * MODULES.html.sh (Internationalization functions): Add it.
24028
24029 2006-08-18  Bruno Haible  <bruno@clisp.org>
24030
24031         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24032         sys/statvfs.h. When getmntinfo was found, check its declaration and
24033         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24034
24035 2006-08-18  Bruno Haible  <bruno@clisp.org>
24036
24037         * m4/bison-i18n.m4: New file, from bison.
24038
24039 2006-08-18  Bruno Haible  <bruno@clisp.org>
24040
24041         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24042         (ME_DUMMY): Treat "kernfs" as a dummy.
24043         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24044
24045 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         Update from coreutils.
24048
24049         2006-08-15  Jim Meyering  <jim@meyering.net>
24050
24051         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24052
24053         2006-01-17  Jim Meyering  <jim@meyering.net>
24054
24055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24056
24057         2006-01-11  Jim Meyering  <jim@meyering.net>
24058
24059         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24060         Check for the lchmod function.
24061
24062 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24063
24064         Update from coreutils.
24065
24066         * lib/__fpending.h: Add copyright notice.
24067         * lib/fprintftime.h: Likewise.
24068         * lib/savedir.c: Use (C) in copyright notice.
24069         * lib/savedir.h: Likewise.
24070
24071         2006-08-15  Jim Meyering  <jim@meyering.net>
24072
24073         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24074         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24075         in support of the EXPECTED_ERRNO macro.
24076         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24077         definitions.  Instead, define the appropriate symbols and include
24078         "at-func.c".
24079         * lib/mkdirat.c (mkdirat): Likewise.
24080         * lib/fchmodat.c (fchmodat): Likewise.
24081         (ENOSYS): Remove definition.
24082         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24083         it.  Don't include "unistd--.h" -- it wasn't ever used.
24084
24085         2006-01-17  Jim Meyering  <jim@meyering.net>
24086
24087         Rewrite fts.c not to change the current working directory,
24088         by using openat, fstatat, fdopendir, etc..
24089
24090         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24091         (HAVE_OPENAT_SUPPORT): Define.
24092         [_LIBC] (fchdir): Don't undef or define; no longer used.
24093         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24094         Now, this `function' always succeeds, and consumes its file descriptor
24095         parameter -- so callers must not close such FDs.  Update callers.
24096         (diropen_fd, opendirat, cwd_advance_fd): New functions.
24097         (diropen): Add parameter, SP.  Adjust all callers.
24098         Implement using diropen_fd, rather than open.
24099         (fts_open): Initialize new member, fts_cwd_fd.
24100         Remove fts_rft-setting code.
24101         (fts_close): Close fts_cwd_fd, if necessary.
24102         (__opendir2): Define in terms of opendir or opendirat,
24103         depending on whether the FST_NOCHDIR flag is set.
24104         (fts_build): Since fts_safe_changedir consumes its FD, and since
24105         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24106         and close the dup'd file descriptor upon failure.
24107         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24108         (fts_safe_changedir): Tweak semantics to reflect that this function
24109         now calls cwd_advance_fd and hence consumes its FD argument.
24110         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24111         [struct FTS] (fts_rft): Remove now-unused member.
24112         [struct FTS] (fts_cycle.state): Improve comment.
24113
24114         * lib/openat.c (openat_needs_fchdir): New function.
24115         * lib/openat.h (openat_needs_fchdir): Declare it.
24116
24117 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24120         Problem and fix reported by Pádraig Brady in
24121         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24122
24123 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24124
24125         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24126
24127 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24128
24129         * lib/memcoll.c (memcoll): Optimize for the common case where the
24130         arguments are bytewise equal.
24131
24132 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24133
24134         * doc/regexprops-generic.texi: Add a copyright notice.
24135
24136 2006-08-15  Bruno Haible  <bruno@clisp.org>
24137
24138         * modules/tmpdir (License): Change to LGPL.
24139
24140 2006-08-15  Bruno Haible  <bruno@clisp.org>
24141
24142         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24143         module.
24144
24145 2006-08-14  Simon Josefsson  <jas@extundo.com>
24146
24147         * config/srclist.txt: Add gnupload.
24148
24149 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24150
24151         Change copyright notice from LGPL 2 to GPL 2, since that's the
24152         standard form used in the gnulib repository.
24153         * tests/test-lock.c: Likewise.
24154         * tests/test-stdint.c: Likewise.
24155         * tests/test-tls.c: Likewise.
24156
24157         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24158         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24159         Add copyright notice.
24160
24161         * check-module: Add copyright notice.  Output a copyright
24162         notice if "--version" is specified.
24163         * modules/COPYING: New file.
24164         * tests/test-getaddrinfo.c: Add copyright notice.
24165         * tests/test-verify.c: Likewise.
24166
24167 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         Change copyright notice from LGPL 2 to GPL 2, since that's the
24170         standard form used in the gnulib repository.
24171         * lib/lock.c: LGPL -> GPL.
24172         * lib/lock.h: Likewise.
24173         * lib/strnlen1.c: Likewise.
24174         * lib/strnlen1.h: Likewise.
24175         * lib/tls.c: Likewise.
24176         * lib/tls.h: Likewise.
24177         * lib/tmpdir.c: Likewise.
24178
24179         * lib/TODO: Remove; this belongs only in coreutils.
24180
24181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24182
24183         Add copyright notices to long-enough files that lack them, since
24184         otherwise the files aren't clearly free.  Use the same notice that
24185         getdate.texi already uses.
24186         * doc/alloca-opt.texi: Add copyright notice.
24187         * doc/alloca.texi: Likewise.
24188         * doc/ctime.texi: Likewise.
24189         * doc/functions.texi: Likewise.
24190         * doc/gcd.texi: Likewise.
24191         * doc/gnulib-tool.texi: Likewise.
24192         * doc/inet_ntoa.texi: Likewise.
24193         * doc/visibility.texi: Likewise.
24194
24195         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24196         * doc/quote.texi: Add copyright notice.
24197
24198         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24199         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24200         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24201         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24202         is now obsolete, and give a pointer to the Sun list.
24203         Add copyright notice.
24204
24205 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24206
24207         * config/srclistvars.sh: Add copyright notice.
24208
24209 2006-08-14  Eric Blake  <ebb9@byu.net>
24210
24211         Import the following change from libc:
24212
24213         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24214
24215         Upstream bug 2997.
24216         * lib/misc/error.c: Add space between program name and message if file
24217         name is missing.
24218
24219 2006-08-12  Karl Berry  <karl@gnu.org>
24220
24221         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24222         remove, these originate in gnulib now.
24223
24224 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24225
24226         * doc/Makefile (standards.info standards.html standards.dvi):
24227         Also depend on make-stds.texi.
24228
24229 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24230
24231         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24232         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24233
24234         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24235         in wchar_t.  Problem reported by Eric Blake.
24236
24237         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24238         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24239         Also, help the compiler to keep LEN in a register.
24240
24241 2006-08-11  Eric Blake  <ebb9@byu.net>
24242
24243         * users.txt: Sort.  Add tar.
24244
24245 2006-08-11  Bruno Haible  <bruno@clisp.org>
24246
24247         * users.txt: New file.
24248
24249 2006-08-11  Bruno Haible  <bruno@clisp.org>
24250
24251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24252         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24253
24254 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24255
24256         * modules/snprintf (Depends-on): Remove minmax.
24257         (Maintainer): Add self and Bruno.
24258
24259 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24262         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24263         (EOVERFLOW): Define if the system does not.
24264         Do not include "minmax.h"; it wasn't used.
24265         (snprintf): Don't assume size_t promotes to an unsigned type.
24266         Fix bug when generated string was too long for the buffer: the
24267         buffer's contents are supposed to be the initial prefix of the
24268         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24269         exceeds INT_MAX; do the check ourselves.
24270
24271         Import the following changes from libc:
24272
24273         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24274
24275         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24276         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24277         set wc to the byte which couldn't be converted.
24278         (re_string_reconstruct): Don't clear valid_raw_len before calling
24279         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24280         tip_context using re_string_context_at.
24281
24282         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24283
24284         * lib/posix/regex.h: g++ still cannot handled [restrict].
24285
24286         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24287
24288         * lib/posix/regex.h: Remove special handling for VMS.
24289
24290 2006-08-10  Jim Meyering  <jim@meyering.net>
24291
24292         * modules/same-inode: New module.
24293         * modules/dev-ino: New module.
24294         * modules/cycle-check: Depend on these modules, rather than simply
24295         including their .h files.
24296         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24297         required via m4/cycle-check.m4.
24298         * modules/same: Depend on new same-inode module, rather than
24299         including same-inode.h.
24300         * modules/chdir-safer: New file.
24301
24302         * modules/chown (Depends-on): Add stat-macros.
24303
24304 2006-08-10  Jim Meyering  <jim@meyering.net>
24305
24306         * m4/cycle-check.m4: New file.
24307         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24308         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24309
24310 2006-08-10  Eric Blake  <ebb9@byu.net>
24311
24312         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24313         in from original proposal.
24314
24315 2006-08-10  Eric Blake  <ebb9@byu.net>
24316         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24317
24318         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24319         namespace.
24320
24321 2006-08-10  Bruno Haible  <bruno@clisp.org>
24322
24323         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24324         as well.
24325
24326 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24327
24328         Sync from coreutils.
24329
24330         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24331
24332         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24333         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24334
24335 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24336
24337         * modules/restrict: Remove; no longer needed now that we assume
24338         Autoconf 2.59 or later.
24339         * MODULES.html.sh: Remove 'restrict'.
24340         * modules/argp (Depends-on): Remove 'restrict'.
24341         * modules/base64 (Depends-on): Likewise.
24342         * modules/gc (Depends-on): Likewise.
24343         * modules/getaddrinfo (Depends-on): Likewise.
24344         * modules/glob (Depends-on): Likewise.
24345         * modules/inet_ntop (Depends-on): Likewise.
24346         * modules/inet_pton (Depends-on): Likewise.
24347         * modules/memxor (Depends-on): Likewise.
24348         * modules/regex (Depends-on): Likewise.
24349         * modules/strtok_r (Depends-on): Likewise.
24350         * modules/time_r (Depends-on): Likewise.
24351
24352 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24353
24354         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24355         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24356         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24357         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24358         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24359         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24360         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24361         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24362
24363         Merge from coreutils.
24364         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24365         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24366         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24367         * m4/time_r.m4 (gl_TIME_R): Likewise.
24368
24369 2006-08-09  Karl Berry  <karl@gnu.org>
24370
24371         * config/srclist.txt: no more gettext-tools, per Bruno.
24372
24373 2006-08-08  Eric Blake  <ebb9@byu.net>
24374
24375         * modules/verror: New module.
24376         * MODULES.html.sh: Document it.
24377
24378 2006-08-08  Eric Blake  <ebb9@byu.net>
24379
24380         * lib/verror.h, lib/verror.c: New files.
24381
24382 2006-08-08  Eric Blake  <ebb9@byu.net>
24383
24384         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24385         verror_at_line output complies with GNU Coding Standards even when
24386         file is NULL.
24387
24388 2006-08-07  Bruno Haible  <bruno@clisp.org>
24389
24390         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24391         versions of AIX.
24392         Reported by Ralf Wildenhues.
24393
24394 2006-08-07  Bruno Haible  <bruno@clisp.org>
24395
24396         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24397         in an AC_DEFUN. Needed so that the autoconf snippets can use
24398         AC_REQUIRE.
24399
24400 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24401
24402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24403         Initialize pkgdata_DATA.
24404         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24405         overriding it.
24406
24407 2006-08-06  Eric Blake  <ebb9@byu.net>
24408
24409         * lib/error.h: Fold in some upstream changes from glibc.
24410         * lib/error.c: Likewise.
24411
24412 2006-08-04  Bruno Haible  <bruno@clisp.org>
24413
24414         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24415         Make the mostlyclean-local rule depend on mostlyclean-generic.
24416         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24417
24418 2006-07-31  Bruno Haible  <bruno@clisp.org>
24419
24420         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24421         <stdlib.h>, <string.h>.
24422
24423 2006-07-30  Bruno Haible  <bruno@clisp.org>
24424
24425         * modules/readlink (License): Change to LGPL.
24426
24427 2006-07-30  Bruno Haible  <bruno@clisp.org>
24428
24429         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24430         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24431         set PKGDATADIR to point to it.
24432
24433 2006-07-30  Bruno Haible  <bruno@clisp.org>
24434
24435         * modules/csharpexec (configure.ac): Comment out macro invocation.
24436         * modules/javaexec (configure.ac): Likewise.
24437         * modules/javacomp-script (configure.ac): Likewise.
24438
24439         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24440
24441 2006-07-30  Bruno Haible  <bruno@clisp.org>
24442
24443         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24444         linked-list.
24445
24446 2006-07-30  Bruno Haible  <bruno@clisp.org>
24447
24448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24449
24450 2006-07-30  Bruno Haible  <bruno@clisp.org>
24451
24452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24453         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24454         get removed.
24455
24456 2006-07-29  Bruno Haible  <bruno@clisp.org>
24457
24458         Make it possible for gnulib-tool to work with locally modified or
24459         augmented gnulib repositories.
24460         * gnulib-tool (func_usage): Document --local-dir option.
24461         (local_gnulib_dir): New variable.
24462         Handle --local-dir option.
24463         (func_lookup_file): New function.
24464         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24465         (func_get_description, func_get_filelist, func_get_description,
24466         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24467         func_get_automake_snippet, func_get_include_directive,
24468         func_get_license, func_get_maintainer): Use func_lookup_file.
24469         (func_import, func_create_testdir): Use func_lookup_file.
24470
24471 2006-07-29  Bruno Haible  <bruno@clisp.org>
24472
24473         * modules/setenv (Depends-on): Add unistd.
24474
24475 2006-07-29  Bruno Haible  <bruno@clisp.org>
24476
24477         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24478
24479 2006-07-29  Bruno Haible  <bruno@clisp.org>
24480
24481         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24482
24483 2006-07-29  Bruno Haible  <bruno@clisp.org>
24484
24485         * gnulib-tool (import, update): If there is no Makefile.am, look at
24486         aclocal.m4, instead of bailing out.
24487
24488 2006-07-29  Bruno Haible  <bruno@clisp.org>
24489
24490         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24491         Categorize the options by when they are useful.
24492
24493 2006-07-29  Bruno Haible  <bruno@clisp.org>
24494
24495         * gnulib-tool (func_usage): Document option --no-libtool.
24496         Handle option --no-libtool.
24497         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24498         for changed semantics of $libtool variable.
24499         (func_import): Likewise. If libtool is not used, show this through
24500         an option --no-libtool.
24501         (func_create_testdir): Update.
24502
24503 2006-07-29  Bruno Haible  <bruno@clisp.org>
24504
24505         * gnulib-tool (func_import): Extend error message about missing
24506         --doc-base.
24507
24508 2006-07-29  Bruno Haible  <bruno@clisp.org>
24509
24510         * gnulib-tool (func_import): Don't create the $docbase directory if
24511         there is no file to store there.
24512
24513 2006-07-29  Bruno Haible  <bruno@clisp.org>
24514
24515         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24516         relevant, look for configure.ac there, not in the current directory.
24517         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24518
24519 2006-07-29  Bruno Haible  <bruno@clisp.org>
24520
24521         * gnulib-tool (SORT): New variable.
24522         (func_usage): Undocument --assume-autoconf option.
24523         Remove --assume-autoconf option handling.
24524         (autoconf_minversion): Determine from the contents of configure.ac.
24525         (func_import): Remove autoconf_minversion handling.
24526         Suggested by Eric Blake.
24527
24528 2006-07-29  Bruno Haible  <bruno@clisp.org>
24529
24530         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24531
24532 2006-07-29  Bruno Haible  <bruno@clisp.org>
24533
24534         * config/srclist.txt (*setenv.[ch]): Remove rules.
24535
24536 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24537
24538         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24539
24540 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24541
24542         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24543         arpa/inet.h.
24544
24545 2006-07-28  Simon Josefsson  <jas@extundo.com>
24546
24547         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24548         * modules/inet_pton (Depends-on): Likewise.
24549
24550 2006-07-28  Simon Josefsson  <jas@extundo.com>
24551
24552         * m4/netinet_in_h.m4: New file.
24553
24554 2006-07-28  Simon Josefsson  <jas@extundo.com>
24555
24556         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24557         #include's.
24558
24559 2006-07-28  Simon Josefsson  <jas@extundo.com>
24560
24561         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24562         #include's.
24563
24564 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24565
24566         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24567         setgid on directories only if they set these bits.
24568         * lib/modechange.h: Remove obsolete comment about masks.
24569
24570 2006-07-28  Eric Blake  <ebb9@byu.net>
24571
24572         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24573         macro expansion.
24574
24575 2006-07-28  Bruno Haible  <bruno@clisp.org>
24576
24577         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24578
24579 2006-07-28  Bruno Haible  <bruno@clisp.org>
24580
24581         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24582
24583 2006-07-28  Bruno Haible  <bruno@clisp.org>
24584
24585         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24586         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24587         Define fallbacks.
24588         Avoids link error on FreeBSD 4.x.
24589         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24590
24591         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24592         encoding.
24593         * lib/mbswidth.c (iswcntrl): Likewise.
24594
24595 2006-07-27  Bruno Haible  <bruno@clisp.org>
24596
24597         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24598         test.
24599
24600 2006-07-27  Bruno Haible  <bruno@clisp.org>
24601
24602         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24603         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24604         defined.
24605
24606 2006-07-26  Eric Blake  <ebb9@byu.net>
24607
24608         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24609
24610 2006-07-26  Eric Blake  <ebb9@byu.net>
24611
24612         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24613         like mingw that lack mkstemp.
24614         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24615         avoid compilation warning on mingw.
24616
24617 2006-07-26  Bruno Haible  <bruno@clisp.org>
24618
24619         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24620         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24621         INT_FAST*_MIN, INTPTR_MIN.
24622
24623 2006-07-25  Bruno Haible  <bruno@clisp.org>
24624
24625         * modules/version-etc (Depends-on): Add stdarg.
24626
24627 2006-07-25  Bruno Haible  <bruno@clisp.org>
24628
24629         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24630         complex commands.
24631
24632 2006-07-25  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24635         defined in <stdarg.h> or config.h.
24636
24637 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24638
24639         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24640         (gl_STDIO_SAFER): Remove.
24641
24642 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24643
24644         * MODULES.html.sh (File stream based Input/Output):
24645         Add fopen-safer, tmpfile-safer; remove stdio-safer.
24646         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24647         * modules/fopen-safer, modules/tmpfile-safer: New files.
24648         * modules/stdio-safer: Remove.
24649
24650 2006-07-24  Bruno Haible  <bruno@clisp.org>
24651
24652         * modules/tmpdir: New file.
24653         * MODULES.html.sh (File system functions): Add it.
24654
24655 2006-07-24  Bruno Haible  <bruno@clisp.org>
24656
24657         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24658         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24659
24660 2006-07-24  Bruno Haible  <bruno@clisp.org>
24661
24662         * modules/clean-temp: New file.
24663
24664 2006-07-24  Bruno Haible  <bruno@clisp.org>
24665
24666         * m4/tmpdir.m4: New file, from GNU gettext.
24667
24668 2006-07-24  Bruno Haible  <bruno@clisp.org>
24669
24670         * lib/tmpdir.h: New file, from GNU gettext.
24671         * lib/tmpdir.c: New file, from GNU gettext.
24672
24673 2006-07-24  Bruno Haible  <bruno@clisp.org>
24674
24675         * lib/clean-temp.h: New file, from GNU gettext.
24676         * lib/clean-temp.c: New file, from GNU gettext.
24677
24678 2006-07-23  Eric Blake  <ebb9@byu.net>
24679
24680         * modules/stdio-safer (Files): Add tmpfile-safer.c.
24681         (Depends-on): Add binary-io.
24682
24683 2006-07-23  Eric Blake  <ebb9@byu.net>
24684
24685         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24686
24687 2006-07-23  Eric Blake  <ebb9@byu.net>
24688
24689         * lib/tmpfile-safer.c: New file.
24690         * lib/stdio-safer.h (fopen_safer): Add prototype.
24691         * lib/stdio--.h (tmpfile): Make safer.
24692
24693 2006-07-23  Bruno Haible  <bruno@clisp.org>
24694
24695         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24696         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24697         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24698         gl_linked_remove_at): Use it.
24699
24700 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24701         and Simon Josefsson <jas@extundo.com>
24702
24703         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24704
24705         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24706
24707 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * modules/close-stream: New file.
24710         * modules/closeout (Description): Make it clear that it exits
24711         with a diagnostic on error.
24712         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24713         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24714
24715 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24716
24717         * m4/close-stream.m4: New file.
24718
24719 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24720
24721         * lib/close-stream.c, lib/close-stream.h: New files.
24722
24723 2006-07-22  Bruno Haible  <bruno@clisp.org>
24724
24725         Merge from GNU gettext 0.15.
24726
24727         2006-05-01  Bruno Haible  <bruno@clisp.org>
24728
24729                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24730
24731         2006-07-22  Bruno Haible  <bruno@clisp.org>
24732
24733                 * modules/javaversion: New file.
24734                 * MODULES.html.sh (Java): Add javaversion.
24735
24736         2006-03-12  Bruno Haible  <bruno@clisp.org>
24737
24738                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24739
24740         2005-12-04  Bruno Haible  <bruno@clisp.org>
24741
24742                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24743                 (untested).
24744
24745         2006-06-21  Bruno Haible  <bruno@clisp.org>
24746
24747                 Avoid warnings from recent versions of mcs.
24748                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24749                 -o, -L, -r any more. Use options documented since mcs-1.0
24750                 instead. Similarly for -g.
24751
24752         2005-12-04  Bruno Haible  <bruno@clisp.org>
24753
24754                 * build-aux/csharpcomp.sh.in: Suffix for resources is
24755                 .resources, not .resource.
24756
24757         2005-07-09  Bruno Haible  <bruno@clisp.org>
24758
24759                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24760                 add a .dll suffix.
24761                 Reported by Mark Junker <mjscod@gmx.de>.
24762
24763         2006-07-22  Bruno Haible  <bruno@clisp.org>
24764
24765                 * modules/gettext: Upgrade to gettext-0.15.
24766                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24767                 m4/visibility.m4.
24768                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24769
24770 2006-07-22  Bruno Haible  <bruno@clisp.org>
24771
24772         Merge from GNU gettext 0.15.
24773
24774         2006-03-25  Bruno Haible  <bruno@clisp.org>
24775
24776                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24777
24778         2006-07-21  Bruno Haible  <bruno@clisp.org>
24779
24780                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24781                 "1.1".
24782
24783         2006-05-09  Bruno Haible  <bruno@clisp.org>
24784
24785                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24786                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24787                 for the conftestver execution.
24788
24789         2006-05-01  Bruno Haible  <bruno@clisp.org>
24790
24791                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24792                 optional target-version argument. Verify that the compiler
24793                 groks source of the specified source-version, or add -source
24794                 option as necessary. Verify that the compiler produces
24795                 bytecode in the specified target-version, or add -target and
24796                 -source options as necessary. Make the result of the test
24797                 available as variable CONF_JAVAC. Also log error output in
24798                 config.log.
24799
24800         2006-03-11  Bruno Haible  <bruno@clisp.org>
24801
24802                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24803
24804         2006-05-09  Bruno Haible  <bruno@clisp.org>
24805
24806                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24807                 CLASSPATH_SEPARATOR to a semicolon.
24808
24809         2006-03-12  Bruno Haible  <bruno@clisp.org>
24810
24811                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24812                 available as variable CONF_JAVA, for subsequent autoconf
24813                 tests. Also log error output in config.log.
24814
24815         2006-07-19  Bruno Haible  <bruno@clisp.org>
24816
24817                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24818                 that getline works on glibc2 systems. Needed to avoid trouble
24819                 in relocatable.c.
24820                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24821
24822         2005-12-04  Bruno Haible  <bruno@clisp.org>
24823
24824                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24825                 launcher (untested).
24826
24827         2005-12-04  Bruno Haible  <bruno@clisp.org>
24828
24829                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24830
24831         2006-07-22  Bruno Haible  <bruno@clisp.org>
24832
24833                 * gettext.m4: Update from GNU gettext-0.15.
24834                 * nls.m4: Likewise.
24835                 * po.m4: Likewise.
24836                 * inttypes-pri.m4: Likewise.
24837                 * inttypes-h.m4: Renamed from inttypes.m4.
24838                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24839
24840 2006-07-22  Bruno Haible  <bruno@clisp.org>
24841
24842         Merge from GNU gettext 0.15.
24843
24844         2005-07-05  Bruno Haible  <bruno@clisp.org>
24845
24846                 * printf-args.c (printf_fetchargs): Work around broken
24847                 definition of wint_t on mingw.
24848
24849         2005-02-12  Bruno Haible  <bruno@clisp.org>
24850
24851                 * xallocsa.h: Add extern "C" for C++.
24852
24853         2006-05-17  Bruno Haible  <bruno@clisp.org>
24854
24855                 Cygwin portability.
24856                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24857
24858         2006-04-30  Bruno Haible  <bruno@clisp.org>
24859
24860                 * progreloc.c: Include <mach-o/dyld.h> if available.
24861                 (find_executable): Use _NSGetExecutablePath when possible.
24862
24863         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
24864
24865                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24866                 function.
24867
24868         2005-12-29  Bruno Haible  <bruno@clisp.org>
24869
24870                 * progreloc.c (set_program_name_and_installdir): Fix
24871                 compilation error.
24872
24873         2005-12-04  Bruno Haible  <bruno@clisp.org>
24874
24875                 Cygwin portability.
24876                 * progreloc.c: Include <windows.h> also on Cygwin.
24877                 (find_executable): Add support for Cygwin.
24878                 (set_program_name_and_installdir): Handle also platforms with
24879                 nonempty EXEEXT.
24880
24881         2006-07-11  Bruno Haible  <bruno@clisp.org>
24882
24883                 * javacomp.c: Fix a comment.
24884                 Reported by Jim Meyering.
24885
24886         2006-04-30  Bruno Haible  <bruno@clisp.org>
24887
24888                 * javacomp.h (compile_java_class): Add source_version,
24889                 target_version arguments.
24890                 * javacomp.c: Rewritten to choose only a compiler that
24891                 respects the specified source_version and target_version.
24892
24893         2006-06-27  Bruno Haible  <bruno@clisp.org>
24894
24895                 Assume correct S_ISDIR macro.
24896                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24897
24898         2006-07-22  Bruno Haible  <bruno@clisp.org>
24899
24900                 * javaversion.h: New file, from GNU gettext.
24901                 * javaversion.c: New file, from GNU gettext.
24902                 * javaversion.java: New file, from GNU gettext.
24903                 * javaversion.class: New file, from GNU gettext.
24904
24905         2006-05-17  Bruno Haible  <bruno@clisp.org>
24906
24907                 Cygwin portability.
24908                 * javaexec.c (execute_java_class): Test for jview program
24909                 also on Cygwin.
24910
24911         2006-04-09  Bruno Haible  <bruno@clisp.org>
24912
24913                 * fatal-signal.c: Don't include string.h.
24914                 (at_fatal_signal): Use a copying loop instead of memcpy.
24915
24916         2005-12-04  Bruno Haible  <bruno@clisp.org>
24917
24918                 * csharpexec.c: Add support for 'clix' launcher (untested).
24919                 (execute_csharp_using_sscli): New function.
24920                 (execute_csharp_program): Call it.
24921
24922         2006-06-21  Bruno Haible  <bruno@clisp.org>
24923
24924                 Avoid warnings from recent versions of mcs.
24925                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24926                 -o, -L, -r any more. Use options documented since mcs-1.0
24927                 instead. Similarly for -g.
24928
24929         2005-07-09  Bruno Haible  <bruno@clisp.org>
24930
24931                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24932                 add a .dll suffix.
24933                 Reported by Mark Junker <mjscod@gmx.de>.
24934
24935         2006-06-17  Bruno Haible  <bruno@clisp.org>
24936
24937                 * config.charset: Update for NetBSD 3.0.
24938
24939         2006-05-17  Bruno Haible  <bruno@clisp.org>
24940
24941                 Cygwin portability.
24942                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24943
24944         2006-05-16  Bruno Haible  <bruno@clisp.org>
24945
24946                 * localcharset.c [CYGWIN]: Include <windows.h>.
24947                 (get_charset_aliases): For Cygwin, return the same CPxxx
24948                 aliases list as under WIN32.
24949                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24950                 the environment variables. Fall back to GetACP().
24951
24952         2006-04-05  Bruno Haible  <bruno@clisp.org>
24953
24954                 * config.charset: Update Juan Manuel Guerrero's address.
24955
24956         2005-02-12  Bruno Haible  <bruno@clisp.org>
24957
24958                 * allocsa.h: Add extern "C" for C++.
24959
24960         2005-02-10  Bruno Haible  <bruno@clisp.org>
24961
24962                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24963                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24964
24965         2006-07-22  Bruno Haible  <bruno@clisp.org>
24966
24967                 * gettext.h: Update to GNU gettext-0.15.
24968
24969 2006-07-22  Bruno Haible  <bruno@clisp.org>
24970
24971         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24972         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24973         lib-prefix.m4, longdouble.m4, ssize_t.m4.
24974
24975 2006-07-21  Eric Blake  <ebb9@byu.net>
24976
24977         * modules/stdlib-safer: New file.
24978         * MODULES.html.sh (File stream based Input/Output): Add
24979         stdlib-safer.
24980
24981 2006-07-21  Eric Blake  <ebb9@byu.net>
24982
24983         * lib/stdlib-safer.h: New file from coreutils, required by
24984         stdlib--.h.
24985
24986 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
24987
24988         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24989
24990 2006-07-20  Bruno Haible  <bruno@clisp.org>
24991
24992         * gnulib-tool: Recognize new option --assume-autoconf.
24993         (autoconf_minversion): New variable.
24994         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24995
24996 2006-07-20  Bruno Haible  <bruno@clisp.org>
24997
24998         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24999
25000 2006-07-19  Derek R. Price  <derek@ximbiot.com>
25001
25002         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25003         Reindent and repaginate.
25004
25005 2006-07-19  Derek Price  <derek@ximbiot.com>
25006
25007         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
25008         Correct grammar.
25009
25010 2006-07-17  Bruno Haible  <bruno@clisp.org>
25011
25012         * modules/list: New file.
25013         * modules/array-list: New file.
25014         * modules/carray-list, modules/carray-list-tests: New files.
25015         * modules/linked-list, modules/linked-list-tests: New files.
25016         * modules/avltree-list, modules/avltree-list-tests: New files.
25017         * modules/rbtree-list, modules/rbtree-list-tests: New files.
25018         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25019         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25020         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25021         * modules/oset: New file.
25022         * modules/array-oset: New file.
25023         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25024         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25025         * tests/test-carray_list.c: New file.
25026         * tests/test-linked_list.c: New file.
25027         * tests/test-avltree_list.c: New file.
25028         * tests/test-rbtree_list.c: New file.
25029         * tests/test-linkedhash_list.c: New file.
25030         * tests/test-avltreehash_list.c: New file.
25031         * tests/test-rbtreehash_list.c: New file.
25032         * tests/test-avltree_oset.c: New file.
25033         * tests/test-rbtree_oset.c: New file.
25034         * MODULES.html.sh (Container data structures): New section.
25035
25036 2006-07-17  Bruno Haible  <bruno@clisp.org>
25037
25038         * m4/gl_list.m4: New file.
25039
25040 2006-07-17  Bruno Haible  <bruno@clisp.org>
25041
25042         * lib/gl_list.h: New file.
25043         * lib/gl_list.c: New file.
25044         * lib/gl_array_list.h: New file.
25045         * lib/gl_array_list.c: New file.
25046         * lib/gl_carray_list.h: New file.
25047         * lib/gl_carray_list.c: New file.
25048         * lib/gl_linked_list.h: New file.
25049         * lib/gl_linked_list.c: New file.
25050         * lib/gl_anylinked_list1.h: New file.
25051         * lib/gl_anylinked_list2.h: New file.
25052         * lib/gl_avltree_list.h: New file.
25053         * lib/gl_avltree_list.c: New file.
25054         * lib/gl_anyavltree_list1.h: New file.
25055         * lib/gl_anyavltree_list2.h: New file.
25056         * lib/gl_rbtree_list.h: New file.
25057         * lib/gl_rbtree_list.c: New file.
25058         * lib/gl_anyrbtree_list1.h: New file.
25059         * lib/gl_anyrbtree_list2.h: New file.
25060         * lib/gl_anytree_list1.h: New file.
25061         * lib/gl_anytree_list2.h: New file.
25062         * lib/gl_linkedhash_list.h: New file.
25063         * lib/gl_linkedhash_list.c: New file.
25064         * lib/gl_anyhash_list1.h: New file.
25065         * lib/gl_anyhash_list2.h: New file.
25066         * lib/gl_avltreehash_list.h: New file.
25067         * lib/gl_avltreehash_list.c: New file.
25068         * lib/gl_rbtreehash_list.h: New file.
25069         * lib/gl_rbtreehash_list.c: New file.
25070         * lib/gl_anytreehash_list1.h: New file.
25071         * lib/gl_anytreehash_list2.h: New file.
25072
25073         * lib/gl_oset.h: New file.
25074         * lib/gl_oset.c: New file.
25075         * lib/gl_array_oset.h: New file.
25076         * lib/gl_array_oset.c: New file.
25077         * lib/gl_avltree_oset.h: New file.
25078         * lib/gl_avltree_oset.c: New file.
25079         * lib/gl_rbtree_oset.h: New file.
25080         * lib/gl_rbtree_oset.c: New file.
25081         * lib/gl_anytree_oset.h: New file.
25082
25083 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25084
25085         * m4/mkancesdirs.m4: New file.
25086         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25087         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25088         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25089         it.
25090
25091 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25092
25093         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25094         * lib/mkancesdirs.h: New files.
25095         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25096         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25097         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
25098         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25099         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
25100         callers changed.  Revamp internals significantly, by not
25101         attempting to create directories that are temporarily more
25102         permissive than the final results.  Do not attempt to use
25103         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25104         This removes some race conditions, fixes some bugs, and simplifies
25105         things.  Use new dirchownmod function to do owner and mode changes.
25106         * lib/mkdir-p.h: Likewise.
25107         * lib/modechange.c (octal_to_mode): New function.
25108         (struct mode_change): New member mentioned.
25109         (make_node_op_equals): New arg mentioned.  All callers changed.
25110         (mode_compile): Keep track of which mode bits the user has explicitly
25111         mentioned.
25112         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25113         New arg PMODE_BITS, to keep track of which mode bits the user
25114         mentioned; it treats S_ISUID and S_ISGID speciall.
25115         All callers changed.
25116         * lib/modechange.h: Likewise.
25117
25118 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         * MODULES.html.sh: Add mkancestors.
25121         * modules/mkancesdirs: New module.
25122         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25123         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25124         The chdir-safer and afs files are now orphans; I'll remove them
25125         unless someone speaks up.
25126         Add lib/dirchownmod.c, lib/dirchownmod.h.
25127         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25128         Add lchown, mkancesdirs.
25129         (Maintainer): Add self.
25130
25131 2006-07-15  Karl Berry  <karl@gnu.org>
25132
25133         * gnulib-tool: help message wording/arrangement.
25134
25135 2006-07-14  Simon Josefsson  <jas@extundo.com>
25136
25137         * doc/gnulib.texi (Libtool and Windows): New section.
25138
25139 2006-07-12  Simon Josefsson  <jas@extundo.com>
25140
25141         * modules/gendocs (License): Fix license, approved by Karl.
25142
25143 2006-07-12  Eric Blake  <ebb9@byu.net>
25144
25145         * MODULES.html.sh: Add gendocs.
25146
25147 2006-07-11  Eric Blake  <ebb9@byu.net>
25148
25149         * modules/fdl: New module, to install doc/fdl.texi.
25150         * MODULES.html.sh: Add new section for documentation modules.
25151         * gnulib-tool: Avoid space-tab.
25152         (--doc-base): New option, to manage files from doc.
25153
25154 2006-07-11  Eric Blake  <ebb9@byu.net>
25155
25156         * m4/absolute-header.m4: Fix comments to match recent change.
25157
25158 2006-07-11  Eric Blake  <ebb9@byu.net>
25159
25160         * gnulib-tool: List --doc-base before --tests-base.
25161
25162 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25163
25164         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25165
25166 2006-07-11  Bruno Haible  <bruno@clisp.org>
25167
25168         * README: Mention where to put documentation.
25169
25170 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25171
25172         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25173
25174 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25175
25176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25177         to stdint.m4.
25178
25179 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25182         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25183         "no/such/file/stdint.h" when there is no such file, so that
25184         the resulting C code can be parsed by dodgy compilers.
25185         Problems reported by Bob Proulx.
25186
25187 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25188
25189         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25190         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25191         macros into the GNU _D_EXACT_NAMLEN.
25192         * lib/savedir.c:  Likewise.
25193         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25194
25195 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25196         and Paul Eggert  <eggert@cs.ucla.edu>
25197
25198         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25199         * m4/savedir.m4:
25200         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25201         macros into the GNU _D_EXACT_NAMLEN.
25202
25203 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25204
25205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25206         around the absolute name, to work around a problem with the HP-UX
25207         11.23 native C compiler, reported by Bob Proulx.
25208
25209 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25210
25211         * doc/maintain.texi, make-stds.texi: Sync from
25212         <http://savannah.gnu.org/projects/gnustandards>.
25213
25214 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25215
25216         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25217
25218 2006-07-09  Jim Meyering  <jim@meyering.net>
25219
25220         * m4/glob.m4: Remove a doubled word in a comment.
25221
25222 2006-07-09  Jim Meyering  <jim@meyering.net>
25223
25224         * lib/argp-pv.c: Remove a doubled word in a comment.
25225         * lib/check-version.c (check_version): Likewise.
25226         * lib/javacomp.c (compile_java_class): Likewise.
25227
25228 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25229
25230         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25231         for the benefit of people using Autoconf 2.60.  If you want to
25232         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25233         (or m4/onceonly.m4, if pre-2.57) manually.
25234
25235 2006-07-08  Jim Meyering  <jim@meyering.net>
25236
25237         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25238         comment.
25239         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25240         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25241         comment.
25242
25243 2006-07-08  Jim Meyering  <jim@meyering.net>
25244
25245         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25246
25247 2006-07-07  Simon Josefsson  <jas@extundo.com>
25248
25249         * tests/test-crc.c: Change expected crc value, the test vector
25250         were probably computed using the old broken crc.c?
25251
25252 2006-07-06  Simon Josefsson  <jas@extundo.com>
25253
25254         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25255         now the canonical place for the M4 file).
25256
25257         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25258         from the sys_socket dependency now.
25259
25260         * modules/inet_pton (Files): Ditto.
25261
25262         * modules/inet_ntop (Files): Ditto.
25263
25264 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25265
25266         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25267         not gl_PREREQ_GETUSERSHELL.
25268
25269 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25270
25271         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25272         with only one argument, for Autoconf 2.60.
25273         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25274         expand to nothing, so add a shell command to avoid syntax error.
25275         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25276
25277 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25278
25279         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25280
25281 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25282
25283         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25284         no longer needed.  Check for isblank decl.
25285         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25286         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25287         of existence.
25288
25289 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25290
25291         * lib/getloadavg.c: Use __VMS, not VMS.
25292         * lib/getopt.c: Likewise.
25293         * lib/getpagesize.h: Likewise.
25294         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25295         and probably does not work.
25296
25297 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25298
25299         * lib/.cppi-disable: Add wcwidth.
25300         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25301         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25302         (ISGRAPH): Remove.  All uses changed to isgraph.
25303         (FOLD) [!defined _LIBC]: Remove special case.
25304         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25305         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25306         HAVE_ISBLANK.
25307         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25308         case.
25309
25310 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25311
25312         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25313         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25314         brackets.  Other minor changes to suppress some compiler
25315         warnings.
25316
25317 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25318         and Paul Eggert  <eggert@cs.ucla.edu>
25319
25320         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25321         of invoking obsolescent AC_HEADER_DIRENT macro.
25322         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25323         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25326         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25327         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25328         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25329         * m4/readdir.m4: Remove; no longer needed.
25330
25331 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25332         and Paul Eggert  <eggert@cs.ucla.edu>
25333
25334         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25335         Don't worry about this obsolete case any more.
25336         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25337         directories.
25338         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25339         worry about this obsolete case any more.
25340         * lib/fts.c: Likewise.
25341         * lib/getcwd.c: Likewise.
25342         * lib/glob.h: Likewise.
25343         * lib/savedir.c: Likewise.
25344
25345 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25346
25347         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25348         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25349         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25350         needed.
25351         All uses removed.
25352         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25353         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25354         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25355         needed.
25356         * m4/getdate.m4 (gl_GETDATE): Likewise.
25357         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25358         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25359         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25360         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25361         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25362         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25363         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25364         needed.
25365
25366 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25367
25368         * lib/memcasecmp.c: Include <limits.h>.
25369         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25370         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25371         Don't assume isdigit succeeds only on '0' through '9'.
25372
25373 2006-07-05  Eric Blake  <ebb9@byu.net>
25374
25375         * modules/getaddrinfo (Depends-on): Add snprintf.
25376
25377 2006-07-05  Eric Blake  <ebb9@byu.net>
25378
25379         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25380         to avoid 'header present but could not be compiled' on cygwin.
25381
25382 2006-07-05  Eric Blake  <ebb9@byu.net>
25383
25384         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25385         missing from netdb.h.
25386         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25387
25388 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25389
25390         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25391         no longer needed.
25392         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25393         * m4/getdate.m4 (gl_GETDATE): Likewise.
25394         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25395         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25396         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25397         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25398         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25399
25400 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25401
25402         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25403         All uses of is_space replaced by isspace.
25404         * lib/exit.h: Don't talk about STDC_HEADERS.
25405         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25406         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25407         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25408         replaced by isprint etc.
25409         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25410         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25411         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25412         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25413         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25414         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25415
25416 2006-07-05  Bruno Haible  <bruno@clisp.org>
25417
25418         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25419         the function exists, before testing against AIX.
25420         Reported by Martin Lambers <marlam@marlam.de>.
25421
25422 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25423
25424         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25425         From Mark D. Baushke.
25426
25427 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25430         to the absolute name, not just one, to bypass Sun C 5.8's
25431         "warning: #include of /usr/include/... may be non-portable".
25432
25433 2006-07-04  Eric Blake  <ebb9@byu.net>
25434
25435         * modules/dirname-tests: New test module.
25436         * tests/test-dirname.c: New file, replacing dirname.c
25437         TEST_DIRNAME section that was recently deleted.
25438
25439 2006-07-04  Bruno Haible  <bruno@clisp.org>
25440
25441         Assume ANSI C header files and <ctype.h> functions.
25442         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25443         (mbsnwidth): Use isprint, iscntrl instead.
25444
25445 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25446
25447         Merge from coreutils.
25448         * MODULES.html.sh: Add xstrtold.
25449         * modules/xstrtold: New file.
25450         * modules/cycle-check (Files): Add lib/same-inode.h.
25451         * modules/dirname (Files): Add m4/double-slash-root.m4.
25452         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25453         * modules/mkdir-p (Files): Add lib/same-inode.h.
25454         * modules/same (Files): Add lib/same-inode.h.
25455
25456 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25457
25458         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25459         This is to keep the terminology clean; POSIX talks about
25460         "absolute pathnames", not "full pathnames", but the GNU
25461         Coding Standards say to use "path" for something else;
25462         so use "absolute" to keep both sides happy.
25463         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25464         Set gl_absolute_header, not gl_full_header_path.
25465         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25466         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25467         All uses changed.
25468
25469         Merge from coreutils.
25470
25471         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25472
25473         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25474         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25475         want to require the building of c-strtod.o.
25476         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25477         needs -lm directly.
25478         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25479
25480         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25481
25482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25483         --as-needed option if available.  Problem reported by Albert Chin in
25484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25485         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25486         cc merely issues a bunch of annoying warnings for --as-needed
25487         (this problem was reported by Bob Proulx).  Also, try linking with
25488         -lm to detect a bug in binutils 2.16 (this problem was reported
25489         by Ralf Wildenhues).
25490
25491         2006-06-18  Jim Meyering  <jim@meyering.net>
25492
25493         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25494         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25495         macro.
25496         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25497         also check for glibc-2.4's abort-inducing bug.
25498
25499         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25500         Low-probability clean-up should be to use rmdir to get rid of
25501         the just-created directory, not unlink.
25502
25503         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25504         configure fail, and request a bug report to inform us about it.
25505         Add a comment that, barring reports to the contrary, in 2007 we'll
25506         assume ftruncate is universally available.
25507
25508         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25509
25510         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25511
25512         2006-03-12  Jim Meyering  <jim@meyering.net>
25513
25514         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25515         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25516         * m4/same.m4 (gl_SAME): Likewise.
25517         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25518
25519         2006-03-11  Eric Blake  <ebb9@byu.net>
25520
25521         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25522         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25523         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25524         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25525
25526 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25527
25528         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25529         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25530         reported by Mark D. Baushke, one in
25531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25532
25533         Merge from coreutils.
25534
25535         * lib/.cppi-disable: Add stdint_.h.
25536         * lib/.cvsignore: Add stdint.h.
25537
25538         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25539
25540         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25541         both double and long double versions.
25542         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25543         * lib/xstrtold.c: New file.
25544         * lib/xstrtod.h (xstrtold): New decl.
25545
25546         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25547
25548         * lib/filemode.c (setst): Remove.
25549         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25550         (arguably) clearer, and the generated code is a bit smaller on my
25551         Debian GNU/Linux stable x86 host.
25552
25553         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25554
25555         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25556         Assume that filemode.h includes sys/types.h and sys/stat.h.
25557         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25558         (ftypelet): Reorder to put common cases first, for efficiency.
25559         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25560         to do 'M'.
25561         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25562         of 10, for compatibility with FreeBSD.  All callers changed.
25563         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25564         types that can't be deduced solely from st_mode.  First arg is now a
25565         const pointer.
25566         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25567         (strmode): Renamed from mode_string.
25568         (filemodestring): New decl.
25569         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25570         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25571         needed.
25572         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25573
25574         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25575
25576         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25577         fsusage.h now does that.  Include fsusage.h first, to test interface.
25578         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25579         at most one method (the old code could have generated decls that
25580         didn't conform to C89, not that this was ever exercised).
25581         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25582
25583         2006-03-19  Jim Meyering  <jim@meyering.net>
25584
25585         Work even in a chroot where d_ino values for entries in "/"
25586         don't match the stat.st_ino values for the same names.
25587         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25588         number, iterate through all entries again, using lstat instead.
25589         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25590         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25591
25592         * lib/getcwd.c (__getcwd): Clarify a comment.
25593         Use memcpy in place of a call to strcpy.
25594
25595         2006-03-12  Jim Meyering  <jim@meyering.net>
25596
25597         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25598         matches that of the current directory (which we're about to chdir ".."
25599         out of), then save the dev-ino of the parent, instead.
25600
25601         * lib/same-inode.h (SAME_INODE): New file/macro.
25602         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25603         Include "same-inode.h", instead.
25604         * lib/same.c: Likewise.
25605         * lib/cycle-check.h: Include "same-inode.h".
25606         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25607         * lib/cycle-check.c (SAME_INODE): Remove definition.
25608         * lib/root-dev-ino.h: Include "same-inode.h".
25609
25610         2006-03-11  Eric Blake  <ebb9@byu.net>
25611
25612         * lib/same.c (same_name): s/base_name/last_component/
25613         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25614         * lib/filenamecat.c (file_name_concat): Likewise.
25615
25616         2006-03-11  Eric Blake  <ebb9@byu.net>,
25617                     Paul Eggert  <eggert@cs.ucla.edu>
25618
25619         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25620         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25621         drive prefix.
25622         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25623         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25624         (last_component): New method.
25625         * lib/dirname.c (dir_len): Determine when drive letters need a
25626         subsequent slash.  Preserve // when it is special.
25627         (dir_name): Don't append dot when drive letter is absolute.
25628         [TEST_DIRNAME]: Move into a full-blown gnulib test.
25629         * lib/basename.c (base_name): New semantics - malloc the result.
25630         Preserve // when it is special.  Preserve relative files that look
25631         like drive letters.
25632         (base_len): Preserve // when it is special.
25633         (last_component): New method, similar to old base_name semantics.
25634         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25635         base_name.  Strip redundant slashes from ///.
25636
25637 2006-07-03  Jim Meyering  <jim@meyering.net>
25638
25639         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25640         macro is used before the first cycle_check call.
25641
25642 2006-07-03  Eric Blake  <ebb9@byu.net>
25643
25644         * modules/dirname (Depends-on): Add xstrndup.
25645
25646 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25647
25648         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25649         test cases, so that config.log is a bit easier to follow.
25650
25651 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25652
25653         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25654         both are 64 bits, since this seems to be the tradition, and this
25655         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25656         we ever run into a host that prefers long long to long in this
25657         case, we'll need another configure-time test.  Problem reported by
25658         Jim Meyering.
25659
25660 2006-07-02  Eric Blake  <ebb9@byu.net>
25661
25662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25663
25664 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25665
25666         * modules/inttypes (Depends-on): No longer depends on stdint.
25667         * modules/stdint (Description): Say more about assumptions.
25668         Say that the fast types might differ.  Say macros are used.
25669         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
25670         (Makefile.am): Revise list of substituted symbols to match
25671         new stdint.m4.
25672         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25673         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25674         * tests/test-stdint.c (verify_same_types)
25675         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25676         the code conforms to C99/C89.
25677         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25678         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25679
25680 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25681
25682         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25683         but fix a bug, by requiring at least 64 bits.
25684         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25685         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25686         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
25687         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25688
25689         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25690         changes.  Make 2.59 a prerequisite.  Check and substitute for
25691         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25692         inttypes.h.  Do not use special include files; just use the
25693         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25694         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25695         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25696         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25697         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25698         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25699         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25700         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25701         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25702         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25703         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25704         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25705         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25706         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25707         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25708         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25709         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25710         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25711         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25712         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25713         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25714         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25715         not check for things that C99 does not require, e.g., int8_t.  If
25716         a test isn't needed unless <stdint.h> isn't working, and is
25717         unlikely to be needed for any other reason, then don't do it
25718         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25719         size_t, since we assume C89 freestanding at least.  Do not check
25720         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25721         the right thing even if the types are not defined.  Instead use:
25722         (gl_STDINT_TYPE_PROPERTIES): New macro.
25723         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25724         testing whether <sys/types.h> clashes, as Autoconf does this for
25725         us now.  All uses removed.
25726         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25727         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25728         (gl_CHECK_TYPE_SAME):
25729         Remove; no longer needed.
25730         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25731         exists, since we'll return 0 anyway in that case.
25732         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25733
25734 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25735
25736         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25737         possible collision with system files.
25738         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25739         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25740         WCHAR_MIN and WCHAR_MAX in this case.
25741         (<stddef.h>): Do not include; no longer needed.
25742         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25743         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25744         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25745         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25746         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25747         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25748         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25749         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25750         !defined(__c99))]: Include in this case too, since it's harmless
25751         now.
25752         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25753         dangerous to do so.
25754         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25755         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25756         (_STDINT_MIN, _STDINT_MAX): New macros.
25757         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25758         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25759         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25760         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25761         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25762         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25763         macros, not typedefs; this simplifies things quite a bit.
25764         Use long int for all types narrower than int64_t.
25765         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25766         Define in terms of long long int or int64_t or long int,
25767         not int64_t or int32_t.  This saves some compile-time testing.
25768         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25769         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25770         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25771         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25772         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25773         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25774         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25775         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25776         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25777         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25778         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25779         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25780         undef any previous version and define our own version, for
25781         simplicity and consistency with the new macros for types.
25782         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25783         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25784         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25785         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
25786         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25787         @WINT_T_SUFFIX@ to keep things simple here.
25788         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25789         Simplify by assuming typical 8/16/32/64 host, since we're
25790         already doing that elsewhere anyway.
25791         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25792         and assume long long int is 64 bits if available.  This
25793         speeds up 'configure'.
25794
25795 2006-07-01  Eric Blake  <ebb9@byu.net>
25796
25797         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25798         Reported by Andreas Buening.
25799
25800 2006-07-01  Eric Blake  <ebb9@byu.net>
25801
25802         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25803
25804 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25805
25806         * lib/getaddrinfo.c: fixed typo
25807
25808 2006-06-29  Jim Meyering  <jim@meyering.net>
25809
25810         * modules/strftime (Maintainer): Add my name, since with the
25811         FPRINTFTIME changes strftime.c has forked from glibc.
25812
25813 2006-06-29  Eric Blake  <ebb9@byu.net>
25814
25815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25816
25817 2006-06-29  Eric Blake  <ebb9@byu.net>
25818
25819         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25820
25821 2006-06-29  Eric Blake  <ebb9@byu.net>
25822
25823         * lib/stat_.h: New file.
25824
25825 2006-06-29  Eric Blake  <ebb9@byu.net>
25826
25827         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25828         unused static function.
25829
25830 2006-06-29  Eric Blake  <ebb9@byu.net>
25831
25832         * doc/functions.texi (Function Portability): Document missing lstat
25833         on mingw.
25834
25835 2006-06-29  Eric Blake  <ebb9@byu.net>
25836
25837         * MODULES.html.sh: Add sys_stat.
25838         * modules/sys_stat: New module.
25839         * modules/mkstemp (Depends-on): Add sys_stat.
25840
25841 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25842
25843         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25844
25845 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25846
25847         * m4/c-bs-a.m4: Removed.
25848
25849 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25850
25851         * lib/strftime.c: Assume strftime() exists.
25852
25853 2006-06-29  Derek Price  <derek@ximbiot.com>
25854
25855         * modules/c-bs-a: Removed - \a is C89.
25856         * MODULES.html.sh: Remove c-bs-a.
25857
25858 2006-06-29  Bruno Haible  <bruno@clisp.org>
25859
25860         * modules/wcwidth (License): Change to LGPL.
25861
25862 2006-06-28  Simon Josefsson  <jas@extundo.com>
25863
25864         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
25865         on _WIN32.
25866
25867         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25868         getnameinfo.
25869
25870 2006-06-28  Simon Josefsson  <jas@extundo.com>
25871
25872         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25873
25874 2006-06-28  Simon Josefsson  <jas@extundo.com>
25875
25876         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25877         functions there.  It will succeed on Windows XP, but on Windows
25878         2000 and (presumably) earlier, it will fail, and use the internal
25879         re-implementation.
25880         (use_win32_p): New function.
25881         (getaddrinfo): Use strtoul on servname, to support numeric ports.
25882         Support AI_NUMERICSERV to disable getservbyname.
25883         (getnameinfo): New function, only supports
25884         NI_NUMERICHOST|NI_NUMERICSERV for now.
25885
25886         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25887         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
25888         getnameinfo.
25889
25890 2006-06-28  Eric Blake  <ebb9@byu.net>
25891
25892         * modules/wcwidth: New file.
25893         * modules/mbchar (Depends-on): Add wcwidth.
25894         * modules/mbswidth (Depends-on): Add wcwidth.
25895         * MODULES.html.sh: Add wcwidth.
25896
25897 2006-06-28  Eric Blake  <ebb9@byu.net>
25898
25899         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25901
25902 2006-06-28  Eric Blake  <ebb9@byu.net>
25903
25904         * lib/xvasprintf.h: Fix comments.
25905
25906 2006-06-28  Eric Blake  <ebb9@byu.net>
25907
25908         * lib/mbchar.h (wcwidth): Include wcwidth.h.
25909         * lib/mbswidth.c (wcwidth): Move from here...
25910         * lib/wcwidth.h: ...to this new file.
25911
25912 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25913
25914         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25915
25916         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25917         it's obsolete.
25918         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25919
25920 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25921
25922         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
25923         Autoconf 2.60 says this stuff was obsolete.
25924
25925 2006-06-28  Bruno Haible  <bruno@clisp.org>
25926
25927         * modules/wcwidth (Files): Add m4/wchar_t.m4.
25928
25929 2006-06-28  Bruno Haible  <bruno@clisp.org>
25930
25931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25932         gt_TYPE_WCHAR_T.
25933
25934 2006-06-28  Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25937         declaration for wcwidth.
25938         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25939
25940 2006-06-28  Bruno Haible  <bruno@clisp.org>
25941
25942         * lib/mkdtemp.c [MINGW]: Include <io.h>.
25943         (mkdir): Define using _mkdir.
25944
25945 2006-06-28  Bruno Haible  <bruno@clisp.org>
25946
25947         * lib/getaddrinfo.h: Fix POSIX URL.
25948         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25949         _WIN32.
25950         (use_win32_p): Make static.
25951         (getaddrinfo): Reject service name if it is empty or does not consist
25952         solely of decimal digits, or if its value is > 65535.
25953         (getnameinfo): Remove useless casts.
25954
25955 2006-06-27  Simon Josefsson  <jas@extundo.com>
25956
25957         * modules/sys_select: New file, suggested by Bruno Haible, Paul
25958         Eggert and Martin Lambers.
25959
25960 2006-06-27  Simon Josefsson  <jas@extundo.com>
25961
25962         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25963         Eggert and Martin Lambers.
25964
25965 2006-06-27  Bruno Haible  <bruno@clisp.org>
25966
25967         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25968         result to 0, not to empty.
25969         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25970
25971 2006-06-27  Bruno Haible  <bruno@clisp.org>
25972
25973         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25974
25975 2006-06-26  Simon Josefsson  <jas@extundo.com>
25976
25977         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25978         present.
25979
25980 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
25981
25982         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25983         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
25984         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25985
25986 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
25987
25988         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25989
25990 2006-06-26  Bruno Haible  <bruno@clisp.org>
25991
25992         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25993
25994 2006-06-26  Bruno Haible  <bruno@clisp.org>
25995
25996         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25997
25998 2006-06-26  Bruno Haible  <bruno@clisp.org>
25999
26000         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26001         SGI C compiler in pre-C99 mode.
26002         Suggested by Mark D. Baushke and Larry Jones.
26003
26004 2006-06-26  Bruno Haible  <bruno@clisp.org>
26005
26006         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26007         WCHAR_MAX.
26008         Reported by Mark D. Baushke and Larry Jones.
26009
26010 2006-06-26  Bruno Haible  <bruno@clisp.org>
26011
26012         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26013         in pre-C99 mode.
26014         Suggested by Mark D. Baushke and Larry Jones.
26015
26016 2006-06-23  Simon Josefsson  <jas@extundo.com>
26017             Bruno Haible  <bruno@clisp.org>
26018
26019         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26020         Emit mostlyclean-local rule.
26021         (func_emit_tests_Makefile_am): Likewise.
26022         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26023
26024 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26025
26026         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26027
26028 2006-06-23  Bruno Haible  <bruno@clisp.org>
26029
26030         * tests/test-stdint.c: Update to match ISO C 99 Technical
26031         Corrigendum 1.
26032
26033 2006-06-23  Bruno Haible  <bruno@clisp.org>
26034
26035         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26036
26037 2006-06-23  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/stdint_.h: Treat IRIX like OpenBSD.
26040
26041 2006-06-23  Bruno Haible  <bruno@clisp.org>
26042
26043         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26044         ISO C 99 Technical Corrigendum 1.
26045
26046 2006-06-22  Simon Josefsson  <jas@extundo.com>
26047
26048         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26049         MinGW.
26050
26051 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26052
26053         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26054         needed.  Some compiler complained about some of them.  Problem reported
26055         by Larry Jones in
26056         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26057
26058 2006-06-21  Simon Josefsson  <jas@extundo.com>
26059
26060         * tests/test-getaddrinfo.c: New file.
26061
26062         * modules/getaddrinfo-tests: New file.
26063
26064         * MODULES.html.sh: Add inet_pton.
26065
26066         * modules/inet_pton: New file.
26067
26068 2006-06-21  Simon Josefsson  <jas@extundo.com>
26069
26070         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26071         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26072         of using the (limited) gnulib implementation on Windows XP.
26073
26074         * m4/inet_pton.m4: New file.
26075
26076 2006-06-21  Simon Josefsson  <jas@extundo.com>
26077
26078         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26079         variable.
26080
26081         * lib/socket_.h: Don't define WINVER.
26082
26083         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26084         slightly modified to work in gnulib.
26085
26086 2006-06-21  Simon Josefsson  <jas@extundo.com>
26087
26088         * doc/gnulib.texi (Windows sockets): Add.
26089
26090 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         * lib/read-file.c (fread_file): Start with buffer allocation of
26093         0 bytes rather than 1 byte; this simplifies the code.
26094         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
26095         code to free buffer and save/restore errno.
26096         (internal_read_file): Remove unused local.
26097
26098 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26099
26100         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26101         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26102         Problem reported by Denis Excoffier in
26103         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26104
26105 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26106
26107         * modules/sys_socket, modules/socklen: Include sys/types since
26108         FreeBSD 4.x's sys/socket.h needs it.
26109
26110 2006-06-19  Simon Josefsson  <jas@extundo.com>
26111
26112         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26113
26114 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26117
26118 2006-06-19  Bruno Haible  <bruno@clisp.org>
26119
26120         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26121         and FULL_PATH_INTTYPES_H in angle brackets.
26122         Reported by Mark D. Baushke <mdb@gnu.org>.
26123
26124 2006-06-17  Eric Blake  <ebb9@byu.net>
26125
26126         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26127         errno.
26128
26129 2006-06-17  Bruno Haible  <bruno@clisp.org>
26130
26131         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26132         <sys/inttypes.h>.
26133
26134 2006-06-17  Bruno Haible  <bruno@clisp.org>
26135
26136         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26137         whether errno is declared. Assume <errno.h> declares errno.
26138
26139 2006-06-17  Bruno Haible  <bruno@clisp.org>
26140
26141         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26142
26143 2006-06-17  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26146         problem on Solaris 2.5.1.
26147
26148 2006-06-16  Eric Blake  <ebb9@byu.net>
26149
26150         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26151         * lib/unicodeio.c [!defined errno]: Likewise.
26152         * lib/strtol.c [!defined errno]: Likewise.
26153         * lib/strtod.c [!defined errno]: Likewise.
26154
26155 2006-06-15  Eric Blake  <ebb9@byu.net>
26156
26157         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26158
26159 2006-06-15  Eric Blake  <ebb9@byu.net>
26160
26161         * config/srclist.txt (ssize_t.m4): Lose sync.
26162
26163 2006-06-15  Bruno Haible  <bruno@clisp.org>
26164
26165         * modules/stdint (Files): Include m4/full-header-path.m4,
26166         m4/size_max.m4, m4/wchar_t.m4.
26167         (Makefile.am): Many more substitutions.
26168         * modules/stdint-tests: New file.
26169         * tests/test-stdint.c: New file.
26170
26171 2006-06-15  Bruno Haible  <bruno@clisp.org>
26172
26173         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26174         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26175         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26176         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26177         gl_CHECK_TYPE_SAME): New macros.
26178
26179 2006-06-15  Bruno Haible  <bruno@clisp.org>
26180
26181         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26182
26183 2006-06-15  Bruno Haible  <bruno@clisp.org>
26184
26185         * lib/stdint_.h: Rewritten to be fully auto-configured.
26186         Fixes bug on HP-UX/IA64.
26187
26188 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26189
26190         * lib/getdate.y (__attribute__): Don't define if already defined.
26191         Problem reported by Larry Jones.
26192         * lib/utimens.c (__attribute__): Likewise.
26193
26194 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26195
26196         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26197         reported by Andreas Schwab.
26198
26199 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26200             Bruno Haible  <bruno@clisp.org>
26201
26202         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26203         check for the declaration of strnlen and a run test that exposes the
26204         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26205         rpl_strndup.
26206
26207 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26208             Bruno Haible  <bruno@clisp.org>
26209
26210         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26211
26212 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26213
26214         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26215         compile test, for Tru64 4.0D.
26216
26217 2006-05-28  Karl Berry  <karl@gnu.org>
26218
26219         * config/srclist.txt (printf-args.c): lose sync.
26220
26221 2006-05-26  Martin Lambers  <marlam@marlam.de>
26222
26223         * lib/getpass.c: Updates the test for the native W32 API, and adds
26224         missing includes, thus fixing compilation warnings.
26225
26226 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26227
26228         * lib/exclude.c (exclude_fnmatch): New function.
26229         (excluded_file_name): Call exclude_fnmatch.
26230         * lib/exclude.h (excluded_file_name): New prototype
26231
26232 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26233
26234         * lib/tempname.c (small_open, large_open): New macros.
26235         (__open, __open64) [!_LIBC]: Remove.
26236         (__gen_tempname): Use small_open and large_open instead of __open
26237         and __open64.  This fixes a portability bug on HP-UX 11.11i
26238         reported by Simon Wing-Tang in
26239         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26240
26241 2006-05-24  Bruno Haible  <bruno@clisp.org>
26242
26243         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26244         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26245         Reported by Thorsten Maerz <torte@netztorte.de> via
26246         Aaron Stone <aaron@serendipity.cx>.
26247
26248 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26249
26250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26251         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26252         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26253         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26254         not really conditional on the cache.
26255         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26256
26257 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26258
26259         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26260         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26261         (my_usleep): Don't mishandle maximum value.
26262
26263 2006-05-19  Jim Meyering  <jim@meyering.net>
26264
26265         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26266
26267 2006-05-17  Bruno Haible  <bruno@clisp.org>
26268
26269         Cygwin portability.
26270         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26271
26272 2006-05-17  Bruno Haible  <bruno@clisp.org>
26273
26274         * lib/stdint_.h: Fix recognition of Cygwin.
26275
26276 2006-05-15  Bruno Haible  <bruno@clisp.org>
26277
26278         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26279         on libtool patch by Ralf Wildenhues.
26280
26281 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26282
26283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26284         test for C99 conformance; (bool) 0.5 is an integer constant
26285         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26286         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26287
26288 2006-05-11  Simon Josefsson  <jas@extundo.com>
26289
26290         * m4/xvasprintf.m4: Fix obvious typo.
26291
26292 2006-05-11  Jim Meyering  <jim@meyering.net>
26293
26294         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26295         James Lemley.
26296
26297 2006-05-10  Simon Josefsson  <jas@extundo.com>
26298
26299         * lib/md4.c: Typo fix, update copyright years.
26300         (K1, K2): Don't use L because it turn computations into 64-bit on
26301         64-bit platforms.
26302
26303 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26304
26305         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26306         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26307         unwanted sign propagation, e.g., on hosts with 64-bit int.
26308         There still are some problems with reeelly weird theoretical hosts
26309         (e.g., 33-bit int) but it's not worth worrying about now.
26310         * lib/sha1.c (rol): Likewise.
26311         (K1, K2, K3, K4): Remove unnecessary L suffix.
26312
26313 2006-05-10  Bruno Haible  <bruno@clisp.org>
26314
26315         * lib/des.c: Cast to avoid warnings.
26316
26317 2006-05-09  Bruno Haible  <bruno@clisp.org>
26318
26319         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26320         (Depends-on): Depend also on xsize, stdarg.
26321         (configure.ac): Add gl_XVASPRINTF.
26322
26323 2006-05-09  Bruno Haible  <bruno@clisp.org>
26324
26325         * m4/xvasprintf.m4: New file.
26326
26327 2006-05-09  Bruno Haible  <bruno@clisp.org>
26328
26329         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26330         (EOVERFLOW): Define fallback value.
26331         (xstrcat): New function.
26332         (xvasprintf): Recognize the special case of a string concatenation.
26333
26334 2006-05-08  Eric Blake  <ebb9@byu.net>
26335
26336         * gnulib-tool (func_version): Base copyright year on CVS date.
26337         (func_emit_copyright_notice): New function.
26338         (func_emit_lib_Makefile_am): Use it.
26339         (func_emit_tests_Makefile_am): Likewise.
26340         (func_import): Likewise.
26341
26342 2006-05-08  Bruno Haible  <bruno@clisp.org>
26343
26344         * modules/stdarg: New file.
26345         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26346
26347 2006-05-08  Bruno Haible  <bruno@clisp.org>
26348
26349         * m4/stdarg.m4: New file, from GNU gettext.
26350
26351 2006-05-08  Bruno Haible  <bruno@clisp.org>
26352
26353         * config/srclist.txt (build-aux/config.rpath): different from latest
26354         release.
26355
26356 2006-05-08  Bruno Haible  <bruno@clisp.org>
26357
26358         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26359
26360 2006-05-05  Jim Meyering  <jim@meyering.net>
26361
26362         * m4/warning.m4: New file, derived from bison's file by the same name.
26363
26364 2006-05-03  Bruno Haible  <bruno@clisp.org>
26365
26366         * lib/stdint_.h: Shorter URL.
26367         * lib/inttypes.h: Likewise.
26368
26369 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26370
26371         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26372
26373 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26374
26375         * lib/verify.h: Document the internals better.  Most of this change
26376         was written by Bruno Haible.
26377
26378 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26379
26380         * doc/verify.texi: New file, partly based on a proposal by
26381         Bruno Haible.
26382
26383 2006-05-02  Bruno Haible  <bruno@clisp.org>
26384
26385         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26386         test from here...
26387         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26388
26389 2006-04-29  Bruno Haible  <bruno@clisp.org>
26390
26391         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26392         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26393
26394 2006-04-29  Bruno Haible  <bruno@clisp.org>
26395
26396         * gnulib-tool: Make --update option actually work.
26397
26398 2006-04-29  Bruno Haible  <bruno@clisp.org>
26399
26400         * doc/gcd.texi: New file.
26401         * doc/gnulib.texi: Include it.
26402
26403 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26404
26405         * lib/getdate.y (get_date): When adding relative date, start with the
26406         initial time, not with the result of the first mktime call.
26407
26408 2006-04-25  Bruno Haible  <bruno@clisp.org>
26409
26410         * gnulib-tool (func_import): Output the include directives in three
26411         blocks, sorted separately.
26412         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26413
26414 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26415
26416         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26417         to define main with arguments, for C++.  Reported by Eric Blake.
26418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26419         Prefer 'int main ()' to 'int main (void)', for C++.
26420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26422         for 'main', for C99 and C++.
26423
26424 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26425
26426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26427         Don't assume that exit status -1 is valid.
26428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26429         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26430         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26431         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26432         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26433         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26434         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26435         functions can be used without declaring them, or that you can
26436         exit with status -1.
26437         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26438
26439 2006-04-24  Karl Berry  <karl@gnu.org>
26440
26441         * config/srclist.txt (longdouble.m4): sync lost.
26442
26443 2006-04-24  Eric Blake  <ebb9@byu.net>
26444
26445         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26446
26447 2006-04-24  Bruno Haible  <bruno@clisp.org>
26448
26449         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26450         poll() implementation in AIX.
26451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26452
26453 2006-04-24  Bruno Haible  <bruno@clisp.org>
26454
26455         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26456         assigned exactly once.
26457
26458 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26459             Bruno Haible  <bruno@clisp.org>
26460
26461         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26462         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26463         for AM_CPPFLAGS.
26464
26465 2006-04-23  Bruno Haible  <bruno@clisp.org>
26466
26467         * modules/copy-file: Depend on unistd.
26468         * modules/execute: Likewise.
26469         * modules/fatal-signal: Likewise.
26470         * modules/findprog: Likewise.
26471         * modules/mkdtemp : Likewise.
26472         * modules/pipe: Likewise.
26473         * modules/wait-process: Likewise.
26474
26475 2006-04-23  Bruno Haible  <bruno@clisp.org>
26476
26477         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26478         condition was already detected.
26479         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26480
26481 2006-04-23  Bruno Haible  <bruno@clisp.org>
26482
26483         * lib/copy-file.c: Include <unistd.h> unconditionally.
26484         * lib/execute.c: Likewise.
26485         * lib/fatal-signal.c: Likewise.
26486         * lib/findprog.c: Likewise.
26487         * lib/mkdtemp.c: Likewise.
26488         * lib/pipe.h: Likewise.
26489         * lib/pipe.c: Likewise.
26490         * lib/wait-process.h: Likewise.
26491
26492 2006-04-23  Bruno Haible  <bruno@clisp.org>
26493
26494         * gnulib-tool (func_usage): Fix --import description. Document
26495         --update.
26496         (func_import): Create temporary file in a temporary directory, if
26497         --dry-run is specified. Silence errors from 'grep' when there are no
26498         m4 files in $m4dir.
26499         (func_create_testdir): Silence errors from 'grep' when there are no
26500         m4 files in $m4dir.
26501         Reported by Karl Berry <karl@freefriends.org>.
26502
26503 2006-04-20  Bruno Haible  <bruno@clisp.org>
26504
26505         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26506         one argument, so that the code will be portable to Autoconf 2.60.
26507         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26508         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26509         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26510
26511 2006-04-19  Derek Price  <derek@ximbiot.com>
26512             Eric Blake  <ebb9@byu.net>
26513
26514         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26515         rather than "/full/path.h".  Update comment to match.  Shorten &
26516         generalize m4_translit call via AS_TR_CPP.
26517
26518 2006-04-19  Derek Price  <derek@ximbiot.com>
26519             Eric Blake  <ebb9@byu.net>
26520
26521         * lib/inttypes.h: Correct grammar in comment.
26522
26523 2006-04-18  Derek Price  <derek@ximbiot.com>
26524             Paul Eggert  <eggert@cs.ucla.edu>
26525
26526         * modules/inttypes: New file.
26527         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26528
26529 2006-04-18  Derek Price  <derek@ximbiot.com>
26530             Paul Eggert  <eggert@cs.ucla.edu>
26531
26532         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26533         New files.
26534
26535 2006-04-18  Derek Price  <derek@ximbiot.com>
26536             Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         * lib/inttypes.h: New file.
26539         * lib/strtoimax.c: Assume <inttypes.h>.
26540
26541 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26542
26543         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26544         isn't mounted.  Problem reported by Kir Kolyshkin.
26545
26546 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26547
26548         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26549         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26550         Derek R. Price.
26551         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26552         implementation.
26553
26554 2006-04-12  Eric Blake  <ebb9@byu.net>
26555
26556         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26557         is now done automatically by the corresponding Autoconf macro.
26558
26559 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26560
26561         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26562         time_r.h.
26563
26564 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26565
26566         Merge regex changes from libc, removing some of our
26567         POSIX-conformance changes that were rejected and redoing them in a
26568         less-intrusive way.
26569
26570         * lib/regcomp.c (re_compile_internal, init_dfa):
26571         Length arg is now size_t, not Idx.  All uses changed.
26572         (peek_token): Forward decl now says internal_function.
26573         (__re_error_msgid, __re_error_msgid_idx):
26574         Now static rather than extern with attribute_hidden.
26575         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26576         For some reason libc prefers K&R style defns for external functions.
26577         (regerror) [!defined _LIBC]: Likewise.
26578         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26579         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26580         (build_range_exp, build_collating_symbol):
26581         Use K&R-style defn.
26582         (re_compile_fastmap): Use '\0' to memset, not 0.
26583         (utf8_sb_map): Make the calculations more obvious.
26584         (init_dfa, parse_bracket_exp, build_charclass_op):
26585         Call calloc and cast result, as glibc does.
26586         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26587         (build_range_exp, build_collating_symbol):
26588         Now internal functions.
26589
26590         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26591
26592         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26593         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26594         Don't depend on VMS; depend on __VMS instead, for POSIX
26595         namespace cleanness.
26596         (regoff_t): Define to ssize_t, not long int.
26597
26598         Remove the REG_ macros named below.  Instead, make the old names
26599         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26600         __USE_GNU_REGEX.
26601         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26602         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26603         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26604         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26605         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26606         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26607         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26608         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26609         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26610         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26611         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26612         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26613         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26614         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26615         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26616         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26617         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26618         (REG_NREGS):
26619         Remove.  All uses replaced by the old RE_* names.
26620         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26621         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26622         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26623         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26624         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26625         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26626         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26627         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26628         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26629         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26630         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26631         Don't bother having these macros be independent of each others'
26632         values, since they no longer exist in the POSIX name space.
26633
26634         Rename the following member names back to their old names,
26635         unless !__USE_GNU_REGEX.  All uses changed back.
26636         (buffer): Renamed from re_buffer.
26637         (allocated): Renamed from re_allocated.
26638         (used): Renamed from re_used.
26639         (syntax): Renamed from re_syntax.
26640         (fastmap): Renamed from re_fastmap.
26641         (translate): Renamed from re_translate.
26642         (can_be_null): Renamed from re_can_be_null.
26643         (regs_allocated): Renamed from re_regs_allocated.
26644         (fastmap_accurate): Renamed from re_fastmap_accurate.
26645         (no_sub): Renamed from re_no_sub.
26646         (not_bol): Renamed from re_not_bol.
26647         (not_eol): Renamed from re_not_eol.
26648         (newline_anchor): Renamed from re_newline_anchor.
26649         (num_regs): Renamed from rm_num_regs.
26650         (start): Renamed from rm_start.
26651         (end): Renamed from rm_end.
26652
26653         (free_state): Move up a bit.
26654
26655         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26656         #define to be empty.
26657         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26658         when that is what is intended.
26659         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26660         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26661         (MAX): New macro.
26662         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26663         All uses changed back to re_malloc, etc.  It's now the caller's
26664         responsibility to check for overflow; all callers changed.
26665         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26666         (re_x2nrealloc): Remove.
26667         (free_state): Remove decl.
26668
26669         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26670         (re_set_registers, re_exec):
26671         Use K&R-style defn.
26672
26673         2006-01-31  Roland McGrath  <roland@redhat.com>
26674
26675         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26676         Reported by Mike Frysinger <vapier@gentoo.org>.
26677
26678         2006-01-15  Andreas Jaeger  <aj@suse.de>
26679
26680         [BZ #1950]
26681         * lib/regex_internal.c (re_string_reconstruct): Adjust for
26682         build_wcs_upper_buffer change.
26683         (build_wcs_upper_buffer): Change return type.
26684
26685         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
26686
26687         * lib/regex_internal.h: Include <stdint.h> if available.
26688
26689         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26690
26691         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26692
26693         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26694
26695         * lib/regcomp.c: Adjust for changed secondary hash function.
26696
26697         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26698
26699         * lib/regex.h: Pretty printing.
26700         Clean up namespace a bit.
26701
26702         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26703
26704         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26705         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26706
26707         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26708                     Ulrich Drepper  <drepper@redhat.com>
26709
26710         [BZ #1302]
26711         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26712         changed.
26713         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26714
26715         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26716
26717         [BZ #281]
26718         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26719         * lib/regcomp.c: Remove unnecessary uses of
26720         unsigned RE_TRANSLATE_TYPE.
26721         * lib/regex_internal.h: Likewise.
26722         * lib/regex_internal.c: Likewise.
26723         * lib/regexec.c: Likewise.
26724         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26725
26726         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26727
26728         * lib/regexec.c (find_recover_state): Remove unnecessary
26729         initialization.
26730         (transit_state_bkref): Make DFA a const pointer.
26731         (get_subexp): Likewise.
26732         (check_arrival): Likewise.
26733         (update_cur_sifted_state): Likewise.
26734         (re_search_internal): Likewise.
26735         (prune_impossible_nodes): Likewise.
26736         (acquire_init_state_context): Likewise.
26737         (proceed_next_node): Likewise.
26738         (set_regs): Likewise.
26739         (free_fail_stack_return): Likewise.
26740         (check_arrival_expand_ecl): Mark DFA parameter as const.
26741         (check_arrival_expand_ecl_sub): Likewise.
26742         (check_subexp_limits): Likewise.
26743         (sub_epsilon_src_nodes):  Likewise.
26744         (add_epsilon_src_nodes):  Likewise.
26745         (merge_state_array): Likewise.
26746         (update_regs): Likewise.
26747         (build_trtable): Likewise.
26748         (sift_states_backward): Mark MCTX parameter as const.
26749         (build_sifted_states): Likewise.
26750         (update_cur_sifted_state): Likewise.
26751         (sift_states_mkref): Likewise.
26752         (check_arrival_expand_ecl): Mark eclosure as const.
26753         (check_dst_limits_calc_pos_1): Likewise.
26754         * lib/regex_internal.h (re_match_context_t): Make dfa a const
26755         pointer.
26756
26757         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
26758
26759         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26760         (transit_state_sb): Likewise.
26761         (transit_state_mb): Likewise.
26762         (sift_states_iter_mb): Likewise.
26763         (check_arrival_add_next_nodes): Likewise.
26764         (check_node_accept_bytes): Change first parameter to pointer-to-const.
26765         [_LIBC] (re_search_2_stub): Use mempcpy.
26766
26767         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26768         mbrtowc for very simple UTF-8 case.
26769
26770         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26771         a pointer-to-const.
26772         (re_acquire_state_context): Likewise.
26773         * lib/regex_internal.h: Adjust prototypes.
26774
26775         * lib/regex.c: Prevent using C++ compilers.
26776
26777         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26778         (re_acquire_state_context): Likewise.
26779
26780 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26781
26782         * modules/regex (Depends-on): Add ssize_t.
26783
26784 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26785
26786         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26787         translation table.
26788
26789 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26790
26791         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26792
26793 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
26794             Bruno Haible  <bruno@clisp.org>
26795
26796         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26797         <sys/types.h> and <inttypes.h>.
26798
26799 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26800
26801         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26802         `__error_t_defined', so argp.h will not typedef the former.
26803
26804 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26805
26806         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26807         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
26808         glibc names.  Even if glibc is changed to conform to POSIX, the
26809         traditional names will be available anyway, since regex depends on
26810         the extensions module.  Also, fix a longstanding typo in the
26811         implementation of Spencer ERE test #75 from grep 2.3.  Problems
26812         reported by Emanuele Giaquinta.  Also, change sense of cached
26813         variable, so that the message makes sense.
26814
26815 2006-03-24  Simon Josefsson  <jas@extundo.com>
26816
26817         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26818         including some doc fixes.
26819         (base64_encode_alloc): Fix +1 bug on allocation failures.
26820
26821 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26822
26823         * lib/base64.c (base64_encode): Do not read past end of array with
26824         unsanitized input on systems with CHAR_BIT > 8.
26825
26826 2006-03-24  Eric Blake  <ebb9@byu.net>
26827
26828         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26829
26830 2006-03-22  Karl Berry  <karl@gnu.org>
26831
26832         * config/srclist.txt (*setenv.[ch]): get from coreutils.
26833         * config/srclistvars.sh (COREUTILS): new var.
26834
26835 2006-03-17  Jim Meyering  <jim@meyering.net>
26836
26837         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26838         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26839
26840 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26841
26842         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26843         no longer needs it.  Instead, check that regoff_t is as least
26844         as wide as ptrdiff_t.
26845
26846         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26847         so that our regex.h stays compatible with the installed regex.
26848         This is helpful for installers who configure --without-included-regex.
26849         Problem reported by Emanuele Giaquinta.
26850
26851 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26852
26853         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26854         Typedef to long int, not to off_, as POSIX will likely change
26855         in that direction.
26856
26857 2006-03-15  Eric Blake  <ebb9@byu.net>
26858
26859         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26860
26861 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26862
26863         * lib/argp-help.c (validate_uparams): Fix typo
26864         * lib/argp-parse.c (argp_default_options): Consistently begin help
26865         messages with a lowercase letter.
26866
26867 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
26868
26869         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
26870         overrun buffers and shouldn't be used (much as gets shouldn't be
26871         used).
26872         * lib/time_r.c (asctime_r, ctime_r): Likewise.
26873
26874 2006-03-08  Simon Josefsson  <jas@extundo.com>
26875
26876         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26877         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26878
26879 2006-03-08  Simon Josefsson  <jas@extundo.com>
26880
26881         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26882         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26883
26884 2006-03-08  Simon Josefsson  <jas@extundo.com>
26885
26886         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26887         signal that configure disabled the device.
26888
26889 2006-03-08  Simon Josefsson  <jas@extundo.com>
26890
26891         * build-aux/maint.mk: Fix refresh-po, to handle no translated
26892         languages.
26893
26894 2006-03-07  Simon Josefsson  <jas@extundo.com>
26895
26896         * modules/getopt (Depends-on): Add unistd.
26897
26898         * modules/unistd: New file.
26899
26900 2006-03-07  Simon Josefsson  <jas@extundo.com>
26901
26902         * modules/gc-random: New file.
26903
26904 2006-03-07  Simon Josefsson  <jas@extundo.com>
26905
26906         * m4/unistd_h.m4: New file.
26907
26908 2006-03-07  Simon Josefsson  <jas@extundo.com>
26909
26910         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26911         test to be side-effect free by storing the result in the cache
26912         variable gl_cv_lib_readline, and moving the assignment of
26913         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26914         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26915
26916 2006-03-07  Simon Josefsson  <jas@extundo.com>
26917
26918         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
26919         error on missing devices (the functions will return an error).
26920
26921         * m4/gc.m4: Move random stuff to gc-random.m4
26922
26923 2006-03-07  Simon Josefsson  <jas@extundo.com>
26924
26925         * lib/unistd_.h: New file.
26926
26927 2006-03-07  Simon Josefsson  <jas@extundo.com>
26928
26929         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26930
26931 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26932
26933         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26934         Problem reported by Juan Manuel Guerrero.
26935
26936 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26937
26938         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26939         the unistd module.
26940         * lib/getlogin_r.c: Likewise.
26941         * lib/getlogin_r.h: Likewise.
26942         * lib/glob.c: Likewise.
26943         * lib/pagealign_alloc.c: Likewise.
26944         * lib/unistd_.h: Remove; no longer needed.
26945
26946 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26947
26948         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26949         Add unistd.
26950         * modules/c-stack (Depends-on): Add unistd.
26951         * modules/getlogin_r: Likewise.
26952         * modules/glob: Likewise.
26953         * modules/pagealign_alloc: Likewise.
26954         * modules/unistd (Files): Remove lib/unistd_.h.
26955         (EXTRA_DIST): Remove.
26956         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26957         need unistd_.h.
26958         (MOSTLYCLEANFILES): Remove unistd.h-t.
26959
26960 2006-03-03  Simon Josefsson  <jas@extundo.com>
26961
26962         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26963
26964 2006-03-03  Simon Josefsson  <jas@extundo.com>
26965
26966         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26967         libidn and bison.
26968
26969 2006-03-03  Simon Josefsson  <jas@extundo.com>
26970
26971         * build-aux/maint.mk: Add indent target.
26972
26973 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
26974
26975         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26976         our replacement poll.h in any case, to avoid a differing
26977         declaration from a system header.  Seen on AIX.
26978
26979 2006-03-01  Simon Josefsson  <jas@extundo.com>
26980
26981         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26982         <kasal@ucw.cz>.
26983
26984 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         * modules/gettime (Depends-on): Add extensions module.
26987         * modules/nanosleep (Depends-on): Likewise.
26988         * modules/settime (Depends-on): Likewise.
26989
26990 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26991
26992         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26993         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26994         pedantically.
26995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26996         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26997
26998         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26999         not "==".  Reported by Ralf Wildenhues.
27000
27001 2006-03-01  Karl Berry  <karl@gnu.org>
27002
27003         * doc/Copyright/request-*: new files, synced from gnuorg.
27004
27005 2006-03-01  Karl Berry  <karl@gnu.org>
27006
27007         * config/srclist.txt (Copyright/*): new entries.
27008
27009 2006-02-28  Simon Josefsson  <jas@extundo.com>
27010
27011         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27012
27013 2006-02-27  Simon Josefsson  <jas@extundo.com>
27014
27015         * lib/base64.h: Indent #define's.  From Jim Meyering
27016         <jim@meyering.net>.
27017
27018 2006-02-27  Jim Meyering  <jim@meyering.net>
27019
27020         Revert the change of 2006-02-24, so these files can continue
27021         to be sync'd from gettext.
27022         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27023         of `config.h'.
27024
27025 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27026
27027         * modules/intprops: New file.
27028         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27029         Add intprops.
27030         * modules/getloadavg (Files): Remove lib/intprops.h.
27031         (Depends-on): Add intprops.
27032         * modules/human: Likewise.
27033         * modules/inttostr: Likewise.
27034         * modules/openat: Likewise.
27035         * modules/sig2str: Likewise.
27036         * modules/userspec: Likewise.
27037         * modules/utimecmp: Likewise.
27038         * modules/xnanosleep: Likewise.
27039         * modules/xstrtol: Likewise.
27040
27041 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27042
27043         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27044         * modules/lock-tests (TESTS): Use $(EXEEXT).
27045         * modules/tls-tests: Likewise.
27046         * modules/argp-tests: Likewise.
27047         (check_PROGRAMS): New var, replacing...
27048         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27049
27050 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27051
27052         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27053         `config.h'.
27054
27055 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27056
27057         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27058
27059 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27060
27061         Sync from coreutils.
27062         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27063         gl_CHDIR_SAFER.
27064
27065 2006-02-22  Jim Meyering  <jim@meyering.net>
27066
27067         Sync from coreutils.
27068         * m4/chdir-safer.m4: New file.
27069
27070 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27071
27072         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27073         AT_FDCWD exceeds INT_MAX.
27074         * lib/openat.h (AT_FDCWD): Likewise.
27075
27076 2006-02-17  Eric Blake  <address@hidden>
27077
27078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27079
27080 2006-02-16  Simon Josefsson  <jas@extundo.com>
27081
27082         * modules/getaddrinfo (Depends-on): Add sys_socket.
27083
27084 2006-02-15  Simon Josefsson  <jas@extundo.com>
27085
27086         * build-aux/maint.mk: Add dsyntax-check rule.
27087
27088 2006-02-15  Eric Blake  <ebb9@byu.net>
27089
27090         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27091         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27092         'present but cannot compile' warnings on cygwin.
27093         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
27094         use ws2tcpip.h if sys/socket.h works.
27095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27096         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27097
27098 2006-02-14  Simon Josefsson  <jas@extundo.com>
27099
27100         * modules/maintainer-makefile (Files): Rename.
27101
27102         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27103         and (the local) Makefile.cfg to maint-cfg.mk.
27104
27105         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27106         to the latter.
27107
27108         * modules/maintainer-makefile: New module.
27109
27110         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27111         severaly stripped to make it possible to build it up from scratch
27112         with reliable tests.
27113
27114         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27115         fixes to permit overriding the default actions when configure and
27116         makefile are not available.
27117
27118 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27119
27120         Sync from coreutils.
27121         * modules/lstat (Depends-on): Don't depend on xalloc.
27122         (License): Change from GPL to LGPL, since this is now simply a
27123         replacement for a libc function.
27124
27125 2006-02-14  Jim Meyering  <jim@meyering.net>
27126
27127         Sync from coreutils.
27128
27129         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27130         failure on deficient systems, and simplify gnulib lgpl dependencies.
27131         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27132         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27133
27134         * lib/xalloc-die.c: Remove unused definition of N_.
27135
27136 2006-02-14  Jim Meyering  <jim@meyering.net>
27137
27138         Sync from coreutils.
27139         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27140         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27141         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27142         double-quote uses of that variable, to accommodate the rare case in
27143         which getmntent is available in none of the libraries checked.  This
27144         happens at least on FreeBSD 5.0.
27145
27146 2006-02-13  Simon Josefsson  <jas@extundo.com>
27147
27148         * gnulib-tool (Usage): Fix --import, from
27149         karl@freefriends.org (Karl Berry).
27150
27151 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27152
27153         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27154
27155 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27156
27157         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27158         "autoupdate" on 2005-12-12.
27159
27160 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27161
27162         * modules/closeout (Depends-on): Remove atexit.
27163
27164 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27165
27166         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27167         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27168
27169 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27170
27171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27172         __EXTENSIONS__ if this causes compilation to fail.  Problem
27173         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27174         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27175
27176 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27177
27178         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27179         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27181         All uses changed.
27182
27183 2006-01-26  Simon Josefsson  <jas@extundo.com>
27184
27185         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27186         prototype is visible on mingw32.
27187
27188         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27189         for mingw32.
27190
27191         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27192         mingw32).
27193
27194 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27195
27196         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27197         attempt to open for write; this always fails, at least on POSIX
27198         hosts.  This reinstates the 2006-01-09 change, which was
27199         inadvertently removed.
27200
27201 2006-01-26  Bruno Haible  <bruno@clisp.org>
27202
27203         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27204         Reported by Paul Eggert.
27205
27206 2006-01-26  Bruno Haible  <bruno@clisp.org>
27207             Paul Eggert  <eggert@cs.ucla.edu>
27208
27209         * lib/stdbool_.h (_Bool)
27210         [(! (defined __cplusplus || defined __BEOS__)
27211           && !defined __GNUC__
27212           && !(defined __HP_cc || defined __xlc__
27213                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27214                || defined __sgi))]:
27215         #define to signed char in these cases too; this simplifies
27216         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27217         etc., separately) and makes it more conservative.
27218
27219 2006-01-25  Simon Josefsson  <jas@extundo.com>
27220
27221         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27222         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27223         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27224
27225 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27226
27227         * lib/argp-namefrob.h: Bugfix. Remove stray #
27228
27229 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27230
27231         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27232         so that we test the test.
27233         Check for yet another HP-UX cc bug involving *bool |= bool.
27234
27235 2006-01-25  Karl Berry  <karl@gnu.org>
27236
27237         * config/srclist.txt (vasnprintf.c): sync lost.
27238
27239 2006-01-25  Jim Meyering  <jim@meyering.net>
27240
27241         Sync from the stable (b5) branch of coreutils:
27242
27243         * lib/fts.c (fts_children): Don't let close() clobber errno from
27244         failed fchdir().
27245
27246         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27247         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27248         a dangling symlink.  That can also happen at least for ELOOP.
27249         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27250         FYI, this bug predates the inclusion of fts.c in coreutils.
27251
27252         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27253         in their own block, so pre-c99 compilers don't object.
27254
27255         Avoid the double-free (first in fts_read, second in fts_close) that
27256         would occur when an `active' directory is made inaccessible (e.g.,
27257         via chmod a-x) during a traversal.
27258         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27259         before returning.  Reproduce this failure by
27260         mkdir -p a/b; cd a; chmod a-x . b
27261         Reported by Stavros Passas.
27262
27263 2006-01-25  Jim Meyering  <jim@meyering.net>
27264
27265         * lib/fileblocks.c: Remove more useless parentheses.
27266         * lib/readutmp.h: Likewise.
27267
27268 2006-01-25  Bruno Haible  <bruno@clisp.org>
27269
27270         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27271         warnings.
27272         Reported by Paul Eggert.
27273
27274 2006-01-25  Bruno Haible  <bruno@clisp.org>
27275
27276         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27277         rid of a trap command. For Solaris sh.
27278         Reported by Mark D. Baushke <mdb@gnu.org>.
27279
27280 2006-01-24  Simon Josefsson  <jas@extundo.com>
27281
27282         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27283         Bruno.
27284
27285 2006-01-24  Karl Berry  <karl@gnu.org>
27286
27287         * config/srclist.txt (argp-namefrob.h): sync lost.
27288
27289 2006-01-24  Jim Meyering  <jim@meyering.net>
27290
27291         * modules/openat (Files): Add lib/intprops.h.
27292         From Mark D. Baushke.
27293
27294 2006-01-24  Jim Meyering  <jim@meyering.net>
27295
27296         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27297         Reported by Mark D. Baushke.
27298
27299 2006-01-24  Jim Meyering  <jim@meyering.net>
27300
27301         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27302
27303 2006-01-24  Bruno Haible  <bruno@clisp.org>
27304
27305         * modules/strnlen (Maintainer): Change from glibc to all.
27306
27307 2006-01-24  Bruno Haible  <bruno@clisp.org>
27308
27309         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27310         Patch by Paul Eggert.
27311
27312 2006-01-24  Bruno Haible  <bruno@clisp.org>
27313
27314         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27315         already has it.
27316         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
27317         2005-11-26.
27318
27319         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27320         'signed char' to avoid problems with the built-in _Bool type.
27321         Reported by Paul Eggert on 2005-11-26.
27322
27323 2006-01-24  Bruno Haible  <bruno@clisp.org>
27324
27325         * gnulib-tool (func_import): Avoid constructing complicated sed
27326         expressions inside backquote.
27327         Report and solution by Mark D. Baushke <mdb@gnu.org>.
27328
27329 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
27330
27331         These changes imported from libc.
27332         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27333         test and two separate function calls.
27334         * lib/strndup.c (__strndup): Add libc_hidden_def.
27335
27336 2006-01-23  Simon Josefsson  <jas@extundo.com>
27337
27338         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27339         Remove the test_*_SOURCES variable: automake infers it by default.
27340         * modules/tls-tests: Likewise.
27341
27342 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27343
27344         Work around porting bugs reported by Dieter in
27345         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27346         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27347         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27348         Include "getopt.h" first, to check interface.
27349         (getenv): Declare only if defined HAVE_DECL_GETENV &&
27350         !HAVE_DECL_GETENV.
27351         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27352         (__strndup): Revert to K&R-style function dfns, the glibc style.
27353         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27354         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27355         Include strnlen.h first, to get prototype properly.
27356         (strnlen): Renamed from __strnlen.
27357         Remove weak alias.
27358
27359 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27360
27361         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27362
27363 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27364
27365         * config/srclist.txt: Adjust to reflect glibc reorganization.
27366         This affects only comments.
27367
27368 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27369
27370          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27371          Reported by Bruce Korb <bkorb@gnu.org>.
27372
27373 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27374
27375         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27376         to pacify gcc -Wswitch-default.
27377
27378 2006-01-22  Bruno Haible  <bruno@clisp.org>
27379
27380         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27381         temporary buffer for sprintf, take into account the precision also
27382         for 'd', 'i', 'u', 'o', 'x', 'X'.
27383
27384 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27385
27386         * modules/argp-tests: New module
27387         * tests/test-argp.c: New file
27388         * tests/test-argp-2.sh: New file
27389
27390 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27391
27392         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27393         (__argp_base_name): Removed
27394         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27395         typo.
27396         (__argp_base_name): Provide macro definition or extern declaration
27397         depending on the configuration
27398
27399 2006-01-20  Simon Josefsson  <jas@extundo.com>
27400
27401         * modules/inet_ntop (Depends-on): Depend on sys_socket.
27402
27403 2006-01-20  Simon Josefsson  <jas@extundo.com>
27404
27405         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27406
27407 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27408
27409         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27410         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27411         Suggested by Bruno Haible.
27412
27413 2006-01-20  Karl Berry  <karl@gnu.org>
27414
27415         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27416         until changes propagate, I guess.
27417
27418 2006-01-19  Simon Josefsson  <jas@extundo.com>
27419
27420         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27421
27422 2006-01-19  Simon Josefsson  <jas@extundo.com>
27423
27424         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27425
27426 2006-01-19  Simon Josefsson  <jas@extundo.com>
27427
27428         * gnulib-tool: Set check_PROGRAMS.
27429
27430         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27431         modules/des-tests, modules/gc-arcfour-tests,
27432         modules/gc-arctwo-tests, modules/gc-des-tests,
27433         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27434         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27435         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27436         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27437         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27438         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27439         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27440         test_*_SOURCES.
27441
27442 2006-01-18  Simon Josefsson  <jas@extundo.com>
27443
27444         * modules/socklen (Depends-on): Depend on sys_socket.
27445
27446 2006-01-18  Simon Josefsson  <jas@extundo.com>
27447
27448         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27449         modules/des-tests, modules/gc-arcfour-tests,
27450         modules/gc-arctwo-tests, modules/gc-des-tests,
27451         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27452         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27453         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27454         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27455         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27456         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
27457         $(EXEEXT) to automake TESTS variable, for mingw32.
27458
27459 2006-01-17  Simon Josefsson  <jas@extundo.com>
27460
27461         * modules/socklen (Include): Need sys/socket.h.
27462
27463 2006-01-17  Bruno Haible  <bruno@clisp.org>
27464
27465         * modules/ssize_t (Include): Add <sys/types.h>.
27466
27467 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27468
27469         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
27470         it's not portable and it doesn't work with cross-compiles.
27471         Problem reported by Bruno Haible.  Fix missing-$ typo in
27472         'test "gl_cv_ignore_unused_libraries" ...' that prevented
27473         -zignore from being used with Sun's C compiler.
27474
27475 2006-01-12  Simon Josefsson  <jas@extundo.com>
27476
27477         * lib/base64.c: Fix warning, reported by Bruno Haible
27478         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
27479
27480 2006-01-12  Bruno Haible  <bruno@clisp.org>
27481
27482         * modules/ldd: New file.
27483         * build-aux/ldd.sh.in: New file.
27484         * MODULES.html.sh (Support for building libraries and executables): Add
27485         ldd.
27486
27487 2006-01-12  Bruno Haible  <bruno@clisp.org>
27488
27489         * m4/ldd.m4: New file.
27490
27491 2006-01-12  Bruno Haible  <bruno@clisp.org>
27492
27493         * gnulib-tool (func_import, func_create_testdir): Don't go into an
27494         endless loop while replacing $auxdir with build-aux.
27495
27496 2006-01-11  Simon Josefsson  <jas@extundo.com>
27497
27498         * lib/stdint_.h (SIZE_MAX): Add missing (.
27499
27500 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
27501
27502         Sync from coreutils.
27503         * lib/md5.c: Fix commentary typos.
27504         (alignof, UNALIGNED_P): No need for a GCC-specific version.
27505         * lib/md5.h (__attribute__): Remove; unused.
27506         * lib/sha1.c: Fix commentary to match md5 better.
27507         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
27508         so that we don't need to worry about alignment.  All uses changed.
27509         This merges the 2005-10-28 md5 change into sha1.
27510
27511 2006-01-11  Jim Meyering  <jim@meyering.net>
27512
27513         Sync from coreutils.
27514         * lib/md5.c (OP): Fix spacing.
27515
27516 2006-01-11  Bruno Haible  <bruno@clisp.org>
27517
27518         Ensure automatic ordering between gl_LOCK and gl_ARGP.
27519         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
27520         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
27521
27522 2006-01-11  Bruno Haible  <bruno@clisp.org>
27523
27524         Ensure automatic ordering between gl_LOCK and gl_ARGP.
27525         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
27526         the "early" section as well.
27527
27528 2006-01-11  Bruno Haible  <bruno@clisp.org>
27529
27530         Avoid "ar: no archive members specified" error on MacOS X.
27531         * gnulib-tool (func_modules_add_dummy): New function.
27532         (func_import, func_create_testdir): Invoke it.
27533
27534 2006-01-11  Bruno Haible  <bruno@clisp.org>
27535
27536         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
27537         with $auxdir in AC_CONFIG_FILES statements.
27538
27539 2006-01-11  Bruno Haible  <bruno@clisp.org>
27540
27541         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27542         Initialize also noinst_HEADERS to empty.
27543
27544 2006-01-11  Bruno Haible  <bruno@clisp.org>
27545
27546         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
27547         variables.
27548         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
27549         autoreconf.
27550
27551 2006-01-11  Bruno Haible  <bruno@clisp.org>
27552
27553         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
27554         overridable by the user.
27555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27556
27557 2006-01-10  Simon Josefsson  <jas@extundo.com>
27558
27559         * modules/sys_socket: New file.
27560
27561 2006-01-10  Simon Josefsson  <jas@extundo.com>
27562
27563         * m4/sys_socket_h.m4: New file.
27564
27565 2006-01-10  Simon Josefsson  <jas@extundo.com>
27566
27567         * lib/socket_.h: New file.
27568
27569 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27570
27571         * modules/readutmp (Maintainer): Add myself.
27572
27573 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27574
27575         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
27576         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
27577         People who are still concerned with buggy memcmp implementations
27578         can invoke gl_FUNC_MEMCMP themselves.
27579
27580 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27581
27582         * lib/regex_internal.h (BITSET_WORD_BITS):
27583         Work around a bug in 64-bit PGC (before version 6.1-2), where the
27584         preprocessor mishandles large unsigned values as if they were signed.
27585         Problem reported by Claudio Fontana in
27586         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
27587
27588 2006-01-10  Jim Meyering  <jim@meyering.net>
27589
27590         Avoid the double-free (first in fts_read, second in fts_close) that
27591         would occur when an `active' directory is made inaccessible (e.g.,
27592         via chmod a-x) during a traversal.
27593         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27594         before returning.  Reproduce this failure by
27595         mkdir -p a/b; cd a; chmod a-x . b
27596         Reported by Stavros Passas.
27597
27598         Sync from coreutils.
27599         * lib/sha1.c: Tweak grammar in a comment.
27600
27601 2006-01-10  Jim Meyering  <jim@meyering.net>
27602
27603         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
27604         Patch by Joerg Sonnenberger.
27605
27606 2006-01-10  Bruno Haible  <bruno@clisp.org>
27607
27608         * modules/readutmp: Depend on module free.
27609         * modules/strtok_r: Depend on module restrict.
27610
27611 2006-01-10  Bruno Haible  <bruno@clisp.org>
27612
27613         * modules/gettext (configure.ac): Add an invocation of
27614         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
27615
27616 2006-01-10  Bruno Haible  <bruno@clisp.org>
27617
27618         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
27619         Reported by Werner Lemberg <wl@gnu.org>.
27620
27621 2006-01-10  Bruno Haible  <bruno@clisp.org>
27622
27623         * lib/localcharset.c: Update from GNU gettext.
27624
27625 2006-01-10  Bruno Haible  <bruno@clisp.org>
27626
27627         * lib/argp.h (__const): Remove macro. Use const instead.
27628         * lib/argp-fmtstream.h (__const): Likewise.
27629         * lib/glob_.h (__const): Remove macro.
27630         * lib/glob-libc.h: Use const instead of __const.
27631
27632 2006-01-10  Bruno Haible  <bruno@clisp.org>
27633
27634         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
27635         variable.
27636         Needed to avoid an automake error regarding the 'gettext' module.
27637
27638 2006-01-09  Simon Josefsson  <jas@extundo.com>
27639
27640         * modules/inet_ntop (Depends-on): Add restrict.
27641
27642 2006-01-09  Simon Josefsson  <jas@extundo.com>
27643
27644         * modules/gc-rijndael-tests (License): Put under LGPL.
27645
27646         * modules/gc-des-tests (License): Likewise.
27647
27648         * modules/gc-arcfour-tests (License): Likewise.
27649
27650         * modules/gc-arctwo-tests (License): Likewise.
27651
27652         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27653
27654         * modules/gc-hmac-sha1-tests (Files): Likewise.
27655
27656         * modules/gc-hmac-md5-tests (License): Likewise.
27657
27658         * modules/gc-sha1-tests (License): Likewise.
27659
27660         * modules/gc-md5-tests (License): Likewise.
27661
27662         * modules/gc-md4-tests (License): Likewise.
27663
27664         * modules/gc-md2-tests (License): Likewise.
27665
27666         * modules/gc-tests (License): Likewise.
27667
27668         * modules/des-tests (License): Likewise.
27669
27670         * modules/md4-tests (License): Likewise.
27671
27672         * modules/md2-tests (License): Likewise.
27673
27674 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27675
27676         Sync from coreutils:
27677
27678         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27679         * modules/lib-ignore: New file.
27680         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27681         chdir-safer.m4, lchmod.m4.
27682         * modules/openat: Add mkdirat.c, openat-priv.h.
27683
27684 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27685
27686         Sync from coreutils.
27687         * m4/lib-ignore.m4: New file.
27688         * m4/lchmod.m4: New file.
27689
27690 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27691
27692         Sync from coreutils.
27693         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27694         for write access: POSIX says that must fail.
27695         * lib/fts.c (diropen): Likewise.
27696         * lib/save-cwd.c (save_cwd): Likewise.
27697         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27698         well, for minor improvements on hosts that lack O_DIRECTORY.
27699         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27700         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27701         Fall back on chown if open failed with EACCES.
27702
27703         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27704         Report an error at compile-time if only a 1-second nominal clock
27705         resolution is found.
27706
27707         * lib/lchmod.h: New file.
27708         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27709         (make_dir_parents): Use lchown rather than chown, and
27710         lchmod rather than chmod.
27711
27712         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27713         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
27714         "proc" reported by n0dalus.
27715
27716         * lib/mountlist.c: Include <limits.h>.
27717         (dev_from_mount_options)
27718         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27719         New function.  It no longer assumes "dev=" has the System V meaning
27720         on Linux (since it doesn't).  It also parses "dev=" more carefully.
27721         (read_file_system_list)
27722         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27723         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27724         dev= in that case.
27725
27726         * lib/posixtm.h (PDS_PRE_2000): New macro.
27727         * lib/posixtm.c (year): Arg is now syntax_bits rather than
27728         allow_century.  All usages changed.  Reject dates outside the range
27729         1969-1999 if PDS_PRE_2000 is used.
27730
27731 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27732
27733         Sync from coreutils.
27734         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27735         (Time of day items): Mention the possibility of leap seconds.
27736         Problem reported by Dr. David Alan Gilbert.
27737
27738 2006-01-09  Jim Meyering  <jim@meyering.net>
27739
27740         Sync from coreutils.
27741
27742         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27743
27744         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27745
27746         * lib/modechange.c (mode_compile): Reject an invalid mode string
27747         that starts with an octal digit.  From Andreas Gruenbacher.
27748
27749         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27750         and dup to open_safer and dup_safer, respectively.
27751         (openat_permissive): Fix typo in comment.
27752
27753         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27754         "gettext.h"; either no longer needed or are guaranteed by openat.h.
27755         (_): Remove; no longer needed.
27756         (openat): Renamed from rpl_openat; no need for rpl_openat
27757         since openat.h renames openat for us.
27758         Replace most of the body with a call to openat_permissive,
27759         to avoid duplicate code.
27760         Port to (probably hypothetical) environments were mode_t is
27761         wider than int.
27762         (openat_permissive): Require mode arg, so that we can check
27763         types better.  Put it just after flags.  Change cwd failure
27764         indicator from pointer-to-bool to pointer-to-errno-value.
27765         All callers changed.
27766         Invoke openat_save_fail and/or openat_restore_fail if
27767         cwd_errno is null, so that openat can call us.
27768         (openat_permissive, fdopendir, fstatat, unlinkat):
27769         Simplify errno handling to avoid some duplicate code,
27770         as it's OK to set errno on success.
27771         * lib/openat.h: Revamp code so that function macros depend on
27772         __OPENAT_PREFIX only, not also on AT_FDCWD.
27773         (openat_ro): Remove.  Caller changed to use openat_permissive.
27774         (openat_permissive): Now a macro, if not a function.
27775         (openat_restore_fail, openat_save_fail): Now always functions,
27776         since mkdirat needs them even if __OPENAT_PREFIX is defined.
27777
27778         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27779         and openat.c.
27780         * lib/mkdirat.c: Include openat-priv.h.
27781         Remove definitions of macros defined therein.
27782         * lib/openat.c: Likewise.
27783
27784         * lib/mkdirat.c (mkdirat): New file and function.
27785         * lib/openat.h (mkdirat): Declare.
27786
27787         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27788
27789         * lib/openat.h (openat_permissive): Declare.
27790         (openat_ro): Define.
27791
27792         * lib/openat.c (EXPECTED_ERRNO): New macro.
27793         (openat_permissive): New function -- used in remove.c rewrite.
27794         (all functions): Set errno just before returning, only if there
27795         was an actual failure.
27796         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27797
27798         Emulate openat-family functions using Linux's procfs, if possible.
27799         Idea and some code based on Ulrich Drepper's glibc changes.
27800
27801         * lib/openat.c: (BUILD_PROC_NAME): New macro.
27802         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27803         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27804         before falling back on save_cwd and restore_cwd.
27805         (fdopendir, fstatat, unlinkat): Likewise.
27806
27807         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27808         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27809
27810         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27811         as second argument to va_arg.  Otherwise, some versions of gcc
27812         warn that `if this code is reached, the program will abort'.
27813
27814 2006-01-09  Jim Meyering  <jim@meyering.net>
27815
27816         Sync from coreutils.
27817         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27818         Require openat-priv.h.
27819
27820 2006-01-09  Bruno Haible  <bruno@clisp.org>
27821
27822         * modules/strnlen (Include): Use strnlen.h.
27823
27824 2006-01-09  Bruno Haible  <bruno@clisp.org>
27825
27826         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27827
27828 2006-01-09  Bruno Haible  <bruno@clisp.org>
27829
27830         * lib/sysexit_.h (EX_OK): New macro.
27831         Suggested by Martin Lambers <marlam@marlam.de>.
27832
27833 2006-01-09  Bruno Haible  <bruno@clisp.org>
27834
27835         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27836         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27837
27838 2006-01-09  Bruno Haible  <bruno@clisp.org>
27839
27840         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27841         numbers.
27842
27843 2006-01-09  Bruno Haible  <bruno@clisp.org>
27844
27845         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27846         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27847         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27848         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27849
27850 2006-01-09  Bruno Haible  <bruno@clisp.org>
27851
27852         * build-aux/javacomp.sh.in: New file, moved from lib/.
27853         * modules/javacomp-script (Files): Update.
27854         (configure.ac): Add AC_CONFIG_FILES invocation.
27855         (EXTRA_DIST): Remove variable.
27856
27857         * build-aux/javaexec.sh.in: New file, moved from lib/.
27858         * modules/javaexec (Files): Update.
27859         (configure.ac): Add AC_CONFIG_FILES invocation.
27860         (EXTRA_DIST): Remove javaexec.sh.in.
27861
27862         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27863         * modules/csharpcomp-script (Files): Update.
27864         (configure.ac): Add AC_CONFIG_FILES invocation.
27865         (EXTRA_DIST): Remove variable.
27866
27867         * build-aux/csharpexec.sh.in: New file, moved from lib/.
27868         * modules/csharpexec (Files): Update.
27869         (configure.ac): Add AC_CONFIG_FILES invocation.
27870         (EXTRA_DIST): Remove csharpexec.sh.in.
27871
27872 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27873
27874         Sync from coreutils.
27875
27876         Add POSIX ACL support
27877         * lib/acl.h (copy_acl, set_acl): Add declarations.
27878         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27879         systems other than Linux.
27880         (chmod_or_fchmod): New function: use fchmod when possible,
27881         and chmod otherwise.
27882         (file_has_acl): Add a POSIX ACL implementation, with a
27883         Linux-specific subcase.
27884         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27885         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
27886         acls are unsupported.
27887         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27888         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
27889         are unsupported.
27890
27891 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27892
27893         Sync from coreutils.
27894         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27895
27896 2006-01-07  Bruno Haible  <bruno@clisp.org>
27897
27898         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27899         gl_EARLY.
27900
27901 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         * lib/strftime.c (tzname): Don't declare if it is already #defined.
27904         Problem reported for Mingw by Mark Junker.
27905
27906 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         * README: Gnulib normally doesn't generate a tarball.
27909
27910 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27911
27912         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27913         long int, not int, for nanosecond counts, so that people who are
27914         used to POSIX struct timespec won't be surprised.  Reported by Jim
27915         Meyering.
27916
27917 2005-12-28  Bruno Haible  <bruno@clisp.org>
27918
27919         * build-aux/config.rpath: Update from GNU gettext.
27920
27921 2005-12-16  Jim Meyering  <jim@meyering.net>
27922
27923         * modules/fprintftime: New module.
27924         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27925
27926 2005-12-16  Jim Meyering  <jim@meyering.net>
27927
27928         * m4/fprintftime.m4: New file.
27929
27930 2005-12-16  Jim Meyering  <jim@meyering.net>
27931
27932         * lib/fprintftime.c, lib/fprintftime.h: New files.
27933
27934 2005-12-15  Simon Josefsson  <jas@extundo.com>
27935
27936         * modules/socklen (configure.ac): Fix M4 macro name, to align with
27937         new m4/socklen.m4.
27938
27939 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27940
27941         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27942         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27943
27944 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27945
27946         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27947         * lib/argp-help.c (fill_in_uparams): Check if the constructed
27948         struct uparams is valid. Fall back to the default values if it is
27949         not.
27950
27951 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27952
27953         * modules/argp (Files): Add argp-pin.c
27954         (Depends-on): dirname
27955         (lib_SOURCES): Add argp-pin.c
27956
27957 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27958
27959         * m4/argp.m4:  Check if program_invocation_name and
27960         program_invocation_short_name are declared and define appropriate
27961         macros if they are not.
27962
27963 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27964
27965         * lib/argp-help.c (__argp_base_name): New function
27966         (__argp_short_program_name): Rewrite using __argp_base_name
27967         * lib/argp-namefrob.h: Define program_invocation_name and
27968         program_invocation_short_name if requested
27969         (__argp_base_name): Add prototype
27970         * lib/argp-parse.c (argp_def): Use gettext wrappers
27971         (argp_default_parser): Use __argp_base_name
27972         * lib/argp-pin.c: New file. Defines program_invocation_name and
27973         program_invocation_short_name on systems that lack them.
27974
27975 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27976
27977         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27978         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27979         porting problem reported by Georg Schwarz in
27980         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27981
27982 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27985         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27986         porting problem reported by Georg Schwarz in
27987         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27988
27989 2005-12-05  Bruno Haible  <bruno@clisp.org>
27990
27991         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27992         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27993         Reported by Mark Junker <mjscod@gmx.de>.
27994
27995 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27996
27997         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27998         Use implementation from Albert Chin, with some
27999         comments/corrections by Stepan Kasal and myself.
28000
28001 2005-12-02  Bruno Haible  <bruno@clisp.org>
28002
28003         * gnulib-tool (func_import): Accept GPLed build tool modules when
28004         --lgpl is given.
28005         * modules/csharpcomp-script: New file.
28006         * modules/csharpcomp: Depend on it.
28007         * modules/javacomp-script: New file.
28008         * modules/javacomp: Depend on it.
28009         Suggested by Simon Josefsson.
28010
28011 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28012
28013         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
28014         statement, to work around an HP-UX 10.20 compiler bug reported by
28015         Peter O'Gorman.
28016
28017 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28018
28019         * modules/savedir (Depends-on): Add openat.
28020
28021 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28022
28023         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
28024         (uintmax_t) [defined uintmax_t]: Do not declare.
28025         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
28026         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
28027         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
28028         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
28029         sake of portability to weird hosts that C allows (though we don't
28030         know of any practical examples).
28031
28032         * lib/savedir.h (fdsavedir): New decl.
28033         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
28034         contains most of the former guts of savedir.
28035         (savedir): Use savedirstream.
28036         Include "openat.h".
28037
28038 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28039
28040         * modules/obstack (Files): Add m4/ulonglong.m4.
28041         Problem reported by Davide Angelocola.
28042
28043 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28044
28045         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
28046         coreutils no longer futzes with rounding modes.
28047
28048 2005-11-14  Jim Meyering  <jim@meyering.net>
28049
28050         * lib/mkstemp-safer.c: Include <config.h>, required for possible
28051         replacement of mkstemp.
28052
28053 2005-11-10  Simon Josefsson  <jas@extundo.com>
28054
28055         * lib/readline.c: Remove EOL.
28056
28057 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28058
28059         * modules/gethrxtime (Depends-on): Add gettime.
28060
28061 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28062
28063         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
28064         or gettimeofday; no longer needed.
28065
28066 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28067
28068         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
28069         time business.
28070         (gethrxtime) [! (HAVE_NANOUPTIME
28071         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
28072         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
28073         our own approximation.
28074
28075 2005-11-08  Eric Blake  <ebb9@byu.net>
28076
28077         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28078
28079 2005-11-08  Eric Blake  <ebb9@byu.net>
28080
28081         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28082
28083 2005-11-04  Bruno Haible  <bruno@clisp.org>
28084
28085         * gnulib-tool: Implement --update mode.
28086
28087 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28088
28089         Fix porting problem reported by Theodoros V. Kalamatianos.
28090         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
28091         Don't assume that futimes failing means we must fail.
28092
28093 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
28096         variables to suggest the intended function of the PATH_MAX check.
28097
28098 2005-10-30  Kean Johnston  <jkj@sco.com>
28099
28100         Trivial changes to support SCO systems.
28101         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
28102         as PATH_MAX.
28103         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
28104         where __ptr is null when no I/O is pending.
28105
28106 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28107
28108         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
28109         leave errno alone.  Problem reported by Dmitry V. Levin.
28110
28111 2005-10-28  Simon Josefsson  <jas@extundo.com>
28112
28113         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28114         Test more.
28115
28116         * tests/test-gc-md2.c, tests/test-md2.c: New files.
28117
28118         * modules/md2, modules/md2-tests: New files.
28119
28120 2005-10-28  Simon Josefsson  <jas@extundo.com>
28121
28122         * m4/inet_ntop.m4: More tests.
28123
28124         * m4/gc-md2.m4, md2.m4: New file.
28125
28126 2005-10-28  Simon Josefsson  <jas@extundo.com>
28127
28128         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28129         "restrict" keywords, as per POSIX.  Protect the function
28130         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28131         Don't use K&R prototypes.  Check the sprintf return values.
28132         Re-define EAFNOSUPPORT if not present.  Indent.
28133
28134         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28135         suggested by Bruno Haible <bruno@clisp.org>.
28136
28137         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28138
28139         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
28140
28141         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28142         libgcrypt).
28143
28144         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
28145
28146         * lib/md2.h, lib/md2.c: New files.
28147
28148 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28149
28150         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28151         errno alone.  Problem reported by Frederic Jolliton.
28152
28153 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
28154
28155         * modules/verify (License): Change from GPL to LGPL.  This is a
28156         tiny module and there are apparently near-equivalents that are
28157         under the BSD license.
28158
28159 2005-10-24  Simon Josefsson  <jas@extundo.com>
28160
28161         * modules/sha1: Relicense to LGPL.
28162
28163 2005-10-24  Simon Josefsson  <jas@extundo.com>
28164
28165         * lib/md4.h: Shrink buffer size, now that we changed the type.
28166
28167 2005-10-23  Simon Josefsson  <jas@extundo.com>
28168
28169         * gnulib-tool (func_import): Fix --tests-base.
28170
28171 2005-10-22  Simon Josefsson  <jas@extundo.com>
28172
28173         * modules/arcfour (Depends-on): Need stdint.
28174
28175 2005-10-22  Simon Josefsson  <jas@extundo.com>
28176
28177         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28178         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
28179
28180 2005-10-22  Simon Josefsson  <jas@extundo.com>
28181
28182         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28183         suggested by Bruno Haible <bruno@clisp.org>.
28184
28185 2005-10-22  Simon Josefsson  <jas@extundo.com>
28186
28187         * lib/crc.h: Include stddef.h, for size_t.
28188
28189 2005-10-22  Simon Josefsson  <jas@extundo.com>
28190
28191         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28192         arcfour_context struct (simplify test vector testing in GNU
28193         Shishi).
28194
28195 2005-10-21  Simon Josefsson  <jas@extundo.com>
28196
28197         * modules/des, modules/des-tests: New files.
28198
28199         * modules/gc-des, modules/gc-des-tests: New files.
28200
28201         * tests/test-des.c, tests/test-gc-des.c: New file.
28202
28203 2005-10-21  Simon Josefsson  <jas@extundo.com>
28204
28205         * modules/arctwo, modules/arctwo-tests: New files.
28206
28207         * tests/test-arctwo.c: New file.
28208
28209         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28210
28211         * tests/test-gc-arctwo.c: New file.
28212
28213 2005-10-21  Simon Josefsson  <jas@extundo.com>
28214
28215         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28216         Bruno Haible <bruno@clisp.org>.
28217
28218         * m4/gc-des.m4: New file.
28219
28220 2005-10-21  Simon Josefsson  <jas@extundo.com>
28221
28222         * m4/arctwo.m4: New file.
28223
28224         * m4/gc-arctwo.m4: New file.
28225
28226 2005-10-21  Simon Josefsson  <jas@extundo.com>
28227
28228         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28229         block.
28230
28231 2005-10-21  Simon Josefsson  <jas@extundo.com>
28232
28233         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28234         <bruno@clisp.org>.
28235
28236         * lib/hmac-sha1.c (hmac_sha1): Likewise.
28237
28238         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28239         Bruno Haible <bruno@clisp.org>.
28240
28241         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28242         <bruno@clisp.org>.
28243
28244 2005-10-21  Simon Josefsson  <jas@extundo.com>
28245
28246         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28247
28248 2005-10-21  Simon Josefsson  <jas@extundo.com>
28249
28250         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28251
28252 2005-10-21  Simon Josefsson  <jas@extundo.com>
28253
28254         * lib/des.h, lib/des.c: New files.
28255
28256         * lib/gc-gnulib.c: Support DES.c
28257
28258 2005-10-21  Simon Josefsson  <jas@extundo.com>
28259
28260         * lib/arctwo.h, lib/arctwo.c: New files.
28261
28262         * lib/gc-gnulib.c: Support ARCTWO.
28263
28264 2005-10-21  Simon Josefsson  <jas@extundo.com>
28265
28266         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28267         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28268
28269 2005-10-21  Simon Josefsson  <jas@extundo.com>
28270
28271         * gnulib-tool (func_import, func_create_testdir): Define automake
28272         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28273         Makefile.am snippet),
28274         suggested by Bruno Haible <bruno@clisp.org>.
28275
28276         * modules/gc (Makefile.am): Use it.
28277
28278 2005-10-21  Bruno Haible  <bruno@clisp.org>
28279
28280         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28281         patch.
28282
28283 2005-10-19  Simon Josefsson  <jas@extundo.com>
28284
28285         * tests/test-gc-rijndael.c: New file.
28286
28287         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28288
28289 2005-10-19  Simon Josefsson  <jas@extundo.com>
28290
28291         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28292         interface too.
28293
28294 2005-10-19  Simon Josefsson  <jas@extundo.com>
28295
28296         * tests/test-gc-arcfour.c: New file.
28297
28298         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28299
28300 2005-10-19  Simon Josefsson  <jas@extundo.com>
28301
28302         * modules/gc-md4, modules/gc-md4-tests: New file.
28303
28304         * tests/test-gc-md4.c: New file.
28305
28306 2005-10-19  Simon Josefsson  <jas@extundo.com>
28307
28308         * m4/gc-md4.m4: New file.
28309
28310 2005-10-19  Simon Josefsson  <jas@extundo.com>
28311
28312         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28313         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28314         <kasal@ucw.cz>.
28315
28316 2005-10-19  Simon Josefsson  <jas@extundo.com>
28317
28318         * m4/gc-arcfour.m4: New file.
28319
28320         * m4/gc-rijndael.m4: New file.
28321
28322 2005-10-19  Simon Josefsson  <jas@extundo.com>
28323
28324         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28325
28326 2005-10-19  Simon Josefsson  <jas@extundo.com>
28327
28328         * lib/gc-gnulib.c: Support ARCFOUR.
28329
28330 2005-10-19  Simon Josefsson  <jas@extundo.com>
28331
28332         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28333         support.
28334
28335         * lib/gc.h: Add ECB enum type.
28336
28337         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28338
28339 2005-10-18  Simon Josefsson  <jas@extundo.com>
28340
28341         * tests/test-md5.c: New file.
28342
28343         * modules/md5-tests: New file.
28344
28345 2005-10-18  Simon Josefsson  <jas@extundo.com>
28346
28347         * tests/test-md4.c: New file.
28348
28349         * modules/md4, modules/md4-tests: New files.
28350
28351 2005-10-18  Simon Josefsson  <jas@extundo.com>
28352
28353         * m4/md4.m4: New file.
28354
28355 2005-10-18  Simon Josefsson  <jas@extundo.com>
28356
28357         * lib/md4.h, lib/md4.c: New files, based on md5.?.
28358
28359 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
28360
28361         * gnulib-tool (func_create_testdir): Omit the second check whether
28362         BUILT_SOURCES in nonempty.
28363
28364 2005-10-17  Simon Josefsson  <jas@extundo.com>
28365
28366         * tests/test-rijndael.c: New file.
28367
28368 2005-10-17  Simon Josefsson  <jas@extundo.com>
28369
28370         * modules/sha1: Depend on stdint instead of md5.
28371
28372         * modules/md5: Depend on stdint, remove uint32_t.
28373
28374 2005-10-17  Simon Josefsson  <jas@extundo.com>
28375
28376         * modules/gc-sha1-tests: New file.
28377
28378         * tests/test-gc-sha1.c: New file.
28379
28380 2005-10-17  Simon Josefsson  <jas@extundo.com>
28381
28382         * m4/md5.m4: Remove call to uint32_t.m4.
28383
28384 2005-10-17  Simon Josefsson  <jas@extundo.com>
28385
28386         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28387
28388         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28389         md5.h.
28390
28391         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
28392
28393         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
28394
28395 2005-10-17  Simon Josefsson  <jas@extundo.com>
28396
28397         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28398
28399 2005-10-17  Simon Josefsson  <jas@extundo.com>
28400
28401         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28402
28403 2005-10-17  Simon Josefsson  <jas@extundo.com>
28404
28405         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28406
28407         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28408
28409 2005-10-17  Bruno Haible  <bruno@clisp.org>
28410
28411         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28412         that it can also be used in a test.
28413
28414 2005-10-16  Bruno Haible  <bruno@clisp.org>
28415
28416         * gnulib-tool (func_emit_tests_Makefile_am): Also define
28417         TESTS_ENVIRONMENT, so that individual tests can augment it.
28418
28419         * gnulib-tool (func_create_testdir): Use an intermediate target for
28420         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28421         macros, like $(ALLOCA_H), which cannot be passed through the command
28422         line.
28423
28424 2005-10-15  Simon Josefsson  <jas@extundo.com>
28425
28426         * modules/rijndael-tests: New file.
28427
28428         * modules/rijndael: New file.
28429
28430 2005-10-15  Simon Josefsson  <jas@extundo.com>
28431
28432         * m4/rijndael.m4: New file.
28433
28434 2005-10-15  Simon Josefsson  <jas@extundo.com>
28435
28436         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28437
28438         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28439
28440 2005-10-14  Simon Josefsson  <jas@extundo.com>
28441
28442         * tests/test-arcfour.c: New file.
28443
28444         * modules/arcfour, modules/arcfour-tests: New files.
28445
28446 2005-10-14  Simon Josefsson  <jas@extundo.com>
28447
28448         * m4/arcfour.m4: New file.
28449
28450 2005-10-14  Simon Josefsson  <jas@extundo.com>
28451
28452         * lib/arcfour.h, lib/arcfour.c: New files.
28453
28454 2005-10-14  Roland McGrath  <roland@redhat.com>
28455
28456         Import from libc.  [BZ #1331]
28457         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
28458         macro argument.
28459         Reported by Matej Vela <vela@debian.org>.
28460
28461 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28462
28463         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
28464         include <wchar.h>; no longer needed.
28465
28466 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28467
28468         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
28469
28470 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
28471         and  Ulrich Drepper  <drepper@redhat.com>
28472
28473         Import from libc.
28474         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
28475         instead of inline stream orientation test and two separate
28476         function calls.  Pay no attention to USE_IN_LIBIO.
28477
28478 2005-10-13  Simon Josefsson  <jas@extundo.com>
28479
28480         * modules/gc-hmac-md5-tests: New file.
28481
28482         * tests/test-gc-hmac-sha1.c: New file.
28483
28484         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
28485
28486         * modules/gc-hmac-md5-tests: New file.
28487
28488         * tests/test-gc-md5.c: New file.
28489
28490         * modules/gc-md5-tests: New file.
28491
28492 2005-10-13  Simon Josefsson  <jas@extundo.com>
28493
28494         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
28495         Move memory allocation outside of loop.
28496
28497 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28498
28499         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
28500         intermediate directory is in a read-only file system.  Problem
28501         reported by Eric Blake.
28502
28503 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
28504
28505         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
28506
28507 2005-10-12  Simon Josefsson  <jas@extundo.com>
28508
28509         * tests/test-hmac-sha1.c: New file.
28510
28511         * modules/hmac-sha1-tests: New file.
28512
28513         * modules/hmac-sha1: New file.
28514
28515 2005-10-12  Simon Josefsson  <jas@extundo.com>
28516
28517         * modules/gc-sha1: New file.
28518
28519 2005-10-12  Simon Josefsson  <jas@extundo.com>
28520
28521         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
28522
28523         * tests/test-gc-pbkdf2-sha1.c: New file.
28524
28525 2005-10-12  Simon Josefsson  <jas@extundo.com>
28526
28527         * modules/gc-md5, modules/gc-hmac-md5: New files.
28528
28529         * modules/gc (Files): Remove md5, memxor and hmac files.
28530
28531 2005-10-12  Simon Josefsson  <jas@extundo.com>
28532
28533         * m4/gc-pbkdf2-sha1.m4: New file.
28534
28535         * m4/gc-hmac-sha1.m4: New file.
28536
28537         * m4/gc-sha1: New file.
28538
28539         * m4/hmac-sha1.m4: New file.
28540
28541 2005-10-12  Simon Josefsson  <jas@extundo.com>
28542
28543         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
28544
28545         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
28546
28547 2005-10-12  Simon Josefsson  <jas@extundo.com>
28548
28549         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
28550         suggested by Bruno Haible <bruno@clisp.org>.
28551
28552 2005-10-12  Simon Josefsson  <jas@extundo.com>
28553
28554         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
28555
28556 2005-10-12  Simon Josefsson  <jas@extundo.com>
28557
28558         * lib/gc-pbkdf2-sha1.c: New file.
28559
28560         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
28561
28562 2005-10-12  Simon Josefsson  <jas@extundo.com>
28563
28564         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
28565
28566         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
28567
28568 2005-10-12  Simon Josefsson  <jas@extundo.com>
28569
28570         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
28571         GC_USE_HMAC_MD5, respectively.
28572
28573         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
28574         (gc_md5): Fix typo.
28575
28576         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
28577
28578         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
28579
28580         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
28581
28582 2005-10-12  Bruno Haible  <bruno@clisp.org>
28583
28584         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
28585         Reported by Stepan Kasal <kasal@ucw.cz>.
28586
28587 2005-10-11  Simon Josefsson  <jas@extundo.com>
28588
28589         * tests/test-crc.c: New file.
28590
28591         * modules/crc, modules/crc-tests: New files.
28592
28593 2005-10-11  Simon Josefsson  <jas@extundo.com>
28594
28595         * m4/crc.m4: New file.
28596
28597 2005-10-11  Simon Josefsson  <jas@extundo.com>
28598
28599         * lib/gc.h: Add gc_hash and gc_hash_buffer.
28600
28601         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
28602
28603         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
28604
28605 2005-10-11  Simon Josefsson  <jas@extundo.com>
28606
28607         * lib/crc.h, lib/crc.c: New files.
28608
28609         * lib/gc.h (gc_hash_buffer): Add doc.
28610
28611 2005-10-11  Bruno Haible  <bruno@clisp.org>
28612
28613         * modules/c-strcasestr: New file.
28614         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
28615
28616 2005-10-11  Bruno Haible  <bruno@clisp.org>
28617
28618         * modules/c-strcase: New file.
28619         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
28620
28621 2005-10-11  Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/strcasecmp.c: Include limits.h.
28624         (strcasecmp): Avoid integer overflow on exotic platforms.
28625         * lib/strncasecmp.c: Include limits.h.
28626         (strncasecmp): Avoid integer overflow on exotic platforms.
28627         Reported by Paul Eggert.
28628
28629 2005-10-11  Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/c-strcasestr.h: New file, from GNU gettext.
28632         * lib/c-strcasestr.c: New file, from GNU gettext.
28633
28634 2005-10-11  Bruno Haible  <bruno@clisp.org>
28635
28636         * lib/c-strcase.h: New file, from GNU gettext.
28637         * lib/c-strcasecmp.c: New file, from GNU gettext.
28638         * lib/c-strncasecmp.c: New file, from GNU gettext.
28639
28640 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28641
28642         * modules/mempcpy (License): GPL -> LGPL.
28643         * modules/strchrnul (License): Likewise.
28644         * modules/sysexits (License): Likewise.
28645
28646 2005-10-08  Simon Josefsson  <jas@extundo.com>
28647
28648         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
28649
28650 2005-10-07  Simon Josefsson  <jas@extundo.com>
28651
28652         * m4/memxor.m4: Remove gl_C_RESTRICT call.
28653
28654 2005-10-06  Simon Josefsson  <jas@extundo.com>
28655
28656         * tests/test-hmac-md5.c: New file.
28657
28658         * modules/hmac-md5-tests: New file.
28659
28660         * modules/hmac-md5: New file.
28661
28662 2005-10-06  Simon Josefsson  <jas@extundo.com>
28663
28664         * m4/hmac-md5.m4: New file.
28665
28666         * m4/memxor.m4: Require gl_C_RESTRICT.
28667
28668 2005-10-06  Simon Josefsson  <jas@extundo.com>
28669
28670         * lib/memxor.c (memxor): Avoid casts and warnings.
28671
28672 2005-10-06  Simon Josefsson  <jas@extundo.com>
28673
28674         * lib/hmac-md5.c: New file.
28675
28676         * lib/hmac.h: New file.
28677
28678 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28679
28680         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28681         promotes to int, not unsigned int, to catch the AIX 5.3
28682         compiler bug.
28683
28684 2005-10-05  Simon Josefsson  <jas@extundo.com>
28685
28686         * modules/memxor: New file.
28687
28688         * modules/iconv (Files): Move config.rpath to havelib, it is used
28689         there.
28690
28691         * modules/havelib (Files): Add config.rpath.
28692
28693 2005-10-05  Simon Josefsson  <jas@extundo.com>
28694
28695         * m4/memxor.m4: New file.
28696
28697 2005-10-05  Simon Josefsson  <jas@extundo.com>
28698
28699         * lib/memxor.c (memxor): Fix compiler error.
28700
28701         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28702         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28703
28704         * lib/memxor.h, lib/memxor.c: New files.
28705
28706         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28707         we assume all systems have it, suggested by Jim Meyering
28708         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
28709         any systems lack sys/socket.h; mingw32 is known to lack it, but we
28710         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
28711         same reasons.
28712
28713 2005-10-05  Simon Josefsson  <jas@extundo.com>
28714
28715         * config/srclist.txt: Add glibc bug 1423 for md5.h.
28716
28717 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28718
28719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28720         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28721         needed, since the source code now assumes these .h files.
28722
28723 2005-10-05  Derek Price  <derek@ximbiot.com>
28724
28725         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28726
28727 2005-10-05  Bruno Haible  <bruno@clisp.org>
28728
28729         * modules/stdint (License): Change to LGPL.
28730
28731 2005-10-04  Simon Josefsson  <jas@extundo.com>
28732
28733         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28734         D. Baushke" <mdb@gnu.org>.
28735
28736 2005-10-04  Bruno Haible  <bruno@clisp.org>
28737
28738         * lib/verify.h (verify_true): Provide alternative definition for C++.
28739
28740 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28741
28742         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
28743         (SSIZE_MAX): New macro, if not already defined.
28744         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28745         than 2 GiB.
28746
28747 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28748
28749         Sync from coreutils.
28750         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28751         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28752         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
28753         ULLONG_MAX doesn't work with 2.7.2.1.
28754
28755 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28756
28757         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28758         From Ben Pfaff.
28759
28760         * modules/exclude (Depends-on): Depend on verify.
28761         * modules/strtoimax (Depends-on): Likewise.
28762         * modules/utimecmp (Depends-on): Likewise.
28763
28764 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28765
28766         * lib/exclude.c: Include verify.h.
28767         (verify): Remove.  All callers changed to use verify.h's version.
28768         * lib/strtoimax.c: Likewise.
28769         * lib/utimecmp.c: Likewis.e
28770
28771         Sync from coreutils.
28772         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28773         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28774         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28775         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
28776         bother returning ENOSYS if settimeofday or stime fails; just let
28777         them return whatever errno they want to return.
28778         * lib/utimens.c: Include unistd.h, for dup2.
28779         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28780         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28781
28782 2005-10-02  Jim Meyering  <jim@meyering.net>
28783
28784         Sync from coreutils.
28785         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28786         from glibc-2.2.5 that fails for read-only files.
28787
28788 2005-10-02  Jim Meyering  <jim@meyering.net>
28789
28790         Sync from coreutils.
28791         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28792         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28793         `#if HAVE_CONFIG_H'.
28794         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28795         Remove AT_FDCWD test.
28796         Do not consume the fd unless successful.
28797         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28798         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28799         block, so that we don't even try to compile it if settimeofday is
28800         available.  This works around a compilation failure on OSF1 V5.1,
28801         due to stime requiring a `long int*' while tv_sec is `int'.
28802
28803 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
28804
28805         Sync from coreutils.
28806         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28807         against `yes', rather than just testing for nonempty.
28808
28809 2005-10-01  Simon Josefsson  <jas@extundo.com>
28810
28811         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28812         and Darwin.
28813
28814         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28815         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
28816         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
28817         freeaddrinfo and gai_strerror are declared by the POSIX headers.
28818         Check if struct addrinfo is declared.
28819
28820 2005-10-01  Simon Josefsson  <jas@extundo.com>
28821
28822         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28823         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
28824         AI_* and EAI_* definitions.  Protect function declarations.
28825
28826 2005-10-01  Jim Meyering  <jim@meyering.net>
28827
28828         Sync from coreutils.
28829
28830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28831         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
28832         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28833         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28834         in the inet and nsl libraries.  Required on Solaris 5.7.
28835
28836 2005-10-01  Jim Meyering  <jim@meyering.net>
28837
28838         Sync from coreutils.
28839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28840         in the inet and nsl libraries.  Required on Solaris 5.7.
28841
28842 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
28843
28844         * lib/getdelim.c (getdelim): Remove unused variables.
28845
28846 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28847
28848         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28849         so that the code works even with ancient cpp.  Portability problem
28850         with GCC 2.7.2.1 reported by Thomas M.Ott.
28851
28852 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28853
28854         * modules/regex (Depends-on): Add strcase.
28855
28856         * modules/gethostname (Licence): Change from GPL to LGPL, since
28857         gethostname.c is a trivial implementation of a standard library
28858         function.
28859         * modules/poll (License): Change from GPL to LGPL, since it's
28860         derived from LGPL code.
28861
28862 2005-09-27  Jim Meyering  <jim@meyering.net>
28863
28864         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28865         HAVE_CONFIG_H.
28866
28867         * lib/intprops.h (signed_type_or_expr__): Define.
28868         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28869         for unsigned types.
28870
28871 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         * lib/verify.h (verify_expr): Remove, replacing with:
28874         (verify_true): New macro that returns true instead of void.
28875         (verify_type__): Remove.
28876         (verify): Use verify_true rather than verify_type__.
28877
28878 2005-09-26  Bruno Haible  <bruno@clisp.org>
28879
28880         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28881         is necessary.
28882         (lib_SOURCES): Remove mbchar.c.
28883         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28884         (Files): Add m4/mbrtowc.m4.
28885         * modules/mbiter: Likewise.
28886         * modules/mbuiter: Likewise.
28887
28888 2005-09-26  Bruno Haible  <bruno@clisp.org>
28889
28890         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28891         compile mbchar.c if they are not both present.
28892         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28893         * m4/mbiter.m4 (gl_MBITER): Likewise.
28894         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28895         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28896         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28897
28898 2005-09-25  Jim Meyering  <jim@meyering.net>
28899
28900         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28901         also uses socklen_t.
28902
28903 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28904
28905         * lib/utimens.c (ENOSYS): Define if not already defined.
28906         (futimens): Support having a null PATH if the file descriptor
28907         is nonnegative.
28908
28909         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28910         Remove.
28911         (__attribute): Define to empty unless GCC 3.1 or later.
28912         This works around a core dump on OpenBSD 3.4, which has GCC
28913         2.95.3, which dumps core when given __attribute__(()).  It also
28914         simplifies other tests, since we really don't want to bother with
28915         worrying about which ancient version of GCC supported what.
28916         Original problem reported by Yoann Vandoorselaere, with part of
28917         the fix suggested by Derek Price.
28918
28919 2005-09-24  Jim Meyering  <jim@meyering.net>
28920
28921         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28922         so we can once again use a positive bitfield width of 1 -- now we
28923         don't have to explain why we were using a bitfield width of 2.
28924
28925 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28926
28927         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28928         and similarly for the other external symbols.  Problem reported
28929         by James Gallager.
28930
28931         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28932         bug reported by Jim Meyering.
28933
28934         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28936         not needed, since socklen is a prerequisite module.
28937
28938 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28939
28940         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28941         Problem reported by Eric Blake.
28942         (getaddrinfo): Initialize se so that it's not garbage.
28943         Redo internal storage allocation so that it doesn't make unportable
28944         assumptions about alignment.
28945         Fix a memory leak.
28946
28947         * lib/utimens.c (futimens): Use futimesat if available.
28948         Prefer it to futimes since it doesn't have the futimes bug.
28949
28950         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28951         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28952         Instead, declare a function that returns a pointer to an array,
28953         and use verify_type__ to declare the size of the array.
28954         Problem and germ of a solution reported by Bruno Haible.
28955         (verify_type__): Use 2, not 1, for bitfield size, to avoid
28956         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
28957
28958 2005-09-23  Jim Meyering  <jim@meyering.net>
28959
28960         Sync from coreutils.
28961         Correct build failure (socklen_t not defined) on at least
28962         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28964
28965 2005-09-23  Jim Meyering  <jim@meyering.net>
28966
28967         * modules/getaddrinfo (Depends-on): Add socklen.
28968
28969 2005-09-23  Bruno Haible  <bruno@clisp.org>
28970
28971         * tests/test-verify.c: New file.
28972
28973 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28974
28975         Sync from coreutils.
28976
28977         * modules/argmatch (Depends-on): Add verify.
28978         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28979         unistd-safer.
28980         * modules/save-cwd (Depends-on): Likewise.
28981
28982         * modules/openat (Files): Add lib/openat-die.c.
28983         (Depends-on): Remove error, exitfail.
28984         Add dirname.
28985
28986         * modules/verify: New file.
28987         * MODULES.html.sh (Diagnostics <assert.h>): New section,
28988         with "verify" module.
28989
28990 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28991
28992         Sync from coreutils.
28993
28994         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28995         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28996         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28997         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28998         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28999         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
29000         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
29001         Don't bother checking for string.h, stdlib.h, unistd.h.
29002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
29003         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
29004         module's job.
29005         * m4/jm-macros.m4 (gl_MACROS): Likewise.
29006         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
29007
29008         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
29009         (gl_GETDATE): Use it.
29010
29011         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
29012
29013 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29014
29015         Sync from coreutils.
29016
29017         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
29018         stat-time.h.
29019         * lib/argmatch.h: Include verify.h
29020         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
29021         (ARGMATCH_ASSERT): Remove; unused.
29022         * lib/canonicalize.c: Assume STDC_HEADERS.
29023         * lib/exclude.c: Include "strcase.h".
29024         * lib/regex_internal.h [!defined _LIBC]: Likewise.
29025         * lib/getusershell.c: Include stdio--.h rather than stdio.h
29026         and stdio-safer.h.
29027         (getusershell): Call fopen, not fopen_safer.
29028         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
29029         Do not include unistd-safer.h.
29030         (save_cwd): Don't call fd_safer; no longer needed
29031         now that we include fcntl--.h.
29032
29033         * lib/getdate.y (relative_time): New type.
29034         (RELATIVE_TIME_0): New constant.
29035         (parser_control): Use relative_time instead of doing it ourselves.
29036         (%union): Add new relative_time rel member.
29037         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
29038         Now typeless.
29039         (relunit, relunit_snumber): Now of type rel.
29040         (zone, rel, relunit, get_date): Adjust to above changes.
29041
29042         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
29043         Do not include unistd-safer.h.
29044         (getloadavg): Don't call fd_safer; no longer needed
29045         now that we include fcntl--.h.
29046
29047         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
29048         (make_dir_parents): Treat ENOSYS like EEXIST.
29049
29050         Improve quality of diagnostics on restore_cwd failure.
29051         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
29052         (make_dir_parents): Last arg is now int * (for errno), not bool *.
29053         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
29054         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
29055         each time through the loop.  Do not diagnose restore_cwd failure;
29056         that is the caller's job (and perhaps the caller does not care).
29057
29058         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
29059         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
29060         If the file already exists but is not a directory, don't bother
29061         to try to make its parents.
29062         Close potential file descriptor leak if we can't chdir("/") (!).
29063         Don't always return true if chdir($PWD) fails; return true only
29064         if the requested action was done successfully (except for the
29065         chdir($PWD)).
29066         Don't log final directory unless we actually made it.
29067         Refactor to avoid duplicate code to fix up permissions.
29068         Don't attempt to fix up parent permissions if chdir($PWD) fails.
29069
29070         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
29071         to make it a bit faster and (I hope) clearer.
29072         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
29073         Fix bug in formats like %2N.
29074
29075         * lib/verify.h: New file.
29076
29077 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29078
29079         Sync from coreutils.
29080         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29081
29082 2005-09-22  Jim Meyering  <jim@meyering.net>
29083
29084         Sync from coreutils.
29085
29086         * m4/lstat.m4 (gl_FUNC_LSTAT):
29087         Use AC_LIBSOURCES to require lstat.c and lstat.h.
29088         Remove obsolete comment.
29089         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
29090         * m4/xstrtod.m4: Likewise.
29091
29092         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
29093
29094 2005-09-22  Jim Meyering  <jim@meyering.net>
29095
29096         Sync from coreutils.
29097
29098         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
29099
29100         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
29101         the .tm_year member, since otherwise gcc-4.0 would now warn about
29102         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
29103
29104         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
29105         order to avoid an unsuppressible warning from gcc on 64-bit systems.
29106
29107         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
29108         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
29109         when run in a time zone for which daylight savings time is in effect
29110         for the starting date.
29111
29112         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29113         stop us from restricting permissions of just-created absolute-named
29114         directories.
29115         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29116         to restore initial working directory.
29117         * lib/mkdir-p.c (make_dir_parents): New parameter:
29118         different_working_dir, to tell caller if/when we change the working
29119         directory and are unable to return to the initial one.
29120         * lib/mkdir-p.h (make_dir_parents): Update prototype.
29121         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29122         `return false'.  This fixes a bug introduced on 2004-07-30.
29123
29124         * lib/openat.c (fdopendir): Be sure to close the supplied
29125         file descriptor before returning.  This makes our replacement
29126         implementation a little closer to Solaris's, where fdopendir
29127         ties the file descriptor to the returned DIR* pointer.
29128         * lib/openat.c (unlinkat): New function.
29129         * lib/openat.h (unlinkat): Add prototype.
29130         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29131         (openat_restore_fail): Rename from openat_restore_die.
29132         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29133
29134         Provide an alternative to exiting immediately upon save_cwd or
29135         restore_cwd failure.  Now, an application can arrange e.g.,
29136         to perform a longjump in that case.
29137         * lib/openat.c: Include dirname.h.
29138         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29139         (rpl_openat, fdopendir, fstatat): Call openat_save_die
29140         and openat_restore_die rather than calling error directly.
29141         Don't include "error.h" or "exitfail.h"; they're no longer needed.
29142
29143         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29144         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29145         define.
29146
29147         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29148         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29149                             int utc, int nanoseconds);
29150         Background:
29151         date should not have to allocate a megabyte of virtual memory to
29152         handle a format argument like +%1048575T.  When implemented with
29153         strftime, it must allocate such a buffer, use strftime to fill it
29154         in, print it, then free it.
29155         With fprintftime, it simply prints everything and exits.
29156         With no need for memory allocation, that's one fewer way to fail.
29157         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29158         optional field width, not before, so we accept %9:z, not %:9z.
29159         (my_strftime): Be sure to use L_('x') for literals.
29160
29161         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29162         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29163         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29164         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29165         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29166         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29167         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29168         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29169         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29170         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29171         * lib/xgethostname.c, lib/xreadlink.c:
29172         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29173
29174         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29175         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29176         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29177         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29178         and don't include <sys/file.h>).
29179
29180 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
29181
29182         Sync from coreutils.
29183
29184         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29185         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29186         [!LDAV_DONE]: Avoid unused variable warning.
29187
29188 2005-09-21  Bruno Haible  <bruno@clisp.org>
29189
29190         * lib/unicodeio.h (unicode_to_mb): New declaration.
29191
29192 2005-09-20  Derek Price  <derek@ximbiot.com>
29193
29194         * lib/getaddrinfo.c: Don't include <netdb.h> included from
29195         getaddrinfo.h.
29196
29197 2005-09-20  Bruno Haible  <bruno@clisp.org>
29198
29199         * gnulib-tool: Remove trailing slashes from the values specified for
29200         --source-base, --m4-base, --tests-base, --aux-dir.
29201         Suggested by Simon Josefsson <jas@extundo.com>.
29202
29203 2005-09-20  Bruno Haible  <bruno@clisp.org>
29204
29205         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29206         func_modules_to_filelist, func_import, func_create_testdir): Make all
29207         sorting results locale-independent, so that gnulib-cache.m4 doesn't
29208         change when gnulib-tool is invoked in a different locale.
29209
29210 2005-09-19  Simon Josefsson  <jas@extundo.com>
29211
29212         * m4/socklen.m4: Fix typo.
29213
29214 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29215
29216         Use a consistent style for including <config.h>.
29217         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29218         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29219         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29220         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29221         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29222         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29223         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29224         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29225         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29226         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29227         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29228         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29229         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29230         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29231         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29232         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29233         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29234         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29235         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29236         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29237         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29238         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29239         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29240         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29241         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29242         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29243         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29244         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29245         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29246         lib/xstrtoumax.c, lib/yesno.c:
29247         Standardize inclusion of config.h.
29248         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29249         lib/inttostr.h:  Removed inclusion of config.h from header files.
29250         * lib/inttostr.c:  Adjusted in-tree users.
29251         * lib/timespec.h: Remove superfluous warning to include config.h.
29252         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29253         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29254         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29255         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29256         config.h with HAVE_CONFIG_H.
29257
29258 2005-09-19  Jim Meyering  <jim@meyering.net>
29259
29260         * modules/pathmax (License): Change to LGPL.
29261
29262 2005-09-19  Derek Price  <derek@ximbiot.com>
29263
29264         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29265
29266 2005-09-19  Bruno Haible  <bruno@clisp.org>
29267
29268         * gnulib-tool (import): Provide default for --tests-base.
29269
29270 2005-09-19  Bruno Haible  <bruno@clisp.org>
29271
29272         * doc/quote.texi: New file, extracted from gnulib.texi.
29273         * doc/ctime.texi: New file, extracted from gnulib.texi.
29274         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29275         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29276         * doc/gnulib.texi: Include them.
29277
29278 2005-09-18  Bruno Haible  <bruno@clisp.org>
29279
29280         Portability fix.
29281         * gnulib-tool (func_readlink): New function.
29282         (func_ln_if_changed): Use it.
29283
29284 2005-09-18  Bruno Haible  <bruno@clisp.org>
29285
29286         * gnulib-tool: Support --with-tests also with --import.
29287         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29288         (func_import): Use variables $testsbase and $inctests. Emit a
29289         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29290         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29291         SUBDIRS += $testsdir.
29292         (func_create_testdir): Update.
29293
29294 2005-09-18  Bruno Haible  <bruno@clisp.org>
29295
29296         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29297         instead of $dry_run.
29298         (func_cp_if_changed, func_mv_if_changed): Remove functions.
29299         (func_ln_if_changed): Don't handle dry-run here.
29300         (func_import): In dry-run mode, detect more precisely which actions
29301         would be performed, and don't use "...ing" verbs.
29302
29303 2005-09-18  Bruno Haible  <bruno@clisp.org>
29304
29305         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29306         (func_import): Use join on two temporary files instead of three nested
29307         loops, in order to determine which files are new or old.
29308
29309 2005-09-18  Bruno Haible  <bruno@clisp.org>
29310
29311         * gnulib-tool (func_import): Comment out code that spits out the
29312         new files with --dry-run.
29313
29314 2005-09-18  Bruno Haible  <bruno@clisp.org>
29315
29316         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29317
29318 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29319
29320         * lib/stat-time.h: New file.
29321         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29322         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
29323         in a different way.
29324         (timespec_cmp): New function.
29325         * lib/utimecmp.c: Include stat-time.h.
29326         (SYSCALL_RESOLUTION): Depend on whether various struct stat
29327         members exist, not on the obsolescent ST_MTIM_NSEC.
29328         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29329
29330 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29331
29332         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29333
29334 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29335
29336         * MODULES.html.sh (File system functions): Add stat-time.
29337         * modules/stat-time: New file.
29338         * modules/timespec (Files): Remove m4/st_mtim.m4; this
29339         is now done in a different way, by the stat-time module.
29340         * modules/utimecmp (Depends-on): Add stat-time.
29341
29342 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29343
29344         * m4/st_mtim.m4: Remove.  Superseded by...
29345         * m4/stat-time.m4: New file.
29346         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29347         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29348
29349 2005-09-15  Derek Price  <derek@ximbiot.com>
29350
29351         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29352
29353 2005-09-15  Derek Price  <derek@ximbiot.com>
29354
29355         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29356         * lib/regex_internal.c: Ditto, using this...
29357         (__GNUC_PREREQ): ...new macro.
29358         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29359         using...
29360         (__GNUC_PREREQ): ...this new macro.
29361
29362         * lib/strstr.h: Include string.h. Define strstr as a macro here.
29363
29364 2005-09-15  Derek Price  <derek@ximbiot.com>
29365             Paul Eggert  <eggert@cs.ucla.edu>
29366
29367         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29368         changes, consolidating in...
29369         * lib/regex_internal.h: ...this file.
29370
29371 2005-09-13  Jim Meyering  <jim@meyering.net>
29372
29373         * lib/canon-host.c: Filter through gnu indent and reword comments
29374         slightly.
29375         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29376
29377 2005-09-13  Derek Price  <derek@ximbiot.com>
29378
29379         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29380         failure.
29381         Reported by Jim Meyering  <jim@meyering.net>.
29382
29383 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29384
29385         * lib/base64.c: Typo.
29386         (base64_encode): Put b64str in initialized data section.
29387
29388 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29389
29390         Merge glibc and coreutils changes into gnulib, plus a few
29391         extra fixes.
29392         * lib/md5.c: Use #error rather than a string.
29393         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
29394         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29395         (__attribute__): Define to empty for non recent-GCC.
29396         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29397         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29398         Renamed from their non-__ counterparts, with new macros replacing
29399         them if not _LIBC.  Add __THROW attribute.
29400         (rol): Remove.
29401         (struct md5_ctx): Align buffer if using GCC.
29402         * lib/sha1.h (struct sha1_ctx): Likewise.
29403         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
29404         The old name was backwards.
29405         (NOTSWAP): Remove; not used.
29406         (rol): New macro, moved here from md5.h.
29407         (sha1_process_block): Remove a FIXME that doesn't make sense.
29408
29409 2005-09-12  Derek Price  <derek@ximbiot.com>
29410
29411         Return usable errors from canon-host.
29412         * lib/canon-host.h: New file.
29413         * lib/canon-host.c (canon_host): Wrap...
29414         (canon_host_r): ...this new function, which now relies exclusively on
29415         getaddrinfo.
29416         (ch_strerror): New function.
29417         (last_cherror): New global.
29418         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29419         interface.
29420         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
29421         void *.
29422         (freeaddrinfo): Free ai->ai_canonname when set.
29423
29424 2005-09-12  Derek Price  <derek@ximbiot.com>
29425
29426         Make canon-host require getaddrinfo.
29427         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29428         AC_LIBSOURCE canon-host.h.  Call...
29429         (gl_PREREQ_CANON_HOST): ...this new function, which requires
29430         gl_GETADDRINFO.
29431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29432
29433 2005-09-12  Derek Price  <derek@ximbiot.com>
29434
29435         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
29436         LGPL.
29437         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
29438
29439 2005-09-12  Derek Price  <derek@ximbiot.com>
29440
29441         * lib/gai_strerror.c: Include config.h when available.  Include
29442         getaddrinfo.h before other headers to test interface.
29443         Reported by Larry Jones <lawrence.jones@ugs.com>.
29444
29445 2005-09-12  Derek Price  <derek@ximbiot.com>
29446             Paul Eggert  <eggert@cs.ucla.edu>
29447
29448         * modules/glob (Files): Add glob-libc.h.
29449
29450 2005-09-12  Derek Price  <derek@ximbiot.com>
29451             Paul Eggert  <eggert@cs.ucla.edu>
29452
29453         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29454         glob_.h, glob-libc.h.
29455         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
29456
29457 2005-09-12  Derek Price  <derek@ximbiot.com>
29458             Paul Eggert  <eggert@cs.ucla.edu>
29459
29460         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
29461         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
29462         protecting things that should be done only in gnulib contexts.
29463         * lib/glob_.h: New file, containing only the glob things needed for
29464         gnulib.
29465         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
29466         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
29467         (glob, globfree, glob_pattern_p): Now defined simply in terms of
29468         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
29469         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
29470         and to respect the namespace rules better.
29471
29472 2005-09-08  Simon Josefsson  <jas@extundo.com>
29473
29474         * modules/socklen: New file.
29475
29476 2005-09-08  Simon Josefsson  <jas@extundo.com>
29477
29478         * m4/socklen.m4: New file.
29479
29480 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29481
29482         * modules/utimens (Files): Add m4/utimbuf.m4, since
29483         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
29484         Reported by Sergey Poznyakoff.
29485
29486 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29487
29488         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
29489         definitions, since that's the preferred style in glibc.
29490         Fix a minor spacing issue, and update copyright notice to match
29491         glibc's.
29492
29493 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29494
29495         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
29496
29497 2005-09-06  Simon Josefsson  <jas@extundo.com>
29498
29499         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
29500         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
29501
29502 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29503
29504         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
29505         warning.
29506
29507 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29508
29509         * config/srclist.txt: Add glibc bug 1302.
29510
29511 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
29512
29513         Change bitset word type from unsigned int to unsigned long int,
29514         as this has better performance on typical 64-bit hosts.
29515         Port bitset code to hosts with unusual word sizes.
29516         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
29517         (build_collating_symbol):
29518         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
29519         argument is a bitset.  This is merely a style issue, but it makes
29520         it clearer that an entire array is expected.
29521         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
29522         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
29523         Port to the case where bitset_word is not the same as unsigned int.
29524         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29525         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
29526         Likewise.
29527         * lib/regexec.c (check_dst_limits_calc_pos_1,
29528         check_subexp_matching_top):
29529         (build_trtable, group_nodes_into_DFAstates):
29530         Likewise.
29531         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
29532         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
29533         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
29534         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
29535         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
29536         * lib/regcomp.c (optimize_subexps, lower_subexp):
29537         Work even if bitset_word has holes in its bitwise representation.
29538         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
29539         * lib/regexec.c (check_dst_limits_calc_pos_1,
29540         check_subexp_matching_top):
29541         Likewise.
29542         * lib/regex_internal.c (re_string_reconstruct):
29543         Don't assume UCHAR_MAX == 255.
29544         * lib/regex_internal.h (bitset_set_all): Likewise.
29545         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
29546         All uses changed.
29547         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
29548         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
29549         All uses changed.
29550         (BITSET_WORD_MAX): New macro.
29551         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
29552         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
29553         (bitset_empty, bitset_copy):
29554         Prefer sizeof (bitset) to multiplying it out ourselves.
29555         (bitset_not_merge): Remove; unused.
29556         (bitset_contain): Return bool, not unsigned int with one bit on.
29557         All callers changed.
29558         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
29559         alignment than re_node_set; do this by defining a new internal
29560         type struct dests_alloc and using it to allocate memory.
29561
29562 2005-09-05  Bruno Haible  <bruno@clisp.org>
29563
29564         * gnulib-tool (func_import): Fix comparison in handling of symbolic
29565         links.
29566
29567 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
29568
29569         * modules/size_max (Makefile.am): Add size_max.h
29570
29571 2005-09-04  Derek Price  <derek@ximbiot.com>
29572
29573         * gnulib-tool (func_import): Fix reversed $symbolic logic.
29574
29575 2005-09-03  Simon Josefsson  <jas@extundo.com>
29576
29577         * gnulib-tool: Fix typo.
29578
29579 2005-09-03  Simon Josefsson  <jas@extundo.com>
29580
29581         * config/srclist.txt: Add glibc bug 1293.
29582
29583 2005-09-03  Derek Price  <derek@ximbiot.com>
29584
29585         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
29586         From Larry Jones <lawrence.jones@ugs.com>.
29587
29588 2005-09-02  Simon Josefsson  <jas@extundo.com>
29589
29590         * modules/socklen: New file.
29591
29592 2005-09-02  Simon Josefsson  <jas@extundo.com>
29593
29594         * modules/havelib: New module.
29595
29596         * modules/gettext, modules/iconv, modules/lock, modules/readline:
29597         Use havelib.
29598
29599 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29600
29601         Check for arithmetic overflow when calculating sizes, to prevent
29602         some buffer-overflow issues.  These patches are conservative, in the
29603         sense that when I couldn't determine whether an overflow was possible,
29604         I inserted a run-time check.
29605         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
29606         macros.
29607         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
29608         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
29609         (re_xnrealloc, re_x2nrealloc): New inline functions.
29610         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
29611         parse_bracket_exp):
29612         (build_equiv_class, build_charclass): Check for arithmetic overflow
29613         in size expression calculations.
29614         * lib/regex_internal.c (re_string_realloc_buffers):
29615         (build_wcs_upper_buffer, re_node_set_add_intersect):
29616         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
29617         (re_dfa_add_node, register_state): Likewise.
29618         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
29619         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
29620         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
29621         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
29622
29623 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29626         m4/ulonglong.m4.  Problem reported by Martin Lambers.
29627
29628 2005-09-02  Bruno Haible  <bruno@clisp.org>
29629
29630         Support for lib vs. lib64 distinction on biarch platforms.
29631         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
29632         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
29633         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
29634
29635 2005-09-02  Bruno Haible  <bruno@clisp.org>
29636
29637         * gnulib-tool (import): In the other first-use case, provide defaults
29638         as well.
29639
29640 2005-09-02  Bruno Haible  <bruno@clisp.org>
29641
29642         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
29643         patches not yet found in the latest gettext release.
29644
29645 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29646
29647         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
29648         to avoid a collision with bits/local_lim.h in glibc.
29649         All uses changed.  Problem reported by Dmitry V. Levin in
29650         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
29651
29652         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29653         bugs in int versus size_t comparisons.
29654         (re_string_context_at): Fix bug where the code assumed that
29655         Idx is signed.
29656
29657         Use bool where appropriate.
29658         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29659         All callers changed.
29660         (calc_eclosure_iter): Likewise, for ROOT arg.
29661         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29662         (build_charclass_op): Likewise, for NON_MATCH arg.
29663         * lib/regex_internal.c (re_string_allocate, re_string_construct):
29664         (re_string_construct_common): Likewise, for ICASE arg.
29665         * lib/regexec.c (re_search_2_stub, re_search_stub):
29666         Likewise, for RET_LEN arg.
29667         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29668         (set_regs): Likewise, for FL_BACKTRACK arg.
29669         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29670         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29671         (calc_eclosure_iter, parse_bracket_exp):
29672         Use bool for internal variables that are booleans.
29673         * lib/regexec.c (re_search_internal, check_matching,
29674         proceed_next_node):
29675         (set_regs, build_sifted_states, sift_states_bkref):
29676         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29677         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29678         (find_collation_sequence_value):
29679         Likewise.
29680         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29681         (re_node_set_compare):
29682         Return bool, not int. All callers changed.
29683         * lib/regexec.c (check_halt_node_context, check_dst_limits):
29684         (build_trtable, check_node_accept): Likewise.
29685         * lib/regex_internal.h: Include stdbool.h.
29686
29687         Fix bugs uncovered when converting to bool.
29688         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29689         failure instead of charging ahead blindly.
29690         * lib/regex_internal.c (register_state): Likewise.
29691         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29692         for freeing internal storage.
29693         (group_nodes_into_DFA_states): Use unsigned int, not int, for
29694         bitset pieces used as boolean, to avoid undefined behavior
29695         on hosts that do int overflow checking.
29696
29697 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29698
29699         * config/srclist.txt: Add glibc bugs 1285-1287.
29700
29701 2005-09-01  Jim Meyering  <jim@meyering.net>
29702
29703         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29704         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29705         Require gl_STAT_MACROS, too.
29706
29707 2005-09-01  Bruno Haible  <bruno@clisp.org>
29708
29709         * gnulib-tool (import): In the first-use case, provide defaults.
29710
29711 2005-09-01  Bruno Haible  <bruno@clisp.org>
29712
29713         * gnulib-tool (func_import): Remove the .tmp files.
29714
29715 2005-09-01  Bruno Haible  <bruno@clisp.org>
29716
29717         * gnulib-tool (func_import): Fix handling of symbolic links.
29718
29719 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29720
29721         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29722         old glibc regex code mishandles strings longer than 2**31 bytes.
29723         This patch fixes this when the regex code is used in gnulib
29724         (i.e., outside glibc).
29725
29726         This patch should not affect the use of the regex code inside
29727         glibc.  No doubt this problem also needs to be handled for glibc
29728         as well, but the result will be an incompatible change to the
29729         glibc ABI, and the old ABI will have to be supported too.  That
29730         can be the the subject for another patch.
29731
29732         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29733         governing whether the rest of this patch is active.  By default,
29734         the macro is disabled and the patch has no effect.
29735         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29736         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29737         (struct re_pattern_buffer, re_search, re_search_2, re_match):
29738         (re_match_2, re_set_registers): Use the new types.
29739         * lib/regex_internal.h (Idx, re_hashval_t): New types.
29740         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29741         New macros.
29742         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29743         (re_string_context_at, bin_tree_t, re_dfastate_t):
29744         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29745         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29746         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29747         (re_string_char_size_at, re_string_wchar_at):
29748         (re_string_elem_size_at):
29749         Use the new types and macros to port to 64-bit hosts.
29750         Use unsigned types for internal values, so that the code
29751         mostly works even for arrays larger than SSIZE_MAX.
29752         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29753         (search_duplicated_node, calc_eclosure_iter, fetch_number):
29754         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29755         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29756         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29757         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29758         (calc_inveclosure, parse_dup_op, build_range_exp):
29759         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29760         (fetch_number, create_token_tree, mark_opt_subexp):
29761         Likewise.
29762         * lib/regex_internal.c (re_string_construct_common,
29763         create_ci_newstate):
29764         (create_cd_newstate, re_string_allocate, re_string_construct):
29765         (re_string_realloc_buffers, build_wcs_upper_buffer):
29766         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29767         (re_string_reconstruct, re_string_peek_byte_case):
29768         (re_string_fetch_byte_case, re_string_context_at):
29769         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29770         (re_node_set_init_copy, re_node_set_add_intersect):
29771         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29772         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29773         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29774         (re_acquire_state, re_acquire_state_context, register_state):
29775         Likewise.
29776         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29777         search_cur_bkref_entry):
29778         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29779         (re_search_internal, re_search_2_stub, re_search_stub)
29780         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29781         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29782         (update_cur_sifted_state, check_dst_limits):
29783         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29784         (check_subexp_limits, sift_states_bkref, merge_state_array):
29785         (check_subexp_matching_top, get_subexp, get_subexp_sub):
29786         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29787         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29788         (expand_bkref_cache, check_node_accept_bytes):
29789         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29790         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29791         (acquire_init_state_context, check_halt_node_context):
29792         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29793         (sift_states_backward, clean_state_log_if_needed):
29794         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29795         (find_recover_state, transit_state_sb, transit_state_mb):
29796         (transit_state_bkref, build_trtable, match_ctx_clean):
29797         Likewise.
29798         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29799         to work around an assumption that REG_MISSING is negative.
29800
29801         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29802         (seek_collating_symbol_entry) [defined _LIBC]:
29803         (lookup_collation_sequence_value) [defined _LIBC]:
29804         (build_range_exp, build_collating_symbol) [defined _LIBC]:
29805         Use prototypes rather than old-style function definitions.
29806         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29807         (transit_state_sb) [0]:
29808         (find_collation_sequence_value) [defined _LIBC]: Likewise.
29809
29810         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29811         rm_eo.
29812
29813         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29814         (optimize_subexps, lower_subexp):
29815         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29816         since the signed shift might overflow.  Use 1u<<31 instead.
29817         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29818         Likewise.
29819         * lib/regexec.c (check_dst_limits_calc_pos_1,
29820         check_subexp_matching_top): Likewise.
29821
29822         * lib/regcomp.c (optimize_subexps, lower_subexp):
29823         Use CHAR_BIT rather than 8, for clarity.
29824         * lib/regexec.c (check_dst_limits_calc_pos_1):
29825         (check_subexp_matching_top): Likewise.
29826         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29827         have to worry about portability issues when shifting it left.
29828         Remove no-longer-needed test for table_size > 0.
29829         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29830         in a word, as the resulting behavior is undefined.
29831         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29832         in one case, a <= should have been an <, and in another case the
29833         whole test was missing.
29834         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
29835         the standard name CHAR_BIT.
29836         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29837         this is not true on one's complement and signed-magnitude hosts.
29838
29839         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29840         next_last_offset.
29841         (struct re_dfa_t): Remove unused member states_alloc.
29842         * lib/regcomp.c (init_dfa): Don't initialize unused members.
29843
29844 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29845
29846         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29847         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
29848         and large-file glibc and in 32-bit large-file Solaris.
29849
29850 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29851
29852         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29853         lengths fit in regoff_t; this isn't true if regoff_t is the same
29854         width as size_t.
29855         * lib/regex.c (re_search_internal): 5th arg is LAST_START
29856         (= START + RANGE) instead of RANGE.  This avoids overflow
29857         problems when regoff_t is the same width as size_t.
29858         All callers changed.
29859         (re_search_2_stub): Check for overflow when adding the
29860         sizes of the two strings.
29861         (re_search_stub): Check for overflow when adding START
29862         to RANGE; if it occurs, substitute the extreme value.
29863
29864 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29865
29866         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29867
29868 2005-08-31  Jim Meyering  <jim@meyering.net>
29869
29870         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29871         a pointer-to-const.
29872         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29873         (register_state): Likewise.
29874         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29875         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29876         (group_nodes_into_DFAstates): Likewise.
29877
29878 2005-08-31  Jim Meyering  <jim@meyering.net>
29879
29880         * check-module: Add a FIXME comment.
29881
29882 2005-08-31  Eric Blake  <ebb9@byu.net>
29883
29884         * modules/unistd-safer (Files): Add unistd--.h.
29885         * modules/stdio-safer (Files): Add stdio--.h.
29886
29887 2005-08-31  Derek Price  <derek@ximbiot.com>
29888
29889         * lib/getdelim.c (getdelim): Return EOF on EOF.
29890         Reported by Larry Jones <lawrence.jones@ugs.com>.
29891
29892 2005-08-31  Bruno Haible  <bruno@clisp.org>
29893
29894         Avoid unnecessary diffs in the generated lib/Makefile.am.
29895         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29896         the generated files.
29897         (func_import): Don't set cmd.
29898
29899 2005-08-31  Bruno Haible  <bruno@clisp.org>
29900
29901         * lib/strstr.c: Include <stddef.h>, for NULL.
29902         * lib/strcasestr.c: Likewise.
29903         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29904
29905 2005-08-31  Bruno Haible  <bruno@clisp.org>
29906
29907         * gnulib-tool: New option --macro-prefix.
29908         (func_import): Use macro_prefix.
29909         (import): Handle option --macro-prefix.
29910
29911 2005-08-31  Bruno Haible  <bruno@clisp.org>
29912
29913         * gnulib-tool (import): Rename most ac_* variables to cached_*.
29914         Also use new variables cached_lgpl, cached_libtool.
29915
29916 2005-08-31  Bruno Haible  <bruno@clisp.org>
29917
29918         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29919         always instantiating them.
29920
29921 2005-08-31  Bruno Haible  <bruno@clisp.org>
29922
29923         * gnulib-tool (func_import): Read the previous cached settings
29924         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29925         earlier added by gnulib but are now dropped. Warn when a gnulib file
29926         overwrites a non-gnulib file.
29927
29928 2005-08-31  Bruno Haible  <bruno@clisp.org>
29929
29930         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29931         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29932         projects that don't keep autogenerated files in CVS. Put into
29933         actioncmd only the specified modules, not the transitive closure.
29934
29935 2005-08-31  Bruno Haible  <bruno@clisp.org>
29936
29937         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29938         Create directories that shall be filled.
29939         (import): Don't look for gl_* macros in configure.ac. Recurse across
29940         all directories containing a gnulib-cache.m4 files, if meaningful.
29941
29942 2005-08-31  Bruno Haible  <bruno@clisp.org>
29943
29944         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29945         (import): Set seen_libtool when we see gl_LIBTOOL.
29946
29947 2005-08-31  Bruno Haible  <bruno@clisp.org>
29948
29949         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29950         declaration macro definitions from generated gnulib.m4.
29951
29952 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
29953
29954         * lib/iconvme.h: Add prototype for iconv_alloc.
29955
29956 2005-08-29  Simon Josefsson  <jas@extundo.com>
29957
29958         * lib/iconvme.c: Fix errno.
29959
29960 2005-08-29  Bruno Haible  <bruno@clisp.org>
29961
29962         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29963         that it works when the directory contains spaces.
29964
29965 2005-08-29  Bruno Haible  <bruno@clisp.org>
29966
29967         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29968
29969 2005-08-29  Bruno Haible  <bruno@clisp.org>
29970
29971         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29972         Emit more advice.
29973
29974 2005-08-29  Bruno Haible  <bruno@clisp.org>
29975         and Stepan Kasal  <kasal@ucw.cz>
29976
29977         * check-module: If more parameters are given, check each of them
29978         separately; add more exceptions, as noted by Jim Meyering.
29979         (check_module): New procedure.
29980         (%exempt_header): Now contains all exceptions.
29981
29982 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
29983
29984         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29985
29986 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29987
29988         * lib/iconvme.c: Split iconv_string into iconv_alloc.
29989
29990 2005-08-28  Bruno Haible  <bruno@clisp.org>
29991
29992         * m4/gnulib-tool.m4: New file.
29993
29994 2005-08-27  Jim Meyering  <jim@meyering.net>
29995
29996         * modules/unistd-safer (Files): Add pipe-safer.c.
29997         * modules/fcntl-safer (Files): Add creat-safer.c.
29998
29999 2005-08-27  Jim Meyering  <jim@meyering.net>
30000
30001         * m4/stdlib-safer.m4: New file.  From coreutils.
30002         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
30003         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
30004         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
30005         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
30006         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
30007
30008 2005-08-27  Jim Meyering  <jim@meyering.net>
30009
30010         * lib/fopen-safer.c: Merge minor changes from coreutils.
30011         * lib/dup-safer.c: Likewise.
30012         * lib/fd-safer.c: Likewise.
30013
30014         Merge from coreutils.
30015         * lib/stdio--.h: New file.
30016         * lib/stdlib--.h: New file.
30017         * lib/mkstemp-safer.c: New file.
30018
30019         GNU tar needs these.
30020         * lib/pipe-safer.c: New file.
30021         * lib/creat-safer.c: New file.
30022         * lib/fcntl--.h (creat): Define to creat_safer.
30023         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
30024         * lib/unistd--.h (pipe): Define to pipe_safer.
30025         * lib/unistd-safer.h: Declare pipe_safer.
30026
30027 2005-08-26  Simon Josefsson  <jas@extundo.com>
30028
30029         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
30030         Haible <bruno@clisp.org>.
30031
30032 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
30033
30034         * lib/regex_internal.h: Remove all references to
30035         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
30036         or better.
30037         (bitset_not, bitset_merge, bitset_not_merge):
30038         (bitset_mask, re_string_allocate, re_string_construct):
30039         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
30040         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
30041         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
30042         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
30043         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30044         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30045         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
30046         (re_acquire_state_context):
30047         Remove unnecessary forward decls.
30048         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
30049         Put __attribute at function definition,
30050         now that the function decl has been removed.
30051         * lib/regex_internal.c (re_string_peek_byte_case):
30052         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
30053         Likewise.
30054
30055 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
30056
30057         * m4/regex.m4: Add AC_PREREQ(2.50).
30058         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
30059
30060 2005-08-25  Simon Josefsson  <jas@extundo.com>
30061
30062         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
30063         __fsetlocking.
30064
30065 2005-08-25  Simon Josefsson  <jas@extundo.com>
30066
30067         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
30068         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
30069         GLIBC specific code.
30070
30071 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30072
30073         Make regex safe for g++.  This fixes one real bug (an "err"
30074         that should have been "*err").  g++ problem reported by
30075         Sam Steingold.
30076         * lib/regex_internal.h (re_calloc): New macro, consistent with
30077         re_malloc etc.  All callers of calloc changed to use re_calloc.
30078         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
30079         not int.  All callers changed.
30080         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30081         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30082         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
30083         (find_recover_state): Change "err" to "*err"; this fixes what
30084         appears to be a real bug.
30085         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
30086         versus int.
30087
30088 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30089
30090         * modules/regex (Depends-on): Add malloc, since the code
30091         assumes that !malloc(0) means failure.
30092
30093 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30094
30095         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
30096
30097         alloca modernization/simplification for regex.
30098         * lib/regex.c: Remove portability cruft for alloca.  This no longer
30099         needs to be at the start of the file, and can be moved into
30100         regex_internal.h and simplified.
30101         * lib/regex_internal.h: Include <alloca.h>.
30102         (__libc_use_alloca) [!defined _LIBC]: New macro.
30103         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
30104         now works outside glibc.
30105
30106 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30107
30108         * config/srclist.txt: Add glibc bugs 1241, 1245.
30109
30110 2005-08-25  Jim Meyering  <jim@meyering.net>
30111
30112         * lib/open-safer.c: Include <config.h>.
30113         Otherwise, we'd lose LARGEFILE support in any file using
30114         e.g. "fcntl--.h"
30115
30116 2005-08-25  Bruno Haible  <bruno@clisp.org>
30117
30118         * m4/minmax.m4: Require autoconf 2.52.
30119         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30120         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30121         alternatives of translit over the alphabet.
30122         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30123
30124 2005-08-24  Simon Josefsson  <jas@extundo.com>
30125
30126         * tests/test-getpass.c: New file.
30127
30128 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30129
30130         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30131         for GNU regex features.
30132
30133 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30134
30135         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30136         * lib/regex.h (regerror): Likewise.
30137
30138         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30139         requires this.  (The code never needed it.)
30140
30141         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30142         All uses of recently-renamed identifiers changed to use the new,
30143         POSIX-compliant names.  The code will build and run just fine
30144         without these changes, but it's better to eat our own dog food
30145         and use the standard-conforming names.
30146
30147         * lib/regex.h: Fix a multitude of POSIX name space violations.
30148         These changes have an effect only for programs that define
30149         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30150         do not change anything for programs compiled in the normal way.
30151         Also, there is no effect on the ABI.
30152
30153         (_REGEX_SOURCE): New macro.
30154         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30155         defined and _GNU_SOURCE is not; this fixes a name space violation.
30156
30157         Rename the following macros to obey POSIX requirements.
30158         The old names are still visible as macros if _REGEX_SOURCE is defined.
30159         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30160         RE_BACKSLASH_ESCAPE_IN_LISTS.
30161         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30162         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30163         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30164         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30165         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30166         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30167         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30168         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30169         (REG_INTERVALS): renamed from RE_INTERVALS.
30170         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30171         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30172         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30173         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30174         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30175         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30176         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30177         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30178         RE_UNMATCHED_RIGHT_PAREN_ORD.
30179         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30180         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30181         (REG_DEBUG): renamed from RE_DEBUG.
30182         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30183         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
30184         unusual, since we can't clash with the POSIX REG_ICASE.
30185         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30186         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30187         (REG_NO_SUB): renamed from RE_NO_SUB.
30188         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30189         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30190         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30191         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30192         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30193         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30194         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30195         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30196         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30197         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30198         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30199         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30200         RE_SYNTAX_POSIX_MINIMAL_BASIC.
30201         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30202         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30203         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30204         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
30205         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30206         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30207         (REG_FIXED): Renamed from REGS_FIXED.
30208         (REG_NREGS): Renamed from RE_NREGS.
30209
30210         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30211         of other REG_* macros, since POSIX says the user is allowed to
30212         #undef these macros selectively.
30213
30214         (reg_errcode_t): Update comment stating what other tables need
30215         to be consistent.
30216
30217         Rename the following enum values to obey POSIX requirements.
30218         The old names are still visible as macros.
30219         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
30220         is not defined, since GNU is supposed to be a superset of POSIX as
30221         much as possible, and since we want reg_errcode_t to be a signed
30222         type for implementation consistency.
30223         (_REG_NOERROR): Renamed from REG_NOERROR.
30224         (_REG_NOMATCH): Renamed from REG_NOMATCH.
30225         (_REG_BADPAT): Renamed from REG_BADPAT.
30226         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30227         (_REG_ECTYPE): Renamed from REG_ECTYPE.
30228         (_REG_EESCAPE): Renamed from REG_EESCAPE.
30229         (_REG_ESUBREG): Renamed from REG_ESUBREG.
30230         (_REG_EBRACK): Renamed from REG_EBRACK.
30231         (_REG_EPAREN): Renamed from REG_EPAREN.
30232         (_REG_EBRACE): Renamed from REG_EBRACE.
30233         (_REG_BADBR): Renamed from REG_BADBR.
30234         (_REG_ERANGE): Renamed from REG_ERANGE.
30235         (_REG_ESPACE): Renamed from REG_ESPACE.
30236         (_REG_BADRPT): Renamed from REG_BADRPT.
30237         (_REG_EEND): Renamed from REG_EEND.
30238         (_REG_ESIZE): Renamed from REG_ESIZE.
30239         (_REG_ERPAREN): Renamed from REG_ERPAREN.
30240         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30241         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30242         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30243         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30244
30245         (_REG_RE_NAME, _REG_RM_NAME): New macros.
30246         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
30247         changed.  But support the old name if the new one is not defined
30248         and if _REGEX_SOURCE.
30249
30250         Change the following member names in struct re_pattern_buffer.
30251         The old names are still supported if !_REGEX_SOURCE.
30252         The new names are always supported, regardless of _REGEX_SOURCE.
30253         (re_buffer): Renamed from buffer.
30254         (re_allocated): Renamed from allocated.
30255         (re_used): Renamed from used.
30256         (re_syntax): Renamed from syntax.
30257         (re_fastmap): Renamed from fastmap.
30258         (re_translate): Renamed from translate.
30259         (re_can_be_null): Renamed from can_be_null.
30260         (re_regs_allocated): Renamed from regs_allocated.
30261         (re_fastmap_accurate): Renamed from fastmap_accurate.
30262         (re_no_sub): Renamed from no_sub.
30263         (re_not_bol): Renamed from not_bol.
30264         (re_not_eol): Renamed from not_eol.
30265         (re_newline_anchor): Renamed from newline_anchor.
30266
30267         Change the following member names in struct re_registers.
30268         The old names are still supported if !_REGEX_SOURCE.
30269         The new names are always supported, regardless of _REGEX_SOURCE.
30270         (rm_num_regs): Renamed from num_regs.
30271         (rm_start): Renamed from start.
30272         (rm_end): Renamed from end.
30273
30274         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30275         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30276         Prepend __ to parameter names.
30277
30278         Undo yesterday's changes.
30279
30280 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30281
30282         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30283         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
30284         lib/regex.c.
30285
30286 2005-08-24  Jim Meyering  <jim@meyering.net>
30287
30288         Sync from coreutils.
30289         * m4/fcntl-safer.m4: New file.
30290
30291         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30292         and object files for this module.
30293
30294 2005-08-24  Jim Meyering  <jim@meyering.net>
30295
30296         Sync from coreutils.
30297         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30298
30299 2005-08-24  Jim Meyering  <jim@meyering.net>
30300
30301         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30302         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30303
30304 2005-08-24  Jim Meyering  <jim@meyering.net>
30305
30306         * modules/fcntl-safer: New module.
30307         * modules/fts (Depends-on): Add fcntl-safer.
30308         * MODULES.html.sh (File descriptor based Input/Output):
30309         Add fcntl-safer.
30310
30311 2005-08-24  Bruno Haible  <bruno@clisp.org>
30312
30313         Support for unit test modules.
30314         * modules/README: Mention tests modules.
30315         * modules/TEMPLATE-TESTS: New file.
30316         * gnulib-tool: New options --extract-tests-module, --with-tests and
30317         --tests-base (unused for the moment).
30318         (testsbase, inctests): New variables.
30319         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30320         (func_verify_module): Exclude TEMPLATE-TESTS.
30321         (func_verify_nontests_module, func_verify_tests_module): New functions.
30322         (func_get_dependencies): Add implicit dependency for tests modules.
30323         (func_get_tests_module): New function.
30324         (func_modules_transitive_closure): When --with-tests was specified,
30325         include the unit tests as well, unless explicitly avoided.
30326         (func_emit_lib_Makefile_am): Ignore the tests modules here.
30327         (func_emit_tests_Makefile_am): New function.
30328         (func_create_testdir): When --with-tests was specified, emit a
30329         tests/ directory.
30330         * MODULES.html.sh (Future developments): Update.
30331
30332 2005-08-24  Bruno Haible  <bruno@clisp.org>
30333
30334         * modules/tls-tests: New file.
30335         * tests/test-tls.c: New file, from GNU gettext.
30336
30337 2005-08-24  Bruno Haible  <bruno@clisp.org>
30338
30339         * modules/lock-tests: New file.
30340         * tests/test-lock.c: New file, from GNU gettext.
30341
30342 2005-08-24  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/lock.h: Add multiple inclusion guard.
30345         * lib/tls.h: Add multiple inclusion guard.
30346
30347 2005-08-24  Bruno Haible  <bruno@clisp.org>
30348
30349         * gnulib-tool: Add support for the --aux-dir option to
30350         --create-testdir, --create-megatestdir, --test, --megatest.
30351         (func_create_testdir, func_create_megatestdir): Optionally emit a
30352         AC_CONFIG_AUX_DIR directive.
30353         (create-testdir, create-megatestdir, test, megatest): Provide a
30354         default value for $auxdir.
30355
30356 2005-08-24  Bruno Haible  <bruno@clisp.org>
30357
30358         * gnulib-tool (import): Use compound statement instead of subshell
30359         where possible.
30360
30361 2005-08-24  Bruno Haible  <bruno@clisp.org>
30362
30363         * gnulib-tool (import): Change --aux-dir default to "build-aux".
30364
30365 2005-08-24  Bruno Haible  <bruno@clisp.org>
30366
30367         * gnulib-tool (func_version): Update.
30368
30369 2005-08-24  Bruno Haible  <bruno@clisp.org>
30370
30371         * gnulib-tool (func_import, func_create_testdir,
30372         func_create_megatestdir): Quote all autoconf macro arguments.
30373
30374 2005-08-24  Bruno Haible  <bruno@clisp.org>
30375
30376         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30377         option --force, because --force causes the aclocal.m4 of each
30378         subdirectory to be newer than the corresponding config.h.in.
30379
30380 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30381
30382         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30383         All contents moved to gl_REGEX.
30384         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30385         assume that it does.
30386
30387 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30388
30389         * lib/regex.h (REG_NOSYS)
30390         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30391         Define, since POSIX requires it as of 2001.
30392         (_REG_ENOSYS)
30393         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30394         New private symbol, used to keep the enum signed in all cases.
30395         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30396         Youngman in
30397         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30398
30399         * lib/regex_internal.c (re_string_skip_chars, register_state):
30400         (calc_state_hash):
30401         Remove forward decls; no longer needed now that we use prototypes.
30402         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30403         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30404         (clean_state_log_if_needed): Likewise.
30405
30406 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30407
30408         * config/srclist.txt: Add glibc bugs 1231-1233.
30409
30410 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30411
30412         Fix problems reported by Sam Steingold in
30413         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30414         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30415         assumed that reg_errcode_t is a signed type, which is not
30416         necessarily true if _XOPEN_SOURCE is not defined.
30417         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30418         since some compilers warn about it otherwise.
30419
30420 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30421
30422         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30423         (init_word_char, create_initial_state, duplicate_node_closure):
30424         (fetch_token, peek_token_bracket, build_range_exp):
30425         (build_collating_symbol): Remove forward decls; no longer needed
30426         now that we use prototypes.
30427
30428         * lib/regcomp.c:
30429         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30430         (re_compile_fastmap_iter, regcomp, regerror, regfree):
30431         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30432         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30433         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30434         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30435         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30436         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30437         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30438         (build_range_exp, build_collating_symbol, parse_bracket_exp):
30439         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30440         (build_charclass, build_charclass_op, fetch_number, create_tree):
30441         (create_token_tree, mark_opt_subexp, duplicate_tree):
30442         Use prototypes rather than old-style definitions.
30443
30444         * lib/regex_internal.c:
30445         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30446         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30447         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30448         (re_string_reconstruct, re_string_peek_byte_case):
30449         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30450         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30451         (re_node_set_init_copy, re_node_set_add_intersect):
30452         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30453         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30454         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30455         (re_acquire_state, re_acquire_state_context, register_state):
30456         (create_ci_newstate, create_cd_newstate, free_state):
30457         Likewise.
30458         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
30459         re_search_2):
30460         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
30461         (re_search_internal, prune_impossible_nodes):
30462         (acquire_init_state_context, check_matching, static):
30463         (check_halt_node_context, check_halt_state_context, proceed_next_node):
30464         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
30465         (update_regs, sift_states_backward, build_sifted_states):
30466         (clean_state_log_if_needed, merge_state_array):
30467         (update_cur_sifted_state, add_epsilon_src_nodes):
30468         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
30469         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
30470         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
30471         (find_recover_state, check_subexp_matching_top, transit_state_mb):
30472         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
30473         (check_arrival, check_arrival_add_next_nodes):
30474         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30475         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30476         (check_node_accept_bytes, check_node_accept, extend_buffers):
30477         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
30478         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
30479         (sift_ctx_init):
30480         Likewise.
30481
30482         * lib/regex_internal.h:
30483         (re_string_allocate, re_string_construct, re_string_reconstruct):
30484         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
30485         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
30486         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
30487         (re_string_context_at, re_string_peek_byte_case):
30488         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
30489         is defined, since we now use prototypes always.
30490
30491         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
30492         C89 or better.  All uses removed.
30493
30494 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30495
30496         * config/srclist.txt: Add glibc bugs 1220-1227.
30497
30498 2005-08-20  Jim Meyering  <jim@meyering.net>
30499
30500         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
30501         of unused local, dfa.
30502
30503 2005-08-20  Bruno Haible  <bruno@clisp.org>
30504
30505         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
30506
30507 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30508
30509         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
30510         (re_node_set_insert_last, re_dfa_add_node):
30511         Rename local variables to avoid GCC shadowing warnings.
30512
30513 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30514
30515         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
30516         [defined lint]: Suppress bogus uninitialized-variable warnings.
30517
30518         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
30519         and let the caller return REG_ESPACE if out of space.  This
30520         removes an uninitialied-variable warning with GCC 4.0.1, and also
30521         avoids taking the address of a local variable.  All callers
30522         changed.
30523
30524 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30525
30526         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
30527         $LIBCSRC/posix/regexec.c.
30528         Add glibc bug 1217 for regcomp.c.
30529
30530 2005-08-19  Jim Meyering  <jim@meyering.net>
30531
30532         * lib/regexec.c (proceed_next_node): Redo local variables to
30533         avoid GCC shadowing warnings.
30534
30535 2005-08-18  Bruno Haible  <bruno@clisp.org>
30536
30537         * lib/strstr.c (strstr): Fix return value in multibyte case.
30538         * lib/strcasestr.c (strcasestr): Likewise.
30539
30540 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30541
30542         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
30543
30544 2005-08-17  Jim Meyering  <jim@meyering.net>
30545
30546         Make the %s format (seconds since the epoch) work for a negative
30547         number and when used with a zero-padded field width, e.g. %015s.
30548
30549         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
30550         label so that it precedes the code to set `digits'.  Otherwise,
30551         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
30552         print `00-22'.  Now, it prints `-0022', as it should.
30553
30554 2005-08-17  Bruno Haible  <bruno@clisp.org>
30555
30556         * modules/strstr (Files): Add m4/mbrtowc.m4.
30557         (Depends-on): Add mbuiter.
30558
30559 2005-08-17  Bruno Haible  <bruno@clisp.org>
30560
30561         * modules/strcasestr: New file.
30562         * MODULES.html.sh (String handling, based on ANSI C 89): Add
30563         strcasestr.
30564
30565 2005-08-17  Bruno Haible  <bruno@clisp.org>
30566
30567         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
30568
30569 2005-08-17  Bruno Haible  <bruno@clisp.org>
30570
30571         * modules/mbuiter: New file.
30572         * MODULES.html.sh (Extended multibyte and wide character utilities):
30573         Add mbuiter.
30574
30575 2005-08-17  Bruno Haible  <bruno@clisp.org>
30576
30577         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
30578         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
30579
30580 2005-08-17  Bruno Haible  <bruno@clisp.org>
30581
30582         * m4/strcasestr.m4: New file.
30583
30584 2005-08-17  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
30587         * lib/strstr.c: Completely rewritten, with multibyte locale support.
30588
30589 2005-08-17  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/strcasestr.h: New file.
30592         * lib/strcasestr.c: New file.
30593
30594 2005-08-17  Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/strcasecmp.c: Use mbuiter.h.
30597
30598 2005-08-17  Bruno Haible  <bruno@clisp.org>
30599
30600         * lib/mbuiter.h: New file.
30601
30602 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30603
30604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
30605         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
30606         and gl_GETOPT are both invoked via different paths (as happens
30607         with GNU tar CVS because it uses both argp and getopt), the former
30608         wins.
30609
30610 2005-08-16  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/tls: New file.
30613         * MODULES.html.sh (Multithreading): Add tls.
30614
30615 2005-08-16  Bruno Haible  <bruno@clisp.org>
30616
30617         * modules/strnlen1: New file.
30618         * MODULES.html.sh (String handling): Add strnlen1.
30619
30620 2005-08-16  Bruno Haible  <bruno@clisp.org>
30621
30622         * modules/strcase (Files): Add m4/mbrtowc.m4.
30623         (Depends-on): Add strnlen1, mbchar.
30624
30625 2005-08-16  Bruno Haible  <bruno@clisp.org>
30626
30627         * modules/mbiter: New file.
30628         * MODULES.html.sh (Extended multibyte and wide character utilities):
30629         Add mbiter.
30630
30631 2005-08-16  Bruno Haible  <bruno@clisp.org>
30632
30633         * modules/mbfile: New file.
30634         * MODULES.html.sh (Extended multibyte and wide character utilities):
30635         Add mbfile.
30636
30637 2005-08-16  Bruno Haible  <bruno@clisp.org>
30638
30639         * modules/mbchar: New file.
30640         * MODULES.html.sh (Extended multibyte and wide character utilities):
30641         New section.
30642
30643 2005-08-16  Bruno Haible  <bruno@clisp.org>
30644
30645         * m4/tls.m4: New file, from GNU gettext.
30646
30647 2005-08-16  Bruno Haible  <bruno@clisp.org>
30648
30649         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
30650         always.
30651         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30652
30653 2005-08-16  Bruno Haible  <bruno@clisp.org>
30654
30655         * m4/mbiter.m4: New file.
30656
30657 2005-08-16  Bruno Haible  <bruno@clisp.org>
30658
30659         * m4/mbfile.m4: New file.
30660
30661 2005-08-16  Bruno Haible  <bruno@clisp.org>
30662
30663         * m4/mbchar.m4: New file.
30664
30665 2005-08-16  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/tls.h: New file, from GNU gettext.
30668         * lib/tls.c: New file, from GNU gettext.
30669
30670 2005-08-16  Bruno Haible  <bruno@clisp.org>
30671
30672         * lib/strnlen1.h: New file.
30673         * lib/strnlen1.c: New file.
30674
30675 2005-08-16  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30678         (mbi_init): Update.
30679         (mbi_avail, mbi_advance): Let the iteration end before the terminating
30680         NUL byte, not after it.
30681
30682 2005-08-16  Bruno Haible  <bruno@clisp.org>
30683
30684         * lib/strcase.h (strcasecmp): Add note in comments.
30685         * lib/strncasecmp.c: Use code from strcasecmp.c.
30686         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30687         (strcasecmp): Work correctly in multibyte locales.
30688
30689 2005-08-16  Bruno Haible  <bruno@clisp.org>
30690
30691         * lib/mbiter.h: New file.
30692
30693 2005-08-16  Bruno Haible  <bruno@clisp.org>
30694
30695         * lib/mbfile.h: New file.
30696
30697 2005-08-16  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/mbchar.h: New file.
30700         * lib/mbchar.c: New file.
30701
30702 2005-08-16  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30705         the valid ones. Makes the comparison operations transitive:
30706         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30707         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30708
30709 2005-08-15  Simon Josefsson  <jas@extundo.com>
30710
30711         * modules/ssize_t (License): Change to 'unlimited'.
30712
30713         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30714
30715 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30716
30717         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30718         Add comments for each pending glibc patch.
30719
30720 2005-08-15  Bruno Haible  <bruno@clisp.org>
30721
30722         * lib/regex.h (__restrict_arr): Don't define to __restrict if
30723         __cplusplus is defined.
30724
30725 2005-08-14  Jim Meyering  <jim@meyering.net>
30726
30727         Sync from coreutils.
30728
30729         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30730         Use the hash-table-based cycle-detection code not just when
30731         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30732         Reported by James Youngman in
30733         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30734         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30735         FTS_TIGHT_CYCLE_CHECK.
30736         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30737         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30738         once again.
30739         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30740         * lib/fts.c (fd_safer): Remove decl.
30741         Include fcntl--.h rather than unistd-safer.h
30742         (fts_safe_changedir): Don't call fd_safer; no longer needed
30743         now that we include fcntl--.h.
30744
30745 2005-08-12  Simon Josefsson  <jas@extundo.com>
30746
30747         * modules/getndelim2: Use ssize_t module.
30748         * modules/getnline: Likewise.
30749         * modules/safe-read: Likewise.
30750         * modules/xreadlink: Likewise.
30751
30752         * modules/ssize_t: New file.
30753
30754 2005-08-12  Simon Josefsson  <jas@extundo.com>
30755
30756         * m4/readline.m4: Look for termcap, curses or ncurses if required.
30757
30758 2005-08-12  Simon Josefsson  <jas@extundo.com>
30759
30760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30761         ssize_t.
30762
30763 2005-08-12  Simon Josefsson  <jas@extundo.com>
30764
30765         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30766         readline, getdelim and check_version.
30767         (Support for systems lacking ISO C 99: Sizes of integer types):
30768         Add size_max.
30769
30770 2005-08-12  Bruno Haible  <bruno@clisp.org>
30771
30772         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30773
30774 2005-08-11  Simon Josefsson  <jas@extundo.com>
30775
30776         * modules/readline: New file.
30777
30778         * modules/strnlen (Files): Add strnlen.h.
30779
30780 2005-08-11  Simon Josefsson  <jas@extundo.com>
30781
30782         * m4/readline.m4: New file.
30783
30784 2005-08-11  Simon Josefsson  <jas@extundo.com>
30785
30786         * lib/readline.h, readline.c: New file.
30787
30788 2005-08-11  Simon Josefsson  <jas@extundo.com>
30789
30790         * doc/gnulib.texi (Initial import, Finishing touches): Mention
30791         gl_AVOID.
30792
30793 2005-08-11  Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/strnlen.h (strnlen): Change parameter name to match comment.
30796
30797 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
30798
30799         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30800
30801 2005-08-10  Simon Josefsson  <jas@extundo.com>
30802
30803         * tests/test-iconvme.c: New file.
30804
30805 2005-08-10  Simon Josefsson  <jas@extundo.com>
30806
30807         * m4/strnlen.m4: New file.
30808
30809         * m4/strndup.m4: Don't check for strnlen declaration, done in
30810         strnlen.m4.
30811
30812 2005-08-10  Simon Josefsson  <jas@extundo.com>
30813
30814         * lib/strndup.c: Use strnlen.h.
30815
30816         * lib/strnlen.h: New file.
30817
30818 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30819
30820         * README: Typos.
30821
30822 2005-08-02  Simon Josefsson  <jas@extundo.com>
30823
30824         * modules/readline: New file.
30825
30826 2005-08-02  Simon Josefsson  <jas@extundo.com>
30827
30828         * modules/getdelim: New file.
30829
30830         * modules/getline: Rewrite, don't use getndelim2.
30831
30832 2005-08-02  Simon Josefsson  <jas@extundo.com>
30833
30834         * m4/getline.m4: Separate out getdelim stuff into separate module.
30835
30836         * m4/getdelim.m4: New file.
30837
30838 2005-08-02  Simon Josefsson  <jas@extundo.com>
30839
30840         * lib/getline.h, getline.c: Rewrite.
30841
30842         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30843
30844 2005-07-31  Bruno Haible  <bruno@clisp.org>
30845
30846         * lib/lock.h (gl_lock_initializer): New macro.
30847         (gl_lock_define_initialized): Use it.
30848         (gl_rwlock_initializer): New macro.
30849         (gl_rwlock_define_initialized): Use it.
30850         (gl_recursive_lock_initializer): New macro.
30851         (gl_recursive_lock_define_initialized): Use it.
30852
30853 2005-07-30  Karl Berry  <karl@gnu.org>
30854
30855         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30856         Report from Ben Pfaff, regarding getopt.
30857
30858 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
30859
30860         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30861         normal way.
30862         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30863         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
30864         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30865         (gl_GETOPT): Use the new macros.  Most of the implementation
30866         is moved to the new macros.  This is for programs like Emacs
30867         that don't want all the functionality of gl_GETOPT.
30868
30869 2005-07-26  Bruno Haible  <bruno@clisp.org>
30870
30871         * m4/lock.m4: Update from GNU gettext.
30872
30873 2005-07-26  Bruno Haible  <bruno@clisp.org>
30874
30875         * lib/lock.h: Update from GNU gettext.
30876         * lib/lock.c: Update from GNU gettext.
30877
30878 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30879
30880         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30881         obsolescent AC_TRY_RUN.  Include the default includes files, for
30882         'exit'.
30883
30884 2005-07-24  Bruno Haible  <bruno@clisp.org>
30885
30886         * modules/visibility: New file.
30887         * MODULES.html.sh (Misc): Add visibility.
30888
30889 2005-07-24  Bruno Haible  <bruno@clisp.org>
30890
30891         * m4/visibility.m4: New file.
30892
30893 2005-07-24  Bruno Haible  <bruno@clisp.org>
30894
30895         * doc/visibility.texi: New file.
30896
30897 2005-07-22  Bruno Haible  <bruno@clisp.org>
30898
30899         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30900         $(ALLOCA_H), redundant through BUILT_SOURCES.
30901         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30902         redundant through BUILT_SOURCES.
30903         * modules/byteswap (Makefile.am): Remove explicit dependency on
30904         $(BYTESWAP_H), redundant through BUILT_SOURCES.
30905         * modules/fnmatch (Makefile.am): Remove explicit dependency on
30906         $(FNMATCH_H), redundant through BUILT_SOURCES.
30907         * modules/getopt (Makefile.am): Remove explicit dependency on
30908         $(GETOPT_H), redundant through BUILT_SOURCES.
30909         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30910         redundant through BUILT_SOURCES.
30911         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30912         redundant through BUILT_SOURCES.
30913         * modules/stdbool (Makefile.am): Remove explicit dependency on
30914         $(STDBOOL_H), redundant through BUILT_SOURCES.
30915         * modules/stdint (Makefile.am): Remove explicit dependency on
30916         $(STDINT_H), redundant through BUILT_SOURCES.
30917         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30918         Remove explicit dependency on $(SYSEXITS_H).
30919         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30920
30921 2005-07-18  Simon Josefsson  <jas@extundo.com>
30922
30923         * lib/check-version.c (check_version): Accept identical versions too.
30924
30925 2005-07-18  Bruno Haible  <bruno@clisp.org>
30926
30927         * modules/lock: New file.
30928         * MODULES.html.sh (Multithreading): New section.
30929
30930 2005-07-18  Bruno Haible  <bruno@clisp.org>
30931
30932         * m4/lock.m4: New file, from GNU gettext.
30933
30934 2005-07-18  Bruno Haible  <bruno@clisp.org>
30935
30936         * lib/lock.h: New file, from GNU gettext.
30937         * lib/lock.c: New file, from GNU gettext.
30938
30939 2005-07-18  Bruno Haible  <bruno@clisp.org>
30940
30941         * lib/lock.h (gl_once_t): New type.
30942         (gl_once_define, gl_once): New macros.
30943         * lib/lock.c (fresh_once): New variable.
30944         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30945         functions.
30946
30947 2005-07-16  Simon Josefsson  <jas@extundo.com>
30948
30949         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30950         workaround, suggested by Bruno.
30951
30952 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30953
30954         * modules/xalloc (Depends-on): Add xalloc-die.
30955         * modules/xvasprintf (Depends-on): Add xalloc-die.
30956
30957 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30958
30959         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30960         with a minor change.
30961
30962 2005-07-15  Bruno Haible  <bruno@clisp.org>
30963
30964         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30965         When using lib/poll.c, define poll as rpl_poll.
30966
30967 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
30968
30969         * modules/argp (Depends-on): Remove unlocked-io.
30970
30971 2005-07-14  Derek Price  <derek@ximbiot.com>
30972
30973         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
30974         for glob symlink bug.
30975
30976 2005-07-14  Bruno Haible  <bruno@clisp.org>
30977
30978         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30979         Instead, test for *_unlocked function declarations directly.
30980
30981 2005-07-11  Simon Josefsson  <jas@extundo.com>
30982
30983         * modules/size_max: New file.
30984
30985         * modules/xsize: Depend on size_max module for size_max.m4.
30986
30987 2005-07-11  Simon Josefsson  <jas@extundo.com>
30988
30989         * lib/size_max.h: New file.
30990
30991 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30992
30993         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30994         copyright symbol and the year.
30995         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30996         (version_etc_va): Use parameterized copyright notice.
30997         Reword to conform to the current GNU coding standards.
30998
30999 2005-07-11  Karl Berry  <karl@gnu.org>
31000
31001         * doc/gnulib.texi (Quoting): new node.
31002         (Initial import): more info, from Patrice.
31003
31004 2005-07-11  Bruno Haible  <bruno@clisp.org>
31005
31006         * gnulib-tool (func_usage): Document option --avoid.
31007         (Command line options): Handle --avoid.
31008         (func_acceptable): New function.
31009         (func_modules_transitive_closure): Use it.
31010
31011 2005-07-11  Bruno Haible  <bruno@clisp.org>
31012
31013         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
31014         Reported by Jim Meyering.
31015
31016 2005-07-10  Bruno Haible  <bruno@clisp.org>
31017
31018         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
31019         Needed when size_t is smaller than 'unsigned int'.
31020         Reported by Paul Eggert.
31021
31022 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31023
31024         * modules/argp (Depends-on): Add unlocked-io
31025
31026 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31027
31028         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
31029         block of defines.
31030
31031 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31032
31033         * config/srclist.txt: Comment out regcomp.c, since we have a porting
31034         fix now.
31035
31036 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
31037         and Paul Eggert  <eggert@cs.ucla.edu>
31038
31039         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
31040         in wint_t, not wchar_t.  Remove now-unnecessary cast.
31041
31042 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31043
31044         * modules/regex (Files): Add lib/regex_internal.c,
31045         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
31046         (Depends-on): Add extensions.
31047         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
31048
31049 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31050
31051         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
31052         pathconf.
31053         * m4/same.m4 (gl_SAME): Likewise.
31054         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
31055
31056         * m4/regex.m4: Adjust to new libc regex implementation.
31057         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
31058         all the .c and .h parts of (the new) regex.
31059         Quote the m4 stuff better.
31060         Check for RE_ICASE bug of old gnulib.
31061         Check for REG_STARTEND of recent libc.
31062         Rename local variables from jm_* to gl_*.
31063         Quote operand of "test -f".
31064         Say "recent enough" version of libc, not "version 2".
31065         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
31066         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
31067         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
31068         Remove check for btowc, isascii.
31069         Require AM_LANGINFO_CODESET.
31070
31071 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         * lib/regex.c, regex.h: Sync from libc.
31074         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
31075         * lib/regexec.c:
31076         New files, synced from libc, except that regex_internal.h
31077         currently has a small porting fix.
31078
31079 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31080
31081         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31082         regex_internal.c, regexec.c.
31083         Add regex_internal.h too, but as a comment, since the libc version
31084         is currently broken in gnulib mode.
31085
31086 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31087
31088         Support programs like Emacs that use gnulib but not gettext.
31089         * MODULES.html.sh (Internationalization functions): Add gettext-h.
31090         * modules/gettext-h: New file.
31091         * modules/gettext (Files): Remove lib/gettext.h.
31092         (Depends-on): Add gettext-h.
31093         (Makefile.am): Remove lib_SOURCES.
31094         * modules/argmatch, modules/c-stack, modules/closeout:
31095         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
31096         * modules/execute, modules/file-type, modules/getaddrinfo:
31097         * modules/getopt, modules/human, modules/javacomp:
31098         * modules/javaexec, modules/mkdir-p, modules/obstack:
31099         * modules/openat, modules/pagealign_alloc, modules/pipe:
31100         * modules/quotearg, modules/regex, modules/rpmatch:
31101         * modules/unicodeio, modules/userspec, modules/version-etc:
31102         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
31103         * modules/xsetenv:
31104         Depend on gettext-h, not gettext.
31105
31106 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31107
31108         * gnulib-tool (func_import): Add support for 'public domain' license.
31109         * modules/alloca, modules/atexit, modules/memmove:
31110         Now public domain, not GPL.
31111         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31112         * modules/realloc, modules/strerror, modules/strtod:
31113         Now LGPL, not GPL.
31114
31115 2005-07-05  Bruno Haible  <bruno@clisp.org>
31116
31117         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31118         autoconf CVS. Needed for mingw.
31119
31120 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31121
31122         Remove the dependency of the strftime module on the tzset module.
31123         * modules/strftime (Depends-on): Remove dependency on tzset.
31124
31125 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31126
31127         Remove the dependency of the strftime module on the tzset module.
31128         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31129         gl_FUNC_TZSET_CLOBBER.
31130
31131 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         Remove the dependency of the strftime module on the tzset module.
31134         * lib/strftime.c (my_strftime)
31135         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31136         Copy the input structure, to work around some of the bug with
31137         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
31138         Solaris releases, you should also use the tzset module, but we won't
31139         require it as a dependency any more since we don't want LGPLed code
31140         to depend on GPLed code.
31141
31142 2005-07-02  Jim Meyering  <jim@meyering.net>
31143
31144         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31145         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31146         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31147         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31148
31149 2005-07-02  Jim Meyering  <jim@meyering.net>
31150
31151         * lib/backupfile.c (backup_args): Change a `0' to NULL.
31152
31153 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31154
31155         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31156         declares only 'struct timespec;' (!).
31157
31158 2005-07-01  Jim Meyering  <jim@meyering.net>
31159
31160         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31161         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31162         * lib/save-cwd.c, tempname.c:
31163         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31164         and don't include <sys/file.h>).
31165
31166 2005-06-29  Jim Meyering  <jim@meyering.net>
31167
31168         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31169         type name.  Use the variable name instead.
31170         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31171         Likewise.
31172
31173 2005-06-28  Simon Josefsson  <jas@extundo.com>
31174
31175         * modules/check-version (Files): Add check-version.m4.
31176
31177 2005-06-28  Simon Josefsson  <jas@extundo.com>
31178
31179         * m4/check-version.m4: New file, suggested by Jim Meyering
31180         <jim@meyering.net>.
31181
31182 2005-06-28  Simon Josefsson  <jas@extundo.com>
31183
31184         * lib/check-version.h, lib/check-version.c: New files.
31185
31186 2005-06-28  Simon Josefsson  <jas@extundo.com>
31187
31188         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
31189         collision with global variable.  Better indentation.  Don't
31190         increment buffer pointer beyond buffer end.  Based on comments
31191         from Paul Eggert <eggert@cs.ucla.edu>.
31192
31193         * lib/base64.h: Indent.
31194
31195 2005-06-28  Simon Josefsson  <jas@extundo.com>
31196
31197         * doc/gnulib.texi (Library version handling): New section.
31198
31199 2005-06-28  Jim Meyering  <jim@meyering.net>
31200
31201         * check-module (find_included_lib_files): Hard-code another
31202         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31203         but modules/fts-lgpl (correctly) does not list those files.
31204
31205         * modules/canonicalize (Files): Add lib/pathmax.h.
31206
31207 2005-06-25  Simon Josefsson  <jas@extundo.com>
31208
31209         * modules/check-version: New file.
31210
31211 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
31212
31213         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31214         initializer of struct addrinfo, as an indication that we don't
31215         care how many members the structure has.
31216
31217 2005-06-24  Derek Price  <derek@ximbiot.com>
31218         and Bruno Haible  <bruno@clisp.org>
31219
31220         Remove stat module & update lstat.
31221         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31222         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31223         * m4/stat.m4: Remove this file.
31224
31225 2005-06-24  Derek Price  <derek@ximbiot.com>
31226         and Bruno Haible  <bruno@clisp.org>
31227
31228         Remove stat module & update lstat.
31229         * lib/stat.c: Remove this file...
31230         (slash_aware_lstat): ...moving this content and its support...
31231         * lib/lstat.c (rpl_lstat): ...into here.
31232         * lib/lstat.h: New file.
31233
31234 2005-06-24  Derek Price  <derek@ximbiot.com>
31235         and Bruno Haible  <bruno@clisp.org>
31236
31237         Remove stat module & update lstat.
31238         * config/srclist.txt (libc sources): Remove stat.
31239
31240 2005-06-24  Derek Price  <derek@ximbiot.com>
31241         and Bruno Haible  <bruno@clisp.org>
31242
31243         Remove stat module & update lstat.
31244         * MODULES.html.sh (stat): Remove.
31245         * MODULES.html: Regenerated.
31246         * modules/lstat (Description): Correct function name.
31247         (Files): Add "lstat.h".
31248         (Depends-on): Remove stat, add xalloc, stat-macros.
31249         * modules/stat: Remove this file.
31250         (Include): Add "lstat.h", remove <sys/stat.h>.
31251
31252 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31253
31254         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
31255         (ranged_convert): Don't save conversion in a temporary struct.
31256         This causes a warning with GCC 4.0.0, and anyway in the typical
31257         case it's not worth the extra 100 bytes or so of code.
31258         (ranged_convert, __mktime_internal): When calling a function via a
31259         pointer P, use P () rather than (*P) (), as we now assume C89 or
31260         better.
31261
31262 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31263
31264         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31265         "who -r" failed to give output.  Problem reported by Tim Waugh.
31266
31267         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31268         (xcalloc): Use it to avoid needless tests.
31269         Problem reported by Jim Meyering.
31270
31271 2005-06-20  Derek Price  <derek@ximbiot.com>
31272
31273         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31274         unnecessary for Autoconfs > 2.59c.
31275
31276 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31277
31278         * lib/argp.h (__option_is_short): Check upper limit of
31279         __key. Isprint() requires its argument to have the value
31280         of an unsigned char or EOF.
31281
31282 2005-06-16  Jim Meyering  <jim@meyering.net>
31283
31284         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31285         when either N or S is zero.
31286
31287 2005-06-16  Derek Price  <derek@ximbiot.com>
31288
31289         * m4/bison.m4: Declare YACC & YFLAGS precious.
31290
31291 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
31292
31293         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31294         multibyte string or pattern, fall back on unibyte matching.
31295         Problem reported by James Youngman.
31296
31297 2005-06-08  Bruno Haible  <bruno@clisp.org>
31298
31299         * modules/csharpcomp: New file.
31300         * MODULES.html.sh (C#): Add csharpcomp.
31301
31302 2005-06-08  Bruno Haible  <bruno@clisp.org>
31303
31304         * m4/csharpcomp.m4: New file, from GNU gettext.
31305
31306 2005-06-08  Bruno Haible  <bruno@clisp.org>
31307
31308         * lib/csharpcomp.h: New file, from GNU gettext.
31309         * lib/csharpcomp.c: New file, from GNU gettext.
31310         * lib/csharpcomp.sh.in: New file, from GNU gettext.
31311
31312 2005-06-08  Bruno Haible  <bruno@clisp.org>
31313
31314         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31315         warning on mingw.
31316
31317 2005-06-07  Derek Price  <derek@ximbiot.com>
31318
31319         Sync from CVS.
31320         * lib/glob_.h: Indent nested #ifdef.
31321
31322 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31323
31324         Sync from coreutils.
31325         Use "file name" when talking about file names, instead of "filename"
31326         or "path", as per the GNU coding standards.
31327         * lib/mkdir-p.c: Renamed from makepath.c.
31328         (make_dir_parents): Renamed from make_path.  All callers changed.
31329         * lib/mkdir-p.h: Likewise.  All includers changed.
31330         * lib/filenamecat.c: Renamed from path-concat.c.
31331         (file_name_concat): Renamed from path_concat.  All callers changed.
31332         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31333         * lib/filenamecat.h: Likewise.  All includers changed.
31334         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31335         in comments or local variable names.
31336         * lib/basename.c: Likewise.
31337         * lib/canonicalize.c, canonicalize.h: Likewise.
31338         * lib/dirname.c, dirname.h: Likewise.
31339         * lib/euidaccess.c: Likewise.
31340         * lib/exclude.c: Likewise
31341         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31342         * lib/fsusage.c, fsuage.h: Likewise.
31343         * lib/fts.c, fts_.h: Likewise.
31344         * lib/getcwd.c: Likewise.
31345         * lib/getloadavg.c: Likewise.
31346         * lib/mkstemp.c: Likewise.
31347         * lib/mountlist.c, mountlist.h: Likewise.
31348         * lib/openat.c, openat.h: Likewise.
31349         * lib/readlink-stub.c: Likewise.
31350         * lib/readutmp.c, readutmp.h: Likewise.
31351         * lib/rename.c: Likewise.
31352         * lib/rmdir.c: Likewise.
31353         * lib/same.c: Likewise.
31354         * lib/savedir.c: Likewise.
31355         * lib/stripslash.c: Likewise.
31356         * lib/tempname.c: Likewise.
31357         * lib/xreadlink.c: Likewise.
31358         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31359         All uses changed.
31360         * lib/exclude.h: Likewise.
31361
31362         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31363         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31364         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31365         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31366         * lib/pathmax.h: Include <limits.h> unconditionally, since other
31367         files have been getting away with it for years (MORE/BSD 4.3
31368         is extinct now).
31369         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31370         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31371
31372         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31373         Define to 256, not 255, as per modern POSIX.
31374
31375 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31376
31377         Sync from coreutils.
31378         Use "file name" when talking about file names, instead of "filename"
31379         or "path", as per the GNU coding standards.
31380         * MODULES.html.sh: mkdir-p renamed from makepath.
31381         filenamecat renamed from path-concat.
31382         * modules/filenamecat: Renamed from modules/path-concat.
31383         (Files): filenamecat.h and filenamecat.c renamed from
31384         path-concat.h and path-concat.c.
31385         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31386         (Include): filenamecat.h, not path-concat.h.
31387         * modules/mkdir-p: Renamed from modules/makepath.
31388         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31389         makepath.c.
31390         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31391         (Include): mkdir-p.h, not makepath.h.
31392
31393 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31394
31395         Sync from coreutils.
31396         * m4/mkdir-p.m4: Renamed from makepath.m4.
31397         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
31398         Rename files from makepath.c to mkdir-p.c, and from
31399         makepath.h to mkdir-p.h.
31400         * m4/filenamecat.m4: Renamed from path-concat.m4.
31401         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
31402         Rename files from path-concat.c to filenamecat.c,
31403         and from path-concat.h to filenamecat.h.
31404         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31405         "file name" in local variables or comments.
31406         * m4/rename.m4: Likewise.
31407
31408 2005-06-01  Bruno Haible  <bruno@clisp.org>
31409
31410         * modules/csharpexec: New file.
31411         * MODULES.html.sh (C#): New section.
31412
31413 2005-06-01  Bruno Haible  <bruno@clisp.org>
31414
31415         * m4/csharp.m4: New file, from GNU gettext.
31416         * m4/csharpexec.m4: New file, from GNU gettext.
31417
31418 2005-06-01  Bruno Haible  <bruno@clisp.org>
31419
31420         * lib/csharpexec.h: New file, from GNU gettext.
31421         * lib/csharpexec.c: New file, from GNU gettext.
31422         * lib/csharpexec.sh.in: New file, from GNU gettext.
31423
31424 2005-05-31  Derek Price  <derek@ximbiot.com>
31425             Paul Eggert  <eggert@cs.ucla.edu>
31426
31427         Sync from cvs.
31428         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31429
31430 2005-05-31  Derek Price  <derek@ximbiot.com>
31431             Paul Eggert  <eggert@cs.ucla.edu>
31432
31433         Sync from cvs.
31434         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31435
31436 2005-05-29  Derek Price  <derek@ximbiot.com>
31437
31438         * config/srclist.txt (glob_.h, glob.c): Add these files.
31439
31440 2005-05-29  Derek Price  <derek@ximbiot.com>
31441
31442         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31443         * modules/glob: New file.
31444         * modules/getlogin_r: Add link to POSIX spec in description.
31445
31446 2005-05-29  Derek Price  <derek@ximbiot.com>
31447             Paul Eggert  <eggert@cs.ucla.edu>
31448
31449         * m4/glob.m4: New file.
31450
31451 2005-05-29  Derek Price  <derek@ximbiot.com>
31452             Paul Eggert  <eggert@cs.ucla.edu>
31453
31454         * lib/glob_.h, lib/glob.c: New files.
31455
31456 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31457
31458         * modules/fts (Files): Remove m4/inttypes-pri.m4.
31459         * modules/fts-lgpl (Depends-on): Remove gettext.
31460
31461 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31462
31463         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
31464         and don't require gt_INTTYPES_PRI.
31465
31466 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31467
31468         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
31469
31470         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
31471         the configuration hassle isn't worth it.
31472         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
31473         (LONGEST_MODIFIER, PRIuMAX): Remove.
31474
31475 2005-05-27  Bruno Haible  <bruno@clisp.org>
31476
31477         * lib/getlogin_r.h: Remove second include of <stddef.h>.
31478
31479 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
31480
31481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
31482         _POSIX_PTHREAD_SEMANTICS for Solaris.
31483
31484 2005-05-25  Derek Price  <derek@ximbiot.com>
31485
31486         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
31487
31488 2005-05-25  Derek Price  <derek@ximbiot.com>
31489             Paul Eggert  <eggert@cs.ucla.edu>
31490
31491         * modules/getlogin_r, m4/getlogin_r.m4: New files.
31492         * lib/getlogin_r.c, getlogin_r.h: New files.
31493
31494 2005-05-25  Bruno Haible  <bruno@clisp.org>
31495             Derek Price  <derek@ximbiot.com>
31496
31497         * lib/getlogin_r.h: Simplify API documentation.
31498
31499 2005-05-23  Derek Price  <derek@ximbiot.com>
31500
31501         * modules/minmax (Files): Add m4/minmax.m4.
31502         (configure.ac): Add gl_MINMAX.
31503
31504 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31505
31506         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
31507         so that unistd-safer.h (GPL'ed code) need not be included.
31508
31509 2005-05-22  Bruno Haible  <bruno@clisp.org>
31510
31511         * m4/minmax.m4: New file.
31512         Based on a patch by Derek Price <derek@ximbiot.com>.
31513
31514 2005-05-22  Bruno Haible  <bruno@clisp.org>
31515
31516         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
31517         (INT64_MIN): Fix definition.
31518         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31519
31520         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
31521         NEED_SIGNED_INT_TYPES.
31522
31523         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
31524         HAVE_SYSTEM_INTTYPES.
31525
31526 2005-05-22  Bruno Haible  <bruno@clisp.org>
31527
31528         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
31529         Also include <sys/param.h> if it defines MIN, MAX.
31530         Based on a patch by Derek Price <derek@ximbiot.com>.
31531
31532 2005-05-21  Jim Meyering  <jim@meyering.net>
31533
31534         * modules/fts (Files): Add m4/inttypes-pri.m4.
31535         (Depends-on): Add lstat and remove gettext.  Alphabetize.
31536
31537 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31538
31539         New fts module.
31540         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
31541         (setup_dir, free_dir): New functions.
31542         (enter_dir, leave_dir): Define trivial
31543         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
31544         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
31545         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
31546         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
31547         Move to fts-cycle.c.
31548         (fts_open): Use setup_dir.
31549         (fts_close): Use free_dir.
31550         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
31551         This adds a label and some gotos, but the alternatives were messier.
31552         Check for memory allocation failure when entering a dir.
31553         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
31554         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
31555         (FTS): New member fts_cycle, that is a union that contains the
31556         old active_dir_ht and cycle_state.  All uses changed to mention
31557         fts_cycle.ht and fts_cycle.state.
31558         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
31559         fts.c, with the following changes:
31560         (setup_dir, free_dir): New functions.
31561         (enter_dir): Now returns bool.  Return true if successful, false
31562         if memory exhausted.  All callers changed.
31563         Do not bother partly cleaning up on
31564         memory allocation failure; that is free_dir's job.
31565         However, free ad if hash_insert fails, to avoid memory leak.
31566         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
31567         fts->fts_options to see which union member to use.
31568
31569 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31570
31571         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
31572         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
31573
31574 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31575
31576         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
31577
31578 2005-05-20  Jim Meyering  <jim@meyering.net>
31579
31580         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
31581         Now a macro, to pacify GCC.
31582
31583 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
31584
31585         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
31586         of -1.
31587
31588 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
31589
31590         * lib/chown.c (rpl_chown): Return -1 on failure.
31591
31592 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31593
31594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
31595         Don't check for stddef.h.
31596         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
31597         don't use its results.
31598         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
31599         since we include them unconditionally.  Don't require
31600         AM_STDBOOL_H, since stdbool is a prerequisite.
31601         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
31602         since we assume C89 or better.
31603         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
31604         as we don't use their results.
31605         Don't check for fchdir, memmove, memset, strrchr, as we use
31606         them unconditionally.
31607         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
31608         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
31609
31610 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31611
31612         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
31613         Include <stddef.h> unconditionally, since we assume C89 now.
31614         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
31615         * lib/fts.c: Include fts_.h first, to check interface.
31616         Do not include intprops.h; no longer needed.
31617         Include cycle-check.h and hash.h, since fts_.h no longer does.
31618         Remove unnecessary casts of closedir to void.
31619         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
31620         decide whether to decrement nlinks.
31621         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
31622         (FTS): Use struct hash_table * instead of Hash_table, so that
31623         we no longer need to include hash.h here.
31624
31625 2005-05-18  Jim Meyering  <jim@meyering.net>
31626
31627         * modules/dirfd (License): Change to LGPL.  Most of the code
31628         is already in the public domain.
31629
31630 2005-05-18  Jim Meyering  <jim@meyering.net>
31631
31632         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
31633         Reported by Yoann Vandoorselaere.
31634
31635 2005-05-17  Jim Meyering  <jim@meyering.net>
31636
31637         * m4/fts.m4: New file, from coreutils.
31638
31639 2005-05-17  Jim Meyering  <jim@meyering.net>
31640
31641         * lib/fts.c, lib/fts_.h: New files, from coreutils.
31642
31643 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31644
31645         Sync from coreutils.
31646         * m4/unlinkdir.m4: New file.
31647
31648 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31649
31650         Sync from coreutils.
31651         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31652         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31653         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31654         White space changes only.
31655         * lib/makepath.c (make_path): Port to hosts where leading "//" is
31656         special.
31657         * lib/yesno.c: Include getline.h, not ctype.h.
31658         (yesno): Don't remove leading white space; POSIX doesn't allow it.
31659         Use getline to remove arbitrary restriction on response length.
31660
31661 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31662
31663         * config/srclist-update: Spell out "Street" in FSF postal
31664         mail address; this is the style the FSF seems to prefer.
31665
31666         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31667         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31668         this updates FSF postal mail address.
31669
31670         Sync from coreutils.
31671         * modules/unlinkdir: New file.
31672         * modules/yesno (Depends-on): Add getline.
31673         * MODULES.html.sh (File system functions): Add unlinkdir.
31674
31675 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31676
31677         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31678         lib/strsep.h:
31679         Change the initial comment to refer to GPL, not LGPL.
31680         gnulib-tool will change it to LGPL as needed.
31681
31682         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31683         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31684         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31685         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31686         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31687         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31688         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31689         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31690         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31691         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31692         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31693         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31694         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31695         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31696         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31697         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31698         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31699         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31700         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31701         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31702         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31703         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31704         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31705         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31706         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31707         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31708         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31709         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31710         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31711         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31712         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31713         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31714         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31715         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31716         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31717         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31718         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31719         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31720         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31721         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31722         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31723         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31724         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31725         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31726         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31727         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31728         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31729         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31730         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31731         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31732         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31733         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31734         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31735         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31736         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31737         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31738         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31739         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31740         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31741         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31742         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31743         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31744         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31745         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31746         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31747         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31748         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31749         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31750         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31751         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31752         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31753         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31754         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31755         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31756         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31757         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31758         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31759         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31760         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31761         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31762         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31763         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31764         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31765         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31766         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31767         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31768         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31769         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31770         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31771         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31772         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31773         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31774         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31775         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31776         lib/yesno.c, lib/yesno.h:
31777         Update FSF postal mail address.
31778
31779 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31780
31781         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31782         tests/test-memmem.c, tests/test-stpncpy.c:
31783         Update FSF postal mail address.
31784
31785 2005-05-13  Bruno Haible  <bruno@clisp.org>
31786
31787         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31788         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31789         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31790         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31791         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31792         Add support for 64-bit integers in the MSVC compiler.
31793
31794 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31795
31796         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31797
31798 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
31799
31800         * gnulib-tool (func_import): Sort and uniquify recommended includes.
31801
31802 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31803
31804         * doc/getdate.texi (General date syntax): Don't say that date
31805         date --iso-8601=ns generates acceptable dates; it doesn't yet.
31806         Problem reported by Nic Ferrier.
31807
31808 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31809
31810         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31811         specified in ai_socktype. Fix invalid ai_protocol
31812         check. ai_protocol is usually set to 0 or depending on
31813         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
31814         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
31815         ai_socktype / ai_protocol in the returned addrinfo structure.
31816
31817 2005-05-10  Simon Josefsson  <jas@extundo.com>
31818
31819         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31820         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31821
31822 2005-05-10  Karl Berry  <karl@gnu.org>
31823
31824         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31825         (from http://www.gnu.org/licenses).
31826         * doc/COPYING.LIB: also rename to COPYING.LESSER.
31827         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31828         fdl.texi suffices.
31829
31830 2005-05-10  Karl Berry  <karl@gnu.org>
31831
31832         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31833         (COPYING.DOC): remove.
31834
31835         * config/srclist-update: new FSF address.
31836
31837 2005-05-10  Derek Price  <derek@ximbiot.com>
31838
31839         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31840         possible.
31841
31842 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31843             Bruno Haible  <bruno@clisp.org>
31844
31845         * modules/inet_ntop: New file.
31846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31847         inet_ntop.
31848
31849 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31850             Bruno Haible  <bruno@clisp.org>
31851
31852         * m4/inet_ntop.m4: New file.
31853
31854 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31855             Bruno Haible  <bruno@clisp.org>
31856
31857         * lib/inet_ntop.h: New file.
31858         * lib/inet_ntop.c: New file, from glibc with modifications.
31859
31860 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
31861
31862         * modules/time_r (License): Change to LGPL.
31863         * modules/extensions (License): Change to LGPL.  Actually,
31864         the license is more permissive than that, but currently gnulib-tool
31865         doesn't know how to handle more-permissive licenses.
31866
31867         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31868         Problem reported by Dave Love.
31869
31870 2005-05-08  Jim Meyering  <jim@meyering.net>
31871
31872         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31873         blank.
31874
31875 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31876
31877         * modules/argmatch (Depends-on): Add stdbool.
31878         * modules/backupfile (Depends-on): Likewise.
31879         * modules/chdir-long (Depends-on): Likewise.
31880         * modules/closeout (Depends-on): Likewise.
31881         * modules/cycle-check (Depends-on): Likewise.
31882         * modules/dirname (Depends-on): Likewise.
31883         * modules/fnmatch (Depends-on): Likewise.
31884         * modules/fsusage (Depends-on): Likewise.
31885         * modules/fwriteerror (Depends-on): Likewise.
31886         * modules/getcwd (Depends-on): Likewise.
31887         * modules/getloadavg (Depends-on): Likewise.
31888         * modules/hard-locale (Depends-on): Likewise.
31889         * modules/makepath (Depends-on): Likewise.
31890         * modules/mountlist (Depends-on): Likewise.
31891         * modules/nanosleep (Depends-on): Likewise.
31892         * modules/posixtm (Depends-on): Likewise.
31893         * modules/quotearg (Depends-on): Likewise.
31894         * modules/readtokens (Depends-on): Likewise.
31895         * modules/readtokens0 (Depends-on): Likewise.
31896         * modules/readutmp (Depends-on): Likewise.
31897         * modules/save-cwd (Depends-on): Likewise.
31898         * modules/strftime (Depends-on): Likewise.
31899         * modules/userspec (Depends-on): Likewise.
31900         * modules/utimecmp (Depends-on): Likewise.
31901         * modules/xgetcwd (Depends-on): Likewise.
31902         * modules/xnanosleep (Depends-on): Likewise.
31903         * modules/xstrtod (Depends-on): Likewise.
31904         * modules/yesno (Depends-on): Likewise.
31905
31906 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31907
31908         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31909         needless checks.
31910
31911 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31912
31913         Merge from coreutils.  Among other things,
31914         add bulletproofing for cases where stdin, stdout, or stderr are closed.
31915         * lib/fd-safer.c: New file.
31916         * lib/fcntl-safer.h, open-safer.c: Remove.
31917         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31918         * lib/dup-safer.c: Include unistd-safer.h first.
31919         Don't include errno.h.
31920         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31921         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31922         * lib/file-type.c: Rely on file-type.h change.
31923         * lib/getloadavg.c: Include unistd-safer.h.
31924         (getloadavg): Use safer open.
31925         * lib/getusershell.c: Include "stdio-safer.h".
31926         (getusershell): Use safer fopen.
31927         * lib/long-options.c (long_options): Use NULL rather than 0.
31928         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31929         'free'.
31930         * lib/modechange.c: Likewise.
31931         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31932         (MODE_DONE): New constant.
31933         (struct mode_change): Remove 'next' member.
31934         (make_node_op_equals): New function; like the old one of the
31935         same name, except it allocates an array.
31936         (mode_compile, mode_create_from_ref): Use it.
31937         (mode_compile): Allocate result as an array, not a linked list.
31938         Parse octal string ourself, so that we catch mistakes like "+0".
31939         (mode_adjust): Arg is an array, not a linked list.
31940         * lib/modechange.c: Include stat-macros.h, xalloc.h.
31941         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31942         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31943         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31944         Remove.  This is now stat-macros.h's job.
31945         (talloc): Remove.  All callers replaced by xalloc, so that
31946         our invokers don't have to worry about reporting memory failures.
31947         (make_node_op_equals): Remove.
31948         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31949         New constants.
31950         (struct mode_change): Moved here from modechange.h.
31951         (mode_append_entry): Remove.
31952         (mode_compile): Remove MASKED_OPS arg, since it encouraged
31953         apps to have incorrect behavior.  Use simpler algorithm for head
31954         and tail.  Don't futz with umask; that's now the job of mode_adjust.
31955         Detect more invalid usages rather than having somewhat-random behavior.
31956         Don't insert an "a=" action, as that leads to incorrect behavior.
31957         (mode_compile, mode_create_from_ref): Return NULL on error instead
31958         of an enum, since now there's only one way to have an error.  All
31959         callers changed.
31960         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31961         at the correct time.  Simplify calculation of "+u" and its ilk.
31962         Don't mishandle "+X".
31963         (mode_free): Remove "register" and localize decls.
31964         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31965         (struct mode_change): Move to modechange.c; callers don't
31966         need to see this stuff.
31967         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31968         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31969         (mode_change, mode_adjust): Reflect the new signatures noted above.
31970         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31971         that might redefine system include files.
31972         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31973         (my_usleep): Use NULL rather than (void *) 0.
31974         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31975         Use siginterrupt to specify that system calls should be interrupted.
31976         (rpl_nanosleep): Move initialization of suspended closer to call of
31977         my_usleep.
31978         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
31979         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
31980         (desirable_utmp_entry): New function.
31981         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31982         using x2nrealloc, to simplify logic.
31983         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31984         size calculation.  Do not assume utmp file is a regular file.
31985         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31986         (READ_UTMP_CHECK_PIDS): New constant.
31987         * lib/save-cwd.c: Include unistd-safer.h.
31988         (save_cwd): Use fd_safer.
31989         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31990         [!_LIBC] Include "stat-macros.h" instead.
31991         * lib/unistd-safer.h (fd_safer): New decl.
31992
31993 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31994
31995         * modules/getloadavg (Depends-on): Add unistd-safer.
31996         * modules/getusershell (Depends-on): Add stdio-safer.
31997         * modules/lstat (Depends-on): Remove xalloc.
31998         * modules/mkstemp (Depends-on): Add stat-macros.
31999         * modules/modechange (Depends-on): Remove xstrtol.
32000         Add stat-macros, xalloc.
32001         * modules/save-cwd (Depends-on): Add unistd-safer.
32002         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
32003         * modules/unistd-safer (Files): Add lib/fd-safer.c
32004         (Makefile.am): Remove lib_SOURCES.
32005
32006         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
32007         Remove fcntl-safer; unistd-safer supersedes it.
32008
32009 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32010
32011         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
32012         AC_HEADER_STAT.
32013         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
32014         (gl_PREREQ_CHOWN): Remove.
32015         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
32016         it.  Don't require AC_HEADER_STAT.
32017         (gl_PREREQ_LSTAT): Remove.
32018         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
32019         Don't require AC_HEADER_STAT.
32020         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
32021         (gl_PREREQ_RMDIR): Remove.
32022         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
32023         mention stat-macros.h or AC_HEADER_STAT, since we'll make
32024         the stat-macros module a prerequisite.
32025         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
32026         * m4/filemode.m4 (gl_FILEMODE): Likewise.
32027         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
32028         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
32029         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
32030         variable names.
32031         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
32032         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
32033         variable prefixes.
32034         * m4/fcntl-safer.m4: Remove.
32035         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
32036         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
32037         Invoke gl_PREREQ_FD_SAFER.
32038         (gl_PREREQ_FD_SAFER): New macro.
32039         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
32040         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
32041         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
32042         Remove duplicate call to AC_LIBOBJ(readutmp).
32043         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
32044
32045         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
32046         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
32047
32048 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32049
32050         * MODULES.html.sh (Misc): Add byteswap.
32051
32052 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32053
32054         * modules/getcwd (Depends-on): Add extensions.
32055         * modules/openat (Depends-on): Likewise.
32056
32057 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32058
32059         * modules/byteswap: New file.
32060
32061 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32062
32063         * m4/byteswap.m4: New file.
32064
32065 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32066
32067         * lib/byteswap_.h: New file.
32068
32069 2005-04-25  Karl Berry  <karl@gnu.org>
32070
32071         * m4/gettext.m4: Update from GNU gettext 0.14.4.
32072
32073 2005-04-25  Albert Chin  <china@thewrittenword.com>
32074
32075         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
32076         Toolkit C bug.
32077
32078 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
32079
32080         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32081         (func_ln_if_changed) Remove forcibly for no error message
32082         in case file does not exist.
32083
32084 2005-04-19  Simon Josefsson  <jas@extundo.com>
32085
32086         * gnulib-tool (Options): Make --symlink mean --symbolic.
32087
32088 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
32089
32090         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
32091
32092 2005-04-16  Simon Josefsson  <jas@extundo.com>
32093
32094         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
32095
32096 2005-04-15  Simon Josefsson  <jas@extundo.com>
32097
32098         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
32099
32100 2005-04-15  Simon Josefsson  <jas@extundo.com>
32101
32102         * gnulib-tool: Rename --symlink to --symbolic.
32103
32104 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
32105
32106         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
32107         symbolic links to files instead of copying/moving.  Add --aux-dir,
32108         specifying directory relative --dir where auxiliary build tools
32109         are placed.
32110
32111 2005-04-14  Bruno Haible  <bruno@clisp.org>
32112
32113         * modules/allocsa (License): Change to LGPL.
32114         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32115
32116 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32117
32118         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32119         that "UTC +1 second" continues to work.  Problem reported
32120         by Dmitry V. Levin.
32121         (relunit_snumber): New rule.
32122         (relunit): Use it.
32123
32124 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32125
32126         * lib/getdate.y (universal_time_zone_table): New constant.
32127         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32128         universal_time_zone_table.
32129         (lookup_zone): Prefer universal_time_zone_table to
32130         local_time_zone_table, so that "GMT" time stamps are allowed in
32131         London during the summer.  Problem reported by Ian Abbott.
32132
32133 2005-04-12  Jim Meyering  <jim@meyering.net>
32134
32135         * lib/human.c (humblock): Set *options even when returning due to
32136         xstrtoumax conversion failure.  Thanks to a used-uninitialized
32137         warning from gcc-4.
32138
32139 2005-04-09  Jim Meyering  <jim@meyering.net>
32140
32141         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32142         -Wuninitialized: initialize tm0.tm_year.
32143
32144 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32145
32146         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32147         count, since there's no maximum.  All uses changed.
32148         Add member dsts_seen.
32149         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32150         not being INT_MAX.
32151         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32152         Use pc_rels_seen to decide whther a date is absolute.
32153
32154         * lib/getdate.y (number): Don't overwrite year.
32155         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32156         check.
32157
32158 2005-04-02  Simon Josefsson  <jas@extundo.com>
32159
32160         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32161         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32162
32163 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
32164
32165         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32166         where no absolute path name can be longer than PATH_MAX.
32167
32168 2005-03-27  Jim Meyering  <jim@meyering.net>
32169
32170         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32171
32172 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32175         "one's complement" -> "ones' complement" in comment, as per Knuth.
32176         "value of type" -> "type or expression" in comment.
32177         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32178
32179 2005-03-26  Jim Meyering  <jim@meyering.net>
32180
32181         Comment nits.
32182         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32183         Correct typos: s/or/of/.
32184
32185 2005-03-26  Jim Meyering  <jim@meyering.net>
32186
32187         * modules/check-include-files: Move to ../ and rename to...
32188         * check-module: ...this.
32189
32190 2005-03-25  Jim Meyering  <jim@meyering.net>
32191
32192         * modules/xvasprintf (Files): Add xalloc.h.
32193
32194 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32195
32196         * modules/gettext (Files): config/config.rpath ->
32197         build-aux/config.rpath
32198         * modules/iconv (Files): Likewise.
32199         Problem reported by Oskar Liljeblad.
32200
32201 2005-03-23  Jim Meyering  <jim@meyering.net>
32202
32203         * modules/check-include-files: New script to check for
32204         missing dependencies, multiple includes, etc.
32205
32206         * modules/c-strtold (Depends-on): Add xalloc.
32207         * modules/c-strtod (Depends-on): Add xalloc.
32208         * modules/hash (Depends-on): Add xalloc.
32209         (Files): Remove lib/xalloc.h.
32210
32211         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32212         * modules/userspec (Files): Add lib/inttostr.h.
32213
32214 2005-03-23  Jim Meyering  <jim@meyering.net>
32215
32216         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32217
32218 2005-03-22  Jim Meyering  <jim@meyering.net>
32219
32220         * modules/stat-macros: New module.
32221         * modules/canonicalize, modules/euidaccess, modules/file-type,
32222         * modules/filemode, modules/lchown, modules/makepath,
32223         * modules/rmdir, modules/stat: Depend on new stat-macros module
32224         rather than listing lib/stat-macros.h manually.
32225         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32226
32227 2005-03-22  Jim Meyering  <jim@meyering.net>
32228
32229         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32230
32231 2005-03-22  Bruno Haible  <bruno@clisp.org>
32232
32233         * config/srclist.txt: Replace target directory 'config' with
32234         'build-aux'.
32235         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32236         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32237         ../build-aux/.
32238
32239 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32240
32241         * modules/chdir-long (Depends-on): Add mempcpy.
32242
32243         * modules/acl, modules/backupfile, modules/c-strtod,
32244         modules/c-strtold, modules/canon-host, modules/canonicalize,
32245         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32246         modules/exclude, modules/exitfail, modules/file-type,
32247         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32248         modules/getdate, modules/getline, modules/getpagesize,
32249         modules/getpass, modules/getugroups, modules/group-member,
32250         modules/hard-locale, modules/hash, modules/human, modules/idcache,
32251         modules/inttostr, modules/long-options, modules/makepath,
32252         modules/md5, modules/memcasecmp, modules/memcoll,
32253         modules/modechange, modules/mountlist, modules/path-concat,
32254         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32255         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32256         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32257         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32258         modules/strftime, modules/strndup, modules/strverscmp,
32259         modules/timespec, modules/unlocked-io, modules/userspec,
32260         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32261         modules/yesno:
32262         Remove lib_SOURCES line from Makefile.am section, as this is now
32263         done automatically by the corresponding Autoconf macro.
32264
32265 2005-03-21  Jim Meyering  <jim@meyering.net>
32266
32267         Changes imported from coreutils.
32268
32269         * lib/cycle-check.c: Don't include xalloc.h.
32270
32271         * lib/path-concat.c: Don't include assert.h.
32272         (path_concat): Remove assertion that would have triggered
32273         for ABASE starting with more than one slash.
32274         Reported by Andreas Schwab.
32275
32276         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32277         properly when ABASE is an absolute file name.
32278         Correct the description of this function.
32279         Include <assert.h>.
32280         Add an assertion and a test driver.
32281         This fixes a bug introduced on 2004-07-02.
32282         Andreas Schwab reported the resulting failure of cp --parents:
32283         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32284
32285 2005-03-21  Jim Meyering  <jim@meyering.net>
32286
32287         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32289
32290 2005-03-21  Jim Meyering  <jim@meyering.net>
32291         and  Paul Eggert  <eggert@cs.ucla.edu>
32292
32293         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32294         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32295         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32296         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32297         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32298         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32299         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32300         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32301         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32302         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32303         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32304         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32305         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32306         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32307         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32308         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32309         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32310         for these modules.
32311
32312 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
32313
32314         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32315         (which shouldn't happen), generate nothing instead of returning 0
32316         immediately, so that nstrftime (NULL, ...) doesn't return 0.
32317
32318 2005-03-16  Bruno Haible  <bruno@clisp.org>
32319
32320         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32321         HAVE_LONGLONG_64BIT.
32322
32323 2005-03-16  Bruno Haible  <bruno@clisp.org>
32324
32325         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32326         HAVE_LONGLONG_64BIT.
32327
32328 2005-03-16  Bruno Haible  <bruno@clisp.org>
32329
32330         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32331         HAVE_LONGLONG_64BIT.
32332
32333 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32334
32335         * lib/strftime.c (my_strftime): Prepend space to format so that we can
32336         reliably distinguish strftime failure from empty output on POSIX
32337         hosts.
32338
32339 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32340
32341         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32342         (iconv_string): Don't guess a size-zero buffer, as that might cause
32343         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
32344         result would be 'too large', where 'too large' is (heuristically)
32345         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32346         overflow concerns.  This will prevent some unwanted malloc failures
32347         when the inputs are very large.
32348
32349 2005-03-15  Karl Berry  <karl@gnu.org>
32350
32351         * config/srclist.txt (config.rpath): from gettext.
32352         * config/config.rpath: update.
32353
32354 2005-03-15  Bruno Haible  <bruno@clisp.org>
32355
32356         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32357         to 'negate'.
32358
32359         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32360         variable.
32361
32362         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32363         results.
32364
32365 2005-03-14  Simon Josefsson  <jas@extundo.com>
32366
32367         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32368         <fx@gnu.org>.
32369
32370 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
32371
32372         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32373         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32374         intprops.h.
32375         * lib/strtol.c: Likewise.
32376
32377 2005-03-14  Jim Meyering  <jim@meyering.net>
32378
32379         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32380         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32381         to be nonzero so that we (and caller) can detect the difference
32382         between a valid zero-length expansion and an error return, even
32383         when the underlying strftime fails before writing anything into
32384         that location.
32385
32386 2005-03-14  Bruno Haible  <bruno@clisp.org>
32387
32388         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32389         Update from GNU gettext 0.14.3.
32390
32391 2005-03-10  Jim Meyering  <jim@meyering.net>
32392
32393         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32394
32395 2005-03-10  Jim Meyering  <jim@meyering.net>
32396
32397         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32398         so that this module works on systems without fchdir.
32399
32400 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
32401
32402         Factor int-properties macros into a single file, except for
32403         glibc-related files.
32404         * lib/intprops.h: New file.
32405         * lib/getloadavg.c: Include it instead of limits.h.
32406         (INT_STRLEN_BOUND): Remove.
32407         * lib/human.c: Include intprops.h.
32408         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32409         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32410         302/1000.
32411         * lib/inttostr.h: Include intprops.h instead of limits.h.
32412         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32413         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32414         for consistency with intprops.h.
32415         (time_t_is_integer, twos_complement_arithmetic): Use them.
32416         * lib/sig2str.h: Include <signal.h>, intprops.h.
32417         (INT_STRLEN_BOUND): Remove.
32418         * lib/strftime.c (TYPE_SIGNED): Remove.
32419         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32420         * lib/strtol.c: Adjust comments to match intprops.h.
32421         * lib/userspec.c: Include intprops.h.
32422         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32423         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32424         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32425         instead of rolling our own expressions.
32426         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32427
32428         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
32429         instead of int.
32430         (my_strftime): Do not mishandle years close to INT_MAX, by doing
32431         the right thing even if adding 1900 would overflow.  Similarly
32432         for tm_mon + 1 and tm_yday + 1.
32433         Make %Y always equivalent to %C%y, and similarly for %G and %g.
32434         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32435         (DO_SIGNED_NUMBER): New macro.
32436         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32437
32438 2005-03-07  Bruno Haible  <bruno@clisp.org>
32439
32440         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32441
32442 2005-03-07  Bruno Haible  <bruno@clisp.org>
32443
32444         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32445
32446 2005-03-04  Derek R. Price  <derek@ximbiot.com>
32447
32448         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32449         (func_import): Only replace files via --import when they have actually
32450         changed.
32451
32452 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32453
32454         * m4/mmap-anon.m4: New file.
32455         * m4/pagealign_alloc.m4: New file.
32456
32457 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32458             Bruno Haible  <bruno@clisp.org>
32459
32460         * modules/pagealign_alloc: New file.
32461         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
32462
32463 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32464             Bruno Haible  <bruno@clisp.org>
32465
32466         * lib/pagealign_alloc.h: New file.
32467         * lib/pagealign_alloc.c: New file.
32468
32469 2005-03-03  Bruno Haible  <bruno@clisp.org>
32470
32471         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
32472         Use an all-permissive copyright notice, recommended by RMS.
32473
32474 2005-03-02  Bruno Haible  <bruno@clisp.org>
32475
32476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
32477         of AIX, the replacement has to be done only after <string.h> is
32478         included, therefore not in config.h. stpncpy.h does the replacement,
32479         and stpncpy.c uses it.
32480
32481 2005-03-02  Bruno Haible  <bruno@clisp.org>
32482
32483         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
32484         stpncpy.c uses it.
32485
32486 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32487
32488         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
32489         The workaround isn't strictly needed for POSIX conformance, and
32490         it's too much of a pain to configure and maintain.  We'll ask
32491         people to fix their kernels instead.
32492         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
32493         (NANOSLEEP_BUG_WORKAROUND): Remove.
32494         (xnanosleep): Remove the workaround.
32495
32496 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
32499         Reported by Derek Price.
32500         (Include): Add "timespec.h".
32501
32502         * modules/xnanosleep (Depends-on): Remove gethrxtime.
32503
32504 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32505
32506         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
32507         to detect nanosleep bug.
32508
32509 2005-03-01  Bruno Haible  <bruno@clisp.org>
32510
32511         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
32512
32513 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32514
32515         * modules/gethrxtime: New file.
32516         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
32517         (Depends-on): Add gethrxtime.
32518         (configure.ac): Add gl_XNANOSLEEP.
32519         (Makefile.am): Remove lib_SOURCES line.
32520
32521 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32522
32523         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
32524         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
32525
32526 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32527
32528         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
32529         * lib/timespec.h (gettime): Return void, since it always
32530         succeeds now.  All uses changed.
32531         * lib/gettime.c (gettime) Likewise.
32532         [HAVE_NANOTIME]: Prefer nanotime.
32533         Assume gettimeofday succeeds, as POSIX requires.
32534         Assime time () succeeds, since other code already does.
32535         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
32536         (timespec_subtract): Remove.
32537         (NANOSLEEP_BUG_WORKAROUND): New constant.
32538         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
32539         things considerably.  Use it only on GNU/Linux hosts, since the
32540         workaround shouldn't be needed elsewhere.
32541
32542 2005-02-24  Bruno Haible  <bruno@clisp.org>
32543
32544         * modules/gettext (Files): Add m4/glibc2.m4.
32545
32546 2005-02-24  Bruno Haible  <bruno@clisp.org>
32547
32548         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
32549         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
32550         * m4/progtest.m4:
32551         Update from GNU gettext 0.14.2.
32552         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
32553
32554 2005-02-24  Bruno Haible  <bruno@clisp.org>
32555
32556         * lib/localcharset.c: Update from GNU gettext 0.14.2.
32557         * lib/config.charset: Update from GNU gettext 0.14.2.
32558
32559 2005-02-24  Bruno Haible  <bruno@clisp.org>
32560
32561         * lib/gettext.h: Update from GNU gettext 0.14.2.
32562
32563 2005-02-23  Simon Josefsson  <jas@extundo.com>
32564
32565         * m4/iconvme.m4: New file.
32566
32567 2005-02-23  Jim Meyering  <jim@meyering.net>
32568
32569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
32570         change.
32571         Thanks to Bruno Haible for catching it.
32572
32573 2005-02-22  Simon Josefsson  <jas@extundo.com>
32574
32575         * modules/iconvme: New file.
32576
32577         * MODULES.html.sh: Add iconvme.
32578
32579 2005-02-22  Simon Josefsson  <jas@extundo.com>
32580
32581         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
32582
32583 2005-02-22  Simon Josefsson  <jas@extundo.com>
32584
32585         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
32586
32587 2005-02-22  Jim Meyering  <jim@meyering.net>
32588
32589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
32590         s/ifndef/ifdef/.
32591
32592 2005-02-20  Neil Conway  <neilc@samurai.com>
32593
32594         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
32595         returned by OSX/Darwin if the specified buffer is not large
32596         enough for the hostname.
32597
32598 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32599
32600         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
32601         pass it to _help, otherwise the latter coredumps trying to
32602         dereference state.root_argp.
32603
32604 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32605
32606         * modules/chdir-long (Depends-on): Add memrchr.
32607         * modules/memrchr (Files): Add lib/memrchr.h.
32608         (Include): "memrchr.h".
32609
32610 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32611
32612         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
32613
32614 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * lib/memrchr.h: New file.
32617         * lib/chdir-long.c: Include it.
32618         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
32619         Don't bother including stddef.h.
32620
32621 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
32622
32623         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
32624         inclusion.
32625         Include <sys/types.h>, for dev_t.
32626         (ME_DUMMY, ME_REMOTE): Move from here....
32627         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
32628         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
32629         Dmitry V. Levin.
32630         Include mountlist.h first, to test the interface.
32631
32632 2005-01-29  Bruno Haible  <bruno@clisp.org>
32633
32634         * lib/progname.c (program_name): Initialize.
32635         Needed when linking statically on MacOS X.
32636
32637 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32638
32639         Sync from coreutils.
32640         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
32641         (Depends-on): Add c-strtod.
32642         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
32643
32644 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32645
32646         Sync from coreutils.
32647         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
32648
32649         Remove files that are specific to coreutils.
32650         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
32651
32652 2005-01-28  Bruno Haible  <bruno@clisp.org>
32653
32654         * modules/javacomp: New file.
32655         * MODULES.html.sh (Java): Add javacomp.
32656
32657 2005-01-28  Bruno Haible  <bruno@clisp.org>
32658
32659         * m4/javacomp.m4: New file, from GNU gettext.
32660
32661 2005-01-28  Bruno Haible  <bruno@clisp.org>
32662
32663         * lib/javacomp.sh.in: New file, from GNU gettext.
32664         * lib/javacomp.h: New file, from GNU gettext.
32665         * lib/javacomp.c: New file, from GNU gettext.
32666
32667 2005-01-26  Simon Josefsson  <jas@extundo.com>
32668
32669         * lib/gai_strerror.c: Use GPL in header.
32670
32671 2005-01-26  Bruno Haible  <bruno@clisp.org>
32672
32673         * modules/javaexec: New file.
32674         * MODULES.html.sh (Java): Add javaexec.
32675
32676 2005-01-26  Bruno Haible  <bruno@clisp.org>
32677
32678         * m4/javaexec.m4: New file, from GNU gettext.
32679
32680 2005-01-26  Bruno Haible  <bruno@clisp.org>
32681
32682         * lib/javaexec.sh.in: New file, from GNU gettext.
32683         * lib/javaexec.h: New file, from GNU gettext.
32684         * lib/javaexec.c: New file, from GNU gettext.
32685
32686 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32687
32688         * modules/lchown (Depends-on): Remove lchown.h
32689
32690 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32691
32692         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32693         must be defined if the header file was not found, in order
32694         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32695
32696 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32697
32698         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32699         initializers for struct pentry_state.
32700         (__argp_error): Check return value of __asprintf
32701         (__argp_failure): Translate error message
32702
32703         * lib/argp-parse.c: Removed braces around the expansion of N_()
32704
32705 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32706
32707         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32708         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32709         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32710         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32711         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32712         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32713         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32714         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32715         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32716         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32717         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32718         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32719         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32720         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32721         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32722         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32723         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32724         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32725         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32726         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32727         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32728         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32729         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32730         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32731         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32732         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32733         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32734         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32735         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32736         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32737         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32738         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32739         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32740         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32741         xstrtol.m4, xstrtoumax.m4, yesno.m4:
32742         Use an all-permissive copyright notice, recommended by RMS.
32743
32744 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32745
32746         * modules/chdir-long (Depends-on): Remove mempcpy.
32747
32748 2005-01-21  Jim Meyering  <jim@meyering.net>
32749
32750         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32751         same value as for Solaris 9.
32752
32753         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32754         component length.  This included changing the parameter to be
32755         of type `char *' rather than `char const *'.
32756         * lib/chdir-long.h (chdir_long): Update prototype.
32757
32758         * lib/openat.c (fdopendir, fstatat): New functions.
32759         * lib/openat.h: Include headers required for use of DIR and struct
32760         stat.
32761         [AT_SYMLINK_NOFOLLOW]: Define.
32762         (fdopendir, fstatat): Add prototypes.
32763
32764 2005-01-21  Bruno Haible  <bruno@clisp.org>
32765
32766         * modules/classpath: New file.
32767         * MODULES.html.sh (Java): Add classpath.
32768
32769 2005-01-21  Bruno Haible  <bruno@clisp.org>
32770
32771         * lib/classpath.h: New file, from GNU gettext.
32772         * lib/classpath.c: New file, from GNU gettext.
32773
32774 2005-01-20  Simon Josefsson  <jas@extundo.com>
32775
32776         * modules/version-etc-fsf: New file.
32777
32778 2005-01-20  Simon Josefsson  <jas@extundo.com>
32779
32780         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32781         * lib/version-etc.c: Remove version_etc_copyright.
32782         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32783         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32784
32785 2005-01-20  Simon Josefsson  <jas@extundo.com>
32786
32787         * lib/base64.h (isbase64): Add.
32788
32789         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32790         using a unsigned prototype, don't inline.
32791         (base64_decode): Use it.
32792
32793 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32794
32795         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32796         it.
32797
32798 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32799
32800         * lib/save-cwd.c (save_cwd): Remove code to support the case
32801         where fchdir is missing or flaky.
32802
32803 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32806
32807 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
32808
32809         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32810         AC_LIBSOURCES now does this.
32811         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32812         with new ullong_max module.
32813
32814 2005-01-19  Bruno Haible  <bruno@clisp.org>
32815
32816         * modules/sh-quote: New file.
32817         * MODULES.html.sh (Executing programs): Add sh-quote.
32818
32819 2005-01-19  Bruno Haible  <bruno@clisp.org>
32820
32821         * lib/sh-quote.h: New file, from GNU gettext.
32822         * lib/sh-quote.c: New file, from GNU gettext.
32823
32824 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32825
32826         Merge from coreutils.
32827         * m4/ullong_max.m4: New file.
32828         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32829         (gl_MACROS): Assume localeconv exists.
32830
32831 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32832
32833         Merge changes from coreutils, as described below in several
32834         changelogs dated today.
32835
32836         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32837         (O_DIRECTORY): Remove; not needed here, since "." must be
32838         a directory.  All uses removed.
32839         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
32840         universal on Suns, and we also need to test for IRIX.
32841         Revamp code to use 'if' rather than '#if'.
32842         Avoid unnecessary comparison of cwd->desc to 0.
32843
32844         * lib/utimens.c (futimens): Robustify the previous patch, by checking
32845         for known valid error numbers rather than observed invalid ones.
32846
32847 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32848
32849         * modules/ullong_max: New file.
32850
32851         * modules/chdir-long, modules/openat: New files.
32852         * modules/save-cwd (Depends-on): Depend on chdir-long.
32853         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32854
32855 2005-01-18  Jim Meyering  <jim@meyering.net>
32856
32857         Merge from coreutils.
32858         * m4/chdir-long.m4, m4/openat.m4: New files.
32859         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32860         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
32861         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32862         is sane and DOES follow symlinks.  Besides, testing 20 different
32863         systems found no broken chown implementations.
32864         Prompted by a change in rsync's copy of this macro.
32865         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32866
32867         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32868
32869         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32870         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32871         NULL-means-set-to-current-time semantics.
32872         Remove temporary file immediately, rather than waiting
32873         for configure's at-exit trap code to do it.
32874
32875 2005-01-18  Jim Meyering  <jim@meyering.net>
32876
32877         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32878
32879         * lib/utimens.c (futimens): Account for the fact that futimes
32880         can also fail with errno == ENOSYS or errno == ENOENT.
32881         Patch from Dmitry V. Levin.
32882
32883         Change the name of the robust chdir function from chdir to chdir_long.
32884         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32885         (restore_cwd): Use chdir_long, not chdir.
32886         * lib/chdir-long.c: Renamed from chdir.c.
32887         * lib/chdir-long.h: Renamed from chdir.h.
32888         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32889         Hurd.
32890
32891 2005-01-18  Bruno Haible  <bruno@clisp.org>
32892
32893         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32894         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32895         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32896         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32897         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32898         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32899         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32900         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32901         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32902         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32903         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32904         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32905         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32906         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32907         Use an all-permissive copyright notice, recommended by RMS.
32908
32909 2005-01-18  Bob Proulx  <bob@proulx.com>
32910
32911         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32912         simplify offsetof() macro construct to avoid compile failure with
32913         native HP-UX 11.0 ANSI C compiler.
32914
32915 2005-01-17  Bruno Haible  <bruno@clisp.org>
32916
32917         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32918         redundant because stpncpy.m4 takes care of it.
32919
32920 2005-01-17  Bruno Haible  <bruno@clisp.org>
32921
32922         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32923
32924 2005-01-17  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32927         used.
32928
32929 2005-01-17  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/fwriteerror.h (fwriteerror): Change specification to include
32932         fclose.
32933         * lib/fwriteerror.c: Include <stdbool.h>.
32934         (fwriteerror): At the end, close the file stream. Record whether
32935         stdout was already closed.
32936
32937 2005-01-17  Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/execute.c (environ): Declare if needed.
32940         * lib/pipe.c (environ): Likewise.
32941         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32942
32943 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32944
32945         * modules/argp: Depend on vsnprintf
32946
32947 2005-01-10  Jim Meyering  <jim@meyering.net>
32948
32949         * modules/closeout (Depends-on): Add atexit.
32950
32951 2005-01-06  Bruno Haible  <bruno@clisp.org>
32952
32953         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32954
32955 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32956
32957         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32958         definitions to be after all include files, to avoid collisions.
32959         Problem reported by Bob Proulx.
32960
32961 2005-01-04  Jim Meyering  <jim@meyering.net>
32962
32963         Changes imported from coreutils.
32964         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32965         as the mkstemp template, use a temporary directory and an
32966         8.3-friendly template to avoid trouble on systems like DJGPP.
32967         Reported by Juan M. Guerrero via Stepan Kasal.
32968         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32969         close. Remove the temporary directory right away, rather than waiting
32970         for configure's at-exit trap code to do it.
32971         Suggestion from Stepan Kasal.
32972
32973 2005-01-01  Simon Josefsson  <jas@extundo.com>
32974
32975         * gnulib-tool: Print #include directives when --import'ing.
32976
32977 2004-12-28  Simon Josefsson  <jas@extundo.com>
32978
32979         * tests/test-base64.c: Include required header files.  Remove
32980         unused variables.
32981
32982 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32983
32984         * modules/error (Depends-on): Remove gettext.
32985
32986 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32987
32988         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32989         not needed.  This removes a dependency on the gettext module.
32990         [defined _LIBC]: Do not include <libintl.h>; not needed.
32991
32992 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32993
32994         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32995         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32996
32997 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32998
32999         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
33000         HAVE_DECL_STRTOLD.
33001
33002 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33003
33004         * modules/getdate (Depends-on): Remove alloca-opt.
33005
33006 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33007
33008         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
33009
33010 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33011
33012         * lib/argp-parse.c: Include <stddef.h>.
33013         (alignof, alignto): New macros.
33014         (parser_init): Don't assume that void * is aligned sufficiently
33015         for struct option.
33016
33017         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
33018         need to extend the stack.
33019         (YYINITDEPTH): New macro, so that the initial stack isn't overly
33020         large.
33021
33022 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33023
33024         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
33025
33026 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
33027
33028         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
33029         (2004-10-24) change.  Apparently this was a false alarm.
33030
33031         * modules/getdate: Depend on alloca-opt, not alloca.
33032
33033 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
33034
33035         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
33036         Remove now-obsolete comment about AIX.
33037         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
33038         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
33039         (YYMAXDEPTH): New macro.
33040
33041 2004-12-18  Simon Josefsson  <jas@extundo.com>
33042
33043         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
33044
33045 2004-12-18  Bruno Haible  <bruno@clisp.org>
33046
33047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
33048
33049 2004-12-18  Bruno Haible  <bruno@clisp.org>
33050
33051         * lib/fatal-signal.c (fatal_signals): Make non-const.
33052         (init_fatal_signals): New function.
33053         (uninstall_handlers, install_handlers): Ignore signals that were set to
33054         SIG_IGN.
33055         (at_fatal_signal): Call init_fatal_signals.
33056         (init_fatal_signal_set): Likewise. Ignore signals that were set to
33057         SIG_IGN.
33058         Reported by Paul Eggert.
33059
33060 2004-12-18  Bruno Haible  <bruno@clisp.org>
33061
33062         * doc/alloca.texi: New file.
33063         * doc/alloca-opt.texi: New file.
33064
33065 2004-12-17  Jim Meyering  <jim@meyering.net>
33066
33067         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
33068         Otherwise, install-sh could exit with improper exit status when
33069         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
33070
33071 2004-12-16  Simon Josefsson  <jas@extundo.com>
33072
33073         * tests/test-base64.c: Add license.
33074
33075 2004-12-15  Stepan Kasal  <address@hidden>
33076
33077         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
33078
33079 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
33080
33081         * modules/getcwd (Files): Add m4/d-ino.m4.
33082         Suggested by Mark D. Baushke.
33083
33084 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
33085
33086         * lib/getdate.y (textint): New member "negative".
33087         (time_zone_hhmm): New function.
33088         Expect 14 shift-reduce conflicts, not 13.
33089         (o_colon_minutes): New rule.
33090         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
33091         (yylex): Set the "negative" member of signed numbers.
33092
33093 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
33094
33095         * doc/getdate.texi (Time of day items, Time zone items):
33096         Describe new formats +00:00, UTC+00:00.
33097
33098 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33099
33100         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
33101         spurious "-l"s.  Problem reported by Stepan Kasal.
33102
33103 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
33106         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
33107
33108 2004-12-04  Simon Josefsson  <jas@extundo.com>
33109
33110         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33111         Vandoorselaere <yoann@prelude-ids.org>.
33112
33113 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33114
33115         Changes imported from coreutils.
33116         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33117         exist.
33118         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33119
33120 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33121
33122         Changes imported from coreutils.
33123         * lib/hard-locale.c: Assume <locale.h> exists.
33124         Include "strdup.h".
33125         (GLIBC_VERSION): New macro.
33126         (hard_locale): Assume setlocale exists.
33127         Rewrite to avoid #ifdef.
33128         Use strdup rather than malloc + strcpy.
33129         * lib/human.c: Assume <locale.h> exists.
33130         (human_readable): Assume localeconv exists.
33131
33132 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33133
33134         * modules/hard-locale (Depends-on): Add strdup.
33135
33136 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
33137
33138         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33139         convert T2, not T.  (Imported from libc.)
33140
33141 2004-11-30  Simon Josefsson  <jas@extundo.com>
33142
33143         * modules/restrict (License): Change to LGPL.
33144
33145 2004-11-30  Simon Josefsson  <jas@extundo.com>
33146
33147         * m4/restrict.m4: Add copyright and copying conditions.
33148
33149 2004-11-30  Simon Josefsson  <jas@extundo.com>
33150
33151         * m4/base64.m4: New file.
33152
33153 2004-11-30  Simon Josefsson  <jas@extundo.com>
33154
33155         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33156         base64.
33157
33158         * tests/test-base64.c: New file.
33159
33160         * modules/base64: New file.
33161
33162 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
33163
33164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33165         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33166
33167         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33168
33169 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
33170
33171         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33172         (__getcwd.c): Don't restore errno; glibc doesn't.
33173         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33174         first, falling back to our code only if its results look suspicious.
33175         Ensure that the resulting buffer is only as large as necessary.
33176
33177         * lib/readutmp.c: Include readutmp.h first.
33178         Include <errno.h>, since readutmp.h no longer does that.
33179         * lib/readutmp.h: Don't include <errno.h>,
33180         <sys/param.h>, <time.h>; not needed to establish interface.
33181         (errno): Remove decl.
33182         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33183         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33184         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33185
33186 2004-11-28  Simon Josefsson  <jas@extundo.com>
33187
33188         * lib/base64.h, base64.c: New file.
33189
33190 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33191
33192         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33193
33194 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
33195
33196         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33197         (Depends-on): Remove pathmax, same.  Add mempcpy.
33198         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33199         (Makefile.am): Append getcwd.h to lib_SOURCES.
33200         (Include): Add getcwd.h.
33201         (Maintainer): Change from Jim Meyering to "all, glibc",
33202         since getdate now uses intended-for-glibc code.
33203         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33204         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
33205
33206 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33207
33208         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33209         HP's ANSI C compiler.
33210         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33211         Declaring int functions causes warnings on some modern systems and
33212         shouldn't be needed to compile on ancient ones.
33213         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33214         defined.
33215
33216         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33217         with the following changes.
33218         (__set_errno): Parenthesize properly.
33219         Include <stdbool.h>.
33220         (MIN, MAX, MATCHING_INO): New macros.
33221         (__getcwd): Define with prototype, not K&R form.
33222         Use heuristics to allocate default buffer on stack if possible.
33223         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33224         behavior, and to avoid the PATH_MAX limit when computing
33225         ../../../../...
33226         Use MATCHING_INO to compare inode number to file.
33227         Check for arithmetic overflow in size calculations.
33228         Fix bug in reallocation of dot array that caused getcwd to fail
33229         on directories nested deeper than 75.
33230         Be more careful about saving errno on error.
33231         Do not use realloc; use only free+malloc, as this is a bit
33232         more flexible and avoids a needless copy operation.
33233         Do not inspect st_dev and st_ino for symbolic links; POSIX
33234         doesn't specify the latter.
33235         Check for closedir errors.
33236         Avoid needless casts.
33237         Use "#ifdef weak_alias" around weak_alias, to be like other
33238         glibc code.
33239         The following changes to getcwd.c have effect only when used in
33240         gnulib; they have no effect inside glibc proper.
33241         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33242         as alloca isn't used.
33243         (alloca, __alloca): Likewise.
33244         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33245         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33246         unconditionally, as gnulib assumes C89 or better.
33247         Do not include <sys/param.h>.
33248         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33249         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33250         better.
33251         (NULL) [!defined NULL]: Remove; we assume C89 or better.
33252         Include <dirent.h> in a way that is compatible with modern Autoconf.
33253         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33254         New macros, if not already defined.
33255         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33256         Use "_LIBC", not "defined _LIBC", for consistency.
33257         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33258         a mempcpy module.
33259         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33260         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
33261         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33262         credit only to Jim Meyering and adjust the copyright dates.
33263         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33264         <stdlib.h>, <unistd.h>, "pathmax.h".
33265         Instead, include "xgetcwd.h" (first) and "getcwd.h".
33266         (INITIAL_BUFFER_SIZE): Remove.
33267         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33268
33269 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33270
33271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33272         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
33273         Use the _ONCE methods, for efficiency.
33274         Check for fcntl.h.  In test program, include <errno.h>
33275         and <fcntl.h> if available.  Remove old K&R cruft from
33276         test program.  Check for common errors in GNU/Linux,
33277         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
33278         don't do AC_LIBOBJ, as that's getcwd.m4's job.
33279         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33280         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
33281         name accordingly.
33282         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
33283         accommodate new getcwd.c.
33284         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33285         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33286         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33287         that's all we need now.
33288
33289 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33290
33291         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33292         argp-parse.c depends on getopt internals, that means we should
33293         always use our getopt, to be on the safe side.
33294         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33295         order not to spoil the result of an eventual previous invocation
33296         of gl_GETOPT_SUBSTITUTE.
33297
33298 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33299
33300         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33301         redefinition warnings. To avoid them, include the defines
33302         in `#if !defined __need_getopt ... #endif'. The only place
33303         where __getopt_argv_const is used is in definitions
33304         of getopt_long and getopt_long_only below, which are as well
33305         protected by `#ifndef __need_getopt'.
33306         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33307         __need_getopt after including <stdio.h> and <unistd.h> These
33308         headers might have defined it.
33309
33310 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
33311
33312         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33313
33314 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
33315
33316         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33317         (futimens): New function, which uses futimes if available.
33318         (futimens, utimens): Support timespec==NULL, with same semantics
33319         as utime and utimens.
33320         * lib/utimens.h (futimens): New decl.
33321
33322 2004-11-23  Jim Meyering  <jim@meyering.net>
33323
33324         * lib/getopt_.h: Remove trailing blanks.
33325
33326 2004-11-23  Jim Meyering  <jim@meyering.net>
33327
33328         * lib/__fpending.c: Add comment.
33329
33330 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
33331
33332         * modules/canonicalize (Depends-on): Add xreadlink.
33333         Problem reported by James Youngman.
33334
33335 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
33336
33337         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33338         New macros.
33339         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33340         optopt): Use them instead of invoking ## directly; otherwise, the
33341         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33342
33343 2004-11-19  Bruno Haible  <bruno@clisp.org>
33344
33345         * lib/strtok_r.c: Move comments from here...
33346         * lib/strtok_r.h: ... to here.
33347
33348 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33349
33350         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33351         implementations that mishandle size_t overflow.
33352
33353 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33354
33355         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33356         might fail.  Problem reported by Yoann Vandoorselaere.
33357         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33358         implementations that mishandle size_t overflow.
33359
33360 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33361
33362         * modules/canon-host (Depends-on): Add strdup.
33363
33364 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33365
33366         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33367
33368 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33369
33370         * lib/canon-host.c: Include "strdup.h".
33371         (canon_host): Use getaddrinfo if available, so that IPv6 works.
33372         Use strdup instead of malloc/strcpy to duplicate strings.
33373
33374         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33375         (human_space_before_unit): New constant.
33376         * lib/human.c (human_readable): Support it.
33377
33378         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33379         (xgetcwd): Set errno correctly when failing.
33380         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33381         the failure is actually due to a PATH_MAX problem.
33382
33383         Further getopt changes to make it more likely that glibc will
33384         buy the changes back.
33385         * lib/getopt.c (POSIXLY_CORRECT): New constant.
33386         (getopt): Use it, so to preserve glibc semantic
33387         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33388         when compiling for libc.
33389         * lib/getopt_.h (__getopt_argv_const): Bring it back.
33390         (getopt_long, getopt_long_only): Use it.
33391
33392         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33393         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
33394         (getopt): Argv is now char * const *, as per standard.
33395         (_getopt_internal_r, _getopt_internal): Argv is now char **,
33396         not char *__getopt_argv_const *.
33397         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33398         _getopt_long_only_r): Likewise.
33399         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33400         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33401         _getopt_long_r, _getopt_long_only_r): Likewise.
33402         * lib/getopt_.h (__getopt_argv_const): Remove.
33403         (getopt): Argv is now char * const *, as per standard.
33404
33405         * lib/getdate.y (tORDINAL): New token.
33406         (day, relunit): Allow it for relative times.
33407         (relative_time_table): Use tORDINAL for ordinals.
33408
33409 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33410
33411         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33412         Document that "second" isn't allowed as an ordinal number.
33413
33414 2004-11-16  Jim Meyering  <jim@meyering.net>
33415
33416         * modules/closeout (Depends-on): Add fpending.
33417
33418 2004-11-15  Jim Meyering  <jim@meyering.net>
33419
33420         * lib/closeout.c: Include "__fpending.h" once again.
33421         Include <stdbool.h>.
33422         (close_stdout): Don't fail just because stdout was closed initially,
33423         since some programs don't write to stdout in the normal course of
33424         operation (other than --version and --help), and we don't want this
33425         function to make e.g. `touch file >&-' fail.
33426         But do fail if it was closed and someone has tried to write to it.
33427         E.g., `printf foo >&-' must fail.
33428
33429 2004-11-13  Jim Meyering  <jim@meyering.net>
33430
33431         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33432
33433 2004-11-12  Simon Josefsson  <jas@extundo.com>
33434
33435         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33436         small doc fix is still pending.
33437
33438 2004-11-11  Simon Josefsson  <jas@extundo.com>
33439
33440         * modules/strtok_r: New file.
33441
33442         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33443         strtok_r.
33444
33445 2004-11-11  Simon Josefsson  <jas@extundo.com>
33446
33447         * m4/strtok_r.m4: New file.
33448
33449         * m4/getopt.m4: Replace opterr.
33450
33451 2004-11-11  Simon Josefsson  <jas@extundo.com>
33452
33453         * lib/strtok_r.h, strtok_r.c: New file.
33454
33455 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
33456
33457         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
33458         of replacing opterr, getopt, etc.  This should handle the
33459         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
33460
33461 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
33462
33463         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
33464         we can stop lying to compilers about the constness of argv when we
33465         are compiled outside glibc.
33466         (getopt, getopt_long, getopt_long_only): Use it.
33467         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33468         _getopt_internal, getopt): Likewise.
33469         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33470         _getopt_long_only_r): Likewise.
33471         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33472         _getopt_long_r, _getopt_long_only_r): Likewise.
33473
33474         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
33475         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
33476         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
33477         the other external symbols.
33478         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
33479         declaration, since the above renaming now works around collisions.
33480
33481 2004-11-11  Jim Meyering  <jim@meyering.net>
33482
33483         * lib/linebreak.c: Remove trailing blanks.
33484         * lib/alloca_.h: Likewise.
33485         * lib/acosl.c: Likewise.
33486         * lib/euidaccess.c: Likewise.
33487         * lib/allocsa.h: Likewise.
33488
33489 2004-11-10  Simon Josefsson  <jas@extundo.com>
33490
33491         * m4/getaddrinfo.m4: New file.
33492
33493 2004-11-10  Simon Josefsson  <jas@extundo.com>
33494
33495         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
33496
33497 2004-11-10  Simon Josefsson  <jas@extundo.com>
33498
33499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33500         getaddrinfo.
33501
33502         * modules/getaddrinfo: New file.
33503
33504 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33505
33506         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
33507
33508 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33509
33510         * lib/mktime.c (SHR): New macro, which is a portable
33511         substitute for >> that should work even on Crays.
33512         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
33513         Problem reported by Mark D. Baushke in
33514         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
33515         * lib/getdate.y (SHR): Likewise.
33516         (tm_diff): Use it.
33517         * lib/strftime.c (SHR): Likewise.
33518         (tm_diff): Use it.
33519         * lib/quotearg.c (struct quoting_options): Use unsigned int for
33520         quote_these_too, so that right shifts are well defined.  All uses
33521         changed.
33522
33523 2004-11-10  Jim Meyering  <jim@meyering.net>
33524
33525         Ensure that no close failure goes unreported.
33526         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
33527         return early when it seems there's nothing to flush.
33528         Don't include __fpending.h.
33529
33530 2004-11-10  Jim Meyering  <jim@meyering.net>
33531
33532         * modules/closeout (Depends-on): Remove fpending.
33533
33534 2004-11-10  Jim Meyering  <jim@meyering.net>
33535
33536         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
33537
33538 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33539
33540         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
33541         gl_FUNC_STRFTIME.
33542         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
33543         and AC_REQUIRE when possible, to avoid duplicate checks.
33544         Check for <wchar.h>.
33545
33546 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33547
33548         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
33549
33550 2004-11-09  Bruno Haible  <bruno@clisp.org>
33551
33552         * m4/sockpfaf.m4: New file.
33553
33554 2004-11-05  Bruno Haible  <bruno@clisp.org>
33555
33556         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
33557         Reported by Mark D. Baushke <mdb@cvshome.org>.
33558
33559 2004-11-04  Bruno Haible  <bruno@clisp.org>
33560
33561         2004-09-11  Bruno Haible  <bruno@clisp.org>
33562                 * allocsa.valgrind: New file.
33563         2004-02-06  Bruno Haible  <bruno@clisp.org>
33564                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
33565                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
33566                 Reported by Christopher Seip <chris.seip@hp.com>.
33567
33568 2004-11-04  Bruno Haible  <bruno@clisp.org>
33569
33570         * modules/allocsa (Files): Add lib/allocsa.valgrind.
33571         (Makefile.am): Distribute it.
33572
33573 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33574
33575         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
33576         with errno == ERANGE if the buffer is too small.
33577         Problem reported by Mark D. Baushke.
33578
33579 2004-11-03  Albert Chin  <china@thewrittenword.com>
33580             Paul Eggert  <eggert@cs.ucla.edu>
33581
33582         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
33583         equivalent, substitute $ac_type for equivalent type rather than
33584         blindly using uint32_t *always* which won't work if uint32_t is not
33585         available.  Define _UINT32_T to work around typedef of uint32_t if
33586         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
33587         2.5.1.
33588
33589 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33590
33591         * m4/jm-macros.m4: Sync from coreutils.
33592         (gl_MACROS): Check for mbrlen, for pathchk.
33593         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
33594
33595 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33596
33597         * lib/xreadlink.c (MAXSIZE): New macro.
33598         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
33599         size does not exceed MAXSIZE.  Avoid cast.
33600         As suggested by Mark D. Baushke in
33601         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
33602         if readlink fails with buffer size just under MAXSIZE, try again
33603         with MAXSIZE.
33604
33605 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33606
33607         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
33608
33609 2004-11-02  Derek R. Price  <derek@ximbiot.com>
33610         and  Paul Eggert  <eggert@cs.ucla.edu>
33611
33612         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
33613         (get_date): Overparenthesize to avoid GCC warning.
33614
33615 2004-11-02  Bruno Haible  <bruno@clisp.org>
33616
33617         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
33618         returns void.
33619
33620 2004-11-02  Bruno Haible  <bruno@clisp.org>
33621
33622         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
33623         function returns void.
33624
33625 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33626
33627         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
33628         fflush_unlocked, flockfile, funlockfile, funlockfile,
33629         fputs_unlocked, putc_unlocked.
33630
33631 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33632
33633         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33634         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
33635         already declared.
33636
33637 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33638
33639         * modules/getdate (Files): Add doc/getdate.texi.
33640         (Depends-on): Add setenv, xalloc.
33641
33642 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33643
33644         * lib/getdate.y: Add support for TZ="foo" within a date string.
33645         Fix some bugs near time_t boundaries.  Reject dates with
33646         out-of-range components, e.g., "Sept 31".
33647         Include <stdlib.h>, "setenv.h", "xalloc.h".
33648         (ISDIGIT_LOCALE): Remove; unused.
33649         Note that the TZ and time functions used here are not reentrant.
33650         (mktime_ok, get_tz): New functions.
33651         (TZBUFSIZE): New constant.
33652         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
33653         This requires that we sometimes generate our own TZ="XXX..." setting.
33654
33655 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33656
33657         * doc/getdate.texi: New file, from coreutils with modifications for
33658         the new TZ parsing.
33659
33660 2004-10-27  Derek R. Price  <derek@ximbiot.com>
33661
33662         * lib/mktime.c (not_equal_tm): Remove redundant check.
33663
33664 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33665
33666         * modules/regex (lib_SOURCES): Add regex.c.
33667         Reported by James Youngman in
33668         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33669
33670 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33671
33672         * lib/getdate.y: Use Bison 1.875 features, and some minor
33673         code cleanups.  This change does not affect semantics.
33674         Don't include <stdlib.h>; no longer needed.
33675         Don't include unlocked-io.h; only the "#if TEST" code uses
33676         stdio, and performance isn't crucial there.
33677         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33678         Bison 1.875 features as described below.
33679         All uses of "PC." replaced by "pc->".
33680         (YYSTYPE): Add a forward declaration.
33681         (yylex, yyerror): Use full prototypes in forward decls.
33682         Use "%pure-parser" rather than obsolescent "%pure_parser".
33683         Use %parse-param and %lex-param instead of obsolescent
33684         YYPARSE_PARAM and YYLEX_PARAM.
33685         (meridian_table, month_and_day_table, time_units_table,
33686         relative_time_table, time_zone_table, military_table,
33687         lookup_zone, lookup_word, get_date):
33688         Use NULL instead of 0 where appropriate.
33689         (to_hour): Avoid abort (), to avoid a dependency on
33690         stdlib.h.
33691         (yyerror, yylex): Now accepts parser_control * arg.
33692         (main) [TEST]: Use '\0' rather than 0 for char.
33693
33694 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33695
33696         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33697
33698 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33701         It's now the caller's responsibility to handle the case where
33702         !HAVE_GETPAGESIZE && !defined getpagesize.
33703
33704         * lib/mktime.c (leapyear): Arg is long int, not int.
33705
33706 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
33707
33708         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33709
33710 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33711
33712         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33713         missing.  Problem reported by James Youngman.
33714
33715 2004-10-16  Simon Josefsson  <jas@extundo.com>
33716
33717         * gnulib-tool: Fix comments.  Fix parse problem.
33718         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33719
33720 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33721
33722         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33723         implementation of getopt_long.  Problem reported by Alexander Taler in:
33724         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33725
33726 2004-10-15  Bruno Haible  <bruno@clisp.org>
33727
33728         * gnulib-tool: Untabify. Initialize supplied_libname.
33729         (func_usage): More homogenous output.
33730         (func_modules_transitive_closure, func_modules_to_filelist,
33731         func_emit_lib_Makefile_am): New functions.
33732         (func_import): New function, extracted from big case statement. Use
33733         func_get_license, func_modules_transitive_closure,
33734         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33735         opt_lgpl. Don't use test -a, as it's not portable.
33736         (func_create_testdir): Use func_modules_transitive_closure,
33737         func_modules_to_filelist, func_emit_lib_Makefile_am.
33738
33739 2004-10-15  Bruno Haible  <bruno@clisp.org>
33740
33741         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33742
33743 2004-10-15  Bruno Haible  <bruno@clisp.org>
33744
33745         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33746         the portions belonging to each module.
33747         Suggested by Derek Robert Price <derek@ximbiot.com>.
33748
33749 2004-10-12  Simon Josefsson  <jas@extundo.com>
33750
33751         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33752         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33753         to real functions.
33754
33755 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33756
33757         * modules/vsnprintf: New file.
33758
33759 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33760
33761         * m4/vsnprintf.m4: New file.
33762
33763 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33764
33765         * lib/vsnprintf.h: New file.
33766         * lib/vsnprintf.c: New file.
33767
33768 2004-10-11  Bruno Haible  <bruno@clisp.org>
33769
33770         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33771         vsnprintf.
33772
33773 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33774
33775         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33776
33777 2004-10-07  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33780         fits into the provided buffer.
33781
33782 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33783
33784         * lib/diacrit.c, diacrit.h: Add GPL notice.
33785
33786         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33787         notice.
33788         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33789         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33790         This avoids a potential constant-folding bug.
33791
33792 2004-10-05  Bruno Haible  <bruno@clisp.org>
33793
33794         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33795         for the declaration of strsep.
33796
33797 2004-10-05  Bruno Haible  <bruno@clisp.org>
33798
33799         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33800
33801 2004-10-04  Simon Josefsson  <jas@extundo.com>
33802
33803         * modules/memmem: New file.
33804         * tests/test-memmem.c: New file.
33805         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33806
33807 2004-10-04  Simon Josefsson  <jas@extundo.com>
33808
33809         * m4/memmem.m4: New file.
33810
33811 2004-10-04  Simon Josefsson  <jas@extundo.com>
33812
33813         * lib/memmem.h: New file.
33814         * lib/memmem.c: New file, taken from glibc.
33815
33816 2004-10-04  Simon Josefsson  <jas@extundo.com>
33817
33818         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33819         '#ifdef USE_UNLOCKED_IO'.
33820
33821 2004-10-04  Simon Josefsson  <jas@extundo.com>
33822
33823         * config/srclist.txt: Add memmem from glibc.
33824
33825 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33826
33827         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33828
33829         * modules/argmatch, modules/argp, modules/closeout, modules/error,
33830         modules/exclude, modules/getdate, modules/getline,
33831         modules/getndelim2, modules/getpass, modules/getpass-gnu,
33832         modules/getusershell, modules/linebuffer, modules/md5,
33833         modules/mountlist, modules/posixtm, modules/readtokens,
33834         modules/readutmp, modules/regex, modules/sha1,
33835         modules/version-etc, modules/yesno:
33836         Remove dependency on unlocked-io.
33837
33838 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33839
33840         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
33841
33842         * m4/unlocked-io.m4: Add copyright notice.
33843         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33844
33845 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33846
33847         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
33848         * lib/xmalloc.c (xmemdup): Likewise.
33849         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33850         XFREE): Remove these long-obsolescent macros.
33851         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33852         * lib/xstrdup.c: Remove.
33853
33854         * lib/regex.c (re_comp): Cast gettext return value to char *,
33855         Problem reported by Martin Neitzel via Mark D. Baushke.
33856
33857 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33858
33859         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33860         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33861         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33862         regex.c, sha1.c, version-etc.c, yesno.c:
33863         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33864         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33865         the includer's responsibility.
33866
33867         Sync from coreutils.
33868
33869         * lib/modechange.c (mode_compile): Don't decrement a pointer that
33870         points to the start of a string, as the C Standard says the
33871         resulting behavior is undefined.
33872
33873         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33874         simple -> simple_backups, numbered_existing ->
33875         numbered_existing_backups, numbered -> numbered_backups
33876         to avoid shadowing problems.  All uses changed.
33877         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33878         * lib/backupfile.c (check_extension, numbered_backup):
33879         Rename locals to avoid shadowing 'basename'.
33880         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33881         once.
33882
33883         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33884         * lib/.cvsignore: Add getopt.h.
33885
33886 2004-10-04  Bruno Haible  <bruno@clisp.org>
33887
33888         * modules/README: New file.
33889         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33890         not a module.
33891
33892 2004-10-02  Jim Meyering  <jim@meyering.net>
33893
33894         * lib/dirfd.h, getpagesize.h: Add copyright notice.
33895
33896 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33897
33898         * modules/strsep: New file.
33899
33900 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33901
33902         * m4/strsep.m4: New file.
33903
33904 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33905
33906         * lib/strsep.h: New file.
33907         * lib/strsep.c: New file.
33908
33909 2004-10-01  Simon Josefsson  <jas@extundo.com>
33910
33911         * lib/snprintf.c (snprintf): Handle size==0.
33912
33913 2004-10-01  Simon Josefsson  <jas@extundo.com>
33914             Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33917         (snprintf): Declare 'args'.
33918
33919 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
33920
33921         * lib/snprintf.c: Remove comments as to why each header is needed.
33922
33923 2004-10-01  Bruno Haible  <bruno@clisp.org>
33924
33925         * MODULES.html.sh: Add strsep.
33926
33927 2004-09-30  Simon Josefsson  <jas@extundo.com>
33928
33929         * modules/snprintf: New file.
33930
33931 2004-09-30  Simon Josefsson  <jas@extundo.com>
33932
33933         * m4/snprintf.m4: New file.
33934
33935 2004-09-30  Simon Josefsson  <jas@extundo.com>
33936
33937         * lib/snprintf.h, lib/snprintf.c: New files.
33938
33939 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33940
33941         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33942         (hol_entry_help): Never translate an empty string.
33943         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33944         * lib/argp.h (OPTION_NO_TRANS): New option.
33945
33946 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33947
33948         * modules/argp (Maintainer): Replace Simon Josefsson
33949         by Sergey Poznyakoff.
33950
33951 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33952
33953         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33954         changes merged back into glibc.
33955
33956 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33957
33958         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33959
33960 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
33961
33962         * lib/xvasprintf.c: Include xalloc.h.
33963         (xvasprintf): Use xalloc_die, not xmalloc_die.
33964
33965 2004-09-29  Bruno Haible  <bruno@clisp.org>
33966
33967         * modules/alloca-opt: New file, derived from modules/alloca.
33968         * modules/allocsa: Depend on alloca-opt instead of alloca.
33969         * modules/setenv: Likewise.
33970         * modules/vasnprintf: Likewise.
33971         * MODULES.html.sh: Add alloca-opt.
33972
33973 2004-09-28  Simon Josefsson  <jas@extundo.com>
33974
33975         * gnulib-tool: New parameter --lgpl, to asseert that modules are
33976         LGPL, and to replace license template from GPL to LGPL.
33977
33978 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33979
33980         * modules/dummy: Change license to LGPL.
33981
33982 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33983
33984         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33985
33986 2004-09-24  Simon Josefsson  <jas@extundo.com>
33987
33988         * modules/minmax (License): Change from GPL to LGPL.
33989
33990 2004-09-23  Simon Josefsson  <jas@extundo.com>
33991
33992         * gnulib-tool (--import): Typo.
33993
33994 2004-09-23  Simon Josefsson  <jas@extundo.com>
33995
33996         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33997
33998 2004-09-22  Bruno Haible  <bruno@clisp.org>
33999
34000         * modules/*: Add 'License' field.
34001         * gnulib-tool: Accept --extract-license option.
34002         (func_get_license): New function.
34003
34004 2004-09-21  Bruno Haible  <bruno@clisp.org>
34005
34006         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34007         Reported by Simon Josefsson.
34008
34009 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
34010
34011         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
34012         gl_AC_TYPE_LONG_LONG.
34013
34014 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
34015
34016         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
34017
34018 2004-09-18  Simon Josefsson  <jas@extundo.com>
34019         and  Paul Eggert  <eggert@cs.ucla.edu>
34020
34021         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
34022         calls with autoreconf.  Define GL_LIB.
34023
34024 2004-09-14  Karl Berry  <karl@gnu.org>
34025
34026         * config/srclist.txt: unsync setenv.c, sigh.
34027
34028 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34029
34030         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
34031         Problem reported by Bruno Haible in:
34032         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
34033
34034 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34035
34036         * config/srclist.txt: Comment out argp-pvh.c.
34037
34038 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
34039
34040         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
34041         in case some system header has #define'd it.  Problem reported by
34042         Soeren D. Schulze in
34043         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
34044
34045 2004-09-09  Karl Berry  <karl@gnu.org>
34046
34047         * regex.[ch]: delete from the root.  These were supposed to be
34048                 synced with emacs cvs, but this has not happened for about
34049                 a year, and anyway nothing else uses emacs regex.[ch].
34050                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
34051                 lib/regex[.ch] is untouched.
34052
34053 2004-09-09  Bruno Haible  <bruno@clisp.org>
34054
34055         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
34056
34057 2004-09-09  Bruno Haible  <bruno@clisp.org>
34058
34059         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
34060         modifications.
34061         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
34062
34063 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
34064
34065         * modules/xvasprintf: New file.
34066         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
34067
34068 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
34069
34070         * lib/xvasprintf.h: New file.
34071         * lib/xvasprintf.c: New file.
34072         * lib/xasprintf.c: New file.
34073
34074 2004-09-08  Bruno Haible  <bruno@clisp.org>
34075
34076         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
34077
34078 2004-09-08  Bruno Haible  <bruno@clisp.org>
34079
34080         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34081         length is > INT_MAX.
34082         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
34083         more.
34084
34085 2004-09-08  Bruno Haible  <bruno@clisp.org>
34086
34087         * lib/stdint_.h: New file, taken from GNU clisp.
34088
34089 2004-09-08  Bruno Haible  <bruno@clisp.org>
34090             Oskar Liljeblad  <oskar@osk.mine.nu>
34091
34092         * modules/stdint: New file.
34093         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
34094
34095 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34096
34097         Import from coreutils.
34098         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
34099         strings on unbounded length.  alloca's performance benefits aren't
34100         that important here.
34101         (V_STRDUP): Remove.
34102         (parse_with_separator): New function, with most of the internals
34103         of the old parse_user_spec.  Allow user to omit both user and group,
34104         for compatibility with FreeBSD.
34105         Clone only the user name, not the entire spec.
34106         Do not set *uid, *gid unless entirely successful.
34107         Avoid memory leak in some failing cases.
34108         Fix regression for USER.GROUP reported by Dmitry V. Levin in
34109         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34110         (parse_user_spec): Rewrite to use parse_with_separator.
34111
34112 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34113
34114         * modules/userspec: Don't depend on alloca.
34115
34116 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34117
34118         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34119
34120 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34121
34122         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34123         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34124         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
34125
34126 2004-08-16  Simon Josefsson  <jas@extundo.com>
34127
34128         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34129         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34130         Add --dry-run for --import.
34131         Let user provided command line parameters override configure.ac
34132         settings.
34133
34134 2004-08-12  Simon Josefsson  <jas@extundo.com>
34135
34136         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34137         as discussed with Paul Eggert in threads rooted at
34138         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34139         and
34140         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34141         Before, the test was empty, and relied on ELIDE_CODE in source
34142         code.)
34143         (gl_PREREQ_GETOPT): New macro.
34144         (gl_GETOPT): Use them.
34145
34146 2004-08-12  Simon Josefsson  <jas@extundo.com>
34147
34148         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34149         * lib/getopt_.h: Renamed from getopt.h.
34150
34151 2004-08-12  Simon Josefsson  <jas@extundo.com>
34152
34153         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34154         Change default library name from libfoo to libgnu.
34155         Now, if you have a configure.ac that says:
34156                 gl_SOURCE_BASE(gl)
34157                 gl_M4_BASE(gl/m4)
34158                 gl_MODULES(error getopt etcetera)
34159                 gl_INIT
34160         you can import all you need by running:
34161                 ../gnulib/gnulib-tool --import
34162
34163         * modules/getopt (Files): Rename getopt.h to getopt_.h.
34164         (Makefile.am): Rewrite, use logic from argz.
34165         (Include): Use <getopt.h> instead of "getopt.h".
34166
34167 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34168
34169         * modules/argp (Files): Add m4/unlocked-io.m4.
34170         (Depends-on): Add extensions.
34171
34172 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34173
34174         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34175         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34176         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34177         Check for program_invocation_name, program_invocation_short_name,
34178         flockfile, funlockfile, features.h, _getopt_long_only_r.
34179
34180 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34181
34182         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34183         its complicated substitute.
34184         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34185         and program_invocation_name.
34186         (__argp_basename) [!_LIBC]: Remove; the only use was
34187         replaced by its body.
34188         (__argp_short_program_name): Change condition from
34189         !defined __argp_short_program_name to
34190         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34191         to match argp-namefrob.h.
34192         (__argp_failure): Don't assume strerror_r returns char *.
34193         * lib/argp-parse.c (N_): Define unconditionally.
34194         (argp_default_options): Fill out initializers with 0 to avoid
34195         gcc warnings.
34196
34197 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34198
34199         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34200         getopt1.c.
34201
34202 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34203
34204         Merge from coreutils.
34205
34206         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34207
34208         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34209         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34210
34211 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34212
34213         Merge from coreutils.
34214
34215         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34216         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
34217         for Reliant Unix 5.43.
34218
34219         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34220         (union fooround): Use uintmax_t, not long int.
34221         The rest is a merge from libc:
34222         [defined _LIBC]: Include <shlib-compat.h>.
34223         (_obstack) [defined _LIBC]: Remove after 2.3.4.
34224
34225         * lib/settime.c (settime): Recode to avoid warning with
34226         Sun Forte C 6U2.
34227
34228         * lib/strverscmp.c: Convert to UTF-8.
34229
34230 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34231
34232         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34233         m4/uintmax_t.m4.
34234
34235 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34236
34237         * modules/xalloc-die: New file.
34238         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34239
34240         * modules/md5 (Files): Add m4/uint32_t.m4.
34241         * modules/sha1: Renamed from modules/sha.
34242         (Files):
34243         Rename lib/sha.h to lib/sha1.h.
34244         Rename lib/sha.c to lib/sha1.c.
34245         Rename m4/sha.m4 to m4/sha1.m4.
34246         (lib_SOURCES): Likewise.
34247         (configure.ac): Rename gl_SHA to gl_SHA1.
34248         (Include): sha.h -> sha1.h.
34249
34250 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34251
34252         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34253         * m4/sha1.m4: Renamed from sha.m4.
34254         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
34255
34256 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34257
34258         * lib/obstack.h (obstack_empty_p):
34259         Don't assume that chunk->contents is suitably aligned.
34260         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34261         Likewise. Problem reported by Benno in
34262         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34263
34264         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34265         readable.  This could be improved further but it'd take some work.
34266
34267 2004-08-08  Simon Josefsson  <jas@extundo.com>
34268
34269         * modules/xgethostname (Depends-on): Remove exit and error (not
34270         used).
34271
34272         * modules/getpass-gnu: Add getpass.h.
34273         (Depends-on): Add stdbool.
34274         * modules/getpass: Add getpass.h.
34275
34276 2004-08-08  Simon Josefsson  <jas@extundo.com>
34277
34278         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34279         Check getpass declaration.
34280
34281 2004-08-08  Simon Josefsson  <jas@extundo.com>
34282
34283         * lib/xgethostname.c: Don't include error.h (not used).
34284
34285         * lib/getpass.h: Add.
34286         * lib/getpass.c: Include getpass.h first.
34287
34288 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
34289
34290         * lib/xalloc-die.c: New file.
34291         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34292         All uses removed.
34293         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34294         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34295         xalloc-die.c.
34296         (_, N_, xalloc_die): Move to xalloc-die.c.
34297         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34298         so that we needn't mess with xalloc_msg_memory_exhausted.
34299
34300         * lib/sha1.h: Renamed from sha.h.
34301         (SHA1_H): Renamed from _SHA_H.
34302         (sha1_ctx): Renamed from sha_ctx.
34303         (sha1_init_ctx): Renamed from sha_init_ctx.
34304         (sha1_process_block): Renamed from sha_process_block.
34305         (sha1_process_bytes): Renamed from sha_process_bytes.
34306         (sha1_finish_ctx): Renamed from sha_finish_ctx.
34307         (sha1_read_ctx): Renamed from sha_read_ctx.
34308         (sha1_stream): Renamed from sha_stream.
34309         (sha1_buffer): Renamed from sha_buffer.
34310         * lib/sha1.c: Likewise; renamed from sha.c.
34311         Do not include <sys/types.h>.
34312         Include <stddef.h> rather than <stdlib.h>.
34313
34314 2004-08-08  Bruno Haible  <bruno@clisp.org>
34315
34316         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34317         FILESYSTEM_PREFIX_LEN.
34318         * lib/progreloc.c: Likewise.
34319         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34320
34321 2004-08-06  Simon Josefsson  <jas@extundo.com>
34322
34323         * modules/progname (Depends-on): Don't depend on stdbool.
34324
34325 2004-08-06  Simon Josefsson  <jas@extundo.com>
34326
34327         * modules/getsubopt: New file.
34328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34329         getsubopt.
34330
34331 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34332
34333         More merge from coreutils.
34334
34335         * m4/utimens.m4, m4/utimecmp.m4: New files.
34336         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34337         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34338         prereq.m4, sha.m4: Import changes from coreutils.
34339
34340 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34341
34342         More merge from coreutils.
34343         * modules/raise, modules/readtokens0, modules/utimens:
34344         * modules/utimecmp, module/xnanosleep: New files.
34345         * modules/strftime: Add lib/strftime.h.
34346         Change include from <time.h> to "strftime.h".
34347         * modules/yesno: Add lib/yesno.h.
34348         * modules/backupfile: Remove lib/addext.c.
34349         * modules/euidaccess: Add stat-macros.h.
34350         * modules/canonicalize, modules/euidaccess,
34351         modules/filemode, modules/lchown, modules/makepath,
34352         modules/rmdir, modules/stat: Likewise.
34353
34354 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34355
34356         Merge from tar.
34357         * lib/argp-help.c (make_hol, hol_append): Don't assume that
34358         SIZE_MAX is a valid preprocessor constant.
34359         (__argp_basename): Change from "#ifndef _LIBC"
34360         to "#ifndef __argp_short_program_name", so that
34361         we don't compile these functions for tar.
34362
34363         More merges from coreutils.
34364         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34365         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34366         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34367         * lib/addext.c: Remove; no longer needed.
34368         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34369         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34370         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34371         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34372         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34373         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34374         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34375         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34376         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34377         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34378         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34379         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34380         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34381         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34382         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34383         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34384         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34385         Import changes from coreutils.
34386
34387 2004-08-05  Simon Josefsson  <jas@extundo.com>
34388
34389         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34390
34391 2004-08-05  Simon Josefsson  <jas@extundo.com>
34392
34393         * m4/getsubopt.m4: New file.
34394
34395 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34396
34397         Merge from coreutils.
34398
34399         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34400         * m4/getcwd-path-max.m4: New files.
34401
34402         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34403         FILESYSTEM_PREFIX_LEN ->
34404         FILE_SYSTEM_PREFIX_LEN.
34405         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34406         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34407         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34408         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34409
34410         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34411         prerequisite modules now handle the DOS stuff.
34412         Don't check for unistd.h.
34413
34414 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34415
34416         Merge from coreutils.
34417
34418         * lib/.gdb-history: Remove; this doesn't belong here.
34419
34420         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34421         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34422         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34423         * lib/getcwd.c: New files.
34424
34425         * lib/dirname.h: Include <stdbool.h>.
34426         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34427         for consistency with POSIX terminology.  All uses changed.
34428         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34429         (strip_trailing_slashes): Use bool for booleans.
34430         * lib/stripslash.c (strip_trailing_slashes): Likewise.
34431
34432         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34433         sometimes returns a positive errno value even when it succeeds.
34434         (print_errno_message) [!LIBC]: Fall back on strerror if
34435         __strerror_r fails.
34436
34437         * lib/path-concat.c (mempcpy): Don't define if a system header defines
34438         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34439         (longest_relative_suffix): New function.
34440         (path_concat): Use it.  Assume first argument is not NULL.
34441         Port to DOS.  Omit redundant separators.
34442         Report an error instead of returning NULL.
34443         Use mempcpy instead of memcpy.
34444         (xpath_concat): Remove: not declared or used.
34445
34446         * lib/same.h: Include <stdbool.h>
34447         (same_name): Return bool, not int.
34448         * lib/same.c (same_name): Likewise.
34449         (errno): Don't declare; we assume C89 or better now.
34450
34451         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34452         if not already defined.
34453
34454         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34455         * lib/dup-safer.c (errno): Likewise.
34456
34457 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34458
34459         Merge from coreutils.
34460         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
34461         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
34462         * modules/path-concat: Don't depend on strdup.
34463
34464 2004-08-03  Simon Josefsson  <jas@extundo.com>
34465
34466         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
34467         * lib/progname.h: Don't include stdbool.h.
34468
34469 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34470
34471         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
34472         * MODULES.html.sh (func_all_modules): Remove fatal.
34473
34474 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34475
34476         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
34477
34478 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34479
34480         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
34481         working.
34482
34483 2004-08-02  Simon Josefsson  <jas@extundo.com>
34484
34485         * lib/getsubopt.h: New file, with comments from Bruno Haible.
34486         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
34487         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
34488
34489 2004-08-01  Simon Josefsson  <jas@extundo.com>
34490
34491         * lib/xgetdomainname.c: Include stdlib.h, for free().
34492
34493 2004-07-19  Bruno Haible  <bruno@clisp.org>
34494
34495         * MODULES.html.sh (func_all_modules): Add dummy.
34496
34497 2004-07-16  Simon Josefsson  <jas@extundo.com>
34498
34499         * modules/dummy: New file.
34500
34501 2004-07-16  Simon Josefsson  <jas@extundo.com>
34502
34503         * lib/dummy.c: New file.
34504
34505 2004-07-16  Bruno Haible  <bruno@clisp.org>
34506
34507         * lib/backupfile.h: Add extern "C" for C++.
34508         * lib/closeout.h: Likewise.
34509         * lib/copy-file.h: Likewise.
34510         * lib/findprog.h: Likewise.
34511         * lib/full-write.h: Likewise.
34512         * lib/pathname.h: Likewise.
34513         * lib/progname.h: Likewise.
34514         * lib/stpcpy.h: Likewise.
34515         * lib/stpncpy.h: Likewise.
34516         * lib/strcase.h: Likewise.
34517         * lib/strstr.h: Likewise.
34518         * lib/xalloc.h: Likewise.
34519
34520         * lib/mbswidth.h: Add extern "C" for C++.
34521         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
34522
34523 2004-07-13  Robert Millan  <robertmh@gnu.org>
34524
34525         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
34526
34527 2004-07-09  Simon Josefsson  <jas@extundo.com>
34528
34529         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
34530         failed without this.)
34531
34532 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34533
34534         * modules/chown (Files): Add lib/fchown-stub.c, since
34535         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
34536
34537 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34538
34539         * lib/fchown-stub.c: New file.
34540
34541 2004-06-24  Jim Meyering  <jim@meyering.net>
34542
34543         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
34544
34545 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34546
34547         * modules/argz: Omit "#include".
34548
34549         * MODULES.html.sh (func_all_modules): Add calloc, to match
34550         2004-06-01 addition of calloc module.
34551
34552 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34553
34554         * m4/argz.m4: New file, which is autoupdated from libtool.
34555
34556 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34557
34558         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
34559         libtool.
34560
34561 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34562
34563         * config/srclist-update: Don't insist on "USA." before the
34564         close-comment, as libtool omits the period and puts the */ on a
34565         separate line.
34566         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
34567         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
34568
34569 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
34570
34571         * modules/argz: New file.
34572         * MODULES.html.sh (func_all_modules): Add argz.
34573
34574 2004-06-12  Jim Meyering  <jim@meyering.net>
34575         and  Paul Eggert  <eggert@cs.ucla.edu>
34576
34577         * modules/hash (Files): Add lib/xalloc.h.
34578         * modules/pipe (Depends-on): Add wait-process.
34579         * modules/stat (Depends-on): Add xalloc.
34580         * modules/userspec (Files): Add lib/userspec.h.
34581         * modules/xstrto
34582
34583         Upgrade from gettext-0.13.
34584         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
34585         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
34586         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
34587
34588 2004-06-10  Jim Meyering  <jim@meyering.net>
34589
34590         * lib/calloc.c: New file.
34591
34592 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34593
34594         * lib/getdate.y (yylex): Allow space between sign and number.
34595         Problem reported by Dan Jacobson.
34596
34597 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34598
34599         Merge from coreutils CVS.
34600
34601         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
34602         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
34603         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
34604         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
34605         xstrtol.m4: Fix copyright date and/or serial number.
34606
34607         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
34608         See if we need an fchown replacement.
34609         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
34610         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
34611         and use the replacement function if we detect either defect.
34612
34613         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
34614         gl_UTIMECMP.
34615
34616 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34617         and  Jim Meyering  <jim@meyering.net>
34618
34619         Merge from coreutils CVS.
34620
34621         * lib/stat-macros.h: New file, with contents from file-type.h
34622         and coreutils' system.h.
34623         * lib/file-type.c: Include "stat-macros.h".
34624         * lib/file-type.h (file_type): Move all macro definitions to new file,
34625         stat-macros.h.
34626
34627         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
34628         Wrap old code with this conditional.
34629         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
34630         function that does not dereference symlinks.
34631         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
34632
34633         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
34634         dependency problems.
34635         (xreadlink): Accept new arg SIZE, for efficiency.
34636         All decls and uses changed.
34637         * lib/xreadlink.h: Include <stddef.h>, for size_t.
34638
34639         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
34640         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
34641
34642         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
34643         sysexits.h.
34644
34645 2004-06-01  Jim Meyering  <jim@meyering.net>
34646
34647         * m4/calloc.m4: New file.
34648
34649 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
34650
34651         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34652         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
34653         Also, fix a typo in a diagnostic.
34654
34655 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34656
34657         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34658         or AC_FUNC_REALLOC.
34659
34660 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34661
34662         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34663         macros to be defined.
34664         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34665         the allocator returns NULL because the requested size is zero.
34666
34667 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34668
34669         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34670         var.  Add comment explaining why libc still defines it.  This
34671         merges the following patch from glibc:
34672         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34673
34674 2004-05-20  Andreas Schwab  <schwab@suse.de>
34675
34676         * m4/free.m4: Replace free if it not known to work, not the other
34677         way round.
34678
34679 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34680
34681         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
34682         present in glibc since revision 1.1 of this file.
34683         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34684         obstack_alignment_mask, obstack_alloc, obstack_base,
34685         obstack_blank, obstack_blank_fast, obstack_chunk_size,
34686         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34687         obstack_grow0, obstack_init, obstack_int_grow,
34688         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34689         obstack_next_free, obstack_object_size, obstack_ptr_grow,
34690         obstack_ptr_grow_fast, obstack_room): Remove declarations of
34691         nonexistent functions.
34692
34693 2004-05-18  Karl Berry  <karl@gnu.org>
34694
34695         * config/srclist.txt: break link for vasnprintf.c.
34696
34697 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34698
34699         Port obstack to the AS/400, where pointers are 16 bytes wide and
34700         you cannot cast an integer to a valid pointer.  This patch is
34701         currently waiting to be integrated into glibc; see
34702         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34703
34704         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34705         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34706         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34707         (struct obstack): temp member is now a union of a pointer and
34708         an integer, instead of an integer.  All integer uses changed.
34709         This does not affect the physical layout of struct obstack,
34710         except on hosts (like the AS/400) where the size or alignment of
34711         void * is greater than that of ptrdiff_t.
34712         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34713         __STDC__)]: Store temporary in pointer member of union, not
34714         integer member.
34715         * lib/obstack.c: Include <stddef.h>, for offsetof.
34716         (struct fooalign): Remove; it doesn't need a name.
34717         (union fooround): Change double to long double, and add void *.
34718         (DEFAULT_ALIGNMENT): Use offsetof to compute.
34719         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34720         not a macro.  Hence the values are always int; so remove all
34721         casts-to-int in uses.
34722
34723 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34724
34725         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34726         we can get this patch merged into glibc.
34727
34728 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34729             Paul Eggert  <eggert@cs.ucla.edu>
34730
34731         * m4/argp: Depend on alloca.
34732
34733 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34734             Paul Eggert  <eggert@cs.ucla.edu>
34735
34736         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34737         freecoding.
34738
34739 2004-05-17  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34742         precision that consists of a '.' followed by an empty digit string.
34743         Patch by Tor Lillqvist <tml@iki.fi>.
34744
34745 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34746
34747         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34748         for backward compatibility with older code.  We need our own
34749         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
34750         it under some other name, and our alloca.h will define it.
34751
34752 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34753             Derek Price  <derek@ximbiot.com>
34754
34755         * lib/alloca.c: Include <alloca.h>, to get our interface.
34756         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34757         include <alloca.h> first.  Use C89 prototype for alloca; this
34758         requires including <stddef.h> for size_t.  Use extern "C" if C++.
34759         Use #elif for simplicity, since we can assume C89 now.
34760         Don't try to source the system alloca.h since it will not be found
34761         and to prevent recursively including its replacement.
34762         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34763         * lib/regex.c: Likewise.
34764
34765 2004-05-16  Derek Price  <derek@ximbiot.com>
34766             Paul Eggert  <eggert@cs.ucla.edu>
34767
34768         getline cleanup.  This changes the getndelim2 API: both order of
34769         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34770         no delimiter).
34771
34772         * lib/getline.c: Don't include stddef.h or stdio.h, since our
34773         interface does that.
34774         (getline): Always use getdelim, so that we don't have two
34775         copies of this code.
34776         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34777         if available.
34778         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34779         (GETNDELIM2_MAXIMUM): New macro.
34780         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
34781         instead of the old practice of delim2==0.  All callers changed.
34782         Return -1 on overflow, instead of returning junk.
34783         Do not set *linesize unless allocation succeeds.
34784         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34785         that we include sys/types.h.
34786         * lib/getnline.h: Likewise.
34787         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34788         (getndelim2): Reorder arguments.
34789         * lib/getnline.c (getnline, getndelim):
34790         Don't discard the NMAX argument.
34791         (getnline): Invoke getndelim, to avoid code duplication.
34792         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34793         of (size_t) -1 by callers of the getnline family.
34794
34795 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34796
34797         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34798         Check for gettimeofday.
34799         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34800         Check for settimeofday, stime.
34801
34802 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34803
34804         * lib/nanosleep.c (suspended): Change its type from int to
34805         sig_atomic_t volatile.
34806         (first_call): Make it private to rpl_nanosleep, and have it
34807         be zero initially as that's a bit faster.
34808         (my_usleep): Round up fractional times instead of truncating them,
34809         as this is the usual meaning for 'sleep'.
34810
34811         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34812         doesn't work.
34813         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34814         (ENOSYS): Define if not defined.
34815         (settime): Fall back on stime if it exists and settimeofday fails.
34816         But don't bother with fallbacks if a method fails with errno == EPERM.
34817
34818 2004-05-11  Jim Meyering  <jim@meyering.net>
34819
34820         Prior to this change, the save_cwd caller required read access to the
34821         current directory on most systems (ones with the fchdir function).
34822
34823         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34824         fails, try write-only, and finally, resort to using xgetcwd.
34825
34826 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34827
34828         * lib/obstack.c, obstack.h: Import changes from libc.
34829
34830 2004-04-28  Bruno Haible  <bruno@clisp.org>
34831
34832         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34833         also implicitly appends .exe to executables.
34834         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34835         accepts Windows pathnames.
34836         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34837         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34838         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34839         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34840         Reported by Derek Robert Price <derek@ximbiot.com>.
34841
34842 2004-04-21  Karl Berry  <karl@gnu.org>
34843
34844         * config/srclist.txt (localcharset.c): break sync.
34845
34846 2004-04-20  Paul Eggert  <eggert@twinsun.com>
34847
34848         * m4/host-os.m4: Add a copyright notice.
34849
34850 2004-04-20  Jim Meyering  <jim@meyering.net>
34851
34852         Change UTILS_ to gl_ in AC_DEFINE'd names.
34853         Change utils_- and jm_-prefixed variables, too.
34854         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34855         UTILS_FUNC_MKDIR_TRAILING_SLASH.
34856         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34857
34858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34859         Don't emit trailing blanks.
34860         Also rename jm_-prefixed variables to have gl_ prefix.
34861
34862         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34863         Also rename jm_-prefixed variables to have gl_ prefix.
34864
34865         * m4/jm-macros.m4: Reflect the renamings.
34866         * m4/prereq.m4: Likewise.
34867
34868 2004-04-20  Jim Meyering  <jim@meyering.net>
34869
34870         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34871         memory.
34872
34873 2004-04-20  Jim Meyering  <jim@meyering.net>
34874             Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34877         memory when realloc fails.
34878
34879 2004-04-19  Jim Meyering  <jim@meyering.net>
34880
34881         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34882         now that readutmp.c may call `free (0)'.
34883
34884 2004-04-19  Bruno Haible  <bruno@clisp.org>
34885
34886         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34887         * m4/inttypes_h.m4: Likewise.
34888         * m4/stdint_h.m4: Likewise.
34889         * m4/intmax_t.m4: Likewise.
34890         * m4/uintmax_t.m4: Likewise.
34891
34892 2004-04-18  Jim Meyering  <jim@meyering.net>
34893
34894         * m4/prereq.m4: Don't forbid jm_ prefix.
34895
34896         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34897         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34898         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34899         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34900         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34901         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34902         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34903         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34904         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34905         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34906         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34907         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34908         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34909         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34910         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34911         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34912         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34913         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34914         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34915
34916 2004-04-18  Jim Meyering  <jim@meyering.net>
34917
34918         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34919         failure, don't leak memory and do call END_UTMP_ENT.
34920
34921 2004-04-16  Jim Meyering  <jim@meyering.net>
34922
34923         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
34924         coreutils' stat program.
34925         (gl_PREREQ): Don't require jm_PREREQ_STAT.
34926
34927 2004-04-11  Paul Eggert  <eggert@twinsun.com>
34928
34929         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34930         C89.
34931         (CHAR_BIT): Remove, since we assume C89.
34932         Include <stdint.h> if available, as per current Autoconf CVS advice.
34933
34934 2004-03-31  Jim Meyering  <jim@meyering.net>
34935
34936         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34937         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34938         * m4/xalloc.m4: Likewise.
34939
34940 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34941
34942         Merge from coreutils.
34943
34944         * m4/inttostr.m4: New file.
34945         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34946         Require AM_STDBOOL_H and gl_TIMESPEC instead.
34947         Require gl_CLOCK_TIME.
34948         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34949
34950 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34951
34952         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34953         not bool, to be more consistent with Unix conventions.
34954         Suggested by Bruno Haible.
34955
34956         Merge from coreutils.
34957
34958         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34959         * lib/umaxtostr.c: New files.
34960
34961         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34962         the usual <time.h> dance.
34963         (get_date): Change signature to support fractional time stamps.
34964         All callers changed.
34965         * lib/getdate.y: Include "getdate.h" first, as we can now
34966         assume C89 and don't need to worry about 'const'.
34967         Similarly, include "unlocked-io.h" near start, not in middle.
34968         Include <limits.h>.
34969         (textint.value): Use long int rather than int.
34970         (textint.digits): Use size_t rather than int.
34971         (BILLION, LOG10_BILLION): New constants.
34972         (parser_control): New member rel_ns.  Members day_ordinal,
34973         time_zone, month, day, hour, minutes, rel_year, rel_month,
34974         rel_day, rel_hour, rel_minutes, rel_seconds
34975         are now long int, not int.  Member seconds is now struct timespec,
34976         not int.  New member timespec_seen.  Members dates_seen, days_seen,
34977         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34978         not int.
34979         (%union.intval): Now long int, not int.
34980         New member timespec.
34981         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34982         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34983         (spec): Now is a timespec or an item list.
34984         (timespec, items): New nonterminals.
34985         (time, rel, relunit, number, get_date):
34986         Add support for fractional seconds.
34987         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34988         (gmtime, localtime, mktime): Remove decls; not needed with C89.
34989         (to_hour): First arg is now long int, not int.
34990         (to_year): Returns long int, not int.
34991         Don't treat year -70 like 70.
34992         (tm_diff): Returns long int, not int.
34993         (lookup_word): Use bool instead of int when appropriate.
34994         (yylex): Use size_t for count, not int.
34995         Detect overflow when parsing large integer constants.
34996         Add support for fractions.
34997         (get_date): Make pointers 'const' if possible.
34998         Use more-portable code to detect integer overflow.
34999         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
35000         Don't use ctime; it's not reliable if the year has >4 digits.
35001
35002         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
35003         This is for compatibility with BSD.
35004
35005         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
35006         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
35007         From coreutils' system.h.
35008
35009         * lib/userspec.c: Don't include "posixver.h".
35010         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
35011         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
35012         compatible extension.  Simplify code by removing a boolean int
35013         that was always nonzero if a string was nonnull.
35014
35015 2004-03-30  Jim Meyering  <jim@meyering.net>
35016
35017         Merge from coreutils.
35018
35019         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
35020         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
35021         on some systems one must include <grp.h> before it.
35022         Reported by Christian Krackowizer.
35023
35024 2004-03-30  Jim Meyering  <jim@meyering.net>
35025
35026         Merge from coreutils.
35027
35028         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
35029
35030         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
35031         an empty input stream.
35032
35033         * lib/readtokens.c: Include <stdbool.h>.
35034         (readtoken): Use `size_t' rather than int/long.
35035         All callers adjusted.
35036         Use `bool' rather than `int' where appropriate.
35037         Use memset rather than an explicit loop.
35038         Use x2nrealloc rather than xrealloc.
35039         Allow the use of `\0' as a delimiter.
35040         (readtokens): Likewise.
35041         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
35042
35043 2004-03-30  Jim Meyering  <jim@meyering.net>
35044
35045         * m4/realloc.m4: Remove file, since now it does no more than
35046         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
35047         the `configure.ac' section of module/realloc.
35048         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
35049
35050 2004-03-30  Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
35053         nonnull.
35054
35055 2004-03-29  Paul Eggert  <eggert@twinsun.com>
35056
35057         Merge changes to getloadavg.c from coreutils and Emacs.
35058
35059         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
35060         Define to an expression, not to the empty string.
35061         Include cloexec.h and xalloc.h.
35062         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
35063         Use set_cloexec_flag rather than rolling our own.
35064         * lib/cloexec.c, lib/cloexec.h: New files.
35065
35066 2004-03-29  Paul Eggert  <eggert@twinsun.com>
35067
35068         * m4/cloexec.m4: New file.
35069
35070 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35071
35072         * lib/getopt.h: Sync with libc CVS.
35073
35074 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35075             Bruno Haible  <bruno@clisp.org>
35076
35077         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35078         mbswidth.
35079
35080 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35081             Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/mbswidth.h: Include <wchar.h> only if
35084         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
35085         <wchar.h>.
35086         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
35087
35088 2004-03-09  Paul Eggert  <eggert@twinsun.com>
35089
35090         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
35091         Sync with libc CVS.
35092         * lib/getopt_int.h: New file, also synced from libc.
35093
35094 2004-03-09  Paul Eggert  <eggert@twinsun.com>
35095
35096         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
35097         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
35098         Bring back getopt.c, getopt.h, getopt1.c.
35099
35100 2004-03-07  Paul Eggert  <eggert@twinsun.com>
35101
35102         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
35103         All uses changed.  Check for sa_sigaction member; this fixes
35104         a bug first reported by Jason Andrade in
35105         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35106
35107 2004-03-07  Paul Eggert  <eggert@twinsun.com>
35108
35109         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
35110         '#if' expressions.  Unlike the code it replaces, it does not
35111         depend on (defined _SC_PAGESIZE).  However, it does depend on
35112         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35113         first reported by Jason Andrade in
35114         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35115
35116 2004-02-25  Simon Josefsson  <jas@extundo.com>
35117
35118         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35119
35120 2004-02-25  Simon Josefsson  <jas@extundo.com>
35121
35122         * lib/strdup.h: New file.
35123         * lib/strdup.c: Include it.
35124         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35125         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35126
35127 2004-02-23  Karl Berry  <karl@gnu.org>
35128
35129         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35130         (from fencepost.gnu.org:/gd/gnuorg).
35131
35132 2004-02-23  Karl Berry  <karl@gnu.org>
35133
35134         * config/srclistvars.sh (GNUORG) [karl]: redefine.
35135         * config/srclist.txt: add maintain/standards documents.
35136
35137 2004-02-18  Bruno Haible  <bruno@clisp.org>
35138
35139         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35140         Reported by Derek Robert Price <derek@ximbiot.com>.
35141
35142 2004-02-16  Karl Berry  <karl@gnu.org>
35143
35144         * config/mkinstalldirs, install-sh: update from automake.
35145
35146 2004-02-06  Karl Berry  <karl@gnu.org>
35147
35148         * m4/po.m4: update from gettext 0.14.1.
35149
35150 2004-02-06  Karl Berry  <karl@gnu.org>
35151
35152         * lib/config.charset: update from gettext 0.14.1.
35153
35154 2004-02-05  Paul Eggert  <eggert@twinsun.com>
35155
35156         Add comments and code, prompted by suggestions from Bruno Haible
35157         for sh-quote.
35158         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
35159         describing the enum quoting_style values.
35160         * lib/quotearg.c (quotearg_alloc): New function.
35161         (quotearg_buffer_restyled): Treat lone { and } as special.
35162         Treat = as special.  Work around bug with older shells
35163         that "see" a '\' that is really the 2nd byte of a multibyte char.
35164         Quote empty string with shell_quoting_style.
35165
35166 2004-02-03  Bruno Haible  <bruno@clisp.org>
35167
35168         * m4/pipe.m4: New file, from GNU gettext.
35169
35170 2004-02-03  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/pipe.h: New file, from GNU gettext.
35173         * lib/pipe.c: New file, from GNU gettext.
35174
35175 2004-01-27  Bruno Haible  <bruno@clisp.org>
35176
35177         * m4/execute.m4: New file, from GNU gettext.
35178
35179 2004-01-27  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/execute.h: New file, from GNU gettext.
35182         * lib/execute.c: New file, from GNU gettext.
35183         * lib/w32spawn.h: New file, from GNU gettext.
35184
35185 2004-01-24  Paul Eggert  <eggert@twinsun.com>
35186
35187         Merge from diffutils.
35188
35189         * lib/file-type.c (file_type): Add typed memory objects.
35190         * lib/file-type.h (S_TYPEISTMO): New macro.
35191
35192         * lib/c-stack.h (c_stack_action): Remove argv argument.
35193         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
35194         (die): Don't calculate message unless segv_action returns.
35195         (get_stack_location, min_address_from_argv, max_address_from_argv,
35196         volatile stack_base, volatile_stack_size): Remove.
35197         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35198         that every segmentation violation is a stack overflow.  (Ouch!)
35199         See Debian bug 136249 (still outstanding) for more info about why
35200         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35201
35202 2004-01-24  Paul Eggert  <eggert@twinsun.com>
35203
35204         Exit-status fix from coreutils.
35205
35206         Use exit_failure consistently in place of EXIT_FAILURE,
35207         so that program exit statuses are consistent on failure.
35208
35209         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35210         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35211         * lib/argmatch.h: Comment fix to match the above.
35212         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35213         Now a macro referring to exit_failure, instead of a separate
35214         variable.  Include "exitfail.h" to get it.
35215         * lib/xstrtol.h: Include "exitfail.h".
35216         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35217
35218         * lib/long-options.c (parse_long_options): Use prototype
35219         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
35220         for clarity.
35221
35222 2004-01-21  Jim Meyering  <jim@meyering.net>
35223
35224         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35225         so as not to conflict with a different-sized __mktime_internal
35226         function in GNU libc.
35227         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35228         Problem building statically-linked `ls' reported by Michael Brunnbauer.
35229
35230 2004-01-20  Karl Berry  <karl@gnu.org>
35231
35232         * config/config.guess: update from config.
35233
35234         * config/srclistvars.sh: GNUWWWLICENSES for karl.
35235
35236 2004-01-20  Bruno Haible  <bruno@clisp.org>
35237
35238         Safer stack allocation.
35239         * lib/setenv.c: Include allocsa.h.
35240         (alloca): Remove fallback definition.
35241         (freea): Remove macro.
35242         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35243         instead of freea.
35244
35245 2004-01-20  Bruno Haible  <bruno@clisp.org>
35246
35247         * m4/eealloc.m4: New file, from GNU gettext.
35248
35249 2004-01-20  Bruno Haible  <bruno@clisp.org>
35250
35251         * m4/allocsa.m4: New file, from GNU gettext.
35252
35253 2004-01-20  Bruno Haible  <bruno@clisp.org>
35254
35255         * lib/xallocsa.h: New file, from GNU gettext.
35256         * lib/xallocsa.c: New file, from GNU gettext.
35257
35258 2004-01-20  Bruno Haible  <bruno@clisp.org>
35259
35260         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35261
35262 2004-01-20  Bruno Haible  <bruno@clisp.org>
35263
35264         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35265         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35266         specially.
35267
35268 2004-01-20  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35271         patch.
35272
35273 2004-01-20  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35276
35277 2004-01-20  Bruno Haible  <bruno@clisp.org>
35278
35279         * lib/eealloc.h: New file.
35280
35281 2004-01-20  Bruno Haible  <bruno@clisp.org>
35282
35283         * lib/binary-io.h: Avoid warnings on Cygwin.
35284
35285 2004-01-20  Bruno Haible  <bruno@clisp.org>
35286
35287         * lib/allocsa.h: New file, from GNU gettext.
35288         * lib/allocsa.c: New file, from GNU gettext.
35289
35290 2004-01-18  Karl Berry  <karl@gnu.org>
35291
35292         * doc/gpl.texi, doc/lgpl.texi: new files.
35293
35294 2004-01-18  Karl Berry  <karl@gnu.org>
35295
35296         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35297         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35298
35299 2004-01-15  Paul Eggert  <eggert@twinsun.com>
35300
35301         Merge from coreutils.
35302
35303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35304         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35305         (gl_DEFAULT_POSIX2_VERSION): Move
35306         the documentation from 'configure' into 'config.hin',
35307         so that 'configure --help' isn't burdened by it and
35308         we don't have to worry about its formatting there.
35309         Reword the documentation so that it's more succinct
35310         and can be run together into a single paragraph.
35311         * m4/same.m4 (gl_SAME): Check for pathconf.
35312
35313 2004-01-15  Paul Eggert  <eggert@twinsun.com>
35314
35315         Merge from coreutils.
35316
35317         * lib/posixver.c: Include posixver.h.
35318
35319         * lib/same.c: Include <stdbool.h>, <limits.h>.
35320         (_POSIX_NAME_MAX): Define if not defined.
35321         (MIN): New macro.
35322         (same_name): If file names are silently truncated, report
35323         that the file names are the same if they are the same after
35324         the silent truncation.
35325
35326         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35327         conversion function.
35328         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
35329         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
35330         longer needed.
35331
35332 2004-01-15  Jim Meyering  <jim@meyering.net>
35333
35334         Merge from coreutils.
35335
35336         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35337         if no library is required.
35338         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35339         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35340         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35341         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35342         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35343         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35344         value, $ac_cv_search_crypt, if it's "none required".
35345         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35346         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35347         not gl_FUNC_GETLOADAVG.
35348         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35349         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35350
35351 2004-01-15  Jim Meyering  <jim@meyering.net>
35352
35353         Merge from coreutils.
35354
35355         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
35356         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
35357         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35358
35359         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35360         optional configure-time default.
35361
35362         * lib/version-etc.c (version_etc_copyright): Update copyright date.
35363
35364         * lib/xreadlink.c (xreadlink): Correct outdated comment.
35365
35366 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
35367
35368         Merge from coreutils.
35369
35370         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35371         value, $ac_cv_search_nanosleep, if it's "none required".
35372
35373 2004-01-14  Paul Eggert  <eggert@twinsun.com>
35374
35375         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35376         with like-named macro in fnmatch.c.
35377         (EXT): Use an internal constant instead.
35378
35379         Merge fnmatch patches from glibc.
35380         * lib/fnmatch.c (mbsinit): Remove define.
35381         Add libc_hidden_ver (__fnmatch, fnmatch).
35382         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35383         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35384
35385 2004-01-14  Karl Berry  <karl@gnu.org>
35386
35387         * config/install-sh: update from automake.
35388
35389 2004-01-13  Karl Berry  <karl@gnu.org>
35390
35391         * config/install-sh: update from automake.
35392
35393 2004-01-09  Karl Berry  <karl@gnu.org>
35394
35395         * config/install-sh: update from automake.
35396
35397 2004-01-05  Karl Berry  <karl@gnu.org>
35398
35399         * config/config.{sub,guess}: update from config.
35400
35401 2003-12-31  Karl Berry  <karl@gnu.org>
35402
35403         * config/depcomp: update from automake.
35404
35405 2003-12-14  Karl Berry  <karl@gnu.org>
35406
35407         * lib/config.charset: update from gettext-runtime.
35408
35409 2003-12-03  Paul Eggert  <eggert@twinsun.com>
35410
35411         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35412         Bug reported by Alfred M. Szmidt.
35413
35414 2003-12-03  Bruno Haible  <bruno@clisp.org>
35415
35416         * m4/gettext.m4: Upgrade from gettext-0.13.
35417         * m4/po.m4: Upgrade from gettext-0.13.
35418         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35419         * m4/intmax.m4: New file, from gettext-0.13.
35420         * m4/printf-posix.m4: New file, from gettext-0.13.
35421
35422 2003-11-29  Karl Berry  <karl@gnu.org>
35423
35424         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35425
35426 2003-11-25  Paul Eggert  <eggert@twinsun.com>
35427             Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/printf-parse.h: Don't include sys/types.h.
35430         (ARG_NONE): New macro.
35431         (char_directive): Change type of *arg_index fields to size_t.
35432         * lib/printf-parse.c: Don't include sys/types.h.
35433         (SSIZE_MAX): Remove macro.
35434         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35435         Remove unnecessary overflow check.
35436         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35437         fields.
35438
35439 2003-11-25  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35442
35443 2003-11-25  Bruno Haible  <bruno@clisp.org>
35444
35445         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35446         gt_TYPE_SSIZE_T.
35447
35448 2003-11-24  Paul Eggert  <eggert@twinsun.com>
35449
35450         * modules/alloca: Remove dependency on xalloc.
35451
35452 2003-11-24  Paul Eggert  <eggert@twinsun.com>
35453
35454         * lib/alloca.c: Remove dependency on xalloc module.
35455         (xalloc_die): Remove.
35456         (memory_full) [!defined emacs]: New macro.
35457         [!defined emacs]: Don't include xalloc.h.
35458         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
35459         address arithmetic overflows.  Change datatypes a bit to avoid
35460         unnecessary casts.
35461
35462 2003-11-22  Jim Meyering  <jim@meyering.net>
35463
35464         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
35465         s/size/size_t/.
35466
35467 2003-11-21  Karl Berry  <karl@gnu.org>
35468
35469         * config/config.{sub,guess}: update from config.
35470
35471 2003-11-18  Karl Berry  <karl@gnu.org>
35472
35473         * config/config.{sub,guess}: update from config.
35474
35475         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
35476
35477 2003-11-17  Paul Eggert  <eggert@twinsun.com>
35478
35479         * README: Mention that S+T cannot overflow if S is the size of
35480         an existing object and T is sufficiently small.
35481
35482 2003-11-17  Jim Meyering  <jim@meyering.net>
35483
35484         On systems without utime and without a utimes function capable of
35485         dealing with a NULL struct utimbuf* argument, this utime replacement
35486         could -- in unusual circumstances -- leak a file descriptor.
35487         * lib/utime.c: Include <unistd.h> and <errno.h>.
35488         (utime_null): Be sure to close `fd' and to preserve errno.
35489         Reported by Geoff Collyer via Arnold Robbins.
35490
35491 2003-11-17  Bruno Haible  <bruno@clisp.org>
35492
35493         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
35494         (Depends-on): Add xsize.
35495
35496 2003-11-17  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
35499
35500 2003-11-17  Bruno Haible  <bruno@clisp.org>
35501
35502         * lib/vasnprintf.c (alloca): Remove fallback definition.
35503         (freea): Remove definition.
35504         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
35505         Reported by Paul Eggert.
35506
35507 2003-11-16  Paul Eggert  <eggert@twinsun.com>
35508             Bruno Haible  <bruno@clisp.org>
35509
35510         Protect against address arithmetic overflow.
35511         * lib/printf-args.h: Include stddef.h.
35512         (arguments): Change type of field 'count' to size_t.
35513         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
35514         'unsigned int' where appropriate.
35515         * lib/printf-parse.h: Include sys/types.h.
35516         (char_directive): Change type of *arg_index fields to ssize_t.
35517         (char_directives): Change type of fields 'count', max_*_length to
35518         size_t.
35519         * lib/printf-parse.c: Include sys/types.h and xsize.h.
35520         (SSIZE_MAX): Define fallback value.
35521         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
35522         instead of 'int' where appropriate. Check a_allocated, d_allocated
35523         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
35524         * lib/vasnprintf.c: Include xsize.h.
35525         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
35526         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
35527         overflow. Avoid wraparound when converting a width or precision from
35528         decimal to binary.
35529
35530 2003-11-16  Bruno Haible  <bruno@clisp.org>
35531
35532         Update from GNU gettext.
35533         * lib/printf-parse.c: Generalize to it can be compiled for wide
35534         strings.
35535         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
35536         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
35537         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
35538         SNPRINTF): New macros.
35539         Don't include <alloca.h> if the file is used inside libintl.
35540         (local_wcslen): New function, for Solaris 2.5.1.
35541         (VASNPRINTF): Use it instead of wcslen.
35542
35543 2003-11-16  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/xsize.h (xmax): New function.
35546         (xsum, xsum3, xsum4): Declare as "pure" functions.
35547
35548 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35549
35550         * modules/xalloc (Files): Undo latest change, since xalloc.h
35551         no longer needs SIZE_MAX or PTRDIFF_MAX.
35552
35553 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35554
35555         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
35556         gl_PTRDIFF_MAX.
35557
35558 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35559
35560         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
35561         "return", to pacify some unknown compiler.  Problem reported
35562         by Joerg Schilling.
35563
35564 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35565
35566         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
35567         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
35568         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
35569         heuristic is just as accurate as far as we know, and it removes a
35570         dependency on size_max.m4 and ptrdiff_max.m4.
35571
35572 2003-11-11  Bruno Haible  <bruno@clisp.org>
35573
35574         * modules/xsize (Files): Add m4/size_max.m4.
35575         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
35576
35577 2003-11-11  Bruno Haible  <bruno@clisp.org>
35578
35579         * m4/size_max.m4: New file.
35580         * m4/ptrdiff_max.m4: New file.
35581         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
35582         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
35583         (gl_XALLOC): Invoke it.
35584
35585 2003-11-11  Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
35588         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
35589         defined.
35590
35591 2003-11-10  Paul Eggert  <eggert@twinsun.com>
35592
35593         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
35594         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
35595         rejected some allocations of exactly SIZE_MAX - 2 bytes.
35596         From Bruno Haible.
35597         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
35598         not (size_t) -1, since it's defined here.
35599
35600 2003-11-09  Karl Berry  <karl@gnu.org>
35601
35602         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
35603
35604 2003-11-06  Paul Eggert  <eggert@twinsun.com>
35605
35606         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
35607         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
35608         Reject sizes of exactly SIZE_MAX bytes.
35609         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
35610         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
35611
35612 2003-11-05  Bruno Haible  <bruno@clisp.org>
35613
35614         * lib/xsize.h: Include limits.h, to avoid a possible collision with
35615         SIZE_MAX defined in <limits.h> on Solaris.
35616
35617 2003-11-04  Jim Meyering  <jim@meyering.net>
35618
35619         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
35620         variable names, rather than @VAR@.
35621         * modules/poll: Likewise.
35622
35623 2003-11-04  Bruno Haible  <bruno@clisp.org>
35624
35625         * modules/xsize: New file.
35626         * modules/linebreak: Depend on xsize.
35627         * MODULES.html.sh (func_all_modules): Add xsize.
35628
35629 2003-11-04  Bruno Haible  <bruno@clisp.org>
35630
35631         * m4/xsize.m4: New file.
35632
35633 2003-11-04  Bruno Haible  <bruno@clisp.org>
35634
35635         * lib/xsize.h: New file.
35636         * lib/linebreak.c: Include xsize.h.
35637         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
35638         argument for overflow.
35639         Suggested by Paul Eggert.
35640
35641 2003-11-03  Karl Berry  <karl@gnu.org>
35642
35643         * config/config.{guess,sub}: update from config.
35644
35645 2003-11-03  Jim Meyering  <jim@meyering.net>
35646
35647         * modules/userspec (lib_SOURCES): Add userspec.h.
35648         (Include): Add "userspec.h".
35649         Improve description.
35650
35651 2003-11-03  Jim Meyering  <jim@meyering.net>
35652
35653         * lib/userspec.c: Include "userspec.h".
35654         * lib/userspec.h: New file.
35655
35656 2003-11-03  Bruno Haible  <bruno@clisp.org>
35657
35658         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35659
35660 2003-11-03  Bruno Haible  <bruno@clisp.org>
35661
35662         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35663         available, to avoid (extremely rare) race condition.
35664         Suggested by Paul Eggert.
35665
35666 2003-11-02  Karl Berry  <karl@gnu.org>
35667
35668         * config/srclist.txt (vasprintf.c): sync broken, sigh.
35669
35670 2003-10-31  Paul Eggert  <eggert@twinsun.com>
35671
35672         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35673         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35674         (read_filesystem_list): Set and use me_type_malloced.
35675         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35676         whatever the type happens to be), for brevity and consistency.
35677         Check for size calculation overflow on Alphas running OSF/1.
35678
35679 2003-10-31  Jim Meyering  <jim@meyering.net>
35680
35681         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35682
35683         * lib/linebuffer.c: Include <string.h> for declaration of memset.
35684
35685 2003-10-30  Paul Eggert  <eggert@twinsun.com>
35686             Bruno Haible  <bruno@clisp.org>
35687
35688         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35689         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35690
35691 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35692
35693         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35694         netbsd*-gnu*.  Suggested by Robert Millan.
35695
35696 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35697
35698         * modules/group-member: Depend on stdbool.
35699
35700 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35701
35702         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35703
35704 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35705
35706         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
35707         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
35708         after the 'gnu' in these cases.  This fixes some bugs in the
35709         previous change, and is based on suggestions by Robert Millan.
35710
35711 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35712
35713         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35714         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
35715         no longer needed.
35716         * lib/quotearg.c (quotearg_n_options): Use it.
35717         * lib/group-member.c: Include <stdbool.h>.
35718         (free_group_info): Arg is now const *; don't free arg.
35719         (get_group_info): Now returns bool and accepts struct group_info *,
35720         rather than returning a malloc'ed struct group_info *.
35721         All uses changed.  Check for overflow in internal size calculation.
35722
35723         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35724         rather than xmalloc/xrealloc.
35725         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35726         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
35727         conformance bug: the old code used a pointer after freeing the
35728         storage that it addressed.
35729         * lib/hash.c (hash_initialize): Simplify the code by using
35730         xalloc_oversized rather than doing it by hand.
35731         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35732         the buffer preserved.  Use free and xmalloc instead.
35733         * lib/quotearg.c (quotearg_n_options): Likewise.
35734         Use a simpler test for size overflow.  Don't use xalloc_oversized
35735         because unsigned int might be wider than size_t (!); this suggests
35736         that we should switch from unsigned int to size_t for slot numbers.
35737
35738 2003-10-28  Paul Eggert  <eggert@twinsun.com>
35739
35740         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35741         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
35742         NetBSD kernels.  Requested by Richard Stallman.
35743
35744 2003-10-27  Paul Eggert  <eggert@twinsun.com>
35745
35746         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35747         to allocate the returned structure.  Do not allocate a subarray,
35748         as x2nrealloc will do that.
35749         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35750         instead of xnrealloc.
35751         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35752
35753 2003-10-27  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/stdbool_.h: Better support for BeOS.
35756
35757 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35758
35759         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35760         now uses inline.
35761
35762 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35763
35764         * lib/xalloc.h (xalloc_oversized): New static inline function, for
35765         callers that want to do their own size-overflow checking.  Include
35766         <stdbool.h>, since xalloc_oversized returns bool.
35767         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
35768         to use xalloc_oversized.
35769
35770         Add two functions x2realloc, x2nrealloc, for programs that grow
35771         arrays dynamically by doubling their sizes.
35772         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35773         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35774         New functions.
35775
35776         Port to C99 semantics for 'inline' of external functions.
35777         Bug reported by Bruno Haible.
35778         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35779         with the old contents of xnmalloc.
35780         (xnmalloc, xmalloc): Use it.
35781         (xnrealloc_inline): New static inline function,
35782         with the old contents of xnrealloc.
35783         (xnrealloc, xrealloc): Use it.
35784
35785         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35786         that.
35787
35788 2003-10-26  Karl Berry  <karl@gnu.org>
35789
35790         * config/srclist.txt (COPYING.DOC): no longer available from
35791         /gd/gnuorg; don't know where the ultimate source is.
35792
35793 2003-10-25  Paul Eggert  <eggert@twinsun.com>
35794
35795         Fix several address-calculation bugs in the hash modules,
35796         plus some minor code cleanup.
35797
35798         * lib/hash.h: Include <stdbool.h>, for bool.
35799         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35800         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35801         hash_get_n_entries, hash_get_max_bucket_length,
35802         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35803         hash_rehash): Use size_t rather than unsigned.
35804         * lib/hash.c (struct hash_table, hash_get_n_buckets,
35805         hash_get_n_buckets_used, hash_get_n_entries,
35806         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35807         hash_get_entries, hash_do_for_each, hash_string, is_prime,
35808         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35809         Likewise.
35810         (SIZE_MAX): Define if not defined.
35811         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35812         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35813         hash_print):
35814         Use const * when possible.
35815         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35816         (check_tuning): Fix bug: if tuning parameters were very close to
35817         0 or 1, rounding errors could have caused subscript violations.
35818         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35819         (hash_initialize): Add 'fail:' label
35820         to free table and return NULL, and use it to simplify code.
35821         Use calloc rather than clearing the storage ourself.
35822         (hash_initialize, hash_rehash): Check for arithmetic overflow in
35823         buffer size calculations.
35824         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35825         Include <stddef.h>, for size_t.
35826         * lib/hash-pjw.c (hash_pjw): Likewise.
35827         Switch to method described by Bruno Haible.
35828         Include <limits.h>, for CHAR_BIT.
35829         (SIZE_BITS): New macro.
35830
35831 2003-10-23  Paul Eggert  <eggert@twinsun.com>
35832
35833         * m4/getline.m4 (AM_FUNC_GETLINE):
35834         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35835         hosts.  Problem reported by Derek Robert Price in
35836         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35837         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35838         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35839
35840 2003-10-21  Paul Eggert  <eggert@twinsun.com>
35841
35842         * lib/getndelim2.c (getndelim2): When size calculation overflows,
35843         ceiling the allocation at NMAX bytes rather than silently
35844         discarding input bytes before NMAX is reached.  This makes
35845         a difference only if NMAX exceeds SIZE_MAX / 2.
35846
35847         * lib/obstack.c: Merge from glibc.
35848         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35849         Add libc_hidden_def (_obstack_newchunk).
35850         (_obstack_free) [! defined _LIBC]: Remove.
35851         [defined _LIBC]: Make a strong alias from obstack_free, rather than
35852         a clone of the function body.
35853         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35854         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35855
35856         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35857         glibc.
35858         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35859         arg to memcpy.
35860
35861         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35862         (obstack_ptr_grow_fast, obstack_int_grow_fast):
35863         Don't use lvalue casts, as GCC plans to remove support for them
35864         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
35865         was also present in the non-GCC version, indicating that this
35866         code had always been buggy and had never been widely used.
35867         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35868         Use the fast variant of each macro, rather than copying the
35869         definiens of the fast variant; that way, we'll be more likely to
35870         catch future bugs in the fast variants.
35871
35872 2003-10-20  Bruno Haible  <bruno@clisp.org>
35873
35874         * modules/wait-process: New file.
35875         * MODULES.html.sh (func_all_modules): Add wait-process.
35876
35877 2003-10-20  Bruno Haible  <bruno@clisp.org>
35878
35879         * m4/wait-process.m4: New file.
35880
35881 2003-10-20  Bruno Haible  <bruno@clisp.org>
35882
35883         * lib/wait-process.h: New file, from GNU gettext.
35884         * lib/wait-process.c: New file, from GNU gettext.
35885
35886 2003-10-19  Jim Meyering  <jim@meyering.net>
35887
35888         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35889         HPUX 10.20.
35890
35891 2003-10-18  Karl Berry  <karl@gnu.org>
35892
35893         * config/config.guess: update from config.
35894
35895 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35896
35897         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35898         (getgroups): First arg is int, not size_t.
35899         Don't let 'free' mangle errno.
35900
35901 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35902
35903         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35904
35905 2003-10-16  Karl Berry  <karl@gnu.org>
35906
35907         * config/config.{guess,sub}: update from config.
35908
35909 2003-10-16  Jim Meyering  <jim@meyering.net>
35910
35911         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35912         memcpy.
35913
35914 2003-10-15  Paul Eggert  <eggert@twinsun.com>
35915
35916         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35917         (SIZE_MAX): Remove.
35918         (new_exclude, add_exclude_file): Initial size no longer needs to
35919         be a power of 2.
35920         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35921         our own address arithmetic overflow checking.
35922
35923         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35924         (fnmatch): Do not alloca more than 2000 wide characters;
35925         instead, use malloc for large buffers.
35926         Check for address arithmetic overflow, and return -1
35927         with errno set to ENOMEM in that case.
35928         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35929         (NEW_PATTERN): Do not alloca more than 8000 bytes;
35930         instead, return -1.  Check for address arithmetic overflow.
35931
35932 2003-10-14  Paul Eggert  <eggert@twinsun.com>
35933
35934         Handle invalid suffixes and overflow independently, so that
35935         callers can treat them independently as needed.  Fix some bugs in
35936         suffix handling, e.g., "100k@" was not diagnosed as an invalid
35937         suffix for a human-readable blocksize.  The major caller-visible
35938         change is the addition of a new
35939         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35940         that both overflow and suffix chars were found.
35941
35942         * lib/human.c (humblock): Don't check separately for invalid suffix
35943         char; that is xstrtoumax's job (now that its bug is fixed).
35944         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35945         INTMAX_MAX]: New macros.
35946         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35947         TYPE_MAXIMUM): New macros.
35948         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35949         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35950         if overflow occurs, as it's what __strtol does and it's more useful
35951         in practice.
35952         (__xstrtol): If __strtol reports some error other than ERANGE,
35953         reflect it to the caller as LONGINT_INVALID.  If it reports
35954         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35955         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35956         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35957         value.
35958         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
35959         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35960         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35961         [defined UINTMAX_MAX]: New macros.
35962
35963 2003-10-14  Bruno Haible  <bruno@clisp.org>
35964
35965         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35966
35967 2003-10-14  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/sig_atomic_t: New file, from GNU gettext.
35970         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35971
35972 2003-10-14  Bruno Haible  <bruno@clisp.org>
35973
35974         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35975         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35976         Also use volatile where needed.
35977
35978 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35979
35980         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
35981         Change maintainer from Bruno Haible to 'all'.
35982
35983 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35984
35985         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35986
35987 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35988
35989         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35990         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35991         and define in terms of the other primitives.
35992         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35993         (SIZE_MAX): Define if not already defined.
35994         (array_size_overflow): New function.
35995         (xalloc_die): Abort instead of exiting if 'error' returns.
35996         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35997         (xmalloc, xrealloc): Use them.
35998         (xcalloc): Check for address arithmetic overflow.
35999         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
36000         a bit faster than strcpy.
36001
36002 2003-10-10  Simon Josefsson  <jas@extundo.com>
36003
36004         * modules/argp (Depends-on): Add restrict and strcase.
36005
36006 2003-10-10  Simon Josefsson  <jas@extundo.com>
36007
36008         * m4/argp.m4: Add AC_C_INLINE.
36009
36010 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36011
36012         Merge getpass from libc, plus a few fixes.
36013
36014         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
36015         Include <stdbool.h>.
36016         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
36017         __fsetlocking to empty.
36018         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
36019         do include <bits/libc-lock.h>.
36020         Do not include <fcntl.h>; not needed.
36021         [_LIBC]: Include <wchar.h>.
36022         (NOTCANCEL_MODE): New macro.
36023         (flockfile, funlockfile) [_LIBC]: New macros.
36024         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
36025         [!_LIBC]: New macros.
36026         (call_fclose): New function.
36027         (getpass): Use it.  Save tty stream separately; this simplifies the
36028         code and makes it more reliable if stdin happens to equal stdout.
36029         Invoke __fsetlocking on tty.
36030         Handle thread cancellation if needed.
36031         Namespace cleanup (use __tcgetattr, __getline).
36032         Use bool for Booleans.
36033         [USE_IN_LIBIO]: Handle wide streams.
36034         [!_LIBC]: Unconditionally do the fseek, since we don't know what
36035         stream might go where.
36036
36037         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
36038         doesn't have to include <stdio.h> before us.
36039         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
36040         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
36041         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
36042         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
36043         if not declared, so that we can use getpass.c code from libc without
36044         rewriting it.
36045         (flockfile, ftrylockfile, funlockfile): New macros.
36046
36047 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36048
36049         * modules/getpass: Depend on stdbool.
36050
36051 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36052
36053         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
36054
36055 2003-10-07  Karl Berry  <karl@gnu.org>
36056
36057         * config/config.{guess,sub}: update from config.
36058
36059 2003-10-06  Jim Meyering  <jim@meyering.net>
36060             Bruno Haible  <bruno@clisp.org>
36061
36062         This lets translators provide better translations for the
36063         "Written by ..." part of --version output.
36064         * lib/version-etc.h: Include stdarg.h.
36065         (version_etc_copyright): Declare as readonly.
36066         (version_etc): Make this function variadic with a NULL-terminated list
36067         of author name strings.
36068         (version_etc_va): New declaration.
36069         * lib/version-etc.c: Include stdarg.h, stdlib.h.
36070         (version_etc_copyright): Declare as readonly.
36071         (version_etc_va): New function. Provide a different translatable string
36072         for each possible number of authors < 10. Abbreviate when there are 10
36073         authors or more.
36074         (version_etc): Make this function variadic. Call version_etc_va.
36075         Suggestion from Gary V. Vaughan.
36076
36077         * lib/long-options.h (parse_long_options): Change prototype: the
36078         authors string is moved to the end and becomes variadic.
36079         * lib/long-options.c: Include stdarg.h.
36080         (parse_long_options): Make this function variadic, too.
36081         Call version_etc_va, not version_etc.
36082
36083 2003-10-06  Bruno Haible  <bruno@clisp.org>
36084
36085         * modules/version-etc-2: Remove file.
36086         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
36087
36088 2003-10-06  Bruno Haible  <bruno@clisp.org>
36089
36090         * modules/fatal-signal: New file.
36091         * MODULES.html.sh (func_all_modules): Add fatal-signal.
36092
36093 2003-10-06  Bruno Haible  <bruno@clisp.org>
36094
36095         * m4/fatal-signal.m4: New file.
36096         * m4/signalblocking.m4: New file, from GNU gettext.
36097
36098 2003-10-06  Bruno Haible  <bruno@clisp.org>
36099
36100         * lib/version-etc-2.h: Remove file.
36101         * lib/version-etc-2.c: Remove file.
36102
36103 2003-10-06  Bruno Haible  <bruno@clisp.org>
36104
36105         * lib/fatal-signal.h: New file, from GNU gettext.
36106         * lib/fatal-signal.c: New file, from GNU gettext.
36107
36108 2003-10-05  Paul Eggert  <eggert@twinsun.com>
36109
36110         * README: Rework advice for preventing empty .o files.
36111         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
36112         not <sys/types.h>.
36113
36114 2003-10-04  Karl Berry  <karl@gnu.org>
36115
36116         * lib/argp*: update from libc.
36117
36118 2003-10-04  Karl Berry  <karl@gnu.org>
36119
36120         * config/config.{guess,sub}: update from config.
36121
36122 2003-10-02  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/lchown (Include): Add lchown.h.
36125         * modules/time_r (Include): Use "..." syntax.
36126         * modules/xgetdomainname (Include): Add xgetdomainname.h.
36127
36128 2003-10-01  Simon Josefsson  <jas@extundo.com>
36129
36130         * MODULES.html.sh (func_all_modules): Move gethostname from section
36131         'based on' to section 'lacking' POSIX:2001.
36132
36133 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
36134
36135         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36136         to output mode on the same stream.
36137
36138 2003-09-29  Paul Eggert  <eggert@twinsun.com>
36139
36140         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36141         Fix arg typo in previous patch.
36142
36143 2003-09-28  Jim Meyering  <jim@meyering.net>
36144
36145         * lib/error.c: Correct cpp indentation.
36146
36147 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36148
36149         * modules/free: New file.
36150
36151 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36152
36153         * m4/free.m4: New file.
36154
36155 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36156
36157         * lib/minmax.h (MIN, MAX)
36158         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36159         Omit the special code that used __typeof__, since we worry that
36160         it could be more trouble than it's worth.  See:
36161         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36162         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36163
36164         * lib/free.c: New file.
36165
36166 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
36167
36168         Trivial fixes to Makefile.am parts of module listings.
36169         * modules/strstr: Append strstr.h to lib_SOURCES.
36170         * modules/strcase: Likewise, for strcase.h.
36171
36172 2003-09-27  Karl Berry  <karl@gnu.org>
36173
36174         * config/mkinstalldirs: update from automake.
36175
36176 2003-09-26  Paul Eggert  <eggert@twinsun.com>
36177
36178         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36179         (error_tail): Do not loop, reallocating temporary buffer, since
36180         the output cannot contain more wide characters than the input
36181         contains bytes, the size must be big enough already.  This avoids
36182         one potential size overflow calculation.  Check for size overflow
36183         when calculating temporary buffer size.  Free temporary buffer
36184         when done, if it was allocated with malloc; this plugs a memory
36185         leak.  Remove casts from void * to pointers, that are no longer
36186         needed now that we're assuming C89 or better.
36187
36188         Merge error changes from glibc.
36189
36190         * lib/error.c, error.h: Update copyright notice header to match glibc.
36191         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36192         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36193         Disable cancellation while printing error.
36194         * lib/error.h: Prepend __ to parameter names.
36195
36196 2003-09-26  Jim Meyering  <jim@meyering.net>
36197
36198         * lib/error.c (error_tail): Move some declarations
36199         into inner scope where the local variables are used.
36200
36201 2003-09-26  Bruno Haible  <bruno@clisp.org>
36202
36203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36204         stpncpy().
36205         Don't define stpncpy through config.h; it's now done through stpncpy.h.
36206
36207 2003-09-26  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/stpncpy.h (gnu_stpncpy): New declaration.
36210         (stpncpy): Define as alias for gnu_stpncpy.
36211         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36212
36213 2003-09-25  Simon Josefsson  <jas@extundo.com>
36214
36215         * lib/xgetdomainname.h: New file.
36216         * lib/xgetdomainname.c: New file.
36217
36218 2003-09-25  Simon Josefsson  <jas@extundo.com>
36219             Bruno Haible  <bruno@clisp.org>
36220
36221         * modules/getdomainname: New file.
36222         * modules/xgetdomainname: New file.
36223         * MODULES.html.sh (func_all_modules): Add getdomainname,
36224         xgetdomainname.
36225
36226 2003-09-25  Simon Josefsson  <jas@extundo.com>
36227             Bruno Haible  <bruno@clisp.org>
36228
36229         * m4/getdomainname.m4: New file.
36230
36231 2003-09-25  Simon Josefsson  <jas@extundo.com>
36232             Bruno Haible  <bruno@clisp.org>
36233
36234         * lib/getdomainname.h: New file.
36235         * lib/getdomainname.c: New file.
36236
36237 2003-09-25  Karl Berry  <karl@gnu.org>
36238
36239         * lib/argp-fmtstream.c, argp-help.c: update from libc.
36240
36241 2003-09-25  Karl Berry  <karl@gnu.org>
36242
36243         * config/install-sh: update from automake.
36244
36245 2003-09-25  Bruno Haible  <bruno@clisp.org>
36246
36247         * modules/version-etc-2: New file, from modules/version-etc with
36248         modifications.
36249         * MODULES.html.sh (func_all_modules): Add version-etc-2.
36250
36251 2003-09-25  Bruno Haible  <bruno@clisp.org>
36252
36253         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36254         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36255
36256 2003-09-24  Simon Josefsson  <jas@extundo.com>
36257
36258         * modules/xgethostname: Add xgethostname.h.
36259
36260 2003-09-24  Paul Eggert  <eggert@twinsun.com>
36261
36262         * lib/linebuffer.c (freebuffer): Don't free the argument, just
36263         the buffer associated with the argument.  Bug reported by
36264         Simon Josefsson.
36265
36266 2003-09-24  Paul Eggert  <eggert@twinsun.com>
36267
36268         * README: Document assumptions that 'int' is at least 32 bits
36269         wide, that integer arithmetic is 2's complement without overflow,
36270         that there are no holes in integer values, that adding sizes of
36271         two nonoverlapping objects can't overflow, and that all-bits-zero
36272         yields scalar zero.  Fix spelling and capitalization typos.
36273
36274 2003-09-19  Karl Berry  <karl@gnu.org>
36275
36276         * lib/argp.h: update from libc.
36277
36278 2003-09-17  Paul Eggert  <eggert@twinsun.com>
36279
36280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36281         to avoid spurious warnings like "AC_RUN_IFELSE was called before
36282         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36283
36284 2003-09-17  Paul Eggert  <eggert@twinsun.com>
36285
36286         * gnulib-tool: Use "test -h", not "test -L", for portability
36287         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
36288         (tags_regexp): Remove, since \| doesn't conform to POSIX.
36289         (sed_extract_prog): Issue s commands one-by-one, rather than
36290         using \| in one s command.
36291
36292 2003-09-16  Paul Eggert  <eggert@twinsun.com>
36293
36294         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36295         input error, instead of returning NULL the next time we are called
36296         (and therefore losing track of errno).
36297
36298 2003-09-16  Bruno Haible  <bruno@clisp.org>
36299
36300         * gnulib-tool (func_create_testdir): Warn about duplicated
36301         dependencies.
36302
36303 2003-09-15  Paul Eggert  <eggert@twinsun.com>
36304
36305         * modules/argmatch, modules/fatal, modules/obstack,
36306         modules/xalloc, modules/xgethostname: Sort dependencies by
36307         importance, not alphabetically.
36308
36309 2003-09-15  Paul Eggert  <eggert@twinsun.com>
36310
36311         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36312         fails, so that the caller gets the proper errno.
36313
36314         * lib/readutmp.c (read_utmp): Likewise.
36315         Check for fstat error.  Close stream and free storage
36316         when failing.
36317
36318 2003-09-14  Karl Berry  <karl@gnu.org>
36319
36320         * config/srclist.txt (strdup.c): disable for c89 changes.
36321
36322 2003-09-14  Jim Meyering  <jim@meyering.net>
36323
36324         * lib/getloadavg.c: Correct cpp indentation.
36325         * lib/strdup.c: Likewise.
36326         * lib/vasnprintf.c: Likewise.
36327
36328 2003-09-14  Bruno Haible  <bruno@clisp.org>
36329
36330         * modules/fwriteerror: New file.
36331         * MODULES.html.sh (func_all_modules): Add fwriteerror.
36332
36333 2003-09-14  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/fwriteerror.h: New file.
36336         * lib/fwriteerror.c: New file.
36337
36338 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36339
36340         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36341         modules/xgethostname, modules/xalloc: Depend on exit.
36342
36343 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36344
36345         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36346
36347         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36348         and AC_MINIX, too, so that their extensions are available.
36349
36350         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
36351         This macro has been superseded by gl_BACKUPFILE.
36352
36353         More patches to assume C89 or better.
36354
36355         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36356
36357         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36358         unconditionally.
36359         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36360         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36361         Include <string.h>, <stdlib.h> unconditionally.
36362         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36363         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36364         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36365         headers or for string.h.
36366         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36367         or strtoul.
36368
36369         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36370         headers.
36371         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36372         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36373         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36374         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36376         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36377         memcpy, memset.
36378         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36379         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36380         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36381         strtol.
36382         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36383         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36384         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36385         strtoul.
36386
36387 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36388
36389         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36390         * lib/obstack.c [!defined _LIBC]: Likewise.
36391         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36392         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36393         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36394
36395         More changes to assume C89 or better.
36396
36397         * lib/error.c (error_tail): Assume vprintf.
36398
36399         * lib/argmatch.c (getenv): Remove decl.
36400         * lib/progreloc.c (get_full_program_name): Define via prototype.
36401         * lib/setenv.c (clearenv): Likewise.
36402         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36403         needed.
36404         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36405         (malloc, memcpy): Remove decls.
36406         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36407         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36408         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36409         (memcpy): Remove macro.
36410         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36411         (__P): Remove.  All uses removed.
36412         (PTR): Remove.  All uses changed to void *.
36413         (CHAR_BIT, NULL): Remove.
36414         (spaces, zeros, memset_space, memset_zero)
36415         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36416         Remove.
36417         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36418         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36419         Define with prototype.
36420         Remove now-unnecessary prototype decl.
36421         (extra_args_spec): Assume ANSI C.  All uses changed.
36422         (extra_args_spec_iso): Remove.
36423         (my_strftime, emacs_strftimeu): Define via prototype.
36424         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36425         unconditionally.
36426         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36427         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36428         (strtoul, strtol): Remove decls.
36429         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36430         LONG_MAX): Remove.
36431         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36432         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
36433         (LOCALE_PARAM_PROTO): New macro.
36434         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36435         (INTERNAL (strtol), strtol): Define with a prototype.
36436         (PARAMS): Remove.  All uses removed.
36437         * lib/tempname.c: Include <string.h> unconditionally.
36438         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36439         * lib/xgethostname.c (main): Define with a prototype.
36440         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36441         Include <stdlib.h> unconditionally.
36442         (calloc, malloc, realloc, free): Remove decls.
36443         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36444         Include <stdlib.h> unconditionally.  Sort include file names.
36445         (strtod): Remove.
36446         (xstrtod): Define with a prototype.
36447         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36448         (strtol, strtoul): Remove decls.
36449
36450 2003-09-11  Paul Eggert  <eggert@twinsun.com>
36451
36452         More patches to assume C89 or better.
36453         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36454         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36455         string.h, memchr, STDC_HEADERS.
36456
36457 2003-09-11  Paul Eggert  <eggert@twinsun.com>
36458
36459         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
36460         Include <stdlib.h>, <string.h> unconditionally.
36461         Remove now-unnecessary cast to char *.
36462         * lib/strnlen.c: Include <string.h> unconditionally.
36463         * lib/yesno.c (yesno): Define with a prototype.
36464
36465 2003-09-11  Bruno Haible  <bruno@clisp.org>
36466
36467         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
36468
36469 2003-09-10  Jim Meyering  <jim@meyering.net>
36470
36471         * lib/error.c: Correct indentation of cpp directives.
36472
36473 2003-09-10  Bruno Haible  <bruno@clisp.org>
36474
36475         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
36476         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
36477         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
36478         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
36479         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
36480         <stdlib.h> and <string.h> checks.
36481         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
36482         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
36483
36484 2003-09-10  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/strcspn.c: Include <string.h> unconditionally.
36487         * lib/strpbrk.c: Include <string.h> unconditionally.
36488         * lib/strstr.c: Include <string.h> unconditionally.
36489         * lib/unicodeio.c: Include <string.h> unconditionally.
36490         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
36491         * lib/unsetenv.c: Likewise.
36492         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
36493         * lib/yesno.c: Include <stdlib.h> unconditionally.
36494         (rpmatch): Add prototype.
36495
36496 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36497
36498         More patches to assume C89 or better.
36499         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
36500         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
36501         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
36502         or for string.h.
36503         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
36504         stdlib.h.
36505         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
36506         C headers.
36507         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
36508         string.h.
36509         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
36510         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
36511         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
36512         or for string.h.
36513         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
36514         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
36515         C headers.
36516         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
36517         memcpy.
36518         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
36519         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
36520         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
36521         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
36522         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
36523         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
36524         string.h, free.
36525         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
36526         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
36527         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
36528         C headers, or for string.h.
36529         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
36530         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
36531         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
36532         headers, memory.h, stdlib.h, string.h, strings.h.
36533         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
36534         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
36535         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
36536         strchr.
36537         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
36538         headers, memory.h, string.h.
36539         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
36540         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
36541         free.
36542         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
36543         headers.
36544         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
36545         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
36546         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
36547         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
36548         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
36549
36550 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36551
36552         More K&R removal.
36553
36554         * lib/acosl.c (main): Use a prototype.
36555         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
36556         tanl.c: Likewise.
36557
36558         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
36559
36560         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
36561         (getopt, etopt_long, getopt_long_only, _getopt_internal)
36562         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
36563         with a prototype.
36564         * lib/getopt.c (const): Remove macro.
36565         Include <string.h> unconditionally.
36566         (my_index): Remove; all uses changed to strchr.
36567         (strlen): Remove decl.
36568         (exchange): Remove forward decl; no longer needed.
36569         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
36570         Define with prototype.
36571         * lib/getopt1.c (const): Remove macro.
36572         (getopt_long, getopt_long_only, main): Define with prototype.
36573
36574         * lib/getugroups.c: Include <string.h> unconditionally.
36575
36576         * lib/getusershell.c: Include <stdlib.h> unconditionally.
36577         (getusershell, setusershell, endusershell, readname, main):
36578         Define with prototypes.
36579
36580         * lib/group-member.c: Include group-member.h first.
36581         Include <stdlib.h> unconditionally.
36582
36583         * lib/hard-locale.c: Include hard-locale.h first.
36584         Include <stdlib.h>, <string.h> unconditionally.
36585
36586         * lib/hash.c (free, malloc): Remove decls.
36587         Include <stdlib.h> unconditionally.
36588
36589         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
36590         (getenv): Do not declare.
36591
36592         * lib/idcache.c: Include <string.h> unconditionally.
36593
36594         * lib/long-options.c: Include long-options.h first, to test interface.
36595         Include <stdlib.h> unconditionally.
36596
36597         * lib/makepath.c: Include makepath.h first, to test interface.
36598         Include <stdlib.h> and <string.h> unconditionally.
36599
36600         * lib/linebuffer.c: Include <stdlib.h>.
36601         (free): Remove decl.
36602
36603         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
36604         stddef.h. rpl_malloc returns void *, not char *.
36605         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
36606         prototype.
36607
36608         * lib/md5.h: Include <limits.h> unconditionally.
36609         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
36610         (__P): Remove; all uses removed.
36611         * lib/md5.c: Include "md5.h" first.
36612         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
36613         md5_buffer, md5_process_bytes, md5_process_block):
36614         Define with prototypes.
36615         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
36616         * lib/sha.c: Include "sha.h" first.
36617         Include <stdlib.h>, <string.h> unconditionally.
36618
36619         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
36620         * lib/memcmp.c (__ptr_t): Likewise.
36621         * lib/memrchr.c (__ptr_t): Likewise.
36622         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
36623         Include <string.h> unconditionally.
36624         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
36625         * lib/memchr.c: Include <stdlib.h> unconditionally.
36626         * lib/memchr.c (LONG_MAX): Remove.
36627         * lib/memrchr.c (LONG_MAX): Likewise.
36628         * lib/memchr.c (__memchr): Define via a prototype.
36629         * lib/memrchr.c (__memrchr): Likewise.
36630         * lib/memcmp.c (__P): Remove, and remove all uses.
36631         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
36632         Remove forward decls; no longer needed.
36633         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
36634         Use types required by C89 in prototype.
36635
36636         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
36637         * lib/savedir.c: Likewise.
36638         * lib/mkdir.c (free): Remove decl.
36639         * lib/rmdir.c (rmdir): Define with a prototype.
36640         * lib/savedir.c: Include savedir.h first, to test interface.
36641
36642         * lib/mktime.c (STDC_HEADERS): Remove.
36643         Include <stdlib.h>, <string.h> unconditionally.
36644
36645         * lib/modechange.c: Include <stdlib.h> unconditionally.
36646         (malloc): Remove decl.
36647
36648         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
36649         (free): Remove decl.
36650
36651         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36652         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36653         (This type really should be intptr_t, but that's a C99ism.)
36654         (_obstack_memcpy): Remove: all uses changed to memcpy.
36655         Include <string.h> unconditionally.
36656         (struct obstack): Assume __STDC__ for types of members
36657         chunkfun, freefun, extra_arg.
36658         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36659         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36660         obstack_begin, obstack_specify_allocation,
36661         obstack_specify_allocation_with_arg, obstack_chunkfun,
36662         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36663         Remove unprototyped decls and the macros that use them.
36664         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
36665         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36666         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36667         (defined __STDC__ && __STDC__)]:
36668         Remove nonprototyped code.
36669         Include <stdlib.h> unconditionally.
36670         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36671         _obstack_allocated_p, _obstack_free, obstack_free,
36672         _obstack_memory_used, print_and_abort):
36673         Define using prototypes.
36674         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36675         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36676         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36677         obstack_next_free, obstack_object_size, obstack_room) [0]:
36678         Remove unused, unprototyped code.
36679
36680         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36681
36682         * lib/physmem.c (physmem_total, physmem_available, main): Define
36683         with prototypes.
36684
36685         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36686         (main): Define with a prototype.
36687
36688         * lib/posixver.c (getenv): Remove decl.
36689
36690         * lib/putenv.c (malloc): Returns void *, not char *.
36691         Include <string.h> unconditionally.
36692         (strchr, memcpy, NULL): Do not define.
36693
36694         * lib/readtokens.c: Include readtokens.h first, to test interface.
36695         Include <stdlib.h>, <string.h> unconditionally.
36696         (init_tokenbuffer): Define with a prototype.
36697
36698         * lib/regex.c (PARAMS): Remove.  All uses removed.
36699         All uses of _RE_ARGS removed, too.
36700         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36701         unconditionally.
36702         (bzero): Assume memset exists.
36703         (memcmp, memcpy, NULL): Remove.
36704         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36705         char, or assignments to local vars of type signed char.
36706         (init_syntax_once, PREFIX(extract_number_and_incr),
36707         PREFIX(print_partial_compiled_pattern),
36708         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36709         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36710         PREFIX(regex_grow_registers), PREFIX(regex_compile),
36711         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36712         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36713         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36714         wcs_compile_range, byte_compile_range, truncate_wchar,
36715         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36716         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36717         count_mbs_length, wcs_re_match_2_internal,
36718         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36719         PREFIX(alt_match_null_string_p),
36720         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36721         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36722         regfree, PREFIX(extract_number)): Define with prototype.  Remove
36723         now-unnecessary declaration, if any.
36724         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36725         regcomp, regexec):
36726         Remove now-unnecessary casts among pointer types.
36727         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
36728
36729         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36730         (free): Remove decl.
36731
36732         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36733
36734         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36735         (free): Remove decl.
36736
36737         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36738         * lib/xgetcwd.c: Likewise.
36739
36740         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36741         (free): Remove decl.
36742
36743         * lib/strchrnul.c (strchrnul): Define with a prototype.
36744         Fix bug: c_in was not converted to char before searching.
36745
36746         The following changes are not K&R related:
36747
36748         * lib/group-member.h: Include <sys/types.h>, so that this file is
36749         self-contained.
36750         * lib/makepath.h: Likewise.
36751
36752         * lib/getusershell.c (readname, default_index, line_size, readname):
36753         Use size_t, not int, for sizes.
36754         (readname): If the size overflows, report an error instead of
36755         looping forever.
36756
36757 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36758
36759         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36760         libc.
36761
36762 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36763
36764         * README: New section: portability guidelines.
36765
36766 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36767
36768         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36769         C89 spec.
36770
36771 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36772
36773         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36774
36775 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36776
36777         Assume C89 or better; remove K&R cruft.
36778         A few of these changes were first proposed by Derek Robert Price
36779         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36780
36781         * lib/addext.c: Include <string.h> unconditionally.
36782         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36783         Don't declare getenv or malloc.
36784
36785         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36786         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36787         (NULL): Remove.
36788         (find_stack_direction, alloca): Use prototypes.
36789
36790         * lib/atexit.c (atexit): Define using a prototype.
36791
36792         * lib/basename.c, dirname.c, stripslash.c:
36793         Include <string.h> unconditionally.
36794
36795         * lib/bcopy.c: Include <stddef.h>.
36796         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36797
36798         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36799
36800         * lib/error.h (error, error_at_line, error_print_progname)
36801         [! (defined (__STDC__) && __STDC__)]: Remove decls.
36802         * lib/error.c: Include error.h first, to check interface.
36803         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36804         (VA_START): Remove; all uses changeed to va_start.
36805         (exit, strerror): Remove decls.
36806         (error_print_progname): Prototype uncondionally.
36807         Don't include <errno.h>; no longer needed.
36808         (private_strerror): Remove.
36809         (error_tail): Always define.
36810         (error, error_at_line): Assume C89 or better; always use prototypes.
36811         * lib/fatal.c: Include "fatal.h" first, to test interface.
36812         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36813         (VA_START): Remove; all uses changed to va_start.
36814         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36815         this case.
36816         (exit): Remove decl.
36817         (fatal): Prototype unconditionally.  Assume va_start works.
36818         Abort at end, to pacify gcc.
36819
36820         * lib/euidaccess.c (main): Define with a prototype.
36821
36822         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36823
36824         * lib/exitfail.c: Include <stdlib.h> unconditionally.
36825
36826         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
36827         prototypes.
36828         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36829         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36830         (getenv): Remove decl.
36831         (fnmatch): Define using a prototype.
36832         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36833         (FCT): Define using a prototype.
36834
36835         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36836
36837         * lib/gethostname.c: Include <stddef.h>.
36838         (gethostname): Define with prototype.  Length is size_t, not int.
36839
36840 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36841
36842         Assume C89 or better; remove K&R cruft.
36843         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36844         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36845         string.h, getenv, malloc.
36846         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36847         headers.
36848         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36849         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36850         do not check for strerror.
36851         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36852         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36853         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36854         do not check for doprnt or vprintf.
36855         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
36856         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36857
36858 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36859
36860         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36861         getversion.c should have been removed then, but was accidentally
36862         preserved.
36863
36864         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36865         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36866
36867 2003-09-08  Karl Berry  <karl@gnu.org>
36868
36869         * config/config.sub, config.guess, srclistvars.sh: update from savannah
36870                 config, forget about prep.
36871
36872         * config/depcomp, missing: update from automake.
36873
36874 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36875
36876         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
36877         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36878
36879 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36880
36881         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36882         copy_tm_result.  Bug reported by Simon Josefsson in
36883         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36884
36885 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36886
36887         * m4/time_r.m4: New file.
36888         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36889         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36890         is. Check for timegm declaration.
36891         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36892         Do not check for gmtime_r.
36893         Replace mktime if __mktime_internal does not exist and if mktime
36894         hasn't been replaced already.
36895
36896 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36897
36898         * lib/time_r.c, lib/time_r.h: New files.
36899
36900         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36901         __localtime_r.
36902         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
36903         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36904
36905         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36906         __gmtime_r.
36907         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36908         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36909         Include <time_r.h>.
36910
36911         * lib/timegm.c: Switch to glibc implementation, with the following
36912         changes:
36913         [defined HAVE_CONFIG_H]: Include <config.h>.
36914         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36915         (__mktime_internal) [!defined _LIBC]: New decl.
36916         (__gmtime_r) [!defined _LIBC]: New macro and function.
36917         (timegm): Use a prototype, since gnulib assumes C89.
36918         Do not bother declaring tmp to be const, as it's not really usefu.
36919         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36920         (timegm): Declare only if HAVE_DECL_TIMEGM.
36921
36922 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36923
36924         * MODULES.html.sh (func_all_modules): Add time_r.
36925         * modules/time_r: New file.
36926         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36927         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
36928
36929 2003-09-03  Paul Eggert  <eggert@twinsun.com>
36930
36931         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36932         Bug reported by Lute Kamstra in
36933         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36934
36935         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36936         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
36937         course with correspondingly smaller numbers for tomorrow and
36938         yesterday.  From Tadayoshi Funaba.  Originally installed into
36939         sh-utils on 1999-08-07, but the patch got lost (I guess during the
36940         coreutils merge?).
36941
36942 2003-08-31  Simon Josefsson  <jas@extundo.com>
36943
36944         * modules/timegm: New file.
36945         * MODULES.html.sh (func_all_modules): Add timegm.
36946
36947 2003-08-31  Simon Josefsson  <jas@extundo.com>
36948
36949         * m4/timegm.m4: New file.
36950
36951 2003-08-31  Simon Josefsson  <jas@extundo.com>
36952
36953         * lib/timegm.h: New file.
36954         * lib/timegm.c: New file.  Based on
36955         wget-1.8.2/src/http.c:mktime_from_utc.
36956
36957 2003-08-31  Karl Berry  <karl@gnu.org>
36958
36959         * lib/argp.h: update from libc.
36960
36961 2003-08-28  Bruno Haible  <bruno@clisp.org>
36962
36963         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36964         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36965         followed by '#define fnmatch fnmatch_posix' gives an error.
36966
36967 2003-08-28  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36970         warning on QNX, which defines O_BINARY to 000000.
36971
36972 2003-08-27  Jim Meyering  <jim@meyering.net>
36973
36974         * m4/mkstemp.m4: Require that the system mkstemp be able to create
36975         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
36976         would fail after 32.  Reported by Danny Levinson.  Details here:
36977         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36978
36979 2003-08-24  Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36982         MSVC7 <stdio.h> is included later.
36983
36984 2003-08-22  Simon Josefsson  <jas@extundo.com>
36985
36986         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36987
36988 2003-08-20  Karl Berry  <karl@gnu.org>
36989
36990         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36991
36992 2003-08-20  Bruno Haible  <bruno@clisp.org>
36993
36994         * modules/progname: New file.
36995         * MODULES.html.sh (func_all_modules): Add progname.
36996
36997 2003-08-20  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/progname.h: New file, from GNU gettext.
37000         * lib/progname.c: New file, from GNU gettext.
37001         * lib/progreloc.c: New file, from GNU gettext.
37002
37003 2003-08-19  Jim Meyering  <jim@meyering.net>
37004
37005         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
37006         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
37007
37008 2003-08-19  Bruno Haible  <bruno@clisp.org>
37009
37010         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
37011         more.
37012
37013 2003-08-19  Bruno Haible  <bruno@clisp.org>
37014
37015         * lib/xstrdup.c: Assume <string.h> exists.
37016
37017 2003-08-18  Paul Eggert  <eggert@twinsun.com>
37018
37019         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
37020         in makefile rules.
37021
37022 2003-08-18  Jim Meyering  <jim@meyering.net>
37023
37024         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
37025         * m4/lib-ld.m4: Likewise.
37026
37027 2003-08-18  Jim Meyering  <jim@meyering.net>
37028
37029         * lib/setenv.h: Indent nested cpp directive.
37030         * lib/vasnprintf.c: Remove trailing blanks.
37031
37032 2003-08-17  Simon Josefsson  <jas@extundo.com>
37033
37034         * modules/xstrndup: New file.
37035         * MODULES.html.sh (func_all_modules): Add xstrndup.
37036
37037 2003-08-17  Simon Josefsson  <jas@extundo.com>
37038
37039         * modules/argp: Fix autoconf macro name. Add more dependencies.
37040
37041 2003-08-17  Simon Josefsson  <jas@extundo.com>
37042
37043         * m4/xstrndup.m4: New file.
37044
37045 2003-08-17  Simon Josefsson  <jas@extundo.com>
37046
37047         * m4/argp.m4: New file.
37048
37049 2003-08-17  Simon Josefsson  <jas@extundo.com>
37050             Bruno Haible  <bruno@clisp.org>
37051
37052         * lib/xstrndup.h: New file.
37053         * lib/xstrndup.c: New file.
37054
37055 2003-08-17  Bruno Haible  <bruno@clisp.org>
37056
37057         * modules/strndup (Files, Include): Add lib/strndup.h.
37058
37059 2003-08-17  Bruno Haible  <bruno@clisp.org>
37060
37061         * modules/euidaccess (Files): Add lib/euidaccess.h.
37062
37063 2003-08-17  Bruno Haible  <bruno@clisp.org>
37064
37065         * lib/strndup.h: New file.
37066
37067 2003-08-17  Bruno Haible  <bruno@clisp.org>
37068
37069         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
37070         like AC_GNU_SOURCE.
37071         * modules/extensions (configure.ac): Comment out the invocation of
37072         gl_USE_SYSTEM_EXTENSIONS.
37073
37074 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37075
37076         Merges from coreutils, etc.
37077         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
37078         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
37079         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37080         fixing a typo.
37081         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37082         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
37083
37084 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37085
37086         Document merge from coreutils.
37087         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
37088         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
37089         * modules/utime: Add m4/utimes-null.m4.
37090
37091 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37092
37093         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
37094         space, undoing this 2003-08-12 change:
37095         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37096
37097 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37098
37099         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
37100         strtoul.c from libc, undoing this 2003-08-12 change:
37101         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37102
37103 2003-08-16  Jim Meyering  <jim@meyering.net>
37104
37105         Merges from coreutils.
37106         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
37107         prefix.  Adjust cache variables similarly.  Create 500 rather than
37108         just 300 files, to exercise bug on Darwin6.5, too.
37109         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37110         $missing_dir.
37111         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37112         AM_SYS_POSIX_TERMIOS.
37113         Reported by mkc@mathdogs.com.
37114         Also change use of $am_cv_sys_posix_termios
37115         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
37116         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37117         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37118         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37119         in /proc/mounts until it finds one with matching device number.  This
37120         is unnecessary when the FILE argument *is* a mount point.  No stat call
37121         is necessary in that case.  So, disable the statvfs-testing code on
37122         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
37123         as RedHat bug# 84846.
37124         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37125         to 1MB, so as not to render systems with no stack size limit (e.g.,
37126         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
37127         Include <unistd.h>.  On some systems,
37128         it is required for the definition of _SC_PAGESIZE.
37129
37130 2003-08-16  Jim Meyering  <jim@meyering.net>
37131
37132         Merge from coreutils.
37133         * lib/xstrtoimax.c: #else #if -> #elif.
37134         * lib/xstrtoumax.c: Likewise.
37135
37136 2003-08-16  Jim Meyering  <jim@meyering.net>
37137
37138         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37139         * m4/utimes.m4: Removed.
37140         * m4/utimes-null.m4: Renamed from utimes.m4.
37141
37142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37143         to 1MB, so as not to render systems with no stack size limit (e.g.,
37144         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
37145         Include <unistd.h>.  On some systems,
37146         it is required for the definition of _SC_PAGESIZE.
37147
37148 2003-08-16  Jim Meyering  <jim@meyering.net>
37149         and Paul Eggert  <eggert@cs.ucla.edu>
37150
37151         Merges from coreutils, etc.
37152
37153         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37154         using the latest version from cvs.  This avoids problems with #line
37155         directives using a vendor (Sun) compiler.
37156         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37157         Don't set GETGROUPS_LIB here; now it's
37158         done via getgroups.m4's wrapper function.
37159         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37160         rather than just in sh-util/configure.in, so that the
37161         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37162         same.
37163         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37164         AC_FUNC_GETLOADAVG where to find getloadavg.c.
37165         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37166         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37167         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37168         Remove code that is now done by the newly-required macros.
37169         Append $(EXEEXT) to DF_PROG.
37170         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37171         Do not invoke or require the following here,
37172         since prereq.m4 or some gnulib .m4 now does this for us:
37173         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37174         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37175         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37176         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37177         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37178         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37179         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37180         AC_FUNC_OBSTACK.
37181         Do not replace the following functions, as this is now the job
37182         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37183         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37184         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37185         atexit getpass, strdup, getpagesize.
37186         Replace 'raise'.
37187         Do not check for the following functions, as this is now the job
37188         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37189         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
37190         setregid.
37191         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37192         Check for sys/sysctl.h.
37193         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37194         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
37195         of checking for ssize_t ourselves.
37196
37197         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37198         Require every macro that gnulib/modules/* suggests for us.
37199         (jm_PREREQ_ADDEXT): New macro.
37200         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37201         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37202
37203         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37204         (gl_PHYSMEM): Use it.
37205         Also check for `table' function.
37206         Check for new headers and functions.
37207         Add check for sys/sysmp.h.
37208         With suggestions from Kaveh Ghazi.
37209         Ignore headers that are present but cannot be compiled.  This
37210         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37211         C 5.4.
37212
37213 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37214
37215         Document merge from coreutils.
37216         * modules/userspec: Depend on posixver.
37217         * modules/strftime: Depend on tzset.
37218
37219 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37220
37221         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37222         rather than tab, after '#' in shell-script copyright notices.
37223         Suggested by Bruno Haible.
37224
37225 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37226
37227         * config/srclist-update: Use three spaces, rather than tab, after '#'
37228         in shell-script copyright notices.  Suggested by Bruno Haible.
37229         Remove unnecessary parenthesization in regular expression.
37230
37231 2003-08-15  Jim Meyering  <jim@meyering.net>
37232
37233         Merge from coreutils.
37234         * lib/xgethostname.c: Include <stdlib.h>.
37235         (xghostname): Don't exit for anything other than memory-related
37236         failure; just return NULL.
37237         * lib/userspec.c: Include "posixver.h".
37238         (parse_user_spec): Accept `.' as a separator only
37239         in pre-POSIX-200112 mode.
37240         * lib/strtoimax.c: Use #elif rather than #else #if.
37241         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37242         Remove function, now that we can rely on a working tzset function.
37243         [!_LIBC]: Ensure that the required autoconf test has been run.
37244         [!defined _NL_CURRENT && HAVE_STRFTIME]:
37245         Use underlying_strftime for %r.
37246         * lib/sha.c: Merge in some clean-up and optimization changes from
37247         glibc.
37248         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37249         Ensure that it is a multiple of 64.
37250         Rearrange loop exit tests so as to avoid performing an
37251         additional fread after encountering an error or EOF.
37252         * lib/realloc.c: Update copyright date.
37253
37254 2003-08-15  Jim Meyering  <jim@meyering.net>
37255         and Paul Eggert  <eggert@twinsun.com>
37256
37257         Merge from coreutils.
37258         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37259         member but strut utmpx does not.  Needed for AIX 4.3.3.
37260         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37261
37262 2003-08-15  Jim Meyering  <jim@meyering.net>
37263         and Paul Eggert  <eggert@cs.ucla.edu>
37264
37265         Merges from coreutils, etc.
37266         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37267         Require gl_FUNC_TZSET_CLOBBER.
37268         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37269         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37270         members.
37271
37272 2003-08-14  Paul Eggert  <eggert@twinsun.com>
37273
37274         Help the merge from coreutils.
37275         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37276         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37277         * m4/tzset.m4: Use it too.
37278
37279 2003-08-14  Paul Eggert  <eggert@twinsun.com>
37280
37281         * modules/tzset: New file.
37282
37283 2003-08-14  Jim Meyering  <jim@meyering.net>
37284
37285         Merges from coreutils.
37286         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37287         variable names, rather than @FNMATCH_H@.
37288         * modules/alloca: Likewise for $(ALLOCA_H).
37289
37290         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37291         the three copies of the literal target, `fnmatch.h'.
37292         * modules/alloca (alloca.h): Likewise.
37293
37294 2003-08-14  Jim Meyering  <jim@meyering.net>
37295
37296         Merge from coreutils.
37297         * m4/tzset.m4: New file.
37298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37299         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37300         otherwise, AIX 5.1 systems would end up using the latter.
37301         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37302         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
37303         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37304         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
37305
37306 2003-08-14  Jim Meyering  <jim@meyering.net>
37307
37308         Merge from coreutils.
37309         * lib/obstack.h: Whitespace changes.
37310         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37311         and xcalloc return values.
37312         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37313         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
37314         hang on OSF/1 5.1 for DIR on both local and remote file systems.
37315         Reported by (and fix confirmed by) Nelson H. F. Beebe.
37316         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37317         error from mntctl.
37318         Use mntctl's return value to drive the entry-processing loop, since
37319         we can't rely on the value of the vmt_length member in the last
37320         entry.  On some systems doing so could result in exhausting
37321         virtual memory.  Based in part on a patch from Mike Jetzer.
37322
37323 2003-08-14  Jim Meyering  <jim@meyering.net>
37324         and Paul Eggert  <eggert@twinsun.com>
37325
37326         Merges from coreutils, plus other fixes.
37327         * lib/physmem.c: Merge in portability changes from gcc/libiberty
37328         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
37329         for credits and details.  Thanks to Kaveh Ghazi for helping
37330         to keep these files in sync.
37331         (ARRAY_SIZE): Define it.
37332         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37333         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37334         (memcasecmp): Don't assume size_t fits in unsigned int.
37335         Remove casts and duplicate code.
37336         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37337         (memcpy): Remove definition.
37338         Merge in some clean-up and optimization changes from glibc.
37339         [BLOCKSIZE]: Move definition to top of file.
37340         Ensure that it is a multiple of 64.
37341         Rearrange loop exit tests so as to avoid performing an
37342         additional fread after encountering an error or EOF.
37343         * lib/md5.h (md5_uintptr): Define.
37344         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37345         return to the initial working directory.  Preserve errno
37346         for caller.
37347         * lib/idcache.c: Include "xalloc.h".
37348         (xmalloc, xrealloc): Remove decls.
37349         (getuser): Remove casts no longer required in C89.
37350         * lib/human.c: Include stdio.h, for sprintf.
37351         * lib/group-member.c: Include "xalloc.h".
37352         (xmalloc, xrealloc): Remove decls.
37353         (get_group_info): Remove casts no longer required in C89.
37354         * lib/getusershell.c (readname): Remove casts no longer required in
37355         C89.
37356         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37357         * lib/getline.c: Whitespace fix, from coreutils.
37358
37359 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37360
37361         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37362         Check for isascii.
37363
37364         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37365         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37366         Undo previous (whitespace-only) change.
37367
37368 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37369
37370         * lib/exclude.c: Include <ctype.h>
37371         (IN_CTYPE_DOMAIN): New macro.
37372         (is_space): New fn.
37373         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37374         and empty lines.
37375
37376         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37377         Undo previous (whitespace-only) change.
37378
37379 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37380
37381         * config/srclist-update: Change update back to the old behavior,
37382         leaving whitespace alone.  Use one 'sed' command rather than a
37383         pipeline.
37384         (fixlicense): Now a variable, not a function.
37385         (remove_trailing_blanks): Remove.
37386         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37387         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37388         Undo previous (whitespace-only) change.
37389
37390 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37391
37392         Merge from coreutils.
37393         * modules/euidaccess: Add lib_SOURCES, include for new
37394         file euidaccess.h
37395
37396 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37397
37398         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37399         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37400         Normalize leading white space and remove trailing white space.
37401
37402         Merge from coreutils
37403         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37404
37405         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37406         0.12.1.  These files are now being upgraded automatically by
37407         ../config/srclist-update.
37408
37409 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37410
37411         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37412         Normalize leading white space and remove trailing white space.
37413         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37414         notice, as per ../config/srclist-update.
37415
37416         Merge from coreutils.
37417         * lib/euidaccess.h: New file.
37418         * lib/euidaccess.c: Include it.
37419         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37420         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
37421         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37422
37423 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37424
37425         * config/srclist-update: Add copyright notice.
37426         (remove_id_lines, remove_trailing_blanks): New constants.
37427         (fixfile): Use them to normalize spacing a bit in copied files.
37428         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37429         Normalize leading white space and remove trailing white space.
37430
37431         * config/texinfo.tex: Sync with texinfo.
37432
37433         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37434         strtoul.c from libc, to merge coreutils whitespace changes.
37435
37436         * config/srclist.txt: Get the following m4 files from gettext:
37437         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37438         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37439         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37440         wint_t.m4.
37441
37442 2003-08-12  Karl Berry  <karl@gnu.org>
37443
37444         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37445         been made.
37446
37447 2003-08-11  Paul Eggert  <eggert@twinsun.com>
37448
37449         * modules/gnu-source, m4/gnu-source.m4:
37450         Remove; we're assuming Autoconf 2.54 or later now.
37451         Suggested by Bruno Haible.
37452         * MODULES.html.sh (func_all_modules): Remove gnu-source.
37453
37454 2003-08-11  Bruno Haible  <bruno@clisp.org>
37455
37456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
37457
37458 2003-08-11  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
37461         (vasnprintf): Use it instead of wcslen.
37462
37463 2003-08-11  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
37466         value to ensure that _Bool promotes to int. Use #define for _Bool when
37467         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
37468
37469 2003-08-10  Karl Berry  <karl@gnu.org>
37470
37471         * lib/regex.h: update from libc (whitespace fix).
37472
37473 2003-08-09  Paul Eggert  <eggert@twinsun.com>
37474
37475         Merge some files from coreutils.  These changes were
37476         originally made by Jim Meyering.
37477         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
37478         many older Unixes require this.
37479         * lib/alloca.c (alloca): Remove cast to argument of free;
37480         no longer needed in C89.
37481         * lib/alloca_.h, regex.h: Fix white space to match
37482         what GNU indent does.
37483
37484 2003-08-09  Paul Eggert  <eggert@twinsun.com>
37485
37486         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
37487         apparently Emacs's Unicode mode got confused before my 2003-08-05
37488         checkin.
37489
37490 2003-08-08  Paul Eggert  <eggert@twinsun.com>
37491
37492         * m4/extensions.m4: New file.
37493         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
37494         Require gl_USE_SYSTEM_EXTENSIONS.
37495         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
37496         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
37497
37498 2003-08-08  Paul Eggert  <eggert@twinsun.com>
37499
37500         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
37501         * modules/extensions, modules/gnu-source: New files.
37502         * modules/timespec, modules/unlocked-io: Depend on extensions.
37503
37504 2003-08-07  Paul Eggert  <eggert@twinsun.com>
37505
37506         * modules/restrict: New file.
37507         * MODULES.html.sh (func_all_modules): Add restrict.
37508         * modules/regex: Depend on restrict.
37509
37510 2003-08-07  Paul Eggert  <eggert@twinsun.com>
37511
37512         * m4/restrict.m4: New file.
37513         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
37514
37515 2003-08-07  Bruno Haible  <bruno@clisp.org>
37516
37517         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
37518         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
37519
37520 2003-08-07  Bruno Haible  <bruno@clisp.org>
37521
37522         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
37523         makes the module 'getndelim2' compatible with the module 'getline'.
37524
37525 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37526
37527         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
37528         byte with "\201" to avoid glitches when editing that source file
37529         with multi-gnome-terminal.
37530
37531 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37532
37533         * lib/bumpalloc.h: Remove.
37534
37535 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37536
37537         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
37538         * modules/bumpalloc: Remove.
37539
37540 2003-08-04  Paul Eggert  <eggert@twinsun.com>
37541
37542         * lib/getloadavg.c: Change copyright notice and spacing to conform to
37543         GNU coding style.
37544
37545         Merge from coreutils.
37546         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
37547         1. From glibc.
37548         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
37549         from Karl Berry, implemented by Jim Meyering.
37550         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
37551         from Dmitry V. Levin.
37552         Remove anachronistic cast of xrealloc.
37553         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
37554         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
37555         type. Otherwise, it wouldn't compile with at least /bin/cc on
37556         ymp-cray-unicos9.0.2.X.
37557         Combine two mostly-identical uses of alloca into one.
37558         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
37559
37560 2003-08-04  Dave Love  <d.love@dl.ac.uk>
37561
37562         [From Emacs.]
37563
37564         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
37565         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
37566         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
37567         obsolete NLIST_NAME_UNION.
37568         [__GNU__]: Undef BSD and FSCALE.
37569         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
37570
37571 2003-08-03  Paul Eggert  <eggert@twinsun.com>
37572
37573         * lib/stdbool_.h (_Bool): Make it signed char, instead of
37574         an enum type, so that it's guaranteed to promote to int.  See:
37575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
37576
37577 2003-08-03  Karl Berry  <karl@gnu.org>
37578
37579         * config/depcomp: update from automake.
37580
37581 2003-07-31  Paul Eggert  <eggert@twinsun.com>
37582
37583         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
37584         (strerror): Don't assume that a printable int fits in 14 bytes.
37585
37586 2003-07-31  Bruno Haible  <bruno@clisp.org>
37587
37588         * modules/getpass-gnu: New file.
37589         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
37590
37591 2003-07-31  Bruno Haible  <bruno@clisp.org>
37592
37593         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
37594
37595 2003-07-24  Karl Berry  <karl@gnu.org>
37596
37597         * config/missing: update from automake.
37598
37599 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
37600             Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
37603         * lib/getline.c (getline, getdelim): Likewise.
37604         Remove _GNU_SOURCE define; now it's defined in config.h through
37605         m4/getline.m4.
37606
37607 2003-07-23  Karl Berry  <karl@gnu.org>
37608
37609         * config/config.sub: update from prep.
37610
37611 2003-07-22  Paul Eggert  <eggert@twinsun.com>
37612
37613         * modules/xalloc (Depends-on): Add exitfail.
37614         * modules/xmemcoll: Likewise.
37615
37616 2003-07-22  Paul Eggert  <eggert@twinsun.com>
37617
37618         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
37619         over-parenthesization in macros.
37620
37621         Sync with coreutils.
37622
37623         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
37624         required by C99.
37625
37626         Use `exit_failure' for xalloc and xmemcoll instead of their own
37627         private exit-failure variables.
37628         * lib/xalloc.h (xalloc_exit_failure): Remove.
37629         * lib/xmalloc.c: Likewise.  Include exitfail.h.
37630         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
37631         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
37632         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
37633         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
37634
37635 2003-07-20  Jim Meyering  <jim@meyering.net>
37636
37637         * modules/closeout (Depends-on): Add exitfail.
37638         Suggestion from Bruno Haible.
37639
37640 2003-07-19  Karl Berry  <karl@gnu.org>
37641
37642         * config/config.sub: update from prep.
37643
37644 2003-07-18  Paul Eggert  <eggert@twinsun.com>
37645
37646         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
37647         Remove.
37648         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
37649         to test that it can stand by itself.  Include "exitfail.h".
37650         Clients should set exit_failure instead.
37651         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
37652
37653 2003-07-18  Bruno Haible  <bruno@clisp.org>
37654
37655         * modules/getndelim2: New file.
37656         * modules/getline: Share files with module getndelim2.
37657         * modules/getnline: Depend on getndelim2 instead of sharing files with
37658         it. Add getnline.c to lib_SOURCES.
37659         * MODULES.html.sh (func_all_modules): Add getndelim2.
37660
37661 2003-07-18  Bruno Haible  <bruno@clisp.org>
37662
37663         * m4/getndelim2.m4: New file.
37664         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37665         invoke gl_PREREQ_GETNDELIM2.
37666         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37667         gl_PREREQ_GETNDELIM2.
37668         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37669         gl_GETNDELIM2.
37670
37671 2003-07-18  Bruno Haible  <bruno@clisp.org>
37672
37673         * lib/getndelim2.h: New file.
37674         * lib/getndelim2.c: Make into a module of its own. Include config.h,
37675         getndelim2.h.
37676         (getndelim2): Make non-static. Change return type to ssize_t.
37677         * lib/getline.h: Change argument names.
37678         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37679         * lib/getnline.c: Include getndelim2.h.
37680
37681 2003-07-18  Andreas Schwab  <schwab@suse.de>
37682
37683         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37684
37685 2003-07-17  Karl Berry  <karl@gnu.org>
37686
37687         * config/config.sub: update from prep.
37688
37689 2003-07-17  Bruno Haible  <bruno@clisp.org>
37690
37691         * modules/getnline: New file.
37692         * modules/getline: Add lib/getndelim2.c to source file list.
37693         * MODULES.html.sh (func_all_modules): Add getnline.
37694
37695 2003-07-17  Bruno Haible  <bruno@clisp.org>
37696
37697         * m4/getnline.m4: New file.
37698
37699 2003-07-17  Bruno Haible  <bruno@clisp.org>
37700
37701         * m4/Makefile.am.in: Remove file.
37702         * m4/Makefile.am: Remove file.
37703         * m4/Makefile.in: Remove file.
37704
37705 2003-07-17  Bruno Haible  <bruno@clisp.org>
37706
37707         * lib/getnline.h: New file.
37708         * lib/getnline.c: New file.
37709         * lib/getndelim2.c: New file, extracted from getline.c.
37710         (getndelim2): Renamed from getdelim2, with added nmax argument.
37711         * lib/getline.c: Include getndelim2.c.
37712         (getdelim2): Moved out to getndelim2.c.
37713         (getline, getdelim): Update.
37714
37715 2003-07-17  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/Makefile.am: Remove file.
37718         * lib/Makefile.in: Remove file.
37719
37720 2003-07-17  Bruno Haible  <bruno@clisp.org>
37721
37722         * configure.in: Remove file.
37723         * Makefile.in: Remove file.
37724
37725 2003-07-17  Bruno Haible  <bruno@clisp.org>
37726
37727         * MODULES.html.sh: Put the </BODY> right before </HTML>.
37728
37729 2003-07-16  Karl Berry  <karl@gnu.org>
37730
37731         * config/srclist-update: was running fixlicense twice, which caused
37732                 texinfo.tex to be nullified for some reason.  Simplify,
37733                 $gplsrc is no longer needed as far as I can see?
37734
37735 2003-07-16  Jim Meyering  <jim@meyering.net>
37736
37737         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
37738
37739 2003-07-15  Paul Eggert  <eggert@twinsun.com>
37740
37741         * config/srclist.txt: Get the following files from gettext-runtime/intl
37742         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37743         ref-del.sin.  From Bruno Haible.
37744         * config/srclist-update (fixfile): Change grep pattern again, since the
37745         previous fix didn't work (there was another trailing $).  Use
37746         '[$]' to escape the $s.
37747
37748 2003-07-15  Karl Berry  <karl@gnu.org>
37749
37750         * lib/vasnprintf.c: update from gettext.
37751
37752 2003-07-15  Karl Berry  <karl@gnu.org>
37753
37754         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37755         gets expanded when surrounded by '$'.
37756
37757 2003-07-15  Jim Meyering  <jim@meyering.net>
37758
37759         * modules/save-cwd: Don't depend on error.  From Derek Price.
37760
37761 2003-07-15  Jim Meyering  <jim@meyering.net>
37762
37763         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37764
37765 2003-07-14  Simon Josefsson  <jas@extundo.com>
37766
37767         * modules/mempcpy: New file.
37768         * MODULES.html.sh (func_all_modules): Add mempcpy.
37769
37770 2003-07-14  Simon Josefsson  <jas@extundo.com>
37771
37772         * m4/mempcpy.m4: New file.
37773
37774 2003-07-14  Simon Josefsson  <jas@extundo.com>
37775
37776         * lib/mempcpy.h: New file.
37777         * lib/mempcpy.c: New file.
37778
37779 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37780
37781         * modules/getdate, modules/posixtm: Depend on mktime.
37782
37783 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37784
37785         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37786         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37787         unicodeio.c, unicodeio.h, unlocked-io.h:
37788         Switch from LGPL to GPL.
37789
37790 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37791
37792         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37793         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37794         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37795         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37796         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
37797         updated automatically by ../config/srclist-update.  This changes
37798         their license from LPGL to GPL.
37799
37800 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37801
37802         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
37803         assumed to refer to the root of the most recent stable gettext version.
37804         * config/srclistvars.sh: Add defaults for eggert.
37805         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37806         Match "This program" as well as "The program".  This is needed
37807         for gettext.
37808
37809 2003-07-14  Jim Meyering  <jim@meyering.net>
37810
37811         Don't emit diagnostics.  Let callers do that.
37812         * lib/save-cwd.c: Don't include "error.h".
37813         (save_cwd): Don't call error.  Ensure that errno is valid
37814         when returning nonzero.
37815
37816         * lib/save-cwd.h (restore_cwd): Update prototype.
37817         * lib/save-cwd.c (restore_cwd): Remove two parameters.
37818         Simplify.  Don't call error upon failure.  Let callers do that.
37819         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37820         when auditing is enabled.  But don't bother updating the #if.
37821
37822 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
37823
37824         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37825         it breaks C++ compilation.
37826         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37827
37828 2003-07-10  Simon Josefsson  <jas@extundo.com>
37829
37830         * modules/strchrnul (Makefile.am): Add strchrnul.h.
37831
37832 2003-07-10  Jim Meyering  <jim@meyering.net>
37833
37834         * m4/clock_time.m4: Remove trailing blank.
37835         * m4/intmax_t.m4: Likewise.
37836
37837 2003-07-10  Jim Meyering  <jim@meyering.net>
37838
37839         * lib/vasnprintf.c: Remove trailing blanks.
37840         Make cpp indentation consistent.
37841
37842 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37843
37844         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37845         posixver.c, strftime.c, strnlen.c, strverscmp.c:
37846         Switch from LGPL to GPL.
37847
37848 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37849
37850         * config/srclist.txt: Sort sublists.  Add
37851         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37852         that differ from gnulib for one reason or another; we'd like this list
37853         to be smaller but for now let's document what we have.
37854
37855 2003-07-08  Paul Eggert  <eggert@twinsun.com>
37856
37857         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37858         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
37859         and sweeter "eval x=$x".
37860         * config/srclist.txt: Get lib/argp* from glibc.
37861
37862 2003-07-07  Paul Eggert  <eggert@twinsun.com>
37863
37864         * lib/mktime.c: Fix some boundary cases and remove need for floating
37865         point.
37866
37867         Issue a compile-time diagnostic if time_t is floating point, or if
37868         two's complement arithmetic is not in effect, or if arithmetic
37869         right shift does not propagate the sign.  These assumptions were
37870         all in the original code but they weren't checked.
37871
37872         (TIME_T_MIDPOINT, verify): New macros.
37873         (__isleap): Remove; it has integer overflow problems.
37874         (leapyear): New function, without those problems.
37875         (ydhms_tm_diff): Remove; splitting into two parts.
37876         (ydhms_diff): New function, containing the arithmetic part of
37877         the old ydhms_tm_diff function.  Issue a compile-time
37878         diagnostic if we are not using C99 integer division.
37879         Avoid casts when possible.
37880         (guess_time_tm): New function, containing the checking part of
37881         the old ydhms_tm_diff function.  Return the new value, rather than
37882         the difference between it and the old.  Accept a new argument T
37883         so that *T specifies the old value.  Check for overflow in the result.
37884
37885         (__mktime_internal): Use a time_t offset, not a long int offset.
37886         This undoes the 2003-06-04 change, which is no longer needed now
37887         that we have better overflow checking.
37888         (localtime_offset): Likewise.
37889
37890         (__mktime_internal): Avoid harmful overflow on hosts where time_t
37891         and long are 64-bit but int is only 32-bit.
37892         (ydhms_diff): Use long int to store year1 and yday1.
37893         Issue a compile-time diagnostic if long int is not wide enough.
37894
37895         (__mktime_internal): Use long int to store adjusted year and yday.
37896         Use plain C rather than preprocessor commands, if that doesn't
37897         affect efficiency.
37898         Check for overflow (and try to repair) after each probe
37899         rather than checking only at the very end.  This avoids some bugs
37900         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37901         does not equal GMT offset at maximum time).
37902         Use integer to check for overflow rather than floating point; this
37903         is more portable to non-IEEE hosts, and is a tad faster.
37904         When we detect that we are oscillating between two values,
37905         don't check whether tm_isdst has the requested value, since
37906         we already know the answer.  When tm_isdst has the wrong value,
37907         use a different heuristic to find the right one, based on the
37908         extreme values actually observed in practice in tz2003a,
37909         rather than the (overly optimistic) "previous 3 calendar quarters".
37910
37911         (not_equal_tm, print_tm, check_result): Use "const T" rather than
37912         "T const" to accommodate glibc style.
37913         (check_result): Use less-confusing report format.  "long" -> "long int.
37914         (main): Likewise.
37915         Don't loop if the iteration overflows time_t.
37916         Allow a negative step in the iteration.
37917
37918 2003-07-06  Karl Berry  <karl@gnu.org>
37919
37920         * config/depcomp: update from automake.
37921         * config/config.sub: update from prep.
37922
37923 2003-07-03  Karl Berry  <karl@gnu.org>
37924
37925         * config/config.guess: update from prep.
37926
37927 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37928
37929         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37930         xreadlink.c now includes it unconditionally.
37931
37932 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37933
37934         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37935         having it depend on HAVE_SYS_TYPES_H.
37936
37937 2003-07-01  Bruno Haible  <bruno@clisp.org>
37938
37939         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37940         <sys/types.h> should be sufficient.
37941         Reported by Paul Eggert.
37942
37943 2003-06-26  Karl Berry  <karl@gnu.org>
37944
37945         * config/depcomp: update from automake.
37946
37947 2003-06-26  Bruno Haible  <bruno@clisp.org>
37948
37949         * modules/human: Depend on module stdbool.
37950
37951 2003-06-25  Bruno Haible  <bruno@clisp.org>
37952
37953         * modules/readlink: New file.
37954         * modules/xreadlink: Depend on it.
37955         * MODULES.html.sh (func_all_modules): Add readlink.
37956
37957 2003-06-25  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/readlink.m4: New file.
37960
37961 2003-06-25  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/readlink.c: New file.
37964
37965 2003-06-22  Karl Berry  <karl@gnu.org>
37966
37967         * config/srclist.txt: update mkinstalldirs from automake.
37968         * config/mkinstalldirs: update.
37969
37970 2003-06-22  Bruno Haible  <bruno@clisp.org>
37971
37972         Portability to mingw32.
37973         * m4/ssize_t.m4: New file, from GNU gettext.
37974         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37975         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37976
37977 2003-06-22  Bruno Haible  <bruno@clisp.org>
37978
37979         * modules/safe-read: Add m4/ssize_t.m4.
37980         * modules/xreadlink: Add m4/ssize_t.m4.
37981
37982 2003-06-20  Bruno Haible  <bruno@clisp.org>
37983
37984         Assume C89, so PARAMS isn't needed.
37985         * lib/unicodeio.h (PARAMS): Remove.
37986         * lib/unicodeio.c: Don't use PARAMS.
37987
37988 2003-06-18  Karl Berry  <karl@gnu.org>
37989
37990         * config/config.{guess,sub}: update from prep.
37991
37992 2003-06-18  Jim Meyering  <jim@meyering.net>
37993
37994         Merge changes from coreutils.
37995         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37996         Remove explicit declarations of xmalloc and realloc.
37997         Include xalloc.h.
37998         (read_utmp): Remove anachronistic cast of xmalloc.
37999
38000 2003-06-17  Paul Eggert  <eggert@twinsun.com>
38001
38002         Assume C89, so PARAMS isn't needed.
38003         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
38004         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
38005         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
38006         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
38007         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
38008         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
38009         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
38010         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
38011         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
38012         lib/xstrtod.h, lib/xstrtol.h: Likewise.
38013         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
38014         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
38015         no longer needed. Anyway, config.h should always be included before any
38016         other file.
38017
38018 2003-06-11  Simon Josefsson  <jas@extundo.com>
38019
38020         * modules/sysexits: New file.
38021         * MODULES.html.sh (func_all_modules): Add sysexits.
38022
38023 2003-06-11  Simon Josefsson  <jas@extundo.com>
38024
38025         * lib/sysexit_.h: New file.
38026
38027 2003-06-11  Derek Price  <derek@ximbiot.com>
38028
38029         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
38030         necessary.
38031
38032 2003-06-11  Bruno Haible  <bruno@clisp.org>
38033
38034         * m4/sysexits.m4: New file.
38035
38036 2003-06-10  Simon Josefsson  <jas@extundo.com>
38037
38038         * lib/argp.h: New file, from glibc.
38039         * lib/argp-ba.c: New file, from glibc.
38040         * lib/argp-eexst.c: New file, from glibc.
38041         * lib/argp-fmtstream.c: New file, from glibc.
38042         * lib/argp-fmtstream.h: New file, from glibc.
38043         * lib/argp-fs-xinl.c: New file, from glibc.
38044         * lib/argp-help.c: New file, from glibc.
38045         * lib/argp-namefrob.h: New file, from glibc.
38046         * lib/argp-parse.c: New file, from glibc.
38047         * lib/argp-pv.c: New file, from glibc.
38048         * lib/argp-pvh.c: New file, from glibc.
38049         * lib/argp-xinl.c: New file, from glibc.
38050
38051 2003-06-10  Simon Josefsson  <jas@extundo.com>
38052
38053         * modules/strchrnul: New file.
38054
38055 2003-06-10  Simon Josefsson  <jas@extundo.com>
38056
38057         * modules/argp: New file.
38058
38059 2003-06-10  Simon Josefsson  <jas@extundo.com>
38060
38061         * m4/strchrnul.m4: New file.
38062
38063 2003-06-10  Simon Josefsson  <jas@extundo.com>
38064
38065         * lib/strchrnul.h: New file.
38066         * lib/strchrnul.c: New file.
38067
38068 2003-06-10  Bruno Haible  <bruno@clisp.org>
38069
38070         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
38071
38072 2003-06-07  Karl Berry  <karl@gnu.org>
38073
38074         * config/config.{guess,sub}: update from prep.
38075
38076 2003-06-07  Jim Meyering  <jim@meyering.net>
38077
38078         * modules/strtod: Use $(...) notation, not @...@ for
38079         AC_REPLACE'd variables.
38080         * modules/localcharset: Likewise.
38081
38082 2003-06-07  Jim Meyering  <jim@meyering.net>
38083
38084         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
38085         in place of my name in the copyright comment.
38086         Remove definition and uses of __P.
38087
38088         From coreutils.
38089         * lib/stat.c: Don't declare xmalloc explicitly.
38090         Instead, include "xalloc.h".
38091         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
38092         xrealloc, and xcalloc return values.
38093         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
38094         Improve comment.
38095         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
38096
38097 2003-06-07  Bruno Haible  <bruno@clisp.org>
38098
38099         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
38100         avoid AC_CONFIG_LINKS.
38101         * modules/fnmatch (Makefile.am): Use explicit creation rule for
38102         fnmatch.h, to avoid AC_CONFIG_LINKS.
38103         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
38104
38105 2003-06-07  Bruno Haible  <bruno@clisp.org>
38106
38107         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
38108         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
38109         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38110         directory.
38111         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38112         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38113         directory.
38114
38115 2003-06-06  Jim Meyering  <jim@meyering.net>
38116
38117         Merge from coreutils.
38118         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38119         Consolidate declarations and initializations of *_base* locals.
38120
38121         Merge from coreutils.
38122         This avoids a core dump on systems without GNU putenv,
38123         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38124         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38125         (unsetenv): New static function, from GNU libc.
38126         (rpl_putenv): Use it.
38127
38128         * lib/modechange.c: Remove trailing blanks.
38129
38130         Merge from coreutils.
38131         * lib/fsusage.c: Remove declaration of statfs.
38132         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38133
38134         * lib/posixtm.c: Include <stdbool.h> unconditionally.
38135
38136 2003-06-06  Jim Meyering  <jim@meyering.net>
38137
38138         * lib/stdbool_.h: Renamed from stdbool.h.in.
38139
38140 2003-06-06  Jim Meyering  <jim@meyering.net>
38141             Bruno Haible  <bruno@clisp.org>
38142
38143         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38144         Adjust Makefile.am snippet not to redirect directly to target.
38145         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38146
38147 2003-06-05  Paul Eggert  <eggert@twinsun.com>
38148
38149         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38150         mismatch, look in future quarters as well as past.  This fixes a
38151         bug when processing fall-backwards gaps immediately after a long
38152         period of daylight-saving time.
38153
38154         * lib/mktime.c: Assume freestanding C89 or better.
38155         (HAVE_LIMITS_H): Remove.  Assume it's 1.
38156         (__P): Remove; not used.
38157         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38158         (mktime, not_equal_tm, print_tm, check_result,
38159         main): Use prototypes.  Use const * where appropriate.
38160         (main): Fix typo in testing code that uncovered by above changes.
38161         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38162
38163 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38164
38165         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
38166         locale.h, localeconv.  This merges changes from coreutils.
38167
38168         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38169         It can be removed after the next Autoconf is released.
38170         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38171         needed.
38172
38173 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38174
38175         * lib/mktime.c: Fix Debian bug 177940
38176         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38177         (localtime_offset): Now long int, not time_t, because we want it
38178         to be guaranteed to be signed.  All uses changed.
38179         (__mktime_internal): If overflow would occur when adding offset,
38180         don't add it.
38181
38182         Merge 'human' changes from coreutils.  Rewrite to support
38183         locale-specific notations like thousands separators.
38184         * lib/human.c: Simplify authorship notice.
38185         Include human.h immediately after config.h.
38186         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38187         <limits.h>: Do not include, since human.h does.
38188         (SIZE_MAX, UINTMAX_MAX): New macros.
38189         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38190         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38191         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38192         (power_letter): Renamed from suffixes.
38193         (generate_suffix_backwards): Remove.
38194         (adjust_value): Now takes int style (because of human.h changes)
38195         and long double value (for greater precision on some platforms).
38196         (group_number): New function.
38197         (human_readable): Use it.  Use integer options, not enum.
38198         Put the options before the sizes in the arg list.
38199         Support all the new options.
38200         The old human_readable function has been removed;
38201         use inttostr.h instead.
38202         (human_readable, default_block_size, humblock):
38203         Use uintmax_t, not int, for block sizes.
38204         (human_readable_inexact, block_size_types): Remove.
38205         (block_size_opts): New constant.
38206         (human_options): Renamed from human_block_size, with new signature
38207         that allows block sizes up to UINTMAX_MAX.  All callers changed.
38208         * lib/human.h: Add copyright and authorship notice.
38209         Include <limits.h> and <stdbool.h> unconditionally.
38210         (PARAMS): Remove.  All uses removed.
38211         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38212         (enum human_inexact_style): Remove tag; now a nameless enum.
38213         (human_floor, human_ceiling, human_round_to_even): Now have
38214         values 2, 0, 1 rather than -1, 1, 0.
38215         (human_group_digits, human_suppress_point_zero, human_autoscale,
38216         human_base_1024, human_SI, human_B): New constants.
38217         (human_readable_inexact, human_block_size): Remove.
38218         (human_readable): Size args are now uintmax_t, not int.
38219         (human_options): New decl.
38220
38221         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38222         unnecessary now that we assume C89 or better.  This change
38223         imported from coreutils.
38224
38225         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38226         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
38227         in the 2003-05-30 sync from glibc.
38228
38229         .h files should stand alone, but we shouldn't include <sys/types.h>
38230         if we can get away with just <stddef.h>.
38231
38232         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38233         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38234         rather than <sys/types.h>, as we merely need size_t.
38235         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38236         to get size_t.
38237         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38238         Include <stdio.h>, to get FILE.
38239         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38240         memcasecmp.h has included <stddef.h> and all we need is size_t.
38241         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38242         our interface, instead of including <sys/types.h>
38243
38244 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38245
38246         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38247         now, as glibc mktime is buggy on non-glibc systems.
38248
38249 2003-06-03  Karl Berry  <karl@gnu.org>
38250
38251         * config/config.sub: update from prep.
38252
38253 2003-06-02  Paul Eggert  <eggert@twinsun.com>
38254
38255         [from coreutils]
38256         Fix some minor time-related bugs with POSIX time arguments.
38257         Some valid time stamps were being rejected (notably -1, and
38258         time stamps before 1900 on 64-bit hosts).  And some invalid
38259         time stamps were being accepted, e.g. September 31.
38260
38261         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38262         that we can return (time_t) -1 successfully.
38263         * lib/posixtm.c: Likewise.
38264         [HAVE_STDBOOL_H]: Include <stdbool.h>.
38265         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38266         (t): Remove static var.
38267         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38268         of static var.  All uses changed.
38269         (year): Do not reject years before 1900; they can occur with
38270         64-bit time_t.
38271         (posix_time_parse): Do not check for out-of-range components;
38272         that is now the caller's responsibility, since our checks were
38273         only approximations.
38274         (posixtime): Use mktime to check for out-of-range components,
38275         since it knows them exactly.
38276         If mktime returns (time_t) -1, check whether an error actually occurred
38277         by invoking localtime on -1.
38278         (main) [TEST_POSIXTIME]: Check for input data errors, and report
38279         posixtime failures better.
38280         Improve the test data (in comments only).
38281
38282 2003-06-02  Karl Berry  <karl@gnu.org>
38283
38284         * config/mkinstalldirs (version): new variable.
38285         (--version): new option.
38286         (usage): improve message.
38287
38288 2003-05-30  Karl Berry  <karl@gnu.org>
38289
38290         * lib/mktime.c: update from libc.
38291
38292 2003-05-30  Bruno Haible  <bruno@clisp.org>
38293
38294         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38295         * config/config.rpath: Upgrade to gettext-0.12.1.
38296
38297 2003-05-30  Bruno Haible  <bruno@clisp.org>
38298
38299         * m4/gettext.m4: Upgrade to gettext-0.12.1.
38300         * m4/nls.m4: New file, from gettext-0.12.1.
38301         * m4/po.m4: New file, from gettext-0.12.1.
38302         * m4/progtest.m4: Upgrade to gettext-0.12.1.
38303
38304 2003-05-30  Bruno Haible  <bruno@clisp.org>
38305
38306         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38307         * lib/localcharset.h: Likewise.
38308         * lib/localcharset.c: Likewise.
38309
38310 2003-05-29  Karl Berry  <karl@gnu.org>
38311
38312         * config/config.rpath: update from gettext.
38313
38314 2003-05-28  Paul Eggert  <eggert@twinsun.com>
38315
38316         Assume the headers required for C89 freestanding compilers.
38317         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38318         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38319         * m4/human.m4 (gl_HUMAN): Likewise.
38320         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38321         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38322         * m4/userspec.m4 (gl_USERSPEC): Likewise.
38323         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38324         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38325         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38326
38327 2003-05-28  Paul Eggert  <eggert@twinsun.com>
38328
38329         Assume the headers required for C89 freestanding compilers.
38330         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38331         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38332         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38333         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38334         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38335         define, since <limits.h> is guaranteed to do that.
38336         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38337         * lib/exclude.c: Include <stdbool.h> unconditionally.
38338         * lib/tempname.c: Include <stddef.h> unconditionally.
38339         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38340         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38341         <stddef.h> does that.
38342         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38343         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38344         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38345         needed.
38346         * lib/xstrtol.c: Likewise.
38347         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38348         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38349
38350         * lib/addext.c (addext): Use assignment rather than cast, to avoid
38351         warnings on some platforms.
38352
38353         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38354         arbitrarily.
38355
38356 2003-05-26  Jim Meyering  <jim@meyering.net>
38357
38358         Merge in a change from coreutils:
38359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38360         that is guaranteed to be `no'.  Use `no_such_member' to indicate
38361         that condition, rather than `-1' which is slightly misleading.
38362         Change the name of the cache variable to have the gl_ prefix.
38363         Prompted by a patch from Richard Dawe for DJGPP.
38364
38365 2003-05-24  Karl Berry  <karl@gnu.org>
38366
38367         * config/config.guess: update from prep.
38368
38369 2003-05-22  Karl Berry  <karl@gnu.org>
38370
38371         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38372
38373 2003-05-20  Karl Berry  <karl@gnu.org>
38374
38375         * config/config.guess: update from prep.
38376
38377 2003-05-18  Karl Berry  <karl@gnu.org>
38378
38379         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38380         might actually be set by the user.
38381
38382         * config/depcomp, install-sh, mdate-sh: update from automake.
38383
38384 2003-05-17  Bruno Haible  <bruno@clisp.org>
38385
38386         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38387         invalid expansion for AC_EGREP_CPP.
38388         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38389         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38390         Suggested by Akim Demaille <akim@epita.fr> in
38391         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38392
38393 2003-05-12  Jim Meyering  <jim@meyering.net>
38394
38395         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38396         the space-padded-by-default conversion specifiers, %e, %k, %l.
38397
38398 2003-05-12  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38401         the string is longer than 4 KB.
38402
38403 2003-05-11  Karl Berry  <karl@gnu.org>
38404
38405         * config/config.{guess,sub}: update from prep.
38406
38407 2003-05-09  Bruno Haible  <bruno@clisp.org>
38408
38409         * modules/error: Add m4/strerror_r.m4 to file list.
38410
38411 2003-05-03  Bruno Haible  <bruno@clisp.org>
38412
38413         Upgrade to Unicode-4.0.
38414         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38415         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38416         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38417         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38418         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38419         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38420         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38421         Change width of U+E0100..U+E01EF from 1 to 0.
38422
38423 2003-04-25  Jim Meyering  <jim@meyering.net>
38424
38425         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38426         of type size_t, not int.
38427
38428 2003-04-25  Bruno Haible  <bruno@clisp.org>
38429
38430         * lib/copy-file.c: Include <stddef.h>, for size_t.
38431
38432 2003-04-21  Paul Eggert  <eggert@twinsun.com>
38433
38434         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38435         code which expansion is under static control.  Patch imported from
38436         Akim Demaille's patch to Bison; see
38437         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38438
38439 2003-04-14  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38442
38443 2003-04-11  Jim Meyering  <jim@meyering.net>
38444
38445         Merge changes from Coreutils.
38446
38447         2003-03-22  Jim Meyering  <jim@meyering.net>
38448
38449         * lib/strftime.c (widen): Cast alloca return value to proper type.
38450
38451         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
38452
38453         From GNU libc.
38454         * lib/strftime.c (my_strftime): Handle very large width
38455         specifications for numeric values correctly.  Improve checks for
38456         overflow.
38457
38458         2003-01-19  Jim Meyering  <jim@meyering.net>
38459
38460         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
38461         definitions.
38462         (nl_get_alt_digit) [! defined my_strftime]: Define.
38463         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
38464         _nl_get_alt_digit and _nl_get_walt_digit.
38465
38466         * lib/strftime.c (my_strftime): Merge in locale-related changes from
38467         libc. These changes have no effect outside of _LIBC.
38468
38469 2003-04-10  Bruno Haible  <bruno@clisp.org>
38470
38471         * modules/findprog: New file.
38472         * MODULES.html.sh (func_all_modules): Add it.
38473
38474 2003-04-10  Bruno Haible  <bruno@clisp.org>
38475
38476         * m4/findprog.m4: New file.
38477         * m4/eaccess.m4: New file.
38478
38479 2003-04-10  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/findprog.h: New file, from GNU gettext.
38482         * lib/findprog.c: New file, from GNU gettext.
38483
38484 2003-04-05  Jim Meyering  <jim@meyering.net>
38485
38486         Merge changes from Coreutils.
38487
38488         * lib/exclude.h (PARAMS): Remove definition and uses.
38489         * lib/exclude.c: Remove uses of `PARAMS'.
38490
38491         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
38492         Add test-cases for DOS filenames. Declare program_name.
38493         (main): Set up program_name.  Patch by Rich Dawe.
38494
38495         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38496         error from mntctl.
38497         Use mntctl's return value to drive the entry-processing loop, since
38498         we can't rely on the value of the vmt_length member in the last
38499         entry.  On some systems doing so could result in exhausting
38500         virtual memory.  Based in part on a patch from Mike Jetzer.
38501
38502 2003-04-04  Bruno Haible  <bruno@clisp.org>
38503
38504         * modules/linebreak: New file.
38505         * MODULES.html.sh (func_all_modules): Add it.
38506
38507 2003-04-04  Bruno Haible  <bruno@clisp.org>
38508
38509         * m4/linebreak.m4: New file.
38510
38511 2003-04-04  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/linebreak.h: New file, from GNU gettext.
38514         * lib/linebreak.c: New file, from GNU gettext with slight
38515         modifications.
38516         * lib/lbrkprop.h: New file, from GNU gettext.
38517
38518 2003-04-03  Bruno Haible  <bruno@clisp.org>
38519
38520         * modules/utf8-ucs4: New file.
38521         * modules/utf16-ucs4: New file.
38522         * modules/ucs4-utf8: New file.
38523         * modules/ucs4-utf16: New file.
38524         * MODULES.html.sh (func_all_modules): Add them.
38525
38526 2003-04-03  Bruno Haible  <bruno@clisp.org>
38527
38528         * m4/utf-ucs4.m4: New file.
38529         * m4/ucs4-utf.m4: New file.
38530
38531 2003-04-03  Bruno Haible  <bruno@clisp.org>
38532
38533         * lib/utf8-ucs4.h: New file, from GNU gettext.
38534         * lib/utf16-ucs4.h: New file, from GNU gettext.
38535         * lib/ucs4-utf8.h: New file, from GNU gettext.
38536         * lib/ucs4-utf16.h: New file, from GNU gettext.
38537
38538 2003-04-02  Bruno Haible  <bruno@clisp.org>
38539
38540         * modules/binary-io: New file.
38541         * MODULES.html.sh (func_all_modules): Add it.
38542
38543 2003-04-02  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/binary-io.h: New file, from GNU gettext.
38546
38547 2003-04-01  Bruno Haible  <bruno@clisp.org>
38548
38549         * modules/pathname: New file.
38550         * MODULES.html.sh (func_all_modules): Add it.
38551
38552 2003-04-01  Bruno Haible  <bruno@clisp.org>
38553
38554         * lib/pathname.h: New file, from GNU gettext.
38555         * lib/concatpath.c: New file, from GNU gettext.
38556
38557 2003-03-30  Bruno Haible  <bruno@clisp.org>
38558
38559         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
38560
38561 2003-03-30  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
38564         function chown() doesn't exist.
38565
38566 2003-03-28  Bruno Haible  <bruno@clisp.org>
38567
38568         * modules/copy-file: New file.
38569         * MODULES.html.sh (func_all_modules): Add it.
38570
38571 2003-03-28  Bruno Haible  <bruno@clisp.org>
38572
38573         * m4/copy-file.m4: New file.
38574
38575 2003-03-28  Bruno Haible  <bruno@clisp.org>
38576
38577         * lib/copy-file.h: New file, from GNU gettext.
38578         * lib/copy-file.c: New file, from GNU gettext.
38579
38580 2003-03-18  Jim Meyering  <jim@meyering.net>
38581
38582         * lib/quote.c (quote_n): Fix typo in comment.
38583
38584 2003-03-18  Bruno Haible  <bruno@clisp.org>
38585
38586         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
38587         checking.
38588         * m4/onceonly_2_57.m4: Likewise.
38589
38590 2003-03-17  Bruno Haible  <bruno@clisp.org>
38591
38592         * m4/onceonly.m4: Require autoconf 2.54 or newer.
38593         (m4_quote): Remove macro.
38594         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
38595
38596 2003-03-14  Jim Meyering  <jim@meyering.net>
38597
38598         Merge changes from Coreutils.
38599         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
38600         to be const, in order to avoid warnings.
38601         (obstack_room): Likewise.
38602         (obstack_empty_p): Likewise.
38603
38604 2003-03-14  Bruno Haible  <bruno@clisp.org>
38605
38606         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
38607         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
38608
38609 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38610
38611         Merge changes from Bison.
38612         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
38613         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
38614         when compiling Bison 1.875's `bitset bset = obstack_alloc
38615         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
38616         * lib/hash.c: Include <stdbool.h> unconditionally.
38617
38618 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38619
38620         * m4/onceonly.m4 (m4_quote): New macro.
38621         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
38622         Quote AC_FOREACH variable-expansions properly.
38623
38624 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38625
38626         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
38627
38628 2003-03-09  Paul Eggert  <eggert@twinsun.com>
38629
38630         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
38631         Reported by Bruce Becker; see:
38632         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
38633
38634 2003-03-03  Paul Eggert  <eggert@twinsun.com>
38635             Bruno Haible  <bruno@clisp.org>
38636
38637         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
38638         Reported by John Hughes, see
38639         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
38640
38641 2003-02-20  Bruno Haible  <bruno@clisp.org>
38642
38643         * MODULES.html.sh (func_all_modules): Add poll.
38644
38645 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38646
38647         * modules/poll: New file.
38648
38649 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38650
38651         * lib/poll_.h: New file.
38652         * lib/poll.c: New file.
38653
38654 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38655
38656         * m4/poll.m4: New file.
38657
38658 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38659
38660         * modules/mathl: New file.
38661
38662 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38663
38664         * lib/mathl.h: New file.
38665         * lib/acosl.c: New file.
38666         * lib/asinl.c: New file.
38667         * lib/atanl.c: New file.
38668         * lib/ceill.c: New file.
38669         * lib/cosl.c: New file.
38670         * lib/expl.c: New file.
38671         * lib/floorl.c: New file.
38672         * lib/frexpl.c: New file.
38673         * lib/ldexpl.c: New file.
38674         * lib/logl.c: New file.
38675         * lib/sincosl.c: New file.
38676         * lib/sinl.c: New file.
38677         * lib/sqrtl.c: New file.
38678         * lib/tanl.c: New file.
38679         * lib/trigl.c: New file.
38680         * lib/trigl.h: New file.
38681
38682 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38683
38684         * m4/mathl.m4: New file.
38685
38686 2003-02-18  Bruno Haible  <bruno@clisp.org>
38687
38688         * MODULES.html.sh (func_all_modules): Add mathl.
38689
38690 2003-02-17  Bruno Haible  <bruno@clisp.org>
38691
38692         * modules/mkdtemp: New module.
38693         * MODULES.html.sh (func_all_modules): Add it.
38694
38695 2003-02-17  Bruno Haible  <bruno@clisp.org>
38696
38697         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38698
38699 2003-02-17  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/mkdtemp.h: New file, from GNU gettext.
38702         * lib/mkdtemp.c: New file, from GNU gettext.
38703
38704 2003-02-02  Jim Meyering  <jim@meyering.net>
38705
38706         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38707         e.g. glibc-2.2.93.
38708
38709 2003-01-31  Bruno Haible  <bruno@clisp.org>
38710
38711         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38712         'rpl_rename'.
38713         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38714         'rpl_strnlen'.
38715         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38716         'rpl_strtod'.
38717         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38718         'rpl_utime'.
38719
38720 2003-01-31  Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/rename.c: #undef rename before defining rpl_rename.
38723         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38724
38725 2003-01-30  Bruno Haible  <bruno@clisp.org>
38726
38727         * modules/vasnprintf, modules/vasprintf: New modules.
38728         * MODULES.html.sh (func_all_modules): Add them.
38729
38730 2003-01-30  Bruno Haible  <bruno@clisp.org>
38731
38732         * m4/signed.m4: New file, from GNU gettext.
38733         * m4/longdouble.m4: New file, from GNU gettext.
38734         * m4/wchar_t.m4: New file, from GNU gettext.
38735         * m4/wint_t.m4: New file, from GNU gettext.
38736         * m4/vasnprintf.m4: New file.
38737         * m4/vasprintf.m4: New file.
38738
38739 2003-01-30  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/printf-args.h: New file, from GNU gettext.
38742         * lib/printf-args.c: New file, from GNU gettext.
38743         * lib/printf-parse.h: New file, from GNU gettext.
38744         * lib/printf-parse.c: New file, from GNU gettext.
38745         * lib/vasnprintf.h: New file, from GNU gettext.
38746         * lib/vasnprintf.c: New file, from GNU gettext.
38747         * lib/asnprintf.c: New file, from GNU gettext.
38748         * lib/vasprintf.h: New file, from GNU gettext with modifications.
38749         * lib/vasprintf.c: New file, from GNU gettext.
38750         * lib/asprintf.c: New file, from GNU gettext.
38751
38752 2003-01-29  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/stpncpy: New module.
38755         * MODULES.html.sh (func_all_modules): Add it.
38756
38757 2003-01-29  Bruno Haible  <bruno@clisp.org>
38758
38759         * m4/stpncpy.m4: New file.
38760
38761 2003-01-29  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/stpncpy.h: New file, from GNU gettext with modifications.
38764         * lib/stpncpy.c: New file, from GNU gettext with modifications.
38765
38766 2003-01-28  Bruno Haible  <bruno@clisp.org>
38767
38768         * modules/c-ctype: New module.
38769         * MODULES.html.sh (func_all_modules): Add it.
38770
38771 2003-01-28  Bruno Haible  <bruno@clisp.org>
38772
38773         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38774         Paul Eggert.
38775         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38776         Paul Eggert.
38777
38778 2003-01-27  Bruno Haible  <bruno@clisp.org>
38779
38780         * modules/xsetenv: New module.
38781         * MODULES.html.sh (func_all_modules): Add it.
38782
38783 2003-01-27  Bruno Haible  <bruno@clisp.org>
38784
38785         * lib/xsetenv.h: New file, from GNU gettext.
38786         * lib/xsetenv.c: New file, from GNU gettext.
38787
38788 2003-01-23  Jim Meyering  <jim@meyering.net>
38789
38790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38791         from working on systems without dirfd (at least Irix and OSF1/Tru64).
38792
38793 2003-01-23  Bruno Haible  <bruno@clisp.org>
38794
38795         * modules/minmax: New module.
38796         * MODULES.html.sh (func_all_modules): Add it.
38797
38798 2003-01-23  Bruno Haible  <bruno@clisp.org>
38799
38800         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38801         Eggert.
38802
38803 2003-01-22  Bruno Haible  <bruno@clisp.org>
38804
38805         * modules/exit: New module.
38806         * MODULES.html.sh (func_all_modules): Add it.
38807
38808 2003-01-22  Bruno Haible  <bruno@clisp.org>
38809
38810         * lib/exit.h: New file, from GNU gettext.
38811
38812 2003-01-19  Bruno Haible  <bruno@clisp.org>
38813
38814         * gnulib-tool: Recognize option --extract-maintainer.
38815         (func_get_maintainer): New function.
38816         * modules/*: Add Maintainer entry.
38817
38818 2003-01-16  Jim Meyering  <jim@meyering.net>
38819
38820         * m4/regex.m4: The `regex' struct is both input and output.
38821         Initialize it before each use.  Patch by Tim Waugh.
38822
38823 2003-01-16  Bruno Haible  <bruno@clisp.org>
38824
38825         * MODULES.html.sh: Add a table of contents. Add the module name as
38826         leftmost column. Add hyperlinks.
38827
38828 2003-01-15  Bruno Haible  <bruno@clisp.org>
38829
38830         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38831
38832 2003-01-15  Bruno Haible  <bruno@clisp.org>
38833
38834         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38835         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38836         suffix.
38837
38838 2003-01-15  Bruno Haible  <bruno@clisp.org>
38839
38840         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38841
38842 2003-01-15  Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38845         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38846
38847 2003-01-14  Jim Meyering  <jim@meyering.net>
38848
38849         * lib/same.c (same_name): Tweak a comment.
38850
38851 2003-01-14  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38854         when a string comparison is sufficient.
38855
38856 2003-01-14  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38859         'unsigned int'.
38860
38861 2003-01-14  Bruno Haible  <bruno@clisp.org>
38862
38863         * lib/hash-pjw.c: Add comment about low quality of this function.
38864
38865 2003-01-13  Bruno Haible  <bruno@clisp.org>
38866
38867         * modules/stpcpy: Distribute lib/stpcpy.h.
38868         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38869
38870 2003-01-13  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/*: Add a description.
38873         * modules/strpbrk: Fix Makefile.am snippet.
38874         * modules/strtoimax: Fix dependencies.
38875         * modules/strtoumax: Likewise.
38876
38877 2003-01-13  Bruno Haible  <bruno@clisp.org>
38878
38879         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38880         * modules/alloca (Makefile.am): All object files depend on alloca.h.
38881         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38882
38883 2003-01-13  Bruno Haible  <bruno@clisp.org>
38884
38885         * gnulib-tool (func_create_testdir): Store config/* files in the main
38886         directory.
38887         * config.rpath: Move to ...
38888         * config/config.rpath: ... here.
38889         * modules/gettext: Contains config/config.rpath, not config.rpath.
38890         * modules/iconv: Likewise.
38891
38892 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38893
38894         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38895         to avoid collisions with libcurses and libreadline.
38896
38897         * m4/getstr.m4: Remove.
38898         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38899
38900 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38901
38902         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38903         to avoid collisions with libcurses and libreadline.
38904
38905         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38906         * lib/getstr.h, getstr.c: Remove.
38907         * lib/getline.c: Include "getline.h", to check interface.
38908         Move body of old getstr.c here: this defines MIN_CHUNK and
38909         declares getdelim2, which is renamed from getstr.
38910         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38911
38912         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38913         All uses changed.
38914         * lib/linebuffer.h: Likewise.
38915         (readline): Remove backward-compatibility macro.
38916
38917 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38918
38919         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38920         to avoid collisions with libcurses and libreadline.
38921         * getstr: Remove.
38922         * MODULES.html.sh: Remove getstr.
38923         * modules/getline: Depend on unlocked-io, not getstr.
38924
38925 2003-01-12  Jim Meyering  <jim@meyering.net>
38926
38927         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
38928
38929 2003-01-10  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/alloca: Change Makefile.am requirements. Simplify Include
38932         requirements. Add lib/alloca_.h to file list.
38933
38934 2003-01-10  Bruno Haible  <bruno@clisp.org>
38935
38936         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38937
38938 2003-01-10  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/alloca_.h: New file.
38941         * lib/getdate.y: Unconditionally include alloca.h.
38942         * lib/makepath.c: Likewise.
38943         * lib/setenv.c: Likewise.
38944         * lib/userspec.c: Likewise.
38945
38946 2003-01-09  Karl Berry  <karl@gnu.org>
38947
38948         * MODULES.html.sh: include `dirname $0` in PATH, to find
38949         gnulib-tool.
38950
38951 2003-01-09  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/stdbool: Change configure.ac, Makefile.am requirements.
38954         Simplify Include requirements. Add lib/stdbool.h.in to file list.
38955
38956 2003-01-09  Bruno Haible  <bruno@clisp.org>
38957
38958         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38959
38960 2003-01-09  Bruno Haible  <bruno@clisp.org>
38961
38962         * lib/stdbool.h.in: New file.
38963
38964 2003-01-09  Bruno Haible  <bruno@clisp.org>
38965
38966         * gnulib-tool (func_all_modules): Ignore files ending in ~.
38967         * MODULES.html.sh: Likewise.
38968
38969 2003-01-08  Jim Meyering  <jim@meyering.net>
38970
38971         * lib/full-write.c: Undefine and define-away `const' after inclusion
38972         of errno.h, not before.  Suggestion from Bruno Haible.
38973
38974 2003-01-08  Bruno Haible  <bruno@clisp.org>
38975
38976         * modules/full-read: Depend on full-write.
38977
38978 2003-01-08  Bruno Haible  <bruno@clisp.org>
38979
38980         * lib/safe-read.c: Include specification header first, to ensure its
38981         selfcontainedness.
38982         * lib/full-write.c: Likewise.
38983
38984 2003-01-07  Jim Meyering  <jim@meyering.net>
38985
38986         * lib/full-write.c: Rework so that it may serve to define full_read,
38987         too.
38988         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38989
38990 2003-01-07  Bruno Haible  <bruno@clisp.org>
38991
38992         * lib/strtoimax.c: Include <stdint.h> as an alternative to
38993         <inttypes.h>.
38994         * lib/xstrtol.h: Likewise.
38995         * lib/xstrtoimax.c: Likewise.
38996         * lib/xstrtoumax.c: Likewise.
38997         * lib/human.h: Likewise.
38998
38999         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
39000         on systems that have <inttypes.h> but not <stdint.h>.
39001
39002 2003-01-07  Bruno Haible  <bruno@clisp.org>
39003
39004         * MODULES.html.sh: Add copyright notice.
39005         (missed_files): Omit CVS directory entries.
39006         (func_module): Make it work with sed-3.02.
39007         * MODULES.txt: Remove file.
39008
39009 2003-01-06  Jim Meyering  <jim@meyering.net>
39010
39011         * lib/version-etc.c: Update year in translatable copyright string.
39012
39013 2003-01-03  Karl Berry  <karl@gnu.org>
39014
39015         * config/config.{guess,sub}: update from prep.
39016
39017 2003-01-02  Karl Berry  <karl@gnu.org>
39018
39019         * doc/COPYING.DOC: belatedly updated to 1.2.
39020
39021 2003-01-01  Karl Berry  <karl@gnu.org>
39022
39023         * gnulib-tool (func_verify_module): report module name $module in
39024         error message, not $1.
39025         * gnulib-tool (create-testdir): don't complain if destdir couldn't
39026         be created, only if it doesn't exist.
39027         * gnulib-tool (last_checkin_date): don't expand the $Date here.
39028
39029 2002-12-31  Paul Eggert  <eggert@twinsun.com>
39030
39031         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
39032
39033 2002-12-31  Paul Eggert  <eggert@twinsun.com>
39034
39035         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
39036         memcmp if strcoll doesn't work.
39037
39038 2002-12-31  Bruno Haible  <bruno@clisp.org>
39039
39040         * lib/utime.c (utime_null): No need to call ftruncate if the file was
39041         nonempty.
39042
39043 2002-12-31  Bruno Haible  <bruno@clisp.org>
39044
39045         * lib/memcoll.c (STRCOLL): New macro.
39046         (memcoll): Use it.
39047
39048 2002-12-31  Bruno Haible  <bruno@clisp.org>
39049
39050         * lib/localcharset.h: New file.
39051         * lib/localcharset.c: Include it.
39052         * lib/unicodeio.c: Likewise.
39053
39054 2002-12-31  Bruno Haible  <bruno@clisp.org>
39055
39056         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
39057         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
39058
39059 2002-12-31  Bruno Haible  <bruno@clisp.org>
39060
39061         * lib/getline.h: Include <stddef.h>, for size_t.
39062
39063         * lib/unicodeio.h: Include <stddef.h>, for size_t.
39064         * lib/unicodeio.c: Don't include <stddef.h>.
39065
39066 2002-12-31  Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
39069         HAVE_TM_ZONE.
39070
39071 2002-12-24  Karl Berry  <karl@gnu.org>
39072
39073         * config/config.guess: update from prep.
39074
39075 2002-12-24  Bruno Haible  <bruno@clisp.org>
39076
39077         General infrasructure.
39078         * m4/README: Rewritten.
39079         * m4/onceonly.m4: New file.
39080         * m4/onceonly_2_57.m4: New file.
39081
39082         Module atexit.
39083         * m4/atexit.m4: New file.
39084
39085         Module strtod.
39086         * m4/strtod.m4: New file.
39087
39088         Module strtol.
39089         * m4/strtol.m4: New file.
39090
39091         Module strtoul.
39092         * m4/strtoul.m4: New file.
39093
39094         Module memchr.
39095         * m4/memchr.m4: New file.
39096
39097         Module memcmp.
39098         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
39099         (jm_FUNC_MEMCMP): Invoke it.
39100
39101         Module memcpy.
39102         * m4/memcpy.m4: New file.
39103
39104         Module memmove.
39105         * m4/memmove.m4: New file.
39106
39107         Module memset.
39108         * m4/memset.m4: New file.
39109
39110         Module strcspn.
39111         * m4/strcspn.m4: New file.
39112
39113         Module strpbrk.
39114         * m4/strpbrk.m4: New file.
39115
39116         Module strstr.
39117         * m4/strstr.m4: New file.
39118
39119         Module strerror.
39120         * m4/strerror.m4: New file.
39121
39122         Module mktime.
39123         * m4/mktime.m4: Renamed from jm-mktime.m4.
39124         (gl_PREREQ_MKTIME): New macro.
39125         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39126
39127         Module malloc.
39128         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39129         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39130         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39131
39132         Module realloc.
39133         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39134         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39135         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39136
39137         Module strftime.
39138         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39139         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39140         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39141         gl_TM_GMTOFF.
39142         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39143
39144         Module xalloc.
39145         * m4/xalloc.m4: New file.
39146
39147         Module alloca.
39148         * m4/alloca.m4: New file.
39149
39150         Module putenv.
39151         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39152         (jm_FUNC_PUTENV): Invoke it.
39153
39154         Module setenv.
39155         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39156         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39157         when invoked twice.
39158         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39159         gt_FUNC_SETENV.
39160
39161         Module memrchr.
39162         * m4/memrchr.m4: New file.
39163
39164         Module stpcpy.
39165         * m4/stpcpy.m4: New file.
39166
39167         Module strcase.
39168         * m4/strcase.m4: New file.
39169
39170         Module strdup.
39171         * m4/strdup.m4: New file.
39172
39173         Module strnlen.
39174         * m4/strnlen.m4: New file.
39175
39176         Module strndup.
39177         * m4/strndup.m4: New file.
39178
39179         Module xstrtod.
39180         * m4/xstrtod.m4: New file.
39181
39182         Module xstrtol.
39183         * m4/xstrtol.m4: New file.
39184
39185         Module getdate.
39186         * m4/getdate.m4: New file.
39187
39188         Module unlocked-io.
39189         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39190         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39191         * m4/jm-glibc-io.m4n: Remove file.
39192
39193         Module long-options.
39194         * m4/long-options.m4: New file.
39195
39196         Module md5.
39197         * m4/md5.m4: New file.
39198
39199         Module sha.
39200         * m4/sha.m4: New file.
39201
39202         Module getstr.
39203         * m4/getstr.m4: New file.
39204
39205         Module getline.
39206         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39207         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39208         <sys/types.h>, for size_t. Use the function name gnu_getline, not
39209         simply getline. Infoke gl_PREREQ_GETLINE.
39210
39211         Module obstack.
39212         * m4/obstack.m4: New file.
39213
39214         Module hash.
39215         * m4/hash.m4: New file.
39216
39217         Module readtokens.
39218         * m4/readtokens.m4: New file.
39219
39220         Module strverscmp.
39221         * m4/strverscmp.m4: New file.
39222
39223         Module stdbool.
39224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39225         OSF/1.
39226
39227         Module strtoll.
39228         * m4/strtoll.m4: New file.
39229
39230         Module strtoull.
39231         * m4/strtoull.m4: New file.
39232
39233         Module strtoimax.
39234         * m4/strtoimax.m4: New file.
39235
39236         Module strtoumax.
39237         * m4/strtoumax.m4: New file.
39238
39239         Module xstrtoimax.
39240         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39241         jm_AC_PREREQ_XSTRTOIMAX.
39242         Moved the strtol prerequisites to strtol.m4.
39243         Moved the strtoll prerequisites to strtoll.m4.
39244         Moved the strtoimax prerequisites to strtoimax.m4.
39245
39246         Module xstrtoumax.
39247         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39248         jm_AC_PREREQ_XSTRTOUMAX.
39249         Moved the strtoul prerequisites to strtoul.m4.
39250         Moved the strtoull prerequisites to strtoull.m4.
39251         Moved the strtoumax prerequisites to strtoumax.m4.
39252
39253         Module chown.
39254         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39255         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39256
39257         Module dup2.
39258         * m4/dup2.m4: New file.
39259
39260         Module ftruncate.
39261         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39262         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39263
39264         Module getgroups.
39265         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39266         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39267
39268         Module gettimeofday.
39269         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39270         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39271         gl_PREREQ_GETTIMEOFDAY.
39272
39273         Module mkdir.
39274         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39275         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39276
39277         Module mkstemp.
39278         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39279         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39280         jm_AC_TYPE_UINTMAX_T.
39281         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39282
39283         Module stat.
39284         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39285         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39286
39287         Module lstat.
39288         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39289         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39290
39291         Module timespec.
39292         * m4/timespec.m4 (gl_TIMESPEC): New macro.
39293         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39294         * m4/st_mtim.m4: Indentation.
39295
39296         Module nanosleep.
39297         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39298         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39299         gl_PREREQ_NANOSLEEP.
39300
39301         Module regex.
39302         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39303         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39304         (gl_REGEX): New macro.
39305
39306         Module rename.
39307         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39308         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39309
39310         Module rmdir.
39311         * m4/rmdir.m4: New file.
39312
39313         Module utime.
39314         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39315         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39316         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39317
39318         Module dirname.
39319         * m4/dirname.m4: New file.
39320
39321         Module getopt.
39322         * m4/getopt.m4: New file.
39323
39324         Module unistd-safer.
39325         * m4/unistd-safer.m4: New file.
39326
39327         Module fnmatch.
39328         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39329         declaration.
39330         (gl_PREREQ_FNMATCH_EXTRA): New macro.
39331         (gl_FUNC_FNMATCH_POSIX): New macro.
39332         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39333         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39334         simply fnmatch.
39335
39336         Module exclude.
39337         * m4/exclude.m4: New file.
39338
39339         Module human.
39340         * m4/human.m4: New file.
39341
39342         Module acl.
39343         * m4/acl.m4: Nop.
39344
39345         Module backupfile.
39346         * m4/backupfile.m4: New file.
39347         * m4/d-ino.m4: Indentation.
39348
39349         Module fsusage.
39350         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39351         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39352         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39353
39354         Module dirfd.
39355         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39356         requirements.
39357
39358         Module euidaccess.
39359         * m4/euidaccess.m4: New file.
39360
39361         Module file-type.
39362         * m4/file-type.m4: New file.
39363
39364         Module fileblocks.
39365         * m4/fileblocks.m4: New file.
39366
39367         Module filemode.
39368         * m4/filemode.m4: New file.
39369
39370         Module isdir.
39371         * m4/isdir.m4: New file.
39372
39373         Module lchown.
39374         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39375         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39376
39377         Module makepath.
39378         * m4/makepath.m4: New file.
39379
39380         Module modechange.
39381         * m4/modechange.m4: New file.
39382
39383         Module mountlist.
39384         * m4/mountlist.m4: New file.
39385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39386         Indentation.
39387
39388         Module path-concat.
39389         * m4/path-concat.m4: New file.
39390
39391         Module pathmax.
39392         * m4/pathmax.m4: New file.
39393
39394         Module same.
39395         * m4/same.m4: New file.
39396
39397         Module save-cwd.
39398         * m4/save-cwd.m4: New file.
39399
39400         Module savedir.
39401         * m4/savedir.m4: New file.
39402
39403         Module xgetcwd.
39404         * m4/xgetcwd.m4: New file.
39405         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39406
39407         Module xreadlink.
39408         * m4/xreadlink.m4: New file.
39409
39410         Module safe-read.
39411         * m4/safe-read.m4: New file.
39412
39413         Module safe-write.
39414         * m4/safe-write.m4: New file.
39415
39416         Module closeout.
39417         * m4/closeout.m4: New file.
39418
39419         Module stdio-safer.
39420         * m4/stdio-safer.m4: New file.
39421
39422         Module getpass.
39423         * m4/getpass.m4: New file.
39424
39425         Module getugroups.
39426         * m4/getugroups.m4: New file.
39427
39428         Module group-member.
39429         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39430         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39431
39432         Module idcache.
39433         * m4/idcache.m4: New file.
39434
39435         Module userspec.
39436         * m4/userspec.m4: New file.
39437
39438         Module gettime.
39439         * m4/clock_time.m4: New file.
39440         * m4/gettime.m4: New file.
39441
39442         Module settime.
39443         * m4/settime.m4: New file.
39444
39445         Module posixtm.
39446         * m4/posixtm.m4: New file.
39447
39448         Module gethostname.
39449         * m4/gethostname.m4: New file.
39450
39451         Module canon-host.
39452         * m4/canon-host.m4: New file.
39453
39454         Module gettext.
39455         * m4/codeset.m4: New file, from gettext-0.11.5.
39456         * m4/gettext.m4: New file, from gettext-0.11.5.
39457         * m4/glibc21.m4: New file, from gettext-0.11.5.
39458         * m4/iconv.m4: New file, from gettext-0.11.5.
39459         * m4/intdiv0.m4: New file, from gettext-0.11.5.
39460         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
39461         * m4/inttypes.m4: New file, from gettext-0.11.5.
39462         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
39463         * m4/isc-posix.m4: New file, from gettext-0.11.5.
39464         * m4/lcmessage.m4: New file, from gettext-0.11.5.
39465         * m4/lib-ld.m4: New file, from gettext-0.11.5.
39466         * m4/lib-link.m4: New file, from gettext-0.11.5.
39467         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
39468         * m4/progtest.m4: New file, from gettext-0.11.5.
39469         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
39470         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
39471         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
39472
39473         Module localcharset.
39474         * m4/localcharset.m4: New file.
39475
39476         Module hard-locale.
39477         * m4/hard-locale.m4: New file.
39478
39479         Module mbswidth.
39480         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
39481         onceonly macros.
39482         * m4/mbrtowc.m4: Add comment.
39483
39484         Module memcasecmp.
39485         * m4/memcasecmp.m4: New file.
39486
39487         Module memcoll.
39488         * m4/memcoll.m4: New file.
39489
39490         Module unicodeio.
39491         * m4/unicodeio.m4: New file.
39492
39493         Module rpmatch.
39494         * m4/rpmatch.m4: New file.
39495
39496         Module yesno.
39497         * m4/yesno.m4: New file.
39498
39499         Module exitfail.
39500         * m4/exitfail.m4: New file.
39501
39502         Module c-stack.
39503         * m4/c-stack.m4 (gl_C_STACK): New macro.
39504         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
39505
39506         Module error.
39507         * m4/error.m4 (gl_ERROR): New macro.
39508         (jm_PREREQ_ERROR): Use onceonly macros.
39509
39510         Module fatal.
39511         * m4/fatal.m4: New file.
39512
39513         Module getloadavg.
39514         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
39515         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
39516
39517         Module getpagesize.
39518         * m4/getpagesize.m4: New file.
39519
39520         Module getusershell.
39521         * m4/getusershell.m4: New file.
39522
39523         Module physmem.
39524         * m4/physmem.m4: New file.
39525
39526         Module posixver.
39527         * m4/posixver.m4: New file.
39528
39529         Module quotearg.
39530         * m4/quotearg.m4: New file.
39531
39532         Module quote.
39533         * m4/quote.m4: New file.
39534
39535         Module readutmp.
39536         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
39537
39538         Module sig2str.
39539         * m4/sig2str.m4: New file.
39540
39541         Other.
39542         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
39543         ulonglong.m4.
39544         * m4/intmax_t.m4: New file.
39545         * m4/d-type.m4: Indentation.
39546         * m4/jm-macros.m4: Update.
39547         * m4/prereq.m4 (jm_PREREQ): Update.
39548         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
39549         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
39550         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
39551         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
39552         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
39553         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
39554         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
39555         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
39556         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
39557         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
39558         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
39559         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
39560         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
39561         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
39562         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
39563         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
39564         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
39565         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
39566         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
39567
39568 2002-12-24  Bruno Haible  <bruno@clisp.org>
39569
39570         * MODULES.txt: Update according to m4/ changes.
39571
39572         Module gettext.
39573         * config.rpath: New file, from gettext-0.11.5.
39574
39575         * modules/*: New module descriptions.
39576         * gnulib-tool: New file.
39577         * MODULES.html.sh: New file.
39578
39579 2002-12-21  Karl Berry  <karl@gnu.org>
39580
39581         * doc/fdl.texi: update to version 1.2.
39582
39583 2002-12-19  Karl Berry  <karl@gnu.org>
39584
39585         * config/config.guess: update from prep.
39586
39587 2002-12-18  Bruno Haible  <bruno@clisp.org>
39588
39589         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
39590         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
39591
39592 2002-12-17  Bruno Haible  <bruno@clisp.org>
39593
39594         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
39595         stdlib.h, string.h.
39596
39597 2002-12-17  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/canon-host.c (strdup): Remove unused declaration.
39600
39601         * lib/fsusage.c: Include full_read.h.
39602         (get_fs_usage): Use full_read instead of safe_read.
39603
39604         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
39605
39606 2002-12-12  Karl Berry  <karl@gnu.org>
39607
39608         * config/config.guess: update from prep.
39609
39610 2002-12-11  Bruno Haible  <bruno@clisp.org>
39611
39612         * m4/setenv.m4: New file, from gettext-0.11.5.
39613
39614 2002-12-11  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
39617         not unsetenv().
39618         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
39619         modifications:
39620
39621         2002-12-11  Bruno Haible  <bruno@clisp.org>
39622
39623                 * setenv.c (alloca): Fall back to malloc.
39624                 (freea): New macro.
39625                 (setenv): Use freea() to free memory allocated with alloca().
39626
39627         2002-11-13  Bruno Haible  <bruno@clisp.org>
39628
39629                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
39630                 function declarations.
39631                 * unsetenv.c (unsetenv): Likewise.
39632
39633         2002-03-04  Bruno Haible  <bruno@clisp.org>
39634
39635                 Portability to AIX 4.3.3.
39636                 * unsetenv.c: New file, extracted from setenv.c.
39637                 * setenv.c: Move the unsetenv() function to unsetenv.c.
39638
39639         2001-12-20  Bruno Haible  <bruno@clisp.org>
39640
39641                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
39642                 use malloc instead. For SunOS 4.
39643
39644         2001-12-11  Bruno Haible  <bruno@clisp.org>
39645
39646                 * setenv.c: Declare alloca.
39647                 (compar_fn_t): New typedef.
39648                 (KNOWN_VALUE, STORE_VALUE): Use it.
39649
39650         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
39651         setenv.h.
39652
39653 2002-12-10  Paul Eggert  <eggert@twinsun.com>
39654
39655         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39656         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39657         Choose values that are less likely to collide with system fnmatch
39658         options.
39659         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39660         defined (e.g., a pure POSIX system).
39661         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39662         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39663
39664 2002-12-06  Paul Eggert  <eggert@twinsun.com>
39665
39666         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39667         a pain in practice to deal with generated m4 files.  This change
39668         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39669
39670         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39671         and jm-glibc-io.m4, as they are no longer a special case.
39672         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39673         kludge and the auto-generation stuff.  Check only whether the
39674         functions are declared, not whether they exist, since older hosts
39675         that don't declare the functions can't use the optimization anyway.
39676
39677 2002-12-06  Jim Meyering  <jim@meyering.net>
39678
39679         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39680
39681         Merge in changes from libc's misc/error.c, in preparation
39682         for the merge of gnulib's changes back into libc.
39683
39684         * lib/error.c (_): Define only if not already defined.
39685         Move definition to follow all #include directives.
39686         Include unlocked-io.h only if !_LIBC.
39687         [_LIBC]: Include <libio/libioP.h>.
39688         [USE_IN_LIBIO]: Include <libio/iolibio.h>
39689         (fflush): Tweak definition to use INTUSE.
39690         (putc): Define.
39691
39692 2002-12-05  Paul Eggert  <eggert@twinsun.com>
39693
39694         * lib/alloca.c [defined emacs]: Include "lisp.h".
39695         (xalloc_die) [defined emacs]: New macro.
39696         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39697         [! defined emacs]: Include <xalloc.h>.
39698         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39699         (pointer): Typedef to POINTER_TYPE *.
39700         (malloc): Remove decl; we now always use xmalloc.
39701         (alloca): Use old-style definition, since Emacs needs this.
39702         Check for arithmetic overflow when computing combined size.
39703
39704 2002-12-04  Paul Eggert  <eggert@twinsun.com>
39705
39706         Do not generate unlocked-io.h automatically, since it's easier to
39707         maintain it by hand.
39708
39709         * lib/unlocked-io.h: New file, from GNU diffutils,
39710         but with proper copyright notice and attribution.
39711         * lib/gen-uio: Remove.
39712         * lib/Makefile.am: Add copyright notice.
39713         (libfetish_a_SOURCES): Add unlocked-io.h.
39714         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39715         (DISTCLEANFILES, io_functions): Remove macros.
39716         (EXTRA_DIST): Remove gen_uio.
39717         (unlocked-io.h): Remove rule.
39718
39719 2002-12-04  Jim Meyering  <jim@meyering.net>
39720
39721         Reflect the fact that stat.c and lstat.c are no longer generated.
39722         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39723         (DISTCLEANFILES): Likewise.
39724         (EXTRA_DIST): Likewise.
39725         (all_local): Don't depend on stat.c or lstat.c.
39726         (stat.c, lstat.c): Remove rules.
39727         (EXTRA_DIST): Remove xstat.in.
39728
39729         * lib/xstat.in: Remove file.  Contents moved into stat.c.
39730         * lib/stat.c: New file.  Contents mostly from xstat.in.
39731         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39732         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39733
39734         * lib/safe-read.c: Rework so that it may serve to define safe_write,
39735         too.
39736         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39737
39738 2002-12-03  Jim Meyering  <jim@meyering.net>
39739
39740         * lib/safe-read.c, safe-write.c: Change variable names and comments,
39741         but not semantics, to minimize the differences between these two files.
39742         (safe_read): Change comment to mention SAFE_READ_ERROR.
39743
39744         * lib/safe-read.c (IS_EINTR): Define.
39745         (safe_read): Use IS_EINTR in place of in-function cpp directives.
39746
39747 2002-12-02  Jim Meyering  <jim@meyering.net>
39748
39749         * lib/safe-read.c (EINTR): Define.
39750         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39751         (INT_MAX): Provide fallback.
39752         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39753
39754         * lib/safe-read.h (SAFE_READ_ERROR): Define.
39755
39756 2002-12-02  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39759         Define, taken from safe-read.c.
39760         (INT_MAX): Provide fallback.
39761         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39762         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39763
39764         * lib/safe-read.c (EINTR): Remove definition.
39765         (safe_read): Don't use EINTR if it is absent.
39766
39767 2002-12-01  Jim Meyering  <jim@meyering.net>
39768
39769         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39770         zero.
39771         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39772
39773 2002-11-27  Paul Eggert  <eggert@twinsun.com>
39774
39775         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39776         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39777         with `if (! (value < limit)) abort ();', for readability.
39778
39779 2002-11-26  Karl Berry  <karl@gnu.org>
39780
39781         * lib/strdup.c: copy from libc again, with jim's ok.
39782         * lib/.cppi-disable: re-add strdup.c
39783
39784 2002-11-25  Karl Berry  <karl@gnu.org>
39785
39786         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39787         instead of "strtol.c".
39788
39789 2002-11-25  Karl Berry  <karl@gnu.org>
39790
39791         * config/install-sh: update from automake for variable quoting, $0 in
39792         error msgs, etc.
39793
39794         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39795         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39796         entry.
39797
39798 2002-11-25  Jim Meyering  <jim@meyering.net>
39799
39800         * lib/mktime.c: Sync from libc, now that it has the latest fix.
39801
39802 2002-11-24  Karl Berry  <karl@gnu.org>
39803
39804         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39805         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39806
39807 2002-11-24  Jim Meyering  <jim@meyering.net>
39808
39809         Update from coreutils:
39810
39811         * lib/mktime.c: Merge in changes from libc.
39812
39813         Avoid a link-time failure on some Linux systems.
39814         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39815         (otherwise).
39816         (__mon_yday): Declare with the STATIC attribute.
39817         (__mktime_internal): Likewise.
39818         Based on a report from Greg Schafer.
39819
39820 2002-11-23  Jim Meyering  <jim@meyering.net>
39821
39822         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39823         Use `unsigned', not `int', as type of index.
39824
39825         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39826
39827         * lib/fsusage.c: Remove unneeded parentheses around operands of
39828         `defined'.
39829
39830 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39831
39832         * lib/quotearg.h: Allow multiple inclusion by surrounding with
39833         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
39834         so that we can be included first.
39835         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
39836         * lib/quotearg.c: Include quotearg.h immediately after config.h.
39837         No need to include stddef.h or sys/types.h any more.
39838         Surround local include files with "", not "<>".
39839         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39840         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39841         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39842         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39843         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39844         (ISPRINT): Remove; no longer needed now that we assume C89.
39845
39846         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39847         Preserve errno.
39848
39849         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39850         quotearg_char): Use SIZE_MAX rather than
39851         (size_t) -1 when we are talking about "infinity".
39852
39853         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39854
39855 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39856
39857         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39858         hint that one should use `if (! x) abort ();' rather than `assert
39859         (x);', and anyway it's one less thing to worry about configuring.
39860         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39861         hash_rehash, hash_insert): Use abort rather than assert.
39862
39863 2002-11-22  Bruno Haible  <bruno@clisp.org>
39864
39865         * lib/safe-read.h: Assume C89. Add comments.
39866         (safe_read): Change return type to size_t.
39867         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39868         byte counts > SSIZE_MAX correctly.
39869         * lib/safe-write.h: New file.
39870         * lib/safe-write.c: New file.
39871         * lib/full-read.h: New file.
39872         * lib/full-read.c: New file.
39873         * lib/full-write.h: Assume C89. Add comments.
39874         * lib/full-write.c: Include safe-write.h.
39875         (full_write): Rewritten to use safe_write.
39876         Suggested by Jim Meyering and Paul Eggert.
39877
39878 2002-11-21  Jim Meyering  <jim@meyering.net>
39879
39880         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39881
39882         Merge in changes from the coreutils.
39883
39884         2002-09-25  Paul Eggert  <eggert@twinsun.com>
39885         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39886         <stdint.h>.
39887         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39888         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39889         int.  Work more efficiently if X is the same width as uintmax_t.
39890         Do not compare X to -1, to avoid bogus compiler warning.
39891         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39892         Don't assume that f_frsize and f_bsize are the same type.
39893
39894         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39895         warning on FreeBSD.
39896
39897         * lib/makepath.c (make_path): Restore umask *before* creating the final
39898         component.
39899         (make_path): Minor reformatting.
39900
39901         * lib/xmalloc.c: Adjust to work with new autoconf macros,
39902         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39903         HAVE_MALLOC/HAVE_REALLOC.
39904
39905         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39906         dummy ones.  At least on GNU/Linux systems, `auto' means something
39907         else.
39908         From Michael Stone.
39909
39910 2002-11-21  Bruno Haible  <bruno@clisp.org>
39911
39912         Remove case insensitive option matching.
39913         * lib/argmatch.h (argcasematch): Remove declaration.
39914         (ARGCASEMATCH): Remove macro.
39915         (__xargmatch_internal): Remove case_sensitive argument.
39916         (XARGMATCH): Update.
39917         (XARGCASEMATCH): Remove macro.
39918         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39919         case_sensitive argument.
39920         (argcasematch): Remove function.
39921         (__xargmatch_internal): Remove case_sensitive argument.
39922         (main): Use XARGMATCH instead of XARGCASEMATCH.
39923
39924         * lib/xmalloc.c: Change compile-time error message. Add comment about
39925         required autoconf version.
39926
39927 2002-11-20  Paul Eggert  <eggert@twinsun.com>
39928
39929         Merge argmatch cleanups from Bison.  Assume C89.
39930
39931         * lib/argmatch.c: Include config.h here, not in argmatch.h.
39932         Include stdlib.h, for EXIT_FAILURE.
39933         Always include <string.h>, since we assume C89.
39934         (EXIT_FAILURE): Remove pre-C89 bug workaround.
39935         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39936         Include <stddef.h> instead, since it's all we need for size_t.
39937         (PARAMS): Remove.  All uses removed.
39938         (ARRAY_CARDINALITY): Do not bother to #undef.
39939         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39940         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39941         Remove unnecessary parentheses.
39942         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39943         Insert necessary parentheses.
39944         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39945         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39946
39947 2002-11-19  Bruno Haible  <bruno@clisp.org>
39948
39949         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39950         * lib/mbswidth.h: Include <stddef.h>, for size_t.
39951
39952         * lib/mbswidth.h (PARAMS): Remove macro.
39953         (mbswidth, mbsnwidth): Use ANSI C function declarations.
39954         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39955
39956         * lib/gcd.h (PARAMS): Remove macro.
39957         (gcd): Use ANSI C function declarations.
39958         * lib/gcd.c (gcd): Likewise.
39959
39960 2002-11-15  Bruno Haible  <bruno@clisp.org>
39961
39962         * lib/strcspn.c: Include <stddef.h>.
39963         (strcspn): Use ANSI C function declaration. Change return type to
39964         size_t. Use NULL.
39965         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39966         (strpbrk): Use NULL.
39967         * lib/strpbrk.h (PARAMS): Remove macro.
39968         (strpbrk): Use ANSI C function declaration.
39969         * lib/strstr.c: Don't include <sys/types.h>.
39970         * lib/strstr.h (PARAMS): Remove macro.
39971         (strstr): Use ANSI C function declarations.
39972
39973 2002-11-14  Karl Berry  <karl@gnu.org>
39974
39975         * config/mkinstalldirs: `do' on separate line, instead of
39976         `for var; do'.
39977
39978 2002-11-06  Bruno Haible  <bruno@clisp.org>
39979
39980         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39981         * lib/gcd.c (gcd): Likewise.
39982
39983 2002-11-05  Bruno Haible  <bruno@clisp.org>
39984
39985         * lib/gcd.h: New file, from gettext-0.11.5.
39986         * lib/gcd.c: New file, from gettext-0.11.5.
39987
39988 2002-11-05  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39991         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39992         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39993         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39994
39995         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39996         <libintl.h>.
39997         * lib/makepath.c: Include gettext.h instead of <locale.h> and
39998         <libintl.h>.
39999
40000         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
40001         * lib/human.c: Include gettext.h instead of <libintl.h>.
40002         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
40003         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
40004         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
40005         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
40006         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
40007         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
40008         (textdomain): Remove definition.
40009         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
40010
40011         * lib/long-options.c: Remove include of <libintl.h> and definition of
40012         _.
40013         * lib/same.c: Remove include of <libintl.h> and definition of _.
40014
40015 2002-11-04  Owen Taylor  <otaylor@redhat.com>
40016
40017         * lib/config.charset: A few additions for Solaris.
40018
40019 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
40020
40021         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
40022         * lib/localcharset.c (locale_charset): Declare as extern "C".
40023
40024 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
40025
40026         * lib/config.charset: msdos in uk_UA uses CP1125.
40027
40028 2002-11-04  Bruno Haible  <bruno@clisp.org>
40029
40030         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
40031         * lib/strcase.h: New file, from GNU gettext-0.11.5.
40032         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
40033         * lib/strstr.h: New file, from GNU gettext-0.11.5.
40034         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
40035
40036 2002-11-04  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/localcharset.c (locale_charset): Don't return an empty string.
40039
40040 2002-11-04  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
40043         aliases.
40044
40045 2002-11-04  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/config.charset: Update for newest glibc. Add canonical names
40048         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
40049
40050 2002-11-04  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/config.charset: Add support for NetBSD.
40053
40054 2002-11-04  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
40057
40058 2002-11-01  Bruno Haible  <bruno@clisp.org>
40059
40060         * configure.in: Add AC_CONFIG_AUX_DIR call.
40061         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
40062         test/Makefile.
40063         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
40064
40065 2002-09-28  Karl Berry  <karl@gnu.org>
40066
40067         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
40068         installed automake until the next release, since changes have been
40069         made.
40070
40071 2002-09-25  Karl Berry  <karl@gnu.org>
40072
40073         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
40074         * lib/getopt*: copy from libc/posix.
40075         * lib/gettext.h: copy from gettext.
40076         * lib/.cppi-disable: add strdup.c, gettext.h.
40077
40078 2002-09-25  Karl Berry  <karl@gnu.org>
40079
40080         * config/srclist.txt: enable gettext.h check.
40081         * config/config.{guess,sub}: update from prep.
40082         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
40083                 from automake 1.6.3.
40084         See srclist*.
40085
40086 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
40087
40088         * regex.c (PATFETCH): Remove the translating fetch.
40089         (PATFETCH_RAW): Rename to PATFETCH.
40090         (set_image_of_range): New fun.
40091         (SET_RANGE_TABLE_WORK_AREA): Use it.
40092         (regex_compile): Don't translate the pattern chars so eagerly.
40093         Only do it when inserting an `exactn' bytecode or when handling
40094         a char-range.
40095         (mutually_exclusive_p): Avoid empty statement.
40096
40097 2002-07-06  Jim Meyering  <meyering@lucent.com>
40098
40099         * m4/README: Don't mention Makefile.am.in.
40100         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
40101
40102 2002-07-01  Jim Meyering  <meyering@lucent.com>
40103
40104         * lib/c-stack.c: Include sys/time.h.
40105         From Volker Borchert.
40106
40107 2002-06-26  Paul Eggert  <eggert@twinsun.com>
40108
40109         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40110
40111 2002-06-26  Paul Eggert  <eggert@twinsun.com>
40112
40113         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40114         New macro.  Use it uniformly instead of
40115         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40116         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40117         reported by Vin Shelton.
40118
40119 2002-06-22  Paul Eggert  <eggert@twinsun.com>
40120
40121         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40122         Do not assume SA_SIGINFO behavior.
40123         Bug reported by Jim Meyering on NetBSD 1.5.2.
40124
40125 2002-06-22  Jim Meyering  <meyering@lucent.com>
40126
40127         * m4/c-stack.m4: New file, from diffutils-2.8.2.
40128         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40129
40130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40131         now that configure.ac uses AC_GNU_SOURCE.
40132         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40133         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40134
40135         Update to latest tools.  Suggestions from Paul Eggert.
40136         * m4/stdbool.m4: New file, from diffutils-2.8.2.
40137         * m4/gnu-source.m4: Update from diffutils-2.8.2.
40138         * m4/fnmatch.m4: Likewise.
40139         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40140         to AC_HEADER_STDBOOL
40141
40142 2002-06-22  Jim Meyering  <meyering@lucent.com>
40143
40144         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40145         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40146
40147 2002-06-22  Jim Meyering  <meyering@lucent.com>
40148
40149         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40150
40151         * lib/exitfail.c, exitfail.h: Likewise.
40152         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40153
40154         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40155         of fnmatch.h.
40156         (EXTRA_DIST): Add fnmatch_loop.c.
40157         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40158
40159         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40160         * lib/fnmatch.c: Update from diffutils-2.8.2.
40161         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
40162         * lib/fnmatch.h: Remove file.
40163
40164 2002-06-21  Jim Meyering  <meyering@lucent.com>
40165
40166         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40167         * m4/mbrtowc.m4: Likewise.
40168
40169         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40170         * m4/mbswidth.m4: Reflect name change:
40171         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40172         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40173
40174         * m4/lib-link.m4: Update from gettext-0.11.2.
40175         * m4/gettext.m4: Likewise.
40176
40177         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40178         From Alfred M. Szmidt.
40179
40180 2002-06-18  Paul Eggert  <eggert@twinsun.com>
40181
40182         * lib/file-type.h: Report an error if neither S_ISREG nor
40183         S_IFREG is defined, instead of using a test specific to glibc
40184         2.2.  This should be safe, since POSIX requires S_ISREG and
40185         Unix Version 7 had S_IFREG.  We don't need to check for
40186         <sys/types.h> since we don't use any symbols that it defines.
40187
40188 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
40189
40190         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40191         $@-t, so that each temporary file name is unique and valid in the first
40192         8 characters, for operation under DOS.
40193
40194 2002-06-15  Paul Eggert  <eggert@twinsun.com>
40195
40196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40197
40198 2002-06-15  Jim Meyering  <meyering@lucent.com>
40199
40200         Work even with DJGPP 2.03, which lacks support for symlinks.
40201         From Richard Dawe.
40202         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40203         is defined.
40204         * lib/lchown.c (S_ISLNK): Likewise.
40205
40206 2002-06-15  Jim Meyering  <meyering@lucent.com>
40207
40208         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40209         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40210         have been included before this file.
40211
40212 2002-06-14  Jim Meyering  <meyering@lucent.com>
40213
40214         * lib/file-type.h: Use the version from diffutils-2.8.2.
40215         * lib/file-type.c: Likewise.
40216
40217 2002-06-07  Jim Meyering  <meyering@lucent.com>
40218
40219         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40220         They're needed at least for NetBSD 1.5.2.
40221         ($statxfs_includes): Include those same headers.
40222         ($statxfs_includes): Include sys/vfs.h if available.
40223         ($statxfs_includes): Likewise for sys/statvfs.h.
40224         Check for the following members in both structs statfs and statvfs:
40225         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40226
40227 2002-06-01  Jim Meyering  <meyering@lucent.com>
40228
40229         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40230         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40231
40232 2002-05-28  Jim Meyering  <meyering@lucent.com>
40233
40234         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40235         Reported by Volker Borchert.
40236
40237 2002-05-27  Jim Meyering  <meyering@lucent.com>
40238
40239         Fix a problem seen only on nonconforming systems whereby ls.c's
40240         use of localtime, and then of gettimeofday would cause trouble:
40241         the localtime call used to initialize rpl_gettimeofday's save
40242         mechanism would clobber ls's current local time information so
40243         that in any long listing the first file would always be listed
40244         with date 1970-01-01.  Analysis by Volker Borchert.
40245
40246         * lib/gettimeofday.c (localtime): Undefine.
40247         (rpl_localtime): New function.
40248
40249 2002-05-27  Jim Meyering  <meyering@lucent.com>
40250
40251         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40252         localtime.
40253
40254         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40255         use the replacement function; it wouldn't resolve at link time.
40256         Reported by Volker Borchert.
40257
40258 2002-05-22  Jim Meyering  <meyering@lucent.com>
40259
40260         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40261         file-type.h.
40262         * lib/file-type.h: New file.
40263         * lib/file-type.c (file_type): New file/function.  Extracted from
40264         diffutils.
40265
40266 2002-04-30  Jim Meyering  <meyering@lucent.com>
40267
40268         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40269
40270 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40271
40272         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40273
40274 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40275
40276         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40277         Do not check for alloca.h (no longer used) or stdbool.h (was never
40278         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
40279
40280 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40281
40282         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40283
40284 2002-04-29  Jim Meyering  <meyering@lucent.com>
40285
40286         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40287         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40288         Use AC_FUNC_STRNLEN here instead.
40289
40290         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40291         With autoconf-2.53a, it's part of AC_PROG_CC.
40292
40293 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40294
40295         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40296         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40297
40298 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40299
40300         * lib/sig2str.h, lib/sig2str.c: New files.
40301         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40302
40303 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40304
40305         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40306         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
40307         of 127, since 64 is the largest conceivable number for ancient
40308         nonstandard hosts.
40309         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40310
40311 2002-04-28  Jim Meyering  <meyering@lucent.com>
40312
40313         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40314
40315 2002-04-24  Jim Meyering  <meyering@lucent.com>
40316
40317         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40318         (jm_PREREQ): Use it.
40319
40320         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40321         mach/mach.h fcntl.h.
40322         Check for this function: setlocale.
40323
40324 2002-04-24  Jim Meyering  <meyering@lucent.com>
40325
40326         * lib/gettext.h: New file, from Gettext.
40327         * lib/Makefile.am (INCLUDES): Remove -I../intl.
40328         (libfetish_a_SOURCES): Add gettext.h.
40329
40330 2002-04-16  Jim Meyering  <meyering@lucent.com>
40331
40332         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40333         ut_pid, ut_id, ut_exit.
40334
40335 2002-04-16  Jim Meyering  <meyering@lucent.com>
40336
40337         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40338         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40339         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40340
40341 2002-04-12  Jim Meyering  <meyering@lucent.com>
40342
40343         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40344         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
40345         existence of the getmntinfo function.  Needed for Darwin 5.3.
40346
40347         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40348         This is necessary at least on Darwin 5.3.
40349
40350         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40351         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
40352         strnlen.o in the library, and that makes some versions of ranlib
40353         object.
40354
40355 2002-04-12  Jim Meyering  <meyering@lucent.com>
40356
40357         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40358
40359 2002-04-09  Jim Meyering  <meyering@lucent.com>
40360
40361         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40362         to be more precise.  Rather than saying we're checking whether the
40363         function `works', say what we're testing.
40364         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40365         Reported by Bruno Haible.
40366
40367 2002-03-10  Jim Meyering  <meyering@lucent.com>
40368
40369         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40370         Suggestion from Santiago Vila.
40371
40372 2002-03-08  Jim Meyering  <meyering@lucent.com>
40373
40374         * lib/rename.c: Mention that this wrapper is needed also on
40375         mips-dec-ultrix4.4 systems.
40376
40377 2002-03-02  Jim Meyering  <meyering@lucent.com>
40378
40379         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40380         not HAVE_CLOCK_SETTIME.
40381
40382 2002-02-27  Paul Eggert  <eggert@twinsun.com>
40383
40384         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40385         Check for clock_settime.
40386
40387 2002-02-27  Paul Eggert  <eggert@twinsun.com>
40388
40389         * lib/nanosleep.h: Rename to....
40390         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
40391
40392         * lib/gettime.c: New file.
40393         * lib/settime.c: New file.
40394         * lib/stime.c: Remove.
40395
40396         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40397         timespec.h.  Remove nanosleep.h.
40398
40399 2002-02-25  Paul Eggert  <eggert@twinsun.com>
40400
40401         * m4/acl.m4: New file.
40402         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40403         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40404
40405 2002-02-25  Paul Eggert  <eggert@twinsun.com>
40406
40407         * lib/acl.c, lib/acl.h: New files.
40408         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40409
40410 2002-02-24  Jim Meyering  <meyering@lucent.com>
40411
40412         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40413         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40414         cause trouble.  Reported by Nelson Beebe.
40415
40416 2002-02-23  Paul Eggert  <eggert@twinsun.com>
40417
40418         * lib/path-concat.c (xpath_concat): Reorder code to pacify
40419         compilers that don't know that xalloc_die never returns.
40420
40421 2002-02-20  Jim Meyering  <meyering@lucent.com>
40422
40423         * lib/getdate.c: Regenerate using bison-1.33.
40424
40425 2002-02-17  Jim Meyering  <meyering@lucent.com>
40426
40427         * config/config.guess (main): Don't use `head -1'; it's no longer
40428         portable. Use `sed 1q' instead.
40429
40430 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
40431
40432         * m4/codeset.m4: Upgrade to gettext-0.11.
40433         * m4/gettext.m4: Upgrade to gettext-0.11.
40434         * m4/glibc21.m4: Upgrade to gettext-0.11.
40435         * m4/iconv.m4: Upgrade to gettext-0.11.
40436         * m4/isc-posix.m4: Upgrade to gettext-0.11.
40437         * m4/lcmessage.m4: Upgrade to gettext-0.11.
40438         * m4/lib-ld.m4: New file, from gettext-0.11.
40439         * m4/lib-link.m4: New file, from gettext-0.11.
40440         * m4/lib-prefix.m4: New file, from gettext-0.11.
40441         * m4/progtest.m4: Upgrade to gettext-0.11.
40442
40443 2002-02-15  Paul Eggert  <eggert@twinsun.com>
40444
40445         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40446         (jm_PREREQ): Use it.
40447
40448 2002-02-15  Paul Eggert  <eggert@twinsun.com>
40449
40450         * lib/posixver.c, lib/posixver.h: New files.
40451         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40452
40453 2002-02-02  Paul Eggert  <eggert@twinsun.com>
40454             Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
40457         (fwrite_success_callback): New declaration.
40458         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
40459         print_unicode_char. Call failure callback instead of error.
40460         (fwrite_success_callback): New function.
40461         (exit_failure_callback): New function.
40462         (fallback_failure_callback): New function.
40463         (print_unicode_char): Call unicode_to_mb.
40464
40465 2002-01-26  Jim Meyering  <meyering@lucent.com>
40466
40467         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
40468         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
40469
40470 2002-01-26  Jim Meyering  <meyering@lucent.com>
40471
40472         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
40473
40474 2002-01-22  Paul Eggert  <eggert@twinsun.com>
40475
40476         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
40477
40478 2002-01-22  Jim Meyering  <meyering@lucent.com>
40479
40480         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
40481         Otherwise, some versions of automake would omit the rule that makes
40482         Makefile from Makefile.in.
40483
40484 2002-01-21  Paul Eggert  <eggert@twinsun.com>
40485
40486         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
40487         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40488         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
40489         (memcoll): Set errno to zero if there is no error.
40490
40491         * lib/quotearg.c (quotearg_buffer_restyled):
40492         Fix bug with quoting buffers containing NUL when backslashing escapes.
40493         This bug was exposed by the other changes in this patch.
40494         (quotearg_n_options): New arg ARGSIZE.
40495         All callers changed.
40496         (quoting_options_from_style): New function.
40497         (quotearg_n_style): Use it.
40498         (quotearg_n_style_mem): New function.
40499
40500         * lib/quotearg.h (quotearg_n_style_mem): New function.
40501
40502 2002-01-19  Jim Meyering  <meyering@lucent.com>
40503
40504         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
40505         Remove useless quotes: DF_PROG="df".
40506         * m4/strnlen.m4: New file.
40507
40508 2002-01-16  Paul Eggert  <eggert@twinsun.com>
40509
40510         * lib/backupfile.c (ISDIGIT): Comment fix.
40511         * lib/getdate.y (ISDIGIT): Likewise.
40512         * lib/posixtm.c (ISDIGIT, year): Likewise.
40513         * lib/strverscmp.c (ISDIGIT): Likewise.
40514         * lib/userspec.c (ISDIGIT): Likewise.
40515
40516 2002-01-16  Jim Meyering  <meyering@lucent.com>
40517
40518         * lib/getdate.y: Add three semicolons, each just before a closing
40519         brace. Bison (as of version 1.31) no longer papers over that mistake.
40520
40521 2002-01-05  Jim Meyering  <meyering@lucent.com>
40522
40523         * lib/version-etc.c (version_etc_copyright): Update copyright year.
40524
40525 2001-12-19  Paul Eggert  <eggert@twinsun.com>
40526
40527         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
40528         not silently exit merely because the output buffer happens to
40529         have nothing pending.
40530
40531 2001-12-18  Paul Eggert  <eggert@twinsun.com>
40532
40533         See the big note in ../ChangeLog.
40534         * lib/human.c (suffixes): Prefer K to k for 1024.
40535         (generate_suffix_backwards): New function.
40536         (human_readable_inexact): Use it.
40537         * lib/xstrtol.c (__xstrtol): If there is no number but there
40538         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
40539         Accept 'K' as well as 'k'.
40540
40541 2001-12-15  Jim Meyering  <meyering@lucent.com>
40542
40543         * lib/regex.h (__restrict_arr): Update from libc.
40544
40545         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
40546         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
40547         (STREQ): Define.
40548
40549 2001-12-14  Jim Meyering  <meyering@lucent.com>
40550
40551         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
40552         Suggestion from Bruno Haible.
40553
40554 2001-12-10  Jim Meyering  <meyering@lucent.com>
40555
40556         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
40557         xrealloc, Instead, include "xalloc.h".
40558         (initbuffer): Don't cast xmalloc return value to char*.
40559         (readline): Reword comment.
40560         Don't cast xrealloc return value to char*
40561         Return NULL, not 0.
40562
40563 2001-12-09  Jim Meyering  <meyering@lucent.com>
40564
40565         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
40566         about `signed and unsigned type in conditional expression'.
40567         * lib/posixtm.c (posix_time_parse): Likewise.
40568
40569         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
40570
40571         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
40572         to avoid a pedantic warning.
40573
40574         * lib/getstr.c: Don't include assert.h.
40575         (getstr): Remove warning-evoking assertions.
40576         Return -1 if offset parameter is out of bounds.
40577         Change the type of a local from int to size_t.
40578
40579         * lib/strftime.c (my_strftime_localtime_r): Include this function
40580         definition in the `#if ! HAVE_TM_GMTOFF' block.
40581
40582         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
40583         Include xalloc.h instead.
40584
40585 2001-12-02  Jim Meyering  <meyering@lucent.com>
40586
40587         * lib/tempname.c: Don't declare getenv, thus reverting the change of
40588         2001-11-18.  It's no longer necessary, now that stdlib.h is always
40589         included.
40590
40591         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
40592         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
40593
40594 2001-11-30  Akim Demaille  <akim@epita.fr>
40595
40596         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
40597         before being defined.
40598
40599 2001-11-27  Paul Eggert  <eggert@twinsun.com>
40600
40601         * lib/quotearg.h (quotearg_n, quotearg_n_style):
40602         First arg is int, not unsigned.
40603         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
40604         (SIZE_MAX, UINT_MAX): New macros.
40605         (quotearg_n_options): Abort if N is negative.
40606         Avoid overflow check on hosts where size_t is 64 bits and int
40607         is 32 bits, as overflow is impossible there.
40608         Fix off-by-one typo that caused unnecessary reallocation.
40609
40610 2001-11-27  Jim Meyering  <meyering@lucent.com>
40611
40612         * lib/tempname.c: Merge with version from libc.
40613         * lib/regex.c: Likewise.
40614
40615         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
40616         systems for which STDC_HEADERS is 0, it was not included, resulting in
40617         a warning about an integer-to-pointer conversion problem with getenv.
40618         Reported by Volker Borchert.
40619
40620 2001-11-26  Jim Meyering  <meyering@lucent.com>
40621
40622         * lib/gtod.h: Remove file.
40623         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
40624         * lib/gettimeofday.c: Don't include gtod.h.
40625         (GTOD_init): Remove function.
40626         (rpl_gettimeofday): Do its job here instead, rather than aborting.
40627         Suggestion from Volker Borchert.
40628
40629 2001-11-23  Jim Meyering  <meyering@lucent.com>
40630
40631         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
40632         it.
40633         * lib/hash.c (struct hash_table): Define it here instead.
40634
40635 2001-11-22  Jim Meyering  <meyering@lucent.com>
40636
40637         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
40638
40639 2001-11-20  Jim Meyering  <meyering@lucent.com>
40640
40641         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
40642         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
40643
40644 2001-11-19  Jim Meyering  <meyering@lucent.com>
40645
40646         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
40647         directory.  Use "conftestXXXXXX" as the template.
40648         Suggestion from Paul Eggert.
40649
40650         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
40651         immediately, so the test doesn't mistakenly hit the max-open-files
40652         limit.
40653
40654 2001-11-18  Paul Eggert  <eggert@twinsun.com>
40655
40656         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40657         (TEMPORARIES): New macro.
40658         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
40659         removes an artificial limitation (e.g. HP-UX 10.20, where
40660         TMP_MAX is 17576).
40661
40662 2001-11-18  Jim Meyering  <meyering@lucent.com>
40663
40664         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40665
40666 2001-11-18  Jim Meyering  <meyering@lucent.com>
40667
40668         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40669         on SunOS 4.
40670
40671         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40672         files will be created before anything else.
40673
40674 2001-11-17  Paul Eggert  <eggert@twinsun.com>
40675
40676         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40677         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40678
40679 2001-11-17  Jim Meyering  <meyering@lucent.com>
40680
40681         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40682         Prompted by a report from Bob Proulx.
40683
40684         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40685         Instead, require UTILS_FUNC_MKSTEMP.
40686
40687 2001-11-17  Jim Meyering  <meyering@lucent.com>
40688
40689         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40690         Now, that's done as part of AC_FUNC_STRTOD.
40691
40692 2001-11-17  Jim Meyering  <meyering@lucent.com>
40693
40694         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40695         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40696         rather than group writable.  Patch by Juan F. Codagnone.
40697
40698         * lib/readtokens.c: Remove explicit declarations of xmalloc and
40699         xrealloc, Instead, include "xalloc.h".
40700
40701         * lib/mountlist.c: Include unlocked-io.h after all system headers.
40702         Remove explicit declarations of xmalloc, xrealloc,
40703         and xstrdup.  Instead, include "xalloc.h".
40704
40705         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40706         unlocked-io.h.
40707         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40708         Likewise.
40709         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40710
40711         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40712         Reported by Padraig Brady.
40713
40714         * lib/mkstemp.c: #undef mkstemp.
40715         Include config.h.
40716         (rpl_mkstemp): Rename from mkstemp.
40717         Protoize.
40718
40719 2001-11-16  Jim Meyering  <meyering@lucent.com>
40720
40721         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40722         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40723         determine the amount of total physical memory, use pstat_getstatic.
40724         HPUX-11 doesn't define _SC_PHYS_PAGES.
40725         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40726         If sysconf couldn't be used to determine the amount of available
40727         physical memory, use both pstat_getstatic and pstat_getdynamic.
40728         Based on a patch from Bob Proulx.
40729
40730 2001-11-10  Jim Meyering  <meyering@lucent.com>
40731
40732         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40733         (jm_PREREQ): Use it.
40734
40735 2001-11-09  Jim Meyering  <meyering@lucent.com>
40736
40737         * m4/jm-macros.m4: Require autoconf-2.52f.
40738         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40739         Use these AC_-prefixed names, not the AM_-prefixed ones.
40740
40741         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
40742
40743 2001-11-05  Jim Meyering  <meyering@lucent.com>
40744
40745         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40746
40747 2001-11-04  Jim Meyering  <meyering@lucent.com>
40748
40749         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40750         $DEFS.
40751
40752 2001-11-03  Jim Meyering  <meyering@lucent.com>
40753
40754         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40755         of AC_DEFUN.
40756
40757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40758         know the name of the variable in the macro definition.
40759
40760 2001-11-03  Jim Meyering  <meyering@lucent.com>
40761
40762         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40763         in argmatch_to_argument call.
40764
40765         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40766         argument.
40767
40768         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40769         e.g., a fault due to an attempt to free a NULL pointer.
40770
40771 2001-11-01  Jim Meyering  <meyering@lucent.com>
40772
40773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40774         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40775
40776 2001-11-01  Jim Meyering  <meyering@lucent.com>
40777
40778         * lib/dirfd.c, lib/dirfd.h: New files.
40779         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40780
40781         * lib/hash.c (hash_print) [TESTING]: Clean up.
40782
40783 2001-10-22  Paul Eggert  <eggert@twinsun.com>
40784
40785         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40786         to avoid a warning if -Wall.
40787
40788 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
40789
40790         * README: New file
40791         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40792         (per RMS's instructions, this is now the canonical source)
40793         * lgpl/, gpl/: New directories.
40794
40795 2001-10-21  Paul Eggert  <eggert@twinsun.com>
40796
40797         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40798
40799 2001-10-21  Jim Meyering  <meyering@lucent.com>
40800
40801         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
40802         this code would end up calling gettext even in packages built
40803         with --disable-nls.
40804         * lib/getopt.c (_): Likewise.
40805         * lib/regex.c (_): Likewise.
40806
40807 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40808
40809         * m4/error.m4 (jm_PREREQ_ERROR):
40810         Do not invoke AC_CHECK_FUNCS with strerror_r, as
40811         AC_FUNC_STRERROR_R does that.
40812         Check for strerror declaration.
40813
40814         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40815         are supposed to have them these days.
40816         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40817         Merge changes from latest Autoconf CVS.
40818         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40819         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40820         POSIX decided to standardize on the int flavor of strerror_r.
40821
40822 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40823
40824         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40825         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40826         Use strerror_r that is only a macro, even if it is not a function.
40827         (strerror): Check for HAVE_DECL_STRERROR before declaring.
40828         (private_strerror): Use prototypes, not old-style function definition.
40829         (print_errno_message): New function.
40830         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40831         char*-flavored one.
40832         (error_tail, error, error_at_line): Use it.
40833
40834 2001-10-11  Jim Meyering  <meyering@lucent.com>
40835
40836         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40837         and quote_n (1, ... to avoid clobbering a buffer.
40838
40839 2001-10-05  Jim Meyering  <meyering@lucent.com>
40840
40841         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40842         hash-pjw.h.
40843         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40844         * lib/hash-pjw.h: New file.
40845
40846 2001-09-30  Jim Meyering  <meyering@lucent.com>
40847
40848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40849         `struct fsstat' has the `f_fstypename' member.
40850         Use that to define FS_TYPE, which is now used to make
40851         the getfsstat link test tighter.
40852
40853 2001-09-30  Jim Meyering  <meyering@lucent.com>
40854
40855         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40856         Include <sys/ucred.h>, for Apple Darwin.
40857         Include sys/mount.h and sys/fs_types.h only if available.
40858         (FS_TYPE): Define.
40859         (read_filesystem_list): Use FS_TYPE.
40860
40861 2001-09-29  Paul Eggert  <eggert@twinsun.com>
40862
40863         * lib/exclude.c (excluded_filename): 0 -> false, since it's
40864         a boolean context.
40865
40866 2001-09-29  Jim Meyering  <meyering@lucent.com>
40867
40868         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40869         [one-argument getmntent function]): Include stdio.h before mntent.h.
40870         SunOS 4.1.x needs it for the declaration of `FILE'.
40871         Patch by Volker Borchert.
40872
40873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40874         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40875         sys/fs_types.h, and make the link-test for getfsstat guard #include
40876         directives with appropriate #if HAVE_*_H tests so that we can
40877         detect getfsstat on Apple Darwin1.3.7 systems.
40878         Reported by Nelson Beebe.
40879         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40880
40881 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40882
40883         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40884         #defines strtoimax.  Also treat the other strto* functions
40885         like strtoimax.
40886
40887         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40888         Check for strtoul and strtoumax,
40889         as those declarations are made even in the signed case.
40890         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40891         Likewise, for strtol and strtoimax.
40892
40893 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40894
40895         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40896         #defines strtoimax.  Also treat the other strto* functions
40897         like strtoimax.
40898
40899         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40900         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40901         (strtoimax, strtoumax): Do not declare if already defined as a macro.
40902
40903 2001-09-26  Jim Meyering  <meyering@lucent.com>
40904
40905         Most macros in unlocked-io.h had the wrong number of arguments.
40906         * lib/gen-uio: New script.
40907         (USE_UNLOCKED_IO): Define to 1 if not already defined.
40908         * lib/unlocked-io.hin: Remove file.
40909         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40910         rather than trying to embed it here.
40911         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
40912         Reported by Padraig Brady.
40913
40914 2001-09-25  Volker Borchert  <bt@teknon.de>
40915
40916         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40917         `result'.
40918
40919 2001-09-24  Jim Meyering  <meyering@lucent.com>
40920
40921         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40922
40923 2001-09-23  Jim Meyering  <meyering@lucent.com>
40924
40925         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40926         instead of the mere test for existence of mntent.h.  The latter
40927         would get a false-positive on AIX 3.4 systems.
40928         In the outer getmntent if-block, don't die if neither of the getmntent
40929         tests succeeds.  Instead, just fall through and continue with the
40930         remaining tests.
40931
40932 2001-09-23  Jim Meyering  <meyering@lucent.com>
40933
40934         * lib/mountlist.c: Remove useless parentheses in #if directives.
40935         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40936         the deprecated MOUNTED symbol is no longer defined in mntent.h.
40937
40938 2001-09-22  Jim Meyering  <meyering@lucent.com>
40939
40940         * m4/gettext.m4: New file.  From gettext.
40941         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40942         * m4/progtest.m4: Likewise
40943         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40944         * m4/glibc21.m4: Likewise.
40945
40946         * m4/libintl.m4: Remove.  No longer used.
40947
40948 2001-09-22  Jim Meyering  <meyering@lucent.com>
40949
40950         * lib/localcharset.c: Update from latest gettext.
40951         * lib/config.charset: Likewise.
40952
40953 2001-09-20  Jim Meyering  <meyering@lucent.com>
40954
40955         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40956         strtoimax.
40957         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40958         strtoumax.
40959
40960 2001-09-20  Jim Meyering  <meyering@lucent.com>
40961
40962         * lib/xstrtol.c (strtoimax): Guard declaration with
40963         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40964         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40965         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40966         (strtoumax): Likewise, for completeness (it wasn't necessary).
40967
40968 2001-09-17  Paul Eggert  <eggert@twinsun.com>
40969
40970         * lib/strtoimax.c (HAVE_LONG_LONG):
40971         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40972         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40973         to work around bug in IBM C compiler.
40974
40975 2001-09-17  Jim Meyering  <meyering@lucent.com>
40976
40977         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40978         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40979         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40980         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40981         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40982         whenever the right hand side need not be expanded by the shell.
40983
40984 2001-09-16  Paul Eggert  <eggert@twinsun.com>
40985
40986         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40987         library.  It's not correct, as some older glibcs are buggy.
40988         fnmatch wasn't fixed until glibc 2.2.
40989
40990         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40991         special shell magic here.
40992
40993 2001-09-16  Jim Meyering  <meyering@lucent.com>
40994
40995         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40996         * m4/jm-macros.m4: Require it.
40997
40998 2001-09-16  Jim Meyering  <meyering@lucent.com>
40999
41000         * lib/mkdir.c: New file.
41001
41002 2001-09-15  Jim Meyering  <meyering@lucent.com>
41003
41004         * m4/jm-macros.m4: Check for help2man.
41005
41006 2001-09-11  Jim Meyering  <meyering@lucent.com>
41007
41008         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
41009         The body, by Paul Eggert, was moved here from configure.in.
41010         * m4/jm-macros.m4: Require UTILS_HOST_OS.
41011
41012 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41013
41014         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
41015         (jm_PREREQ): Use it.
41016
41017 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41018
41019         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
41020         Use ssize_t, not int, to store result of readlink.
41021         Check for ssize_t overflow as well as size_t overflow,
41022         as POSIX says the result of readlink is implementation-defined
41023         when ssize_t overflows.
41024         Remove unnecessary cast to char*.
41025         Use free+malloc instead of realloc, as the storage doesn't need
41026         to be preserved and it's clearer and can be more efficient that way.
41027         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
41028         * lib/xreadlink.h (xreadlink): Update prototype.
41029
41030 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41031
41032         * lib/xgetcwd.c: Revert some of the previous change; intead,
41033         fix the HAVE_GETCWD_NULL code to behave more like the
41034         !HAVE_GETCWD_NULL code used to.
41035
41036         Include "xalloc.h".
41037         (xgetcwd): Do not return NULL when memory is exhausted; instead,
41038         invoke xalloc_die.
41039
41040 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41041
41042         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
41043         sys/param.h, as pathmax.h includes them.
41044
41045 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41046
41047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
41048         (jm_PREREQ_XGETCWD): New macro.
41049
41050         * m4/getcwd.m4: New file.
41051
41052 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41053
41054         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
41055         like the HAVE_GETCWD_NULL code.
41056         Include pathmax.h if not HAVE_GETCWD.
41057         Do not include xalloc.h.
41058         (INITIAL_BUFFER_SIZE): New symbol.
41059         Do not use xmalloc / xrealloc, since the caller is responsible for
41060         handling errors.  Preserve errno around `free' during failure.
41061         Do not overrun buffer when using getwd.
41062
41063 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41064
41065         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
41066         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
41067         getcwd (NULL, 0).
41068
41069 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41070
41071         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
41072         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
41073         spotted by Jim Meyering.
41074
41075 2001-09-03  Jim Meyering  <meyering@lucent.com>
41076
41077         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41078         failure.
41079
41080 2001-09-02  Jim Meyering  <meyering@lucent.com>
41081
41082         * lib/error.c: Update from GNU libc.
41083
41084 2001-09-01  Jim Meyering  <meyering@lucent.com>
41085
41086         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
41087         Used by df.
41088
41089 2001-09-01  Jim Meyering  <meyering@lucent.com>
41090
41091         * lib/xreadlink.c: New file.
41092         * lib/xreadlink.h: New file.
41093         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
41094         xreadlink.h.
41095
41096         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
41097         doesn't conflict with sparc Solaris 7's definition in
41098         /usr/include/sys/int_types.h.
41099
41100         * lib/exclude.c: Use `""', not `<>' to #include non-system header
41101         files.
41102         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
41103         and strncasecmp as r-values.  Unixware didn't have declarations.
41104
41105 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41106
41107         * lib/xstrtol.h: Add copyright notice.
41108         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
41109         LONGINT_INVALID_SUFFIX_CHAR.
41110
41111 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41112
41113         * lib/xstrtol.c (strtoimax): New decl.
41114
41115 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41116
41117         * lib/xgetcwd.c: Don't include pathmax.h.
41118         Include stdlib.h and unistd.h if available.
41119         Include xalloc.h.
41120         (xmalloc, xstrdup, free): Remove decls.
41121         (xgetcwd): Don't assume sizes fit in unsigned.
41122         Check for overflow when computing sizes.
41123         Simplify reallocation code.
41124
41125 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41126
41127         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41128         a directory's st_size can have an arbitrary value, so the old
41129         usage could waste an arbitrary amount of memory.  All uses
41130         changed.
41131         * lib/savedir.h: Update prototype.
41132
41133 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41134
41135         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41136
41137         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41138         old strtoimax.c.
41139
41140         Also, make the following further changes to make this file's
41141         configuration more similar to that of strtol.c:
41142         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
41143         (strtoumax, uintmax_t, strtoull, strtol): Remove.
41144         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41145         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
41146         changed to signed values.
41147
41148         And make the following changes as well:
41149         Fix copyright notice, as 1999 was missing.
41150         (verify): New macro.
41151         (strtoimax): Check sizes at compile-time, not run-time.
41152         Prefer strtol to strtoll if both work.
41153         (main): Remove; it was not that useful and was a pain to maintain.
41154
41155         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41156
41157 2001-08-31  Jim Meyering  <meyering@lucent.com>
41158
41159         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41160         Use an initial, malloc'd, buffer of length 128 rather than
41161         a statically allocated one of length 1024.
41162
41163 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41164
41165         Simplify code, partly by assuming autoconf 2.52 semantics.
41166
41167         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41168
41169         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41170         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41171         All uses removed.
41172         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41173         Move AC_REQUIRE to next-to-top level, to avoid confusion.
41174         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41175         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41176         jm_AC_HEADER_INTTYPES_H.
41177         * m4/jm-macros.m4 (jm_MACROS): Likewise.
41178
41179         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41180
41181         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41182         Quote first arg of AC_DEFUN.
41183         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41184         since they are needed to parse the include file even if we need
41185         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
41186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41187         but with opposite signedness.
41188
41189 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41190
41191         Merge 'exclude' changes from tar 1.13.22.
41192         This fixes one or two unlikely storage allocation overflow bugs,
41193         but doesn't change user-visible behavior otherwise.
41194
41195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41196
41197         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41198         (jm_PREREQ_EXCLUDE): New macro.
41199
41200 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41201
41202         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41203         tm to be declared.
41204
41205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41206
41207         * lib/hash.c: Remove '2001' from copyright notice.
41208
41209 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41210
41211         * lib/full-write.h: New file.
41212         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41213         * lib/full-write.c: Correct credits, as cccp.c no longer
41214         exists and anyway it was so heavily changed from the old cccp
41215         code as to be unrecognizable.  Include full-write.h.
41216         (full_write) Return size_t, with short writes meaning failure.
41217         All callers changed.  This fixes a bug with large buffers
41218         on 64-bit hosts.
41219         * lib/utime.c: Include full-write.h.
41220
41221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41222
41223         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41224         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41225         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41226         Include if available.
41227         (<xalloc.h>): Include
41228         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41229         (verify): New macro.  Use it to verify that EXCLUDE macros do not
41230         collide with FNM macros.
41231         (struct patopts): New struct.
41232         (struct exclude): Use it, as exclude patterns now come with options.
41233         (new_exclude): Support above changes.
41234         (new_exclude, add_exclude_file):
41235         Initial size must now be a power of two to simplify overflow checking.
41236         (free_exclude, fnmatch_no_wildcards): New function.
41237         (excluded_filename): No longer requires options arg, as the options
41238         are determined by add_exclude.  Now returns bool, not int.
41239         (excluded_filename, add_exclude):
41240         Add support for the fancy new exclusion options.
41241         (add_exclude, add_exclude_file): Now takes int options arg.
41242         Check for arithmetic overflow when computing sizes.
41243         (add_exclude_file): xrealloc might modify errno, so don't
41244         realloc until after errno might be used.
41245
41246         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41247         New macros.
41248         (free_exclude): New decl.
41249         (add_exclude, add_exclude_file): Now takes int options arg.
41250         (excluded_filename): No longer requires options arg, as the options
41251         are determined by add_exclude.  Now returns bool, not int.
41252
41253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41254
41255         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41256
41257 2001-08-27  Jim Meyering  <meyering@lucent.com>
41258
41259         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41260
41261         * lib/version-etc.c (N_): Remove definition.
41262         Revert most of last change.
41263         Instead, simply don't mark the `Copyright...' string for translation.
41264         Based on advice from Paul Eggert.
41265
41266         * lib/strtoxmax.c: Tweak comment.
41267
41268 2001-08-26  Jim Meyering  <meyering@lucent.com>
41269
41270         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41271
41272         * m4/xstrtoimax.m4: New file.
41273         * m4/xstrtoumax.m4: Add comments explaining why we
41274         AC_REPLACE_FUNCS(strtol).
41275
41276 2001-08-26  Jim Meyering  <meyering@lucent.com>
41277
41278         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41279         of copyright with `%s' so translators don't get an untranslated
41280         message in 2002.
41281         (COPYRIGHT_YEAR): Define.
41282         (version_etc): Use fprintf rather than fputs.
41283         Suggestion from Ulrich Drepper.
41284
41285         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41286
41287         * lib/strtoll.c: New file, from GNU libc.
41288         * lib/xstrtoimax.c: New file.
41289
41290         * lib/xstrtol.h: Add xstrtoimax.
41291         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
41292         * lib/strtoimax.c: New file.  Likewise, but first define
41293         STRTOUXMAX_SIGNED.
41294
41295         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41296         ...
41297         * lib/strtoxmax.c: ... then renamed to this.
41298
41299 2001-08-18  Paul Eggert  <eggert@twinsun.com>
41300
41301         * m4/inttypes.m4: Add AC_PREREQ(2.13).
41302         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41303         (jm_AC_TYPE_INTMAX_T): New macro.
41304         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41305
41306         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41307
41308         * m4/longlong.m4: Renamed from ulonglong.m4.
41309         * m4/inttypes.m4: Renamed from inttypes_h.m4.
41310         * m4/uintmax_t.m4: Removed.
41311
41312 2001-08-13  Paul Eggert  <eggert@twinsun.com>
41313
41314         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41315         Port to Solaris 8, where 'sed' requires a space after the 'r'
41316         command, and where sh dislikes "$/".  Clean up the spacing a bit.
41317         Redirect output to $tmp just once.
41318
41319 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
41320
41321         * lib/addext.c (<errno.h>): Include.
41322         (errno): Declare if not defined.
41323         (addext): Work correctly when pathconf returns -1 and leaves
41324         errno alone because there is no limit.  Also, work even if
41325         pathconf returns a value greater than SIZE_MAX.
41326
41327 2001-08-12  Jim Meyering  <meyering@lucent.com>
41328
41329         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41330         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41331         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41332         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41333         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41334         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41335         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41336         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41337         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41338         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41339         utime.m4, utimes.m4, xstrtoumax.m4:
41340         Quote the first argument in each use of AC_DEFUN.
41341
41342 2001-08-12  Jim Meyering  <meyering@lucent.com>
41343
41344         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41345         Simply `return getcwd (NULL, 0);'.
41346         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41347         Use 1300 as initial value for length, not PATH_MAX.
41348
41349         * lib/pathmax.h: Clean up cpp syntax.
41350
41351 2001-08-12  Jim Meyering  <meyering@lucent.com>
41352
41353         * lib/gettimeofday.c: New file.
41354         * lib/gtod.h: New file.
41355         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41356
41357 2001-08-05  Jim Meyering  <meyering@lucent.com>
41358
41359         * m4/jm-macros.m4: Require autoconf-2.52.
41360
41361 2001-08-04  Jim Meyering  <meyering@lucent.com>
41362
41363         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41364         stmt, to get in sync with glibc.
41365
41366 2001-08-03  Paul Eggert  <eggert@twinsun.com>
41367
41368         The following changes are from gettext 0.10.39 as maintained by
41369         Bruno Haible.
41370
41371         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41372         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41373         with inverted sense.  All uses changed.
41374
41375         * lib/mbswidth.c: Don't include <limits.h>.
41376         Include <stdlib.h> and <string.h> unconditionally.
41377         (iswcntrl, mbsinit, ISCNTRL): New macros.
41378         (mbsnwidth): Use K&R style function declarations.
41379         Don't bother checking for MB_LEN_MAX == 1, since the compiler
41380         can optimize it when MB_CUR_MAX == 1.
41381         The width of control characters is zero, not 1.
41382
41383 2001-08-03  Paul Eggert  <eggert@twinsun.com>
41384
41385         The following changes are from gettext 0.10.39 as maintained by
41386         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41387
41388         * m4/codeset.m4: Upgrade to serial AM1.
41389         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41390         all uses changed.  Quote first arg of AC_DEFUN.
41391         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41392
41393         * m4/iconv.m4: Upgrade to serial AM2.
41394         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41395         Add --with-libconv-prefix.
41396         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
41397         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41398         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41399         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41400         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41401
41402         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41403         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41404         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41405         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41406         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41407         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41408         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41409         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41410         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41411
41412         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41413         string.h any more.
41414
41415         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41416         not the default value.
41417
41418         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
41419         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41420         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
41421         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41422         Also check for iswcntrl, used for wcwidth fallback.
41423         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41424         to Autoconf 2.13.
41425
41426 2001-08-03  Jim Meyering  <meyering@lucent.com>
41427
41428         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41429         as it was in the original.  Reported by Paul Eggert.
41430
41431 2001-07-16  Jim Meyering  <meyering@lucent.com>
41432
41433         * m4/gettimeofday.m4: New file.
41434         Prompted by a report from Bernhard Baehr.
41435
41436 2001-07-15  Jim Meyering  <meyering@lucent.com>
41437
41438         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41439         stuff. Now it's in ../Makefile.cfg.
41440
41441 2001-07-15  Jim Meyering  <meyering@lucent.com>
41442
41443         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41444         (BUILT_SOURCES): Add unlocked-io.h.
41445         (io_functions): Define.
41446         (unlocked-io.h): New rule.
41447         (DISTCLEANFILES): Add unlocked-io.h.
41448         (all-local): Depend on unlocked-io.h, to ensure it is created.
41449
41450         * lib/unlocked-io.hin: New file
41451
41452         * lib/regex.c: Update from glibc.
41453
41454 2001-07-05  Jim Meyering  <meyering@lucent.com>
41455
41456         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
41457         recommendation.
41458         (libfetish_a_SOURCES): Put all .h files here instead.
41459         Remove a thus-exposed (better checks in automake) duplicate and
41460         two unnecessary .h files.
41461
41462 2001-07-04  Jim Meyering  <meyering@lucent.com>
41463
41464         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
41465         that generates jm-glibc-io.m4 so that it doesn't trigger any make
41466         distcheck failure.
41467
41468 2001-07-02  Jim Meyering  <meyering@lucent.com>
41469
41470         The following changes were prompted by suggestions from Bruno Haible.
41471
41472         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
41473         is now generated.
41474         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
41475         definition of EXTRA_DIST.
41476         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
41477         ensure that the generated file is created/updated whenever the list
41478         of $(unlocked_functions) is changed.
41479         (jm-glibc-io.m4): New rule.
41480         (unlocked-io.h): New rule -- currently unused.
41481
41482 2001-06-24  Jim Meyering  <meyering@lucent.com>
41483
41484         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
41485         unmatched right bracket, rather than kludging it with an extra,
41486         falsely-matching quote in a comment.  Patch by Akim Demaille.
41487
41488 2001-06-11  Jim Meyering  <meyering@lucent.com>
41489
41490         * lib/regex.c: Update from GNU libc.
41491
41492 2001-05-27  Jim Meyering  <meyering@lucent.com>
41493
41494         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
41495         Check for ut_type in struct utmp.
41496
41497 2001-05-27  Jim Meyering  <meyering@lucent.com>
41498
41499         * lib/readutmp.h (UT_TYPE): Define.
41500
41501 2001-05-24  Jim Meyering  <meyering@lucent.com>
41502
41503         * lib/argmatch.c: Include "quote.h".
41504         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
41505         quote function.  Reported by Göran Uddeborg.
41506
41507 2001-05-22  Jim Meyering  <meyering@lucent.com>
41508
41509         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
41510         now that we use the package-supplied version unconditionally.
41511         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
41512
41513 2001-05-21  Jim Meyering  <meyering@lucent.com>
41514
41515         * m4/regex.m4: Change a couple backticks to single quotes to avoid
41516         shell syntax errors.
41517
41518 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
41519
41520         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
41521
41522 2001-05-20  Paul Eggert  <eggert@twinsun.com>
41523
41524         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
41525         Don't bother to check library strftime, since
41526         we'll be using our own my_strftime function anyway.
41527         Define my_strftime instead of strftime.
41528
41529 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
41530
41531         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
41532         which is not yet declared.
41533
41534 2001-05-15  Jim Meyering  <meyering@lucent.com>
41535
41536         * m4/regex.m4: Use proper quoting so brackets appear in the test
41537         program.
41538         Reported by, and with help from, Bruno Haible.
41539
41540 2001-05-13  Jim Meyering  <meyering@lucent.com>
41541
41542         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
41543         undefined.
41544
41545 2001-05-11  Paul Eggert  <eggert@twinsun.com>
41546
41547         dirname code cleanup.  base_name now behaves more compatibly
41548         with POSIX basename when given file names that have trailing
41549         slashes, and similarly for dir_name.  Add new primitives
41550         base_len and dir_len.  Put the directory-name-related decls
41551         into dirname.h.
41552
41553         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
41554         * lib/backupfile.c (base_name): Likewise.
41555         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
41556         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
41557         * lib/makepath.c (strip_trailing_slashes): Likewise.
41558         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
41559         ISSLASH): Likewise.
41560         * lib/rename.c (strip_trailing_slashes): Likewise.
41561         * lib/same.c (base_name): Likewise.
41562         * lib/stripslash.c (ISSLASH): Likewise.
41563
41564         * lib/addext.c: Include <dirname.h> after size_t is defined.
41565         * lib/backupfile.c: Likewise.
41566
41567         * lib/addext.c (addext): Use base_len to trim redundant
41568         trailing slashes instead of doing it ourselves.
41569         But do not trim the last slash if it is not redundant.
41570
41571         * lib/backupfile.c (find_backup_file_name,
41572         max_backup_version): Use base_len instead of rolling it ourselves.
41573         Handle the case of "" and (on DOS) "C:" correctly.
41574
41575         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
41576         needed. Include <string.h>, <dirname.h>.
41577         (base_name): Allow file names ending in slashes, other than names
41578         that are all slashes.  In this case, return the basename followed
41579         by the slashes.  This is more general, and can be used in places
41580         where the original base_name purposely had an assertion failure.
41581         (base_len): New function.
41582
41583         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
41584         Do not include <assert.h>; no longer needed.
41585         Include xalloc.h.
41586         (memrchr): Remove decl.
41587         (dir_name_r): Remove.
41588         (dir_len): Renamed from dirlen.  All callers changed.
41589         Rewrite in terms of base_name, for simplicity and consistency.
41590         (dir_name): Never return NULL.  All callers changed.
41591         Do not include <stdlib.h> in test program; no longer needed.
41592         return 0; is fine for test program.
41593
41594         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
41595         New macros.
41596         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
41597
41598         * lib/path-concat.c (path_concat): Use base_len to compute
41599         base length, not strlen; this means we cannot rely on memcpy
41600         to null-terminate.
41601
41602         * lib/same.c (STREQ): Remove.
41603         (same_name): Handle the case where the basename ends in trailing '/'.
41604
41605         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
41606         a slash was stripped.  Do not strip the last slash after a
41607         file system prefix.
41608
41609 2001-05-11  Paul Eggert  <eggert@twinsun.com>
41610
41611         * lib/Makefile.am (libfetish_a_SOURCES):
41612         Add strftime.c, since we now compile it on all hosts.
41613
41614         * lib/strftime.c (my_strftime):
41615         Define to nstrftime if emacs, but only if my_strftime is not defined.
41616         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
41617         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
41618         Add one more extra argument: a nanoseconds value.
41619         All uses changed.
41620         (ns): New macro.
41621         (my_strftime function): Add %N format.
41622         (emacs_strftimeu): Renamed from emacs_strftime,
41623         with extra ut argument.
41624
41625 2001-05-09  Paul Eggert  <eggert@twinsun.com>
41626
41627         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
41628
41629 2001-04-21  Jim Meyering  <meyering@lucent.com>
41630
41631         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
41632         doesn't interfere.
41633
41634 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
41635
41636         * m4/ftruncate.m4: Check for chsize.
41637         Link with ftruncate.o unconditionally if ftruncate is missing.
41638         This was required when cross-compiling to i586-mingw32msvc.
41639
41640 2001-04-08  Jim Meyering  <meyering@lucent.com>
41641
41642         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
41643         recomputed; that's necessary when the offset spans a DST transition.
41644         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
41645
41646 2001-04-02  Jim Meyering  <meyering@lucent.com>
41647
41648         * lib/regex.h, regex.c: Update from GNU libc.
41649
41650 2001-03-24  Jim Meyering  <meyering@lucent.com>
41651
41652         * m4/jm-macros.m4: Require autoconf-2.49d.
41653
41654 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
41655
41656         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41657
41658 2001-03-19  Paul Eggert  <eggert@twinsun.com>
41659
41660         * lib/version-etc.c (version_etc_copyright): Update to 2001.
41661
41662 2001-03-17  Jim Meyering  <meyering@lucent.com>
41663
41664         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41665         now that the version in autoconf is equivalent.
41666         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41667
41668         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41669         Suggestion from Akim Demaille.
41670
41671         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41672         (jm_PREREQ_TEMPNAME): New function.
41673
41674 2001-03-16  Paul Eggert  <eggert@twinsun.com>
41675
41676         * lib/tempname.c (uint64_t): Define to uintmax_t if
41677         not defined, and if UINT64_MAX is not defined.
41678         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41679         Reported by John David Anglin.
41680
41681 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
41682
41683         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41684         resolve alias if codeset is empty.
41685         * lib/config.charset (BeOS): Use wildcard syntax.
41686
41687 2001-03-13  Jim Meyering  <meyering@lucent.com>
41688
41689         * lib/path-concat.c (path_concat)
41690         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41691         concatenating e.g., `C:' and `foo'.
41692         From Bruno Haible.
41693
41694 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41695
41696         * lib/localcharset.c (locale_charset): Don't use
41697         setlocale(LC_CTYPE,NULL). Don't return NULL.
41698         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41699
41700 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41701
41702         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41703         support for DOS/DJGPP.
41704
41705 2001-03-01  Paul Eggert  <eggert@twinsun.com>
41706
41707         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41708         lacks mkstemp.  Compile our own tempname.c if we compile our own
41709         mkstemp.c, as mkstemp relies on tempname.
41710
41711 2001-03-01  Jim Meyering  <meyering@lucent.com>
41712
41713         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41714         AH_VERBATIM really does output its argument verbatim.
41715
41716 2001-02-28  Paul Eggert  <eggert@twinsun.com>
41717
41718         * lib/Makefile.am (libfetish_a_SOURCES):
41719         Add dup-safer.c, fopen-safer.c.
41720         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41721
41722         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41723         * lib/unistd-safer.h: New files.
41724
41725 2001-02-25  Paul Eggert  <eggert@twinsun.com>
41726
41727         The mkstemp replacement is taken from glibc 2.2.2, with some
41728         portability fixes for use outside glibc, as follows:
41729
41730         * lib/tempname.c (struct_stat64): New macro.
41731         (direxists, __gen_tempname): Use it.
41732         This avoids a portability problem with Solaris 8.
41733
41734         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41735         (<stddef.h>, <stdint.h>, <string.h>):
41736         Include only if STDC_HEADERS || _LIBC.
41737         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41738         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41739         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41740         (__set_errno): Define this macro if <errno.h> doesn't.
41741         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41742         Define these macros if <stdio.h> doesn't.
41743         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41744         Define these macros if <sys/stat.h>
41745         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41746         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41747         __xstat64): Define if not _LIBC.
41748         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41749         (__gen_tempname): Invoke gettimeofday only if
41750         HAVE_GETTIMEOFDAY || _LIBC;
41751         otherwise, fall back on plain "time".
41752         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41753
41754         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41755
41756         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41757
41758 2001-02-18  Paul Eggert  <eggert@twinsun.com>
41759
41760         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41761
41762 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41763
41764         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41765         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41766         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41767         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41768
41769 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41770
41771         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41772         Remove workaround macros for hosts that have mbrtowc but not
41773         mbstate_t, as we now insist on proper declarations for both
41774         before using mbrtowc.
41775
41776 2001-02-17  Jim Meyering  <meyering@lucent.com>
41777
41778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41779         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41780         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41781         UnixWare 7.1.1.
41782
41783         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41784         rather than AC_CACHE_VAL.
41785
41786 2001-02-17  Jim Meyering  <meyering@lucent.com>
41787
41788         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
41789         around included file name.
41790
41791         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41792
41793         * lib/strftime.c: Update from GNU libc (the only changes were to
41794         comments).
41795
41796 2001-02-17  Jim Meyering  <meyering@lucent.com>
41797
41798         * lib/regex.c: Update from libc.
41799
41800 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
41801
41802         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41803         clash.
41804
41805 2001-02-16  Paul Eggert  <eggert@twinsun.com>
41806
41807         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41808         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
41809         Reported by Mark Hounschell via Paul Eggert.
41810
41811 2001-02-07  Jim Meyering  <meyering@lucent.com>
41812
41813         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41814
41815 2001-02-05  Jim Meyering  <meyering@lucent.com>
41816
41817         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41818         it includes the patch required for `large file' support with at least
41819         HP-UX's 10.20 /bin/cc.
41820
41821 2001-02-03  Jim Meyering  <meyering@lucent.com>
41822
41823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41824         AS_IF, now that it works once again (mysteriously).
41825         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41826
41827 2001-01-30  Jim Meyering  <meyering@lucent.com>
41828
41829         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41830         * m4/chown.m4: Rename conftestchown to conftest.chown.
41831         * m4/rename.m4: s/conftestdir/conftest.d1/ and
41832         s/conftestdir2/conftest.d2/.
41833         * m4/utimes.m4: s/conftestdata/conftest.data/
41834         Inspired by Pavel Roskin's change in autoconf.
41835
41836 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
41837
41838         * lib/config.charset: Update for FreeBSD 4.2.
41839
41840 2001-01-27  Jim Meyering  <meyering@lucent.com>
41841
41842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41843         a use of AS_IF.
41844         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41845
41846 2001-01-26  Jim Meyering  <meyering@lucent.com>
41847
41848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41849         quotearg.c includes it.
41850
41851 2001-01-26  Jim Meyering  <meyering@lucent.com>
41852
41853         * lib/quotearg.c: Include stddef.h.
41854         * lib/quote.c: Include stddef.h.
41855         Reported by Axel Kittenberger.
41856
41857         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41858         line in double quotes so that it evokes a better diagnostic.
41859         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41860         Reported by Axel Kittenberger.
41861
41862 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
41863
41864         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41865         as if it was a `charset'.
41866
41867 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41868
41869         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41870         has const.
41871
41872 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41873
41874         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41875         to avoid a warning.  Add back 'const' to inptr.
41876
41877 2001-01-20  Jim Meyering  <meyering@lucent.com>
41878
41879         Be sure that headers are checked before used in code compiled
41880         for the type checks.
41881         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41882         In place of that, invoke jm_CHECK_ALL_TYPES.
41883         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41884         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41885         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41886         The check for ssize_t was mistakenly run before the test for unistd.h.
41887
41888         The configure-time check for stdbool.h was missing.
41889         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41890         (jm_PREREQ_HASH): New function.
41891
41892 2001-01-17  Jim Meyering  <meyering@lucent.com>
41893
41894         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41895         for autoconf-2.49c.
41896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41897
41898 2001-01-16  Jim Meyering  <meyering@lucent.com>
41899
41900         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41901         From Bruno Haible.
41902
41903 2001-01-14  Jim Meyering  <meyering@lucent.com>
41904
41905         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41906         foo and bar.  Create conftestdir/ in the script, not in the C code.
41907         Remove directories in the script, not in the C code.
41908         Remove conftestdir{,2} before trying to create the directory.
41909         Make the entire configure script fail if the mkdir fails.
41910
41911 2001-01-14  Jim Meyering  <meyering@lucent.com>
41912
41913         * lib/rename.c: New file.  From Volker Borchert.
41914         Include stdlib.h, string.h or strings.h, and xalloc.h.
41915         Use strip_trailing_slashes rather than open-coding it.
41916
41917 2001-01-03  Paul Eggert  <eggert@twinsun.com>
41918
41919         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41920
41921 2001-01-03  Jim Meyering  <meyering@lucent.com>
41922
41923         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41924         of local `inptr' to avoid warning with some system declarations of
41925         iconv.
41926
41927 2001-01-02  Volker Borchert  <bt@teknon.de>
41928
41929         * m4/rename.m4: New file.
41930         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41931
41932 2001-01-01  Jim Meyering  <meyering@lucent.com>
41933
41934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41935         even on systems with utmpx.h.  It's necessary for the declaration of
41936         utmp's ut_user member.  Reported by Andreas Jaeger.
41937
41938         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41939         available. They are required for the declarations of getgrgid and
41940         getpwuid resp.
41941         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41942         Reported by Andreas Jaeger.
41943
41944 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
41945
41946         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41947         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41948         so `make install' also works in VPATH builds.
41949
41950 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
41951
41952         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41953         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41954         can be used in subdirectories.
41955
41956 2000-12-29  Paul Eggert  <eggert@twinsun.com>
41957
41958         * lib/modechange.c: Do not assume that mode_t uses the
41959         traditional octal encoding.  E.g. "chmod 1 FOO" should set
41960         the other-execute bit of FOO even if S_IXOTH != 1.
41961
41962         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41963         WOTH, XOTH, ALLM): New macros.
41964         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41965          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41966         Use them.
41967         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41968         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41969         (mode_compile):
41970         No need to use uintmax_t; unsigned long is long enough.
41971         Don't bother to get suffix since we don't use it.
41972
41973 2000-12-26  Jim Meyering  <meyering@lucent.com>
41974
41975         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41976         better with autoheader.
41977
41978 2000-12-24  Jim Meyering  <meyering@lucent.com>
41979
41980         * lib/hash.c (is_prime): Return explicit boolean values.
41981         (hash_get_first): Return NULL to appease Irix5.6's 89.
41982         Reported by Nelson Beebe.
41983
41984 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
41985
41986         * lib/localcharset.c (locale_charset): Add support for Win32.
41987
41988 2000-12-18  Paul Eggert  <eggert@twinsun.com>
41989
41990         * lib/physmem.h, lib/physmem.c: New files.
41991
41992         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41993         (noinst_HEADERS): Add physmem.h.
41994
41995         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41996         't' for compatibility with Solaris 8 sort.
41997
41998 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
41999
42000         * lib/config.charset: Add support for BeOS.
42001
42002 2000-12-17  Jim Meyering  <meyering@lucent.com>
42003
42004         * m4/dos.m4 (jm_AC_DOS): New file and macro.
42005         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
42006
42007 2000-12-16  Jim Meyering  <meyering@lucent.com>
42008
42009         This bug had a serious impact on chown: `chown N:M FILE' (for integer
42010         N and M) would have treated it like `chown N:N FILE'.
42011
42012         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
42013
42014 2000-12-16  Jim Meyering  <meyering@lucent.com>
42015
42016         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
42017         SHELLS_FILE to a file name that's useful on djgpp systems.
42018         Include stdlib.h.
42019         (ADDITIONAL_DEFAULT_SHELLS): Define.
42020         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
42021         Based mostly on a patch from Prashant TR.
42022
42023 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
42024
42025         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
42026         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
42027         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
42028
42029 2000-12-08  Andreas Schwab  <schwab@suse.de>
42030
42031         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
42032         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
42033
42034 2000-12-07  Jim Meyering  <meyering@lucent.com>
42035
42036         * lib/stripslash.c (ISSLASH): Define.
42037         (strip_trailing_slashes): Use ISSLASH rather than comparing against
42038         `/'.
42039         From Prashant TR.
42040
42041         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
42042         (dir_name_r): Declare this function as static.
42043         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
42044         manifest itself on a name containing a mix of slashes and
42045         backslashes.
42046         Make this function work with names starting with a DOS-style
42047         drive letter and colon prefix.
42048         (dir_name): Append `.' if necessary.
42049         Based mostly on patches from Prashant TR and Eli Zaretskii.
42050
42051         * lib/dirname.h (dir_name_r): Remove prototype.
42052
42053 2000-12-06  Paul Eggert  <eggert@twinsun.com>
42054
42055         * m4/off_t-format.m4: Remove this file.
42056         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
42057
42058 2000-12-06  Jim Meyering  <meyering@lucent.com>
42059
42060         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
42061         replacement strtoull, we may well need the replacement strtoul, too.
42062         Check for declarations of strtoul and strtoull.
42063         Check for strtol.  Mainly as a cue to cause automake to include
42064         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
42065         Check for limits.h -- strtol.c needs it.
42066
42067 2000-12-05  Jim Meyering  <meyering@lucent.com>
42068
42069         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
42070
42071 2000-12-04  Jim Meyering  <meyering@lucent.com>
42072
42073         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
42074         Also include memory.h, stdlib.h, unistd.h if appropriate.
42075         Reported by Andreas Jaeger (conflicting declaration of malloc).
42076
42077 2000-12-02  Jim Meyering  <meyering@lucent.com>
42078
42079         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42080         * m4/jm-macros.m4 (jm_MACROS): require it.
42081
42082 2000-12-02  Jim Meyering  <meyering@lucent.com>
42083
42084         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
42085
42086 2000-12-01  Paul Eggert  <eggert@twinsun.com>
42087
42088         * lib/memrchr.c: Include <config.h> before any system include file.
42089
42090 2000-11-30  Jim Meyering  <meyering@lucent.com>
42091
42092         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
42093
42094 2000-11-30  Jim Meyering  <meyering@lucent.com>
42095
42096         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
42097
42098 2000-11-29  Paul Eggert  <eggert@twinsun.com>
42099
42100         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
42101
42102 2000-11-26  Jim Meyering  <meyering@lucent.com>
42103
42104         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
42105
42106 2000-11-22  Paul Eggert  <eggert@twinsun.com>
42107
42108         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
42109         size of (size_t) -1; it's not portable.
42110
42111 2000-11-17  Jim Meyering  <meyering@lucent.com>
42112
42113         * lib/strstr.c: Update from GNU libc.
42114
42115 2000-11-17  Akim Demaille  <akim@epita.fr>
42116
42117         * lib/obstack.h: Formatting changes.
42118         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42119         prevent type checking.
42120         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42121         cast the value to (void *): assigning a `foo *' to a `void *'
42122         variable is valid.
42123         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42124
42125 2000-11-16  Jim Meyering  <meyering@lucent.com>
42126
42127         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42128
42129 2000-11-11  Jim Meyering  <meyering@lucent.com>
42130
42131         * lib/error.c: Add a couple #includes, merging from GNU libc version.
42132
42133 2000-11-10  Jim Meyering  <meyering@lucent.com>
42134
42135         * lib/obstack.h: Update from GNU libc.
42136         * lib/obstack.c: Likewise.
42137
42138 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
42139
42140         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42141
42142 2000-11-06  Paul Eggert  <eggert@twinsun.com>
42143
42144         * lib/getusershell.c (setusershell): Use rewind rather than
42145         fseek/fseeko, to avoid configuration hassles with fseeko.
42146         Don't bother opening SHELLS_FILE if shellstream is NULL;
42147         it's not necessary.
42148
42149 2000-11-05  Jim Meyering  <meyering@lucent.com>
42150
42151         * lib/makepath.h (make_dir): Declare.
42152         * lib/makepath.c (make_dir): Remove `static' attribute.
42153         Tweak a comment.
42154
42155 2000-11-04  Jim Meyering  <meyering@lucent.com>
42156
42157         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42158
42159 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
42160
42161         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
42162         last one in a bucket, advance to the next bucket.
42163
42164 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
42165
42166         * lib/fnmatch.c: Do not comment out all the code if we are using
42167         the GNU C library, because in some cases we are replacing buggy
42168         code in the GNU C library itself.
42169
42170 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
42171
42172         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42173         (regex_compile): Catch bogus \(\1\).
42174
42175 2000-10-30  Paul Eggert  <eggert@twinsun.com>
42176
42177         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42178         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42179         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42180
42181 2000-10-30  Paul Eggert  <eggert@twinsun.com>
42182
42183         * lib/error.h, getline.h, modechange.h:
42184         Remove "2000" from Copyright line, as the file hasn't been
42185         changed this year other than in the copyright notice.
42186
42187         * lib/xalloc.h: Add "2000" to Copyright line, as this file
42188         was changed this year.
42189
42190 2000-10-29  Jim Meyering  <meyering@lucent.com>
42191
42192         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42193         renaming.
42194         * m4/ls-mntd-fs.m4: Likewise
42195
42196 2000-10-29  Jim Meyering  <meyering@lucent.com>
42197
42198         * lib/xstat.in: Fix grammar in comment.
42199
42200 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
42201
42202         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42203         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42204         doesn't define __restrict_arr.
42205
42206 2000-10-28  Jim Meyering  <meyering@lucent.com>
42207
42208         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42209         (jm_PREREQ_MEMCHR): New function.
42210
42211 2000-10-28  Jim Meyering  <meyering@lucent.com>
42212
42213         * lib/memchr.c: Update from libc.
42214         Adjust for portability:
42215         [HAVE_STDLIB_H]: Include stdlib.h.
42216         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42217         Undef __memchr, too.
42218         [!weak_alias]: Define __memchr to memchr.
42219
42220         * lib/regex.c: Update from libc.
42221         * lib/regex.h: Likewise.
42222         * lib/getopt1.c: Likewise.
42223         * lib/memcmp.c: Likewise.
42224
42225         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42226         Avoid using fseek, when possible -- it's broken by design.
42227         Patch by Ulrich Drepper.
42228
42229 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
42230
42231         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42232         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42233         Giving in to popular pressure to shut up the compiler with casts.
42234
42235 2000-10-26  Jim Meyering  <meyering@lucent.com>
42236
42237         * lib/strftime.c: Update from libc.
42238
42239 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
42240
42241         * regex.c: More `unsigned char' -> `re_char' changes.
42242         Also change several `int' into `re_wchar_t'.
42243         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42244         (PUSH_FAILURE_POINTER): Don't cast any more.
42245         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42246         We want GCC to complain, since this piece of code makes
42247         re_match non-reentrant, which *should* be fixed.
42248         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42249         (EXTEND_BUFFER): Use RETALLOC.
42250         (SET_LIST_BIT): Don't cast.
42251         (re_wchar_t): New type.
42252         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42253         that those two functions will always properly return.
42254         (IMMEDIATE_QUIT_CHECK): Cast to void.
42255         (analyse_first): Use recursion rather than an explicit stack.
42256         (re_compile_fastmap): Can't fail anymore.
42257         (re_search_2): Don't check re_compile_fastmap for failure.
42258         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42259         Now also sets the new value (passed in a new argument).
42260         (re_match_2_internal): Use it.
42261         Also, use a new var `reg' of type size_t when looping through regs
42262         rather than reuse the inappropriate `mcnt'.
42263
42264 2000-10-25  Jim Meyering  <meyering@lucent.com>
42265
42266         * lib/obstack.c: Update from libc.
42267
42268 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
42269
42270         * regex.c (regex_compile): Change the way of handling a range from
42271         a char less than 256 to a char not less than 256.
42272
42273 2000-10-24  Andrew Innes  <andrewi@gnu.org>
42274
42275         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42276         NT-Emacs only.
42277         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42278         so that re_search functions only quit when callers expect them to.
42279
42280 2000-10-23  Jim Meyering  <meyering@lucent.com>
42281
42282         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42283         wrong.  That set_locale call must not have any side effects.
42284         From Paul Eggert.
42285
42286 2000-10-22  Jim Meyering  <meyering@lucent.com>
42287
42288         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42289         [CYCLIC]: Remove now-unused definition.
42290
42291         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42292         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42293         Suggestion from Ulrich Drepper.
42294
42295 2000-10-21  Jim Meyering  <meyering@lucent.com>
42296
42297         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42298         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42299         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42300
42301 2000-10-21  Jim Meyering  <meyering@lucent.com>
42302
42303         * lib/dirname.c (memrchr): Declare if necessary.
42304         (dir_name): Remove the restriction that there be no
42305         trailing slashes.  Now, this code skips past them, effectively
42306         ignoring them.
42307         [TEST_DIRNAME] (main): New unit tests.
42308
42309         * lib/memrchr.c: New file from GNU libc.
42310         Undef __memrchr, too.
42311         [!weak_alias]: Define __memrchr to memrchr.
42312         Guard weak_alias use with `#ifdef weak_alias'.
42313
42314 2000-10-21  Jim Meyering  <meyering@lucent.com>
42315
42316         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42317         (dir_name): Use dir_name_r.
42318         * lib/dirname.h (dir_name_r): Declare it.
42319
42320 2000-10-17  Jim Meyering  <meyering@lucent.com>
42321
42322         * lib/quote.h (PARAMS): Define and use.
42323         Reported by Akim Demaille.
42324
42325         * lib/getopt.c: Update from libc.
42326
42327 2000-10-16  Jim Meyering  <meyering@lucent.com>
42328
42329         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42330         setlocale.
42331         From Jan Fedak.
42332
42333 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
42334
42335         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42336
42337 2000-09-25  Jim Meyering  <meyering@lucent.com>
42338
42339         * lib/md5.h (rol): Define (from GnuPG).
42340
42341         * lib/sha.c: Give credit (GnuPG) where due.
42342         (M): Use rol rather than open-coding it.
42343         Add a FIXME comment.
42344
42345 2000-09-21  Jim Meyering  <meyering@lucent.com>
42346
42347         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42348         Reported by Michael Stone.
42349
42350 2000-09-20  Jim Meyering  <meyering@lucent.com>
42351
42352         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42353         (noinst_HEADERS): Add sha.h.
42354         Based on code from Scott G. Miller and from GnuPG.
42355
42356 2000-09-18  Jim Meyering  <meyering@lucent.com>
42357
42358         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42359         LIBS. Otherwise, everyone ends up linking with -lelf for some
42360         configurations.
42361         Reported by Mike Stone.
42362
42363 2000-09-15  Jim Meyering  <meyering@lucent.com>
42364
42365         * lib/regex.c: Update from libc.
42366
42367 2000-09-10  Jim Meyering  <meyering@lucent.com>
42368
42369         * lib/getopt.c (_getopt_internal): Update from glibc.
42370
42371 2000-09-09  Jim Meyering  <meyering@lucent.com>
42372
42373         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42374         think it should be used as a general replacement for isascii.
42375         * lib/fnmatch.c: Likewise.
42376         * lib/mbswidth.c: Likewise
42377         * lib/regex.c: Likewise.
42378
42379         Don't use atoi.
42380         * lib/userspec.c: Include sys/param.h and limits.h.
42381         Include xstrtol.h.
42382         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42383         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42384         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42385         UID, GID.  Check range.
42386
42387 2000-09-06  Jim Meyering  <meyering@lucent.com>
42388
42389         * lib/getopt.c (_getopt_internal): Update from glibc.
42390
42391 2000-08-30  Jim Meyering  <meyering@lucent.com>
42392
42393         * lib/strftime.c: Merge in changes from GNU libc.
42394
42395 2000-08-26  Jim Meyering  <meyering@lucent.com>
42396
42397         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42398         * m4/fpending.m4: New file.
42399
42400 2000-08-26  Jim Meyering  <meyering@lucent.com>
42401
42402         * lib/closeout.c: Include "__fpending.h".
42403         (close_stdout_status): Return right away if there's nothing to flush.
42404
42405         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42406         * lib/__fpending.c: New file.
42407         * lib/__fpending.h: New file.
42408
42409 2000-08-20  Jim Meyering  <meyering@lucent.com>
42410
42411         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42412         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
42413         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
42414
42415 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
42416
42417         Improve fileutils installation on systems where running
42418         programs (like install) can't be unlinked.
42419         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42420         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42421
42422 2000-08-07  Paul Eggert  <eggert@twinsun.com>
42423
42424         Standardize on "memory exhausted" instead of "Memory exhausted"
42425         or "virtual memory exhausted".
42426         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42427         "virtual memory exhausted".
42428         * lib/same.c (same_name): Invoke xalloc_die instead of printing
42429         our own message.
42430         * lib/userspec.c (parse_user_spec): Likewise.
42431         * lib/bumpalloc.h: comment fix
42432         * lib/same.c, userspec.c: Include xalloc.h.
42433
42434         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42435         not char *const and pointing to a constant array.
42436         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42437         (xrealloc): Comment fix.
42438
42439         * lib/userspec.c (parse_user_spec):
42440         Don't translate a message until just before returning,
42441         to avoid unnecessary translation.
42442
42443 2000-08-07  Jim Meyering  <meyering@lucent.com>
42444
42445         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42446         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42447         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42448         getgroups.c, gethostname.c, getopt.h, group-member.c,
42449         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42450         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42451         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42452         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42453         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42454         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42455         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
42456         yesno.c: Back out Copyright date changes for each file with no change
42457         this year.  This eases coordination with other programs using the same
42458         source code modules.  From Paul Eggert.
42459
42460 2000-08-06  Paul Eggert  <eggert@twinsun.com>
42461
42462         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
42463         not char, for compatibility with glibc 2.1.3 strftime.c.
42464
42465 2000-08-03  Greg McGary  <greg@mcgary.org>
42466
42467         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
42468         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
42469         (EXTEND_BUFFER): Use them.
42470
42471 2000-08-01  Jim Meyering  <meyering@lucent.com>
42472
42473         * lib/dirname.c (ISSLASH): Define.
42474         (BACKSLASH_IS_PATH_SEPARATOR): Define.
42475         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
42476         both `\' and `/' may be use as path separators.
42477         Based on a patch from Prashant TR.
42478
42479 2000-07-31  Paul Eggert  <eggert@twinsun.com>
42480
42481         * lib/quotearg.c (quotearg_n_options): Don't make the initial
42482         slot vector a constant, since it might get modified.
42483
42484 2000-07-31  Jim Meyering  <meyering@lucent.com>
42485
42486         * lib/xmalloc.c: Use `virtual memory exhausted', not
42487         `Memory exhausted'.
42488         * lib/obstack.c (print_and_abort): Likewise.
42489
42490 2000-07-30  Paul Eggert  <eggert@twinsun.com>
42491
42492         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
42493         buffer, so that the caller can always quote one small
42494         component of a "memory exhausted" message in slot 0.
42495         From a suggestion by Jim Meyering.
42496
42497 2000-07-30  Jim Meyering  <meyering@lucent.com>
42498
42499         * lib/makepath.c (make_path): Quote the other instance, too.
42500
42501         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
42502         (STATIC_BUF_SIZE): Define.
42503         (quotearg_n_options): Use only statically allocated storage when
42504         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
42505         than STATIC_BUF_SIZE.
42506
42507 2000-07-29  Jim Meyering  <meyering@lucent.com>
42508
42509         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
42510         * lib/dirname.c (dir_name): Likewise.
42511
42512         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
42513         `/'.
42514
42515         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
42516         (dir_name): Assert that there are no trailing slashes.
42517
42518 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
42519
42520         * lib/mbswidth.h (mbswidth): Add a flags argument.
42521         (mbswidth): New declaration.
42522         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
42523         * lib/mbswidth.c (mbswidth): Add a flags argument.
42524         (mbsnwidth): New function.
42525
42526 2000-07-24  Jim Meyering  <meyering@lucent.com>
42527
42528         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
42529
42530 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42531
42532         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
42533
42534 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42535
42536         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
42537         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
42538         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
42539         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
42540         invoke multibyte primitives.
42541
42542 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42543
42544         * lib/quotearg.c:
42545         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
42546         so that mbstate_t is always defined.
42547
42548         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
42549         be 1 in at least one GCC installation, and this configuration
42550         error is likely to be common.  Ignoring MB_LEN_MAX hurts
42551         performance on hosts that have mbrtowc but have only unibyte
42552         locales, but I assume these hosts are rare.
42553
42554 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42555
42556         * lib/mbswidth.c (_XOPEN_SOURCE):
42557         Don't define; this causes problems on Solaris 7.
42558         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
42559
42560 2000-07-23  Jim Meyering  <meyering@lucent.com>
42561
42562         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
42563         too: getgrgid, getpwuid, getuid.
42564
42565 2000-07-23  Jim Meyering  <meyering@lucent.com>
42566
42567         * lib/basename.c (base_name): Add an assertion.
42568
42569 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
42570
42571         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
42572         shadow its mbsinit function.
42573
42574 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
42575
42576         * lib/mbswidth.h: New file.
42577         * lib/mbswidth.c: New file.
42578         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
42579         (noinst_HEADERS): Add mbswidth.h.
42580
42581 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
42582
42583         * lib/config.charset: Add support for FreeBSD. Improve support for
42584         HP-UX and IRIX 6.
42585
42586 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
42587
42588         * m4/mbswidth.m4: New file.
42589         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
42590
42591 2000-07-15  Jim Meyering  <meyering@lucent.com>
42592
42593         * lib/makepath.c: Include quote.h.
42594         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
42595         corresponding argument in a `quote (...)' call.
42596         Give better diagnostics.
42597
42598         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
42599         (noinst_HEADERS): Add quote.h.
42600
42601         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
42602         from tar's src/misc.c.
42603         * lib/quote.h: New file.  Prototypes for same.
42604
42605 2000-07-14  Paul Eggert  <eggert@twinsun.com>
42606
42607         From a suggestion by Bruno Haible.
42608         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
42609         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
42610         to decide whether to define the BeOS workaround macro;
42611         this adjusts to the change to AC_MBSTATE_T.
42612
42613 2000-07-14  Jim Meyering  <meyering@lucent.com>
42614
42615         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
42616         jm_AC_TYPE_UINTMAX_T.
42617
42618 2000-07-13  Paul Eggert  <eggert@twinsun.com>
42619
42620         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
42621
42622         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
42623         quotearg_buffer_restyled): Add support for
42624         clocale_quoting_style.  Undo previous change to
42625         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
42626         and "{RIGHT QUOTATION MARK}" msgids.
42627
42628 2000-07-10  Paul Eggert  <eggert@twinsun.com>
42629
42630         From a suggestion by Bruno Haible.
42631         * m4/mbstate_t.m4 (AC_MBSTATE_T):
42632         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
42633         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
42634         and mbstate_t, to a single-part test that simply defines mbstate_t.
42635         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
42636         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
42637
42638 2000-07-10  Jim Meyering  <meyering@lucent.com>
42639
42640         * m4/strerror_r.m4: Mirror the correction made in autoconf.
42641
42642         * m4/gnu-source.m4: Output to confdefs.h directly.
42643         Suggestion from Akim Demaille.
42644
42645 2000-07-09  Paul Eggert  <eggert@twinsun.com>
42646
42647         The old behavior of quoting `like this' doesn't look good with
42648         newer, ISO-style fonts.  See:
42649         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
42650
42651         Instead, quote "like this" by default.  Let the translator
42652         tailor the locale-specific quoting behavior by providing
42653         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42654
42655         * lib/quotearg.c (N_): New macro.
42656         (gettext_default): New function.
42657         (quotearg_buffer_restyled): Use
42658         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42659         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42660
42661 2000-07-09  Jim Meyering  <meyering@lucent.com>
42662
42663         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42664         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
42665
42666         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42667         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42668
42669 2000-07-09  Jim Meyering  <meyering@lucent.com>
42670
42671         * lib/Most files: Update copyright dates to include 2000.
42672
42673 2000-07-08  Jim Meyering  <meyering@lucent.com>
42674
42675         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42676         if not defined.
42677         (xgethostname): Remove now-unnecessary #ifdef.
42678         Move declaration of `err' into loop where it's used.
42679
42680 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42681         and Bruno Haible  <haible@clisp.cons.org>
42682
42683         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42684         only if the test for an object-type mbstate_t fails.  This
42685         prevents us from mistakenly reporting that mbstate_t is a
42686         system object type after we "#define mbstate_t int" to work
42687         around its lack.
42688
42689 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42690         and Bruno Haible  <haible@clisp.cons.org>
42691
42692         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42693
42694 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42695
42696         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42697         to strerror_r.
42698         Include <ctype.h> for use of isalpha.
42699
42700 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42701
42702         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42703         by allocating a larger buffer. Test the gethostname return value for
42704         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
42705         returns an error and ENAMETOOLONG isn't defined.
42706
42707 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42708
42709         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42710         dimension.
42711
42712 2000-07-04  Jim Meyering  <meyering@lucent.com>
42713
42714         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42715         of the deprecated AC_CHECKING.
42716
42717 2000-07-04  Jim Meyering  <meyering@lucent.com>
42718
42719         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42720         Reported by Bruno Haible.
42721
42722 2000-07-04  Jim Meyering  <meyering@lucent.com>
42723
42724         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42725         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
42726         lacks mbrtowc.
42727
42728 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42729
42730         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42731         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42732
42733 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42734         and Bruno Haible  <haible@clisp.cons.org>
42735
42736         * lib/quotearg.c (mbrtowc):
42737         Assign to *pwc, and return 1 only if result is nonzero.
42738         (iswprint): Use ISPRINT when substituting our own mbrtowc.
42739
42740 2000-07-03  Jim Meyering  <meyering@lucent.com>
42741
42742         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42743
42744 2000-07-03  Jim Meyering  <meyering@lucent.com>
42745
42746         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42747         This is necessary to get a definition of e.g., UTMP_FILE on
42748         HP-UX 10.20.
42749         From Bob Proulx.
42750
42751 2000-07-02  Jim Meyering  <meyering@lucent.com>
42752
42753         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42754
42755         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42756         AC_LIBOBJ(function_name).
42757         * m4/chown.m4: Likewise.
42758         * m4/fnmatch.m4: Likewise.
42759         * m4/ftruncate.m4: Likewise.
42760         * m4/getgroups.m4: Likewise.
42761         * m4/getline.m4: Likewise.
42762         * m4/group-member.m4: Likewise.
42763         * m4/jm-macros.m4: Likewise.
42764         * m4/lstat.m4: Likewise.
42765         * m4/malloc.m4: Likewise.
42766         * m4/memcmp.m4: Likewise.
42767         * m4/nanosleep.m4: Likewise.
42768         * m4/putenv.m4: Likewise.
42769         * m4/realloc.m4: Likewise.
42770         * m4/regex.m4: Likewise.
42771         * m4/stat.m4: Likewise.
42772         * m4/strftime.m4: Likewise.
42773
42774 2000-07-02  Jim Meyering  <meyering@lucent.com>
42775
42776         * lib/quotearg.c (mbstate_t): Don't define here.
42777
42778 2000-07-02  Jim Meyering  <meyering@lucent.com>
42779
42780         * lib/nanosleep.c (SIGCONT): Define if not already defined.
42781
42782 2000-07-01  Jim Meyering  <meyering@lucent.com>
42783
42784         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42785
42786 2000-07-01  Jim Meyering  <meyering@lucent.com>
42787
42788         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42789         problem.
42790
42791 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42792
42793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42794         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42795
42796 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42797
42798         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42799         per change in ../m4/ls-mntd-fs.m4.
42800         (read_filesystem_list): Ignore symbolic links.
42801
42802 2000-06-29  Jim Meyering  <meyering@lucent.com>
42803
42804         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42805         for declaration of strcmp.
42806
42807         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42808
42809         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42810         Avoid warning by casting result to `char *' to remove `const'.
42811
42812 2000-06-28  Jim Meyering  <meyering@lucent.com>
42813
42814         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
42815         included by quotearg.c, for which we perform this test.  From
42816         Bruno Haible.
42817
42818 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42819
42820         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42821         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42822         <utmpx.h> exists, put readutmp.o into LIBOBJS.
42823
42824 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42825
42826         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42827
42828 2000-06-26  Paul Eggert  <eggert@twinsun.com>
42829
42830         savedir now sets errno on failure and invokes xmalloc to get memory.
42831         Fix a couple of other minor bugs while we're at it.
42832
42833         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42834         (NAMLEN): Remove macro.
42835         (malloc, realloc): Remove decls.
42836         (stpcpy): Likewise.
42837         ("xalloc.h"): Include.
42838         (NAME_SIZE_DEFAULT): New macro.
42839         (savedir): Use xmalloc / xrealloc to allocate memory.
42840         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42841         Skip "" directory entries.
42842         Use strlen to calculate directory entry length, since the old method
42843         is rarely used these days and isn't worth supporting.
42844         Don't use a pointer after freeing it.
42845         Check for integer overflow when calculating allocation size.
42846         Use memcpy to copy entries, instead of stpcpy.
42847         Set errno properly when returning NULL.
42848         Check for readdir error.
42849
42850 2000-06-26  Jim Meyering  <meyering@lucent.com>
42851
42852         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42853
42854 2000-06-25  Jim Meyering  <meyering@lucent.com>
42855
42856         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42857         Linux header bug when _XOPEN_SOURCE is defined to 500.
42858
42859 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42860
42861         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42862         deficiency.
42863
42864 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42865
42866         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42867         Include xalloc.h.
42868         Don't include <stdlib.h>.  Don't declare malloc, realloc.
42869
42870 2000-06-24  Jim Meyering  <meyering@lucent.com>
42871
42872         * m4/strerror_r.m4: Revive this file -- to try out an experimental
42873         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42874         for which strerror does return char*, but which lacks a conveniently
42875         accessible declaration of the function.  If the compile-test says
42876         strerror_r doesn't work, then resort to a `run'-test that works on
42877         BeOS and segfaults on DEC Unix.
42878
42879 2000-06-24  Jim Meyering  <meyering@lucent.com>
42880
42881         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42882
42883 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42884
42885         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42886         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
42887
42888 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42889
42890         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42891         (mbrtowc, mbstate_t): Define substitutes if
42892         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42893         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42894         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42895
42896 2000-06-23  Jim Meyering  <meyering@lucent.com>
42897
42898         * m4/afs.m4: Add missing AC_MSG_RESULT.
42899         Reported by Bruno Haible.
42900
42901         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42902         Suggestion from Bruno Haible.
42903
42904 2000-06-23  Jim Meyering  <meyering@lucent.com>
42905
42906         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
42907
42908 2000-06-21  Jim Meyering  <meyering@lucent.com>
42909
42910         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42911
42912 2000-06-21  Jim Meyering  <meyering@lucent.com>
42913
42914         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42915         (noinst_HEADERS): Add getstr.h.
42916
42917         * lib/getline.c (getstr): Move into a separate file.
42918         * lib/getstr.c (getstr): New file, extracted from getline.c, with
42919         the following changes: new parameter, delim2; both delim[12]
42920         parameters have type `int', not `char'.  The latter would lose
42921         with 8-bit delimiters.
42922         * lib/getstr.h: New file.
42923
42924 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42925
42926         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42927         than 1024, return a memory chunk of least possible size, instead
42928         of size PATH_MAX + 2. In the loop, increment the size proportionally.
42929         Use free/xmalloc instead of xrealloc to avoid copying for very long
42930         paths.
42931
42932 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42933
42934         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42935         the empty string.
42936
42937 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42938
42939         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42940         address, not strdup.  Include <stdlib.h> and don't declare free().
42941
42942 2000-06-19  Jim Meyering  <meyering@lucent.com>
42943
42944         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42945
42946 2000-06-18  Jim Meyering  <meyering@lucent.com>
42947
42948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42949
42950         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42951         `checking whether...' message to be consistent with that of the
42952         lstat test.
42953
42954 2000-06-18  Jim Meyering  <meyering@lucent.com>
42955
42956         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42957         Besides, these days every porting target provides a mkdir function.
42958
42959         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42960         needed. (this snippet comes from src/system.h).
42961
42962 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
42963
42964         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42965
42966 2000-06-15  Paul Eggert  <eggert@twinsun.com>
42967
42968         * lib/human.c (adjust_value): New function.
42969         (human_readable_inexact): Apply rounding style even when
42970         printing approximate values.
42971
42972 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42973
42974         * lib/human.c (human_readable_inexact): Allow an input block
42975         size that is not a multiple of the output block size, and vice versa.
42976         Reported by Piergiorgio Sartor.
42977
42978 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42979
42980         * lib/getdate.y (get_date): Apply relative times after time
42981         zone indicator, not before.  Reported by Todd A. Jacobs.
42982
42983 2000-06-13  Jim Meyering  <meyering@lucent.com>
42984
42985         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42986
42987         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42988
42989 2000-06-12  Paul Eggert  <eggert@twinsun.com>
42990
42991         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42992
42993 2000-06-12  Jim Meyering  <meyering@lucent.com>
42994
42995         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42996         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42997         optional argument.
42998         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42999         the optional argument, `lib'.
43000
43001 2000-06-08  Jim Meyering  <meyering@lucent.com>
43002
43003         * m4/largefile.m4: Remove file (now that it's part of autoconf).
43004
43005 2000-06-04  Paul Eggert  <eggert@twinsun.com>
43006
43007         Rewrite largefile configuration so that we don't need to run
43008         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
43009         AC_CANONICAL_HOST in configure.in -- jmm]
43010
43011         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
43012         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
43013         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
43014         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
43015         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
43016         All uses changed.
43017         Instead of inspecting the output of getconf, try to compile the
43018         test program without and with the macro definition.
43019         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
43020         for getconf.  Instead, check for the needed flags by compiling
43021         test programs.
43022
43023 2000-06-04  Paul Eggert  <eggert@twinsun.com>
43024
43025         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
43026
43027 2000-06-04  Jim Meyering  <meyering@lucent.com>
43028
43029         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
43030         SunOS 4.1.4 for which gid_t is an unsigned type.
43031
43032 2000-06-03  Jim Meyering  <meyering@lucent.com>
43033
43034         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
43035         now that autoconf requires that.
43036
43037         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
43038         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
43039         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
43040
43041 2000-06-03  Jim Meyering  <meyering@lucent.com>
43042
43043         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
43044
43045 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
43046
43047         * m4/glibc21.m4: New file.
43048         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
43049
43050 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
43051
43052         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
43053         newer, don't install charset.alias.
43054         * lib/config.charset: Change the Linux/glibc rules so they become empty
43055         on glibc-2.1 or newer.
43056
43057 2000-06-02  Jim Meyering  <meyering@lucent.com>
43058
43059         * lib/mountlist.c: Back out last change.  Instead, do this...
43060         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
43061         me_dummy member using the same `ignore'-testing code.
43062         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
43063         fs_type strings.
43064         From Mark D. Roth.
43065
43066 2000-05-29  Jim Meyering  <meyering@lucent.com>
43067
43068         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
43069         mounts with the `ignore' attribute.  Based on a patch from
43070         Mark D. Roth.
43071
43072 2000-05-28  Jim Meyering  <meyering@lucent.com>
43073
43074         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
43075         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43076         * m4/stat.m4: Likewise.
43077         * m4/lstat.m4: Likewise.
43078         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43079
43080         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43081         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43082
43083 2000-05-26  Jim Meyering  <meyering@lucent.com>
43084
43085         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
43086
43087 2000-05-24  Jim Meyering  <meyering@lucent.com>
43088
43089         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
43090         autoconf requires that.
43091         * m4/lib-check.m4: Likewise.
43092         * m4/jm-macros.m4: Likewise.
43093         * m4/strftime.m4: Likewise.
43094
43095         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
43096         AC_CHECK_DECLS, now that autoconf requires that.
43097
43098 2000-05-22  Jim Meyering  <meyering@lucent.com>
43099
43100         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43101         * m4/lstat.m4: Likewise.
43102
43103 2000-05-22  Jim Meyering  <meyering@lucent.com>
43104
43105         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
43106
43107 2000-05-20  Jim Meyering  <meyering@lucent.com>
43108
43109         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43110         (jm_PREREQ): Use it.
43111
43112 2000-05-18  Jim Meyering  <meyering@lucent.com>
43113
43114         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43115         back, too, since it may have been modified by allocate_entry.
43116         (hash_delete): Rewrite to use neither the assignment operator
43117         nor the comma operator in an if-expression.
43118
43119 2000-05-15  Paul Eggert  <eggert@twinsun.com>
43120
43121         * lib/closeout.c:
43122         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43123         Remove; no longer needed.
43124         "quotearg.h": Add include.
43125         (file_name): Do not bother to explicitly initialize to NULL; it's less
43126         efficient on some hosts.
43127         (close_stdout_status): Remove test as to whether stdout was already
43128         closed; it breaks for the case "echo x | sort >&-".
43129         Quote file name colons.
43130         Do not assume that _("write error") lacks format strings.
43131
43132 2000-05-15  Jim Meyering  <meyering@lucent.com>
43133
43134         * lib/version-etc.c (version_etc_copyright): Update the copyright
43135         string used in all --version output.
43136
43137 2000-05-14  Jim Meyering  <meyering@lucent.com>
43138
43139         * lib/closeout.c (close_stdout_set_file_name): New function.
43140         (close_stdout_status): Use new file-scoped global.
43141         Return right away if fstat says the stdout file descriptor is invalid.
43142         * lib/closeout.h (close_stdout_set_file_name): Declare.
43143
43144 2000-05-10  Jim Meyering  <meyering@lucent.com>
43145
43146         * lib/closeout.c [default_exit_status]: New file-scoped variable.
43147         (close_stdout_set_status): New function.
43148         * lib/closeout.h (close_stdout_set_status): Declare.
43149
43150 2000-05-09  Jim Meyering  <meyering@lucent.com>
43151
43152         * m4/gettext.m4: Rename this...
43153         * m4/libintl.m4: ...to this.
43154
43155 2000-05-08  Jim Meyering  <meyering@lucent.com>
43156
43157         * lib/long-options.c: Don't include closeout.h.
43158         (parse_long_options): Don't call close_stdout for --version.
43159
43160 2000-05-06  Paul Eggert  <eggert@twinsun.com>
43161
43162         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43163         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43164         2.1.3 bug.  This avoids a clash when files like regex.c define
43165         _GNU_SOURCE.
43166
43167 2000-05-06  Jim Meyering  <meyering@lucent.com>
43168
43169         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43170         (AC_REPLACE_FUNCS): Add strnlen.
43171
43172         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43173         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43174
43175         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43176         AC_SEARCH_LIBS call for nanosleep.
43177         (LIB_NANOSLEEP): Set and AC_SUBST.
43178
43179 2000-05-06  Jim Meyering  <meyering@lucent.com>
43180
43181         * lib/strnlen.c: Undefine __strnlen and strnlen.
43182         [!weak_alias]: Define __strnlen to strnlen.
43183
43184         * lib/atexit.c: New file, from libiberty.
43185
43186 2000-05-06  Jim Meyering  <meyering@lucent.com>
43187
43188         * lib/closeout.c (close_stdout_status): Also check for errors on the
43189         stderr stream.
43190
43191 2000-05-05  Jim Meyering  <meyering@lucent.com>
43192
43193         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43194         AC_SEARCH_LIBS call for clock_gettime.
43195         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43196
43197         * m4/search-libs.m4: Update from autoconf.
43198
43199         su doesn't work on Solaris 2.6.
43200         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43201         <shadow.h>.  Reported by Dragos Harabor.
43202
43203 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
43204
43205         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43206         memcpy instead of xmalloc, xrealloc, path_concat.
43207         (locale_charset): Treat empty environment variables as absent.
43208         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43209
43210 2000-05-04  Jim Meyering  <meyering@lucent.com>
43211
43212         * lib/getopt.c: Update from glibc.
43213         * lib/obstack.c: Likewise.
43214         * lib/obstack.h: Likewise.
43215         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
43216         file
43217
43218         * lib/regex.h: Likewise.
43219         * lib/strndup.c: Likewise.
43220         * lib/strnlen.c: New file, from glibc.
43221
43222 2000-05-03  Jim Meyering  <meyering@lucent.com>
43223
43224         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43225
43226 2000-05-02  Paul Eggert  <eggert@twinsun.com>
43227
43228         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43229         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
43230         compile-time test, rather than inspecting host and OS, to
43231         decide whether to define _LARGEFILE_SOURCE.
43232
43233 2000-05-01  Jim Meyering  <meyering@lucent.com>
43234
43235         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43236
43237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43238         Based on a patch from Bruno Haible.
43239
43240 2000-05-01  Jim Meyering  <meyering@lucent.com>
43241
43242         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43243
43244 2000-04-29  Jim Meyering  <meyering@lucent.com>
43245
43246         * lib/path-concat.c: Declare strdup only if it's not defined.
43247         * lib/canon-host.c: Likewise.
43248
43249 2000-04-28  Jim Meyering  <meyering@lucent.com>
43250
43251         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43252         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
43253         is included first, then limits.h is included by locale.h by libintl.h.
43254         From John David Anglin.
43255
43256 2000-04-25  Jim Meyering  <meyering@lucent.com>
43257
43258         * lib/makepath.c (S_IRWXUGO): Define.
43259         (make_path): Always perform explicit chmod if MODE specifies any
43260         of the `special' permission bits.  Prompted by a bug report against
43261         install from Mate Wierdl and Joost van Baal.
43262
43263 2000-04-18  Jim Meyering  <meyering@lucent.com>
43264
43265         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43266         (jm_PREREQ): Use it.
43267
43268 2000-04-18  Jim Meyering  <meyering@lucent.com>
43269
43270         * lib/README: New file.
43271
43272         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43273         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
43274
43275 2000-04-17  Jim Meyering  <meyering@lucent.com>
43276
43277         Get it right :-)
43278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43279         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
43280         Suggestion from Akim Demaille.
43281
43282 2000-04-17  Jim Meyering  <meyering@lucent.com>
43283
43284         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43285         the definition of it to rpl_strftime also defined-away the system's
43286         declaration.
43287
43288 2000-04-15  Jim Meyering  <meyering@lucent.com>
43289
43290         Use `C' to denote so-called `contiguous' files, the same way
43291         that tar does.
43292         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43293         (ftypelet): Use S_ISCTG.
43294         From Michael Deutschmann.
43295
43296 2000-04-14  Jim Meyering  <meyering@lucent.com>
43297
43298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43299         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
43300         clobbered.
43301
43302 2000-04-14  Jim Meyering  <meyering@lucent.com>
43303
43304         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43305
43306 2000-04-13  Jim Meyering  <meyering@lucent.com>
43307
43308         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43309         AH_VERBATIM to insert required #ifndef into config.h.in.
43310         Suggestion from Akim Demaille.
43311
43312 2000-04-12  Jim Meyering  <meyering@lucent.com>
43313
43314         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43315         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
43316         Christian Krackowizer.
43317
43318         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43319         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43320         (AC_SYS_LARGEFILE): Require.
43321         (AM_C_PROTOTYPES): Require.
43322
43323 2000-04-08  Jim Meyering  <meyering@lucent.com>
43324
43325         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43326         names don't conflict.  Reported by Eli Zaretskii.
43327
43328 2000-04-07  Jim Meyering  <meyering@lucent.com>
43329
43330         * lib/putenv.c: Move inclusion of errno.h so it follows that of
43331         sys/types.h, to work around system header problems on AIX 3.2.5.
43332         From Bruno Haible.
43333
43334 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
43335
43336         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43337         bug.  Deal with the different error behavior of Irix iconv.
43338
43339 2000-04-05  Paul Eggert  <eggert@twinsun.com>
43340
43341         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43342         IRIX if the installer said otherwise.
43343
43344 2000-04-05  Jim Meyering  <meyering@lucent.com>
43345
43346         Portability tweaks required for ultrix4.3.
43347         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43348         (jm_CHECK_DECLS): Add getutent to the list of functions.
43349         (_jm_DECL_HEADERS): Add utmpx.h.
43350         From John David Anglin.
43351
43352         * m4/strftime.m4: Back out the 2000-04-02 change.
43353         Instead of that change, simply undefine putenv in the test program.
43354
43355 2000-04-05  Jim Meyering  <meyering@lucent.com>
43356
43357         Portability tweaks required for ultrix4.3.
43358         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43359         getutent.
43360         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43361         * lib/canon-host.c: Declare strdup.
43362         * lib/path-concat.c: Likewise.
43363         From John David Anglin.
43364
43365 2000-04-04  Jim Meyering  <meyering@lucent.com>
43366
43367         Be more DOS 8.3-friendly.
43368         * lib/ref-add.sin: Renamed from ref-add.sed.in.
43369         * lib/ref-del.sin: Renamed from ref-del.sed.in.
43370         * lib/Makefile.am: Reflect renaming.
43371         Reported by Eli Zaretskii.
43372
43373         Use a temporary file name that won't clash with `charset.alias'
43374         in the DOS 8.3 name space.
43375         * lib/Makefile.am (charset_tmp): Define.
43376         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43377         (uninstall-local): Likewise.
43378         Reported by Eli Zaretskii.
43379
43380 2000-04-03  Jim Meyering  <meyering@lucent.com>
43381
43382         * m4/gettext.m4: Fix typo in comment.
43383
43384         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43385         textutils/configure.in).  Suggestion from Paul Eggert.
43386         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
43387
43388 2000-04-02  Paul Eggert  <eggert@twinsun.com>
43389
43390         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43391         variable in the shell rather than using putenv, which isn't
43392         portable.  This avoids the configure-time inter-test dependency
43393         on the potentially-renamed putenv function.
43394
43395 2000-03-30  Paul Eggert  <eggert@twinsun.com>
43396
43397         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43398         before checking struct stat.st_blksize, so that
43399         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43400
43401 2000-03-29  Paul Eggert  <eggert@twinsun.com>
43402
43403         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43404         since strftime.c uses HAVE_STRFTIME to decide whether to use
43405         the underlying strftime.
43406
43407 2000-03-29  Paul Eggert  <eggert@twinsun.com>
43408
43409         * lib/time/strftime.c (my_strftime): Make sure we call the system
43410         strftime, not ourselves, when invoking the underlying strftime.
43411
43412 2000-03-24  Jim Meyering  <meyering@lucent.com>
43413
43414         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43415         (charset_alias): Define.
43416         (install-exec-local): Factor out common code.
43417         (uninstall-local): Split lines longer than 80.
43418         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43419         (SUFFIXES): Define.
43420         (.sed.in.sed): New rule.  Don't redirect directly to $@.
43421         (CLEANFILES): Add ref-add.sed and ref-del.sed.
43422
43423 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
43424
43425         * lib/config.charset: Output a line containing "Packages using this
43426         file".
43427         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43428         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43429         ref-del.sed): New rules.
43430
43431 2000-03-17  Jim Meyering  <meyering@lucent.com>
43432
43433         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43434         Otherwise, include <strings.h>
43435
43436 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
43437
43438         * lib/unicodeio.c (utf8_wctomb): New function.
43439         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43440         format instead of in UCS-4 with platform dependent endianness.
43441
43442 2000-03-10  Jim Meyering  <meyering@lucent.com>
43443
43444         * m4/lib-check.m4: Look for getspnam in -lgen, too.
43445         From Marco Franzen.
43446
43447 2000-03-07  Paul Eggert  <eggert@twinsun.com>
43448
43449         * lib/savedir.c (savedir): Work even if directory size is
43450         negative; this can happen with some screwy NFS configurations.
43451
43452 2000-03-06  Jim Meyering  <meyering@lucent.com>
43453
43454         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43455         if it's NULL (because we ran out of memory).  From Bruno Haible.
43456
43457 2000-03-05  Jim Meyering  <meyering@lucent.com>
43458
43459         * lib/localcharset.c ("path-concat.h"): Include.
43460         (get_charset_aliases): Use path_concat instead of ANSI string
43461         concatenation.
43462
43463         * lib/unicodeio.h (PARAMS): Define.
43464         Use it to guard prototype.
43465
43466 2000-03-04  Jim Meyering  <meyering@lucent.com>
43467
43468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
43469         for lib/localcharset.c.
43470
43471 2000-03-04  Jim Meyering  <meyering@lucent.com>
43472
43473         * lib/Makefile.am (install-exec-local): Create $(libdir) before
43474         installing into it.
43475         (uninstall-local): Uncomment this rule so `make distcheck' works
43476         once again.
43477
43478         * lib/unicodeio.c (<errno.h>): Include it.
43479         (errno): Declare if not defined.
43480
43481         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
43482
43483         * lib/config.charset: New version, incorporating remarks from a linux
43484         i18n mailing list.  From Bruno Haible.
43485
43486 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
43487
43488         * m4/codeset.m4: New file.
43489         * m4/iconv.m4: New file.
43490         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
43491
43492 2000-03-03  Jim Meyering  <meyering@lucent.com>
43493
43494         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
43495
43496 2000-03-02  Jim Meyering  <meyering@lucent.com>
43497
43498         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
43499         the messages come out on separate lines.
43500
43501         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
43502         rather than jm_CHECK_DECLARATIONS.
43503         * m4/decl.m4: Remove now-unused file.
43504
43505         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
43506         geteuid.
43507
43508 2000-03-02  Jim Meyering  <meyering@lucent.com>
43509
43510         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
43511
43512 2000-03-01  Jim Meyering  <meyering@lucent.com>
43513
43514         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
43515         * lib/unicodeio.c: Likewise.
43516
43517 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
43518
43519         * lib/config.charset: New file.
43520         * lib/localcharset.c: New file.
43521         * lib/unicodeio.h, lib/unicodeio.c: New files.
43522         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
43523         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
43524         (noinst_HEADERS): Add unicodeio.h.
43525         (all-local, install-exec-local, charset.alias): New targets.
43526
43527 2000-02-28  Paul Eggert  <eggert@twinsun.com>
43528
43529         * lib/quotearg.c (ALERT_CHAR): New macro.
43530         (quotearg_buffer_restyled): Use it.
43531
43532 2000-02-27  Jim Meyering  <meyering@lucent.com>
43533
43534         * m4/check-decl.m4: Add getenv to the list.
43535
43536 2000-02-27  Jim Meyering  <meyering@lucent.com>
43537
43538         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
43539         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
43540
43541         * lib/backupfile.c: Guard inclusion of stdlib.h with
43542         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
43543         Declare malloc if needed.
43544
43545         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
43546         `#ifndef HAVE_DECL..'
43547         now that autoconf always defines the HAVE_DECL_ symbols.
43548         * lib/human.c: Likewise.
43549         * lib/same.c: Likewise.
43550         * lib/strtoumax.c: Likewise.
43551
43552         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
43553         declaration check was not run.
43554         * lib/hash.c: Likewise.
43555         * lib/human.c: Likewise.
43556         * lib/same.c: Likewise.
43557         * lib/strtoumax.c: Likewise.
43558
43559         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
43560         `.', then first look up the entire `.'-containing string as a login
43561         name.
43562
43563 2000-02-23  Jim Meyering  <meyering@lucent.com>
43564
43565         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
43566         in place of my hack.
43567
43568 2000-02-18  Paul Eggert  <eggert@twinsun.com>
43569
43570         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
43571         (textint): New typedef.
43572         (parser_control): Member year changed from int to textint.
43573         All uses changed.
43574         (YYSTYPE): Removed; replaced by %union with int and textint members.
43575         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
43576         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
43577         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
43578         (tSNUMBER, tUNUMBER): Now of type <textintval>.
43579         (date, number, to_year): Use width of number in digits, not its value,
43580         to determine whether it's a 2-digit year, or a 2-digit time.
43581         (yylex): Store number of digits of numeric tokens.
43582         Reported by John Kendall.
43583
43584         (parser_control): Changed from struct parser_control to typedef (for
43585         consistency).  All uses changed.
43586
43587         (tID): Removed; not used.
43588         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
43589
43590 2000-02-14  Paul Eggert  <eggert@twinsun.com>
43591
43592         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
43593         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
43594
43595 2000-02-12  Jim Meyering  <meyering@lucent.com>
43596
43597         * lib/userspec.c (ISDIGIT): Define it.
43598         (isdigit): Remove definition.
43599         (is_number): Use ISDIGIT, not isdigit.
43600         <libintl.h>: Include.
43601         (_ and N_): Define.
43602         (parse_user_spec): Mark translatable strings.
43603
43604 2000-02-10  Jim Meyering  <meyering@lucent.com>
43605
43606         With these changes, nanosleep.[ch] are finally enough like the other
43607         lib/* replacement files to compile on a few more losing systems.
43608
43609         * lib/nanosleep.h: Don't include config.h.
43610         Remove prototype from declaration of nanosleep.
43611         (PARAMS): Remove now-unneeded definition.
43612         * lib/nanosleep.c: #undef nanosleep.
43613         (rpl_nanosleep): Rename from nanosleep.
43614
43615 2000-02-10  Jim Meyering  <meyering@lucent.com>
43616
43617         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
43618         gnu_nanosleep to rpl_nanosleep.
43619
43620 2000-02-09  Jim Meyering  <meyering@lucent.com>
43621
43622         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
43623         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
43624
43625 2000-02-08  Akim Demaille  <akim@epita.fr>
43626
43627         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
43628         `[' and `]' and remove uses of `changequote'.
43629         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
43630         (AC_SYS_LARGEFILE): Likewise.
43631         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43632         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
43633         of changequote.
43634         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
43635         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
43636         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
43637         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
43638
43639 2000-02-05  Jim Meyering  <meyering@lucent.com>
43640
43641         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
43642         Remove explicit use of AC_HEADER_TIME.  It is required by
43643         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
43644         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
43645         in autoconf whereby the expansion of the latter ended up preceding
43646         the expansion of its prerequisite, AC_HEADER_TIME.
43647         Reported by Volker Borchert.
43648
43649 2000-02-03  Jim Meyering  <meyering@lucent.com>
43650
43651         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43652
43653 2000-02-03  Jim Meyering  <meyering@lucent.com>
43654
43655         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43656         rather than with `#if HAVE_UTMPNAME'.
43657
43658 2000-02-02  Jim Meyering  <meyering@lucent.com>
43659
43660         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43661         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43662         Reported by Eli Zaretskii.
43663
43664 2000-02-01  Jim Meyering  <meyering@lucent.com>
43665
43666         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
43667
43668 2000-01-31  Jim Meyering  <meyering@lucent.com>
43669
43670         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43671         functions.  Add the time.h and sys/time.h headers along with the
43672         AC_REQUIRE'ment of AC_HEADER_TIME.
43673
43674 2000-01-31  Jim Meyering  <meyering@lucent.com>
43675
43676         * lib/nanosleep.h (nanosleep): Guard declaration with
43677         `#if ! HAVE_DECL_NANOSLEEP'.
43678         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43679         the declaration in that vendor's sys/timers.h.
43680         Reported by Christian Krackowizer.
43681
43682         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43683         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43684         (ISPRINT): Likewise.
43685         Reported by Tom Tromey.
43686
43687 2000-01-30  Jim Meyering  <meyering@lucent.com>
43688
43689         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43690
43691         * m4/prereq.m4 (utmp_includes): Define.
43692         Check for ut_user and ut_name members in both struct utmpx
43693         and struct utmp.
43694
43695 2000-01-30  Jim Meyering  <meyering@lucent.com>
43696
43697         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43698         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
43699         header files where only utmpx.ut_user is declared.
43700
43701         * lib/readutmp.h (UT_USER): Define.
43702
43703 2000-01-29  Jim Meyering  <meyering@lucent.com>
43704
43705         * m4/lib-check.m4: New file containing library-related checks from
43706         fileutils and sh-utils (textutils had none).
43707
43708 2000-01-28  Jim Meyering  <meyering@lucent.com>
43709
43710         * m4/perl.m4: Change format of warning message to look more like that
43711         from the missing script.  Suggestion from François Pinard.
43712
43713 2000-01-25  Jim Meyering  <meyering@lucent.com>
43714
43715         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43716         well as time.h in the compile check.
43717         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43718         Fix typo in cross-compiling case: s/yes/no/.
43719
43720 2000-01-23  Jim Meyering  <meyering@lucent.com>
43721
43722         * m4/jm-macros.m4: Move df-related tests here from
43723         fileutils/configure.in
43724
43725         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43726         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43727
43728         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
43729         s/space/ac_fsusage_space/.
43730         (jm_FILE_SYSTEM_USAGE): Take two parameters.
43731
43732         * m4/ftruncate.m4: New file (derived from part of
43733         fileutils/configure.in).
43734         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43735         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43736
43737         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43738         AC_SUBST these here, rather than just in sh-util/configure.in, so
43739         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43740         all the same.
43741         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43742         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43743         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43744         (AC_SUBST(POW_LIBM)): Likewise.
43745         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43746
43747 2000-01-23  Jim Meyering  <meyering@lucent.com>
43748
43749         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43750         obstack.c.
43751
43752 2000-01-22  Jim Meyering  <meyering@lucent.com>
43753
43754         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43755
43756         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43757
43758         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43759         configure.in
43760         (AC_CHECK_HEADERS): Likewise for sh-utils.
43761         (AC_CHECK_HEADERS): Likewise for textutils.
43762         Merge the three lists of headers.
43763
43764         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
43765         from fileutils' configure.in.
43766
43767         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43768         code. Moved tests into their own function (_jm_DECL_HEADERS) in
43769         check-decl.m4.
43770
43771         * m4/check-decl.m4: Use #if rather than #ifdef.
43772         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43773         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43774         (_jm_DECL_HEADERS): Define new function.
43775         (jm_CHECK_DECLARATIONS): Require it.
43776
43777 2000-01-22  Jim Meyering  <meyering@lucent.com>
43778
43779         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43780         [! HAVE_DECL_STRTOULL]: Declare strtoull.
43781         Required for some AIX systems.  Reported by Christian Krackowizer.
43782         [TESTING] (main): New function.
43783
43784         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
43785         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43786         letters.
43787
43788         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43789         iswprint.
43790
43791         * lib/strverscmp.c (ISDIGIT): Define.
43792         (strverscmp): Use ISDIGIT, not isdigit.
43793
43794 2000-01-19  Jim Meyering  <meyering@lucent.com>
43795
43796         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43797         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
43798         defines `struct timespec' in <sys/time.h>
43799
43800         * m4/c-bs-a.m4: Remove uses of changequote altogether.
43801         Thanks to Akim for explaining.
43802
43803 2000-01-17  Paul Eggert  <eggert@twinsun.com>
43804
43805         * lib/nanosleep.c (nanosleep):
43806         Don't use SA_INTERRUPT to decide whether to call sigaction, as
43807         POSIX.1 doesn't require SA_INTERRUPT and some systems
43808         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
43809         it's been part of POSIX.1 since day 1 (in 1988).
43810
43811 2000-01-17  Jim Meyering  <meyering@lucent.com>
43812
43813         * lib/interlock: Remove unused file.  Reported by François Pinard.
43814
43815 2000-01-16  Paul Eggert  <eggert@twinsun.com>
43816
43817         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43818         alert, backslash, formfeed, and vertical tab unnecessarily in
43819         shell quoting style.
43820
43821 2000-01-16  Jim Meyering  <meyering@lucent.com>
43822
43823         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43824         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43825         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43826         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43827
43828 2000-01-16  Jim Meyering  <meyering@lucent.com>
43829
43830         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43831         because the latter didn't work.
43832
43833 2000-01-15  Jim Meyering  <meyering@lucent.com>
43834
43835         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43836         (AC_REPLACE_FUNCS): Add memcpy and memset.
43837         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43838         Add strpbrk.
43839         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43840
43841 2000-01-12  Jim Meyering  <meyering@lucent.com>
43842
43843         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43844         (jm_PREREQ): Use it.
43845         (jm_PREREQ_READUTMP): New macro.
43846         (jm_PREREQ): Use it.
43847
43848 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43849
43850         Quote multibyte characters correctly.
43851         * m4/c-bs-a.m4: New file.
43852         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43853         (jm_PREREQ): Use it.
43854
43855 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43856
43857         * m4/uintmax_t.m4: Port to autoconf 2.13.
43858
43859 2000-01-08  Jim Meyering  <meyering@ascend.com>
43860
43861         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43862         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43863
43864 2000-01-04  Jim Meyering  <meyering@ascend.com>
43865
43866         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43867         jm_STRUCT_DIRENT_D_TYPE.
43868         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43869         jm_STRUCT_DIRENT_D_INO.
43870         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43871         jm_STRUCT_UTIMBUF.
43872         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43873         renamings.
43874         * m4/utime.m4: Likewise.
43875
43876         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43877         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43878
43879 2000-01-03  Paul Eggert  <eggert@twinsun.com>
43880
43881         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43882         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43883
43884 2000-01-02  Jim Meyering  <meyering@ascend.com>
43885
43886         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
43887         remember if this is necessary.
43888
43889 1999-12-26  Jim Meyering  <meyering@ascend.com>
43890
43891         * m4/jm-macros.m4: Use it here.
43892         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43893
43894 1999-12-23  Jim Meyering  <meyering@ascend.com>
43895
43896         * m4/jm-macros.m4: Check for clock_gettime (moved from
43897         fileutils/configure.in)
43898         Check for gettimeofday.
43899
43900 1999-12-20  Jim Meyering  <meyering@ascend.com>
43901
43902         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43903         autoconf-2.14a-1999-12-20.
43904
43905 1999-12-19  Jim Meyering  <meyering@ascend.com>
43906
43907         * m4/lstat-slash.m4: New file.
43908         * m4/jm-macros.m4: Use the new macro:
43909         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43910
43911 1999-12-07  Jim Meyering  <meyering@ascend.com>
43912
43913         * m4/perl.m4: Require that File::Compare be available, too.
43914         Too many systems seem to lack it.
43915
43916         * m4/strftime.m4: Add checks for most of the cpp macros tested in
43917         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
43918
43919 1999-11-18  Paul Eggert  <eggert@twinsun.com>
43920
43921         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43922         problem with the QNX 4.25 shell, which doesn't propagate exit
43923         status of failed commands inside shell assignments.
43924
43925 1999-11-17  Jim Meyering  <meyering@ascend.com>
43926
43927         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43928
43929 1999-11-07  Jim Meyering  <meyering@ascend.com>
43930
43931         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43932
43933 1999-11-06  Jim Meyering  <meyering@ascend.com>
43934
43935         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43936         * m4/jm-macros.m4 (jm_MACROS): Use it here.
43937
43938 1999-11-05  Jim Meyering  <meyering@ascend.com>
43939
43940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43941         configure.in of textutils, fileutils, and sh-utils into this one
43942         (shared between those packages) file.
43943         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43944         AC_STRUCT_ST_BLKSIZE.
43945
43946 1999-11-03  Jim Meyering  <meyering@ascend.com>
43947
43948         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
43949         of AC_CHECK_TYPE checks includes unistd.h.
43950         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43951         Suggestion from Akim Demaille.
43952
43953 1999-10-30  Jim Meyering  <meyering@ascend.com>
43954
43955         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
43956         m4-quoted string.
43957         * m4/ls-mntd-fs.m4: Likewise.
43958         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
43959         * m4/jm-winsz1.m4: Likewise.
43960
43961         * m4/const.m4: Remove file, since the fix made it into the experimental
43962         version of autoconf.
43963         * m4/mktime.m4: Likewise.
43964
43965         * m4/check-type.m4: Remove file, now that the latest version of
43966         AC_CHECK_TYPE takes a third arg to specify additional #includes.
43967
43968         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43969         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43970         AC_CHECK_TYPE.
43971
43972 1999-10-04  Jim Meyering  <meyering@ascend.com>
43973
43974         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43975
43976 1999-09-22  Paul Eggert  <eggert@twinsun.com>
43977
43978         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43979         2.95.1 bug with HP-UX 10.20.
43980
43981 1999-09-17  Jim Meyering  <meyering@ascend.com>
43982
43983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43984         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43985         due to missing strdup (against sh-utils-2.0).
43986
43987 1999-08-29  Jim Meyering  <meyering@ascend.com>
43988
43989         * m4/jm-macros.m4: Require jm_BISON.
43990         * m4/bison.m4: New file.
43991
43992 1999-08-17  Paul Eggert  <eggert@twinsun.com>
43993
43994         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43995         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43996
43997 1999-08-05  Jim Meyering  <meyering@ascend.com>
43998
43999         * m4/getline.m4: Rename test file from conftestdata to conftest.data
44000         to avoid conflicts with `conftest' on 8+3 filesystems.
44001         Suggestion from Eli Zaretskii.
44002
44003 1999-08-04  Jim Meyering  <meyering@ascend.com>
44004
44005         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
44006         fileutils and sh-utils (textutils's getline test was inadequate).
44007         (AM_FUNC_GETLINE): Run this test.
44008         (AC_CHECK_FUNCS): Check for getdelim.
44009         Reported by Bob Proulx.
44010
44011 1999-08-02  Jim Meyering  <meyering@ascend.com>
44012
44013         * m4/jm-macros.m4: Add a comment.
44014
44015 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44016
44017         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
44018         <inttypes.h> defines strtoumax as a macro (and not as a
44019         function).
44020
44021 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44022
44023         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
44024         that we can shift, multiply and divide unsigned long long
44025         values; Ultrix cc can't do it.
44026
44027 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44028
44029         * m4/mktime.m4: New file, which is a preview of what should appear
44030         in the next public autoconf release.
44031
44032 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44033
44034         * m4/lfs.m4: Remove this file.
44035         * m4/largefile.m4: New file.  It contains the old contents of
44036         lfs.m4, except that all names with prefix AC_LFS have been
44037         changed to use the prefix AC_SYS_LARGEFILE instead, to be
44038         compatible with future autoconf versions.  Also, some minor m4
44039         quoting problems have been fixed.
44040
44041 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44042
44043         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
44044         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
44045         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
44046         and simplify the shell code.
44047
44048 1999-08-01  Jim Meyering  <meyering@ascend.com>
44049
44050         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
44051         m4.
44052
44053 1999-07-20  Jim Meyering  <meyering@ascend.com>
44054
44055         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
44056
44057 1999-07-15  Jim Meyering  <meyering@ascend.com>
44058
44059         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
44060
44061 1999-05-22  Jim Meyering  <meyering@ascend.com>
44062
44063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
44064
44065 1999-05-20  Jim Meyering  <meyering@ascend.com>
44066
44067         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
44068         Add a colon after each `then' in case $4 is empty.
44069
44070 1999-05-16  Jim Meyering  <meyering@ascend.com>
44071
44072         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
44073
44074 1999-05-10  Jim Meyering  <meyering@ascend.com>
44075
44076         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
44077
44078         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44079         AC_FUNC_MKTIME.
44080
44081 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
44082
44083         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
44084
44085 1999-05-04  Paul Eggert  <eggert@twinsun.com>
44086
44087         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
44088         not CPPFLAGS, so that linking works correctly in IRIX.
44089
44090 1999-04-30  Paul Eggert  <eggert@twinsun.com>
44091
44092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
44093
44094 1999-04-20  Paul Eggert  <eggert@twinsun.com>
44095
44096         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
44097         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
44098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
44099         jm_AC_TYPE_UNSIGNED_LONG_LONG.
44100         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
44101
44102         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
44103
44104 1999-04-20  Jim Meyering  <meyering@ascend.com>
44105
44106         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
44107         AC_REPLACE xstroull if necessary.  From Paul Eggert.
44108         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
44109
44110 1999-04-18  Jim Meyering  <meyering@ascend.com>
44111
44112         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44113         * m4/jm-macros.m4: Use it.
44114
44115 1999-04-06  Jim Meyering  <meyering@ascend.com>
44116
44117         * m4/strftime.m4: Remove test for %f.
44118
44119 1999-03-29  Jim Meyering  <meyering@ascend.com>
44120
44121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44122         superset of the AC_TYPE_* checks in the textutils, fileutils,
44123         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
44124         AC_TYPE_PID_T.
44125
44126 1999-03-28  Jim Meyering  <meyering@ascend.com>
44127
44128         * m4/jm-macros.m4: Define GNU_PACKAGE here.
44129         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44130         replaced e.g., in the *.sh files of the sh-utils.
44131
44132 1999-03-20  Jim Meyering  <meyering@ascend.com>
44133
44134         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44135         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44136         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
44137
44138 1999-03-19  Jim Meyering  <meyering@ascend.com>
44139
44140         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44141
44142 1999-03-12  Jim Meyering  <meyering@ascend.com>
44143
44144         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44145
44146 1999-03-07  Jim Meyering  <meyering@ascend.com>
44147
44148         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44149         declared.
44150
44151 1999-02-17  Jim Meyering  <meyering@ascend.com>
44152
44153         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44154         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
44155
44156 1999-02-07  Jim Meyering  <meyering@ascend.com>
44157
44158         * m4/group-member.m4: New file -- extracted from sh-utils'
44159         configure.in.
44160
44161         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
44162         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44163
44164 1999-02-06  Jim Meyering  <meyering@ascend.com>
44165
44166         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44167         * m4/fnmatch.m4: Likewise.
44168         * m4/getgroups.m4: Likewise.
44169         * m4/lstat.m4: Likewise.
44170         * m4/malloc.m4: Likewise.
44171         * m4/putenv.m4: Likewise.
44172         * m4/realloc.m4: Likewise.
44173         * m4/regex.m4: Likewise.
44174         * m4/stat.m4: Likewise.
44175         * m4/strftime.m4: Likewise.
44176         Suggestion from Alain Magloire.
44177
44178         * m4/chown.m4: Use `.$ac_objext', not `.o'.
44179         * m4/fnmatch.m4: Likewise.
44180         * m4/getgroups.m4: Likewise.
44181         * m4/getline.m4: Likewise.
44182         * m4/lstat.m4: Likewise.
44183         * m4/malloc.m4: Likewise.
44184         * m4/memcmp.m4: Likewise.
44185         * m4/putenv.m4: Likewise.
44186         * m4/realloc.m4: Likewise.
44187         * m4/regex.m4: Likewise.
44188         * m4/stat.m4: Likewise.
44189         * m4/strftime.m4: Likewise.
44190         Suggestion from Alain Magloire.
44191
44192         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44193         an argument.
44194
44195         * m4/regex.m4: Add a run-time Test for proper operation of
44196         re_compile_pattern.
44197
44198 1999-01-31  Jim Meyering  <meyering@ascend.com>
44199
44200         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44201
44202 1999-01-30  Jim Meyering  <meyering@ascend.com>
44203
44204         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44205
44206         * m4/jm-mktime.m4: Make this a wrapper around the official
44207         AM_FUNC_MKTIME rather than my private copy, now that the official one
44208         is up to date.
44209         * m4/mktime.m4: Remove file.
44210
44211         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44212         * m4/uptime.m4: Likewise.
44213         * m4/uintmax_t.m4: Likewise.
44214
44215 1999-01-28  Jim Meyering  <meyering@ascend.com>
44216
44217         * m4/jm-macros.m4: Use jm_AFS.
44218         * m4/afs.m4: New file (from fileutils' configure.in).
44219
44220         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44221         * m4/chown.m4: Likewise.
44222         * m4/d-ino.m4: Likewise.
44223         * m4/d-type.m4: Likewise.
44224         * m4/fnmatch.m4: Likewise.
44225         * m4/getgroups.m4: Likewise.
44226         * m4/gettext.m4: Likewise.
44227         * m4/jm-mktime.m4: Likewise.
44228         * m4/jm-winsz2.m4: Likewise.
44229         * m4/lcmessage.m4: Likewise.
44230         * m4/ls-mntd-fs.m4: Likewise.
44231         * m4/malloc.m4: Likewise.
44232         * m4/memcmp.m4: Likewise.
44233         * m4/putenv.m4: Likewise.
44234         * m4/realloc.m4: Likewise.
44235         * m4/st_mtim.m4: Likewise.
44236         * m4/strftime.m4: Likewise.
44237
44238 1999-01-16  Jim Meyering  <meyering@ascend.com>
44239
44240         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44241         (ARGMATCH_DIE_DECL): Define.
44242
44243 1999-01-12  Jim Meyering  <meyering@ascend.com>
44244
44245         * m4/Makefile.am.in: Rewrite to avoid using fmt.
44246         Reported by Lars Hecking.
44247
44248 1999-01-10  Jim Meyering  <meyering@ascend.com>
44249
44250         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44251         gross kludge.
44252         * m4/inttypes_h.m4: Likewise.
44253         * m4/lstat.m4: Likewise.
44254         * m4/malloc.m4: Likewise.
44255         * m4/readdir.m4: Likewise.
44256         * m4/realloc.m4: Likewise.
44257         * m4/st_dm_mode.m4: Likewise.
44258         * m4/stat.m4: Likewise.
44259         * m4/utimbuf.m4: Likewise.
44260         * m4/utimes.m4: Likewise.
44261
44262         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44263         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
44264         comments in config.h.in are meaningful.
44265
44266         * m4/jm-macros.m4: Require autoconf-2.13 here.
44267
44268         * m4/regex.m4: By default, don't use the included regex.c on systems
44269         with glibc 2.  Suggestion from Uli Drepper.
44270
44271 1999-01-02  Jim Meyering  <meyering@ascend.com>
44272
44273         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44274
44275 1998-12-18  Jim Meyering  <meyering@ascend.com>
44276
44277         * m4/Makefile.am.in (Makefile.am): Simplify rule.
44278         Based on a suggestion from Lars Hecking.
44279
44280 1998-11-16  Paul Eggert  <eggert@twinsun.com>
44281
44282         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44283
44284 1998-11-16  Jim Meyering  <meyering@ascend.com>
44285
44286         * m4/lfs.m4: Double-quote the `uname...` expression.
44287
44288 1998-11-14  Jim Meyering  <meyering@ascend.com>
44289
44290         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
44291         * m4/stat.m4: Likewise.
44292
44293 1998-11-03  Jim Meyering  <meyering@ascend.com>
44294
44295         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44296         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44297
44298 1998-10-18  Jim Meyering  <meyering@ascend.com>
44299
44300         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44301
44302 1998-10-17  Jim Meyering  <meyering@ascend.com>
44303
44304         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44305         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44306         calls for those previously hard-coded headers.  Instead, take a new
44307         parameter.
44308         (jm_CHECK_DECLARATIONS): Reflect interface change.
44309         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44310         (jm_CHECK_DECL_LOCALTIME_R): New macro.
44311
44312         * m4/mktime.m4: Test for spring-forward gap before long-running test.
44313
44314 1998-10-14  Jim Meyering  <meyering@ascend.com>
44315
44316         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44317         instead of "TZ=America/Vancouver".  From Paul Eggert.
44318
44319 1998-10-11  Jim Meyering  <meyering@ascend.com>
44320
44321         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44322         This adds a test for a recently added compatibility fix for mktime.c.
44323         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44324
44325 1998-09-27  Jim Meyering  <meyering@ascend.com>
44326
44327         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44328
44329         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
44330         ../configure.in, including a change from Gordon Matzigkeit to allow
44331         cross-compiling for the Hurd.
44332
44333         * m4/glibc.m4: New file/macro to test for the GNU C Library
44334         versions 1 and 2.  From Gordon Matzigkeit.
44335         Indent.
44336
44337 1998-09-21  Jim Meyering  <meyering@ascend.com>
44338
44339         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
44340
44341 1998-08-18  Paul Eggert  <eggert@twinsun.com>
44342
44343         Port nanosecond-resolution times to UnixWare 2.1.2 and
44344         pedantic Solaris 2.6.
44345
44346         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44347         AC_STRUCT_ST_MTIM.
44348         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44349         Generate name of ns member, instead of just 1 or undef.
44350         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44351
44352 1998-08-15  Jim Meyering  <meyering@ascend.com>
44353
44354         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44355         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
44356         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44357         instead of jm_TYPE_SSIZE_T.
44358
44359 1998-08-12  Jim Meyering  <meyering@ascend.com>
44360
44361         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
44362
44363 1998-08-02  Jim Meyering  <meyering@ascend.com>
44364
44365         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44366         in acconfig.h manually.
44367
44368 1998-07-31  Paul Eggert  <eggert@twinsun.com>
44369
44370         * m4/st_mtim.m4: New file.
44371
44372 1998-07-28  Jim Meyering  <meyering@ascend.com>
44373
44374         * m4/utimes.m4: Undef stat.
44375
44376 1998-07-25  Jim Meyering  <meyering@ascend.com>
44377
44378         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44379         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44380
44381 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
44382
44383         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44384         uid and gid actually remain unchanged.
44385
44386 1998-07-07  Jim Meyering  <meyering@ascend.com>
44387
44388         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44389
44390 1998-07-04  Jim Meyering  <meyering@ascend.com>
44391
44392         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
44393         to prove that this macro can be used in packages without regex.c.
44394
44395 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
44396
44397         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44398         is to be used.
44399
44400 1998-07-03  Jim Meyering  <meyering@ascend.com>
44401
44402         * m4/gettext.m4: Add -lintl if it's found to be necessary.
44403
44404         * m4/gettext.m4: New file -- from gettext-0.10.35.
44405         * m4/lcmessage.m4: Likewise.
44406         * m4/progtest.m4: Likewise.
44407
44408         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44409         * m4/jm-macros.m4: Require the new macro.
44410
44411 1998-06-29  Jim Meyering  <meyering@ascend.com>
44412
44413         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
44414         for the definition of NGROUPS (used in a system header included
44415         by sys/mount.h).
44416
44417 1998-06-28  Jim Meyering  <meyering@ascend.com>
44418
44419         * m4/ls-mntd-fs.m4: New file.
44420         * m4/fstypename.m4: New file.
44421
44422         * m4/jm-macros.m4: Require the new macro.
44423         * m4/jm-glibc-io.m4: New file.
44424
44425 1998-05-19  Jim Meyering  <meyering@ascend.com>
44426
44427         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44428         * m4/lchown.m4: New file.
44429
44430         * m4/Makefile.am.in: New file.
44431         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44432
44433 1998-05-14  Jim Meyering  <meyering@ascend.com>
44434
44435         * m4/Makefile.am (EXTRA_DIST): Add them.
44436         * m4/jm-macros.m4: New file.
44437         * m4/utimbuf.m4: New file.
44438
44439 1998-05-12  Jim Meyering  <meyering@ascend.com>
44440
44441         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44442
44443 1998-05-11  Jim Meyering  <meyering@ascend.com>
44444
44445         * m4/isc-posix.m4: New file.
44446
44447 1998-05-10  Jim Meyering  <meyering@ascend.com>
44448
44449         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44450
44451 1998-05-09  Jim Meyering  <meyering@ascend.com>
44452
44453         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44454         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
44455         with automake.
44456
44457         * m4/ssize_t.m4: New file.
44458         * m4/mktime.m4: Remove file -- the new automake has this now.
44459
44460 1998-04-26  Jim Meyering  <meyering@ascend.com>
44461
44462         * m4/assert.m4: New file.
44463         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
44464
44465 1998-04-05  Jim Meyering  <meyering@ascend.com>
44466
44467         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
44468         (jm_PREREQ): Use it here.
44469
44470 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
44471
44472         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
44473         in acconfig.h.
44474
44475 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
44476
44477         * m4/prereq.m4: New file.
44478         * m4/error.m4: New file.
44479         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
44480
44481 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
44482
44483         * m4/getline.m4: Don't set am_cv_func_working_getline before the
44484         cache-check for the same variable -- that defeated the purpose of
44485         the test; the test program was never run.  This was a problem only
44486         on systems with losing getline functions -- HP-UX 10.20 is one.
44487         Reported by Bjorn Helgaas.
44488
44489 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
44490
44491         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
44492
44493 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
44494
44495         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
44496
44497         * m4/const.m4: New file.  Use an initializer in this declaration
44498         typedef int charset[2]; const charset x;
44499         Reported by Bob Glickstein.
44500
44501 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
44502
44503         * m4/chown.m4: Fix reversed types on -1 args to chown.
44504         From Kaveh Ghazi.
44505
44506 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
44507
44508         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
44509         Add lseek and memchr.
44510
44511         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
44512         T.E.Dickey <dickey@clark.net> said that some older preprocessors
44513         have a 20-character limit on names.
44514
44515 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
44516
44517         * m4/inttypes_h.m4: New file.
44518         * m4/uintmax_t.m4: New file.
44519         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
44520
44521
44522         -----
44523
44524         Local Variables:
44525         coding: utf-8
44526         End:
44527
44528         Copyright (C) 1997-2008 Free Software Foundation, Inc.
44529
44530         Copying and distribution of this file, with or without
44531         modification, are permitted provided the copyright notice
44532         and this notice are preserved.